Perl 6 - the future is here, just unevenly distributed

IRC log for #darcs, 2015-07-19

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

All times shown according to UTC.

Time Nick Message
01:11 byorgey joined #darcs
01:36 pointfree joined #darcs
08:20 sprang joined #darcs
10:24 notdan hm, identifyRepository always sets thisrepo = current directory
10:27 Heffalump darcs relies rather too much on the current directory for things :-(
10:33 amgarchIn9 joined #darcs
10:34 notdan ugh that sucks :( but at least i found the issue with my code
10:36 notdan i mean it's still weird, I would want `identifyRepository "./repo1" >>= readPending` to give me pending patches in repo1
10:36 Heffalump what does it do with the argument?
10:49 notdan identifies repo format and cache
10:49 notdan the function getPrefs in Darcs.Repo.Prefs actually sets up thisrepo=.
10:50 notdan and thatrepo=argument
10:54 notdan And it appears that `readRepo' doesn't care about that, but `readPending' does
13:22 byorgey joined #darcs
14:38 Heffalump the extensive use of cwd is because it makes path manipulation and OS operations significantly more efficient - because you can refer to files relative to cwd easily. But it does make the code much nastier and also harder to use as a library. One thing we discussed in the past was abstracting over the behaviour somehow, e.g. with a DarcsMonad class that allows either for a cwd-based implementation or an absolute path based one.
14:38 Heffalump but perhaps we should just take the performance hit and drop the use of cwd
16:08 pointfree notdan: I don't know which GHC you're using but here's a trivial patch I needed to build darcsden/darcsden-ssh on my system: http://hub.darcs.net/pointfree/darcsden-local-take2/patch/20150719155735-e59b1
18:11 amgarchIn9 joined #darcs
18:13 notdan Heffalump: i think a darcsmonad (even if its just a single monad/transformer stack) would be quite idiomatic. then you could read current directory from a ReaderT, which you can also modify locally
18:13 notdan pointfree: oh shoot
18:13 notdan i think i forgot to configure my darcsden with ssh at some point :/ thanks for the headsup, pointfree !
18:13 notdan It's weird that you have to remove System.Locale tho
18:14 notdan pointfree: what error do you get in DarcsDen.Instance.Local?
18:44 notdan arhg, I still don't understand why does 'readRepo' works on a non-cwd repo
19:01 pointfree notdan: The build error in DarcsDen.Instance.Local http://ix.io/jPG
19:02 Heffalump notdan: I did sort of look at it, but it turns out to be a fairly widespread code change, and it runs into some problems interacting with other functions (e.g. forkIO)
19:03 notdan pointfree: I see, I've got a different version of `time' installed. What a mess! And all those old- libraries..
19:03 notdan pointfree: but it's my fault, I should have made all the imports explicit
19:04 notdan Heffalump: yeah, if someone were to do this it would be a serious change
19:05 notdan but then I don't fully understand having `withRepositoryDirectory' function
19:05 notdan it basically only makes sense if the repository "directory" is a URL
19:07 amgarchIn9 joined #darcs
19:14 byorgey joined #darcs
19:14 byorgey joined #darcs
19:28 pointfree So, I have some images and PDFs in my darcs repos. When I view them from browse they are interpreted as plain text(!) How about we display them as image, PDF etc...if darcs understands them to be 'binaries'
19:28 pointfree afaik, the simplest, most general way to do this would be to display binary files in an iframe (especially for the PDF). Thoughts?
19:28 pointfree Also, I noticed they are also interpreted as plain text from the 'raw-file' view.
19:58 notdan pointfree: that's a really good idea! I will check it out
20:02 byorgey joined #darcs
20:20 Heffalump I guess we should use the standard mime-type mapping on the server somehow

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