Perl 6 - the future is here, just unevenly distributed

IRC log for #darcs, 2016-01-28

| Channels | #darcs index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:10 Big_G joined #darcs
01:15 mizu_no_oto joined #darcs
01:42 mizu_no_oto joined #darcs
05:16 Big_G joined #darcs
05:31 Riastradh joined #darcs
06:04 Riastradh joined #darcs
06:14 dolio joined #darcs
07:18 Heffalump gh_: can you check if patch1444 works for you and then apply it? (and to 2.10 if appropriate)
10:01 gh_ joined #darcs
10:10 gh_ hi
13:02 BitPuffin joined #darcs
13:02 BitPuffin oy!
13:02 BitPuffin I think I might have possibly asked this before, but I don't remember the answer:
13:02 BitPuffin Darcs treats patches just as a series of bytes right?
13:03 BitPuffin But when diffing two files, does it then start thinking about it as text, and diff by lines?
13:03 BitPuffin or does it do some kind of magical byte array diffing
13:04 itPuffinB joined #darcs
13:58 gh__ joined #darcs
14:06 gh__ hi BitPuffin , darcs detects whether a file is binary or not
14:06 BitPuffin and if it's not it diffs by line?
14:06 gh__ exactly
14:06 BitPuffin I see
14:06 BitPuffin how does it diff a binary?
14:06 BitPuffin I guess it doesn't
14:06 gh__ and if it is, it does not diff but does a full replace of the binary file when there's a change
14:07 BitPuffin yeah that's the best way I think
14:07 gh__ so that's quite inefficient
14:07 BitPuffin how does it detect if it's a binary?
14:08 BitPuffin well, I guess what you could do is take every version of the file and compress them into an archive to save space
14:08 gh__ well darcs decides a file is a binary if it either 1) has an extension listed in its default list of binary files
14:08 gh__ (but that can be changed per repo)
14:09 gh__ 2) detect certains bytes in it ( \0 and another one I forgot )
14:10 BitPuffin ah
14:10 BitPuffin that makes sense
14:11 BitPuffin I'm making a toy vcs inspired by darcs but meant for simpler projects, and when I got to the diffing part it was a noodle scratcher how you'd be diffing just bytes
14:12 BitPuffin I guess for finding eol you just look for either cr or lf
14:12 gh__ you're not sure about doing it line-based?
14:12 BitPuffin no I can think of how to do it line based
14:12 BitPuffin but I couldn't think of how to do it based on just bytes
14:12 BitPuffin unless you just simply decide on a chunk size and diff those chunks
14:13 BitPuffin which wouldn't make for pretty patches
14:13 MasseR joined #darcs
14:14 gh__ oh the answer about binary files was in the page darcs.net/FAQ : How does darcs know which files to treat as binary?
14:14 gh__ You tell it by updating the _darcs/prefs/binaries file.
14:14 gh__ Darcs also automatically treats files containing ^Z or ‘\0’ as b
14:14 gh__ inary
14:15 BitPuffin hm, which one is ^Z?
14:15 gh__ BitPuffin, yeah, well collaborative edition does use byte-based "diffing"
14:15 gh__ software like etherpad
14:15 gh__ I don't know
14:17 BitPuffin hm, that surprises me just a little bit
14:17 BitPuffin but I guess since you don't need to display the diff to anyone you can pick whatever
14:19 gh__ yeah, it supposes real-time update of the distinct working copies
14:19 gh__ https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type
14:20 gh__ also https://en.wikipedia.org/wiki/Operational_transformation
14:21 BitPuffin seems interesting
14:21 gh__ sorry that's a lot to read
14:21 BitPuffin yup haha
14:21 BitPuffin less relevant to source control though? since this is more for real time stuff
14:22 BitPuffin semi-realtime at least
14:22 gh__ yes absolutely
14:23 gh__ I thought of this since you said "darcs for simpler projects".. how much simpler do you want your vcs to be? what would you simplify?
14:24 BitPuffin well
14:24 BitPuffin I was thinking about similar workflow
14:25 BitPuffin but mainly get rid of branches, and kind of centralize things but still be able to do offline commits that you can then sync up when you are online again
14:25 BitPuffin and then potentially resolve a conflict then
14:25 BitPuffin and also not necessarily have to store the whole history (though I think that's not a requirement in darcs either)
14:26 BitPuffin less focus on distributed basically
14:27 BitPuffin not that I don't like distributed
14:27 BitPuffin I'm probably gonna make a distributed one as well :P
14:27 gh__ okay
14:28 BitPuffin I really like darcs though
14:28 BitPuffin but haven't been able to get it to work well on windows :(
15:21 gh__ BitPuffin, which version have you tried?
15:23 BitPuffin 2.8.5 (+ 2 patches)
15:32 sm g'day all
15:35 BitPuffin o/
15:36 gh__ BitPuffin, we had a lot of patches since that version (around 2000) but I'm not sure the situation under windows has improved a lot. Heffalump is the only one fixing windows stuff recently.
15:36 gh__ hi sm
15:39 BitPuffin yeah I think the +2 patches my build mentions is something Heffalump did to try to help me at some point
15:39 gh__ heh :)
17:02 BitPuffin joined #darcs
17:20 gh_ joined #darcs
17:20 gh_ I almost missed http://irclog.perlgeek.de/darcs/2016-01-27#i_11950869 (owst saying patches 1440, 1438 and 1436 look good)
17:24 gh_ indeed the code was written by owst, so the fact that I ported it to HEAD is already a review but well
17:24 gh_ I'm going to push it to reviewed then
17:28 gh_ please test http://darcs.net/releases/branch-2.10/ ; I'm aiming at releasing 2.10.3 if everything is fine
17:28 gh_ tomorrow
17:31 gh_ (thanks owst!)
18:03 Riastradh joined #darcs

| Channels | #darcs index | Today | | Search | Google Search | Plain-Text | summary