Perl 6 - the future is here, just unevenly distributed

IRC log for #darcs, 2016-01-29

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

All times shown according to UTC.

Time Nick Message
01:32 Riastradh joined #darcs
01:59 sm darcs hub is back after a.. 2.5h outage due to full disk
02:00 sm sorry about that
02:36 mizu_no__ joined #darcs
02:50 lelit joined #darcs
04:01 mizu_no_oto joined #darcs
07:13 Heffalump gh_: I've sent in a few small patches
07:14 Heffalump patch1445 (dependency bump) and patch1446 (build fix for ghc 7.4 and backported my git test fix)
07:50 byorgey joined #darcs
07:50 byorgey joined #darcs
10:10 gh_ joined #darcs
10:15 gh_ Heffalump, thanks, I'm going to look at your patches now
10:15 gh_ I'm having second thoughts about a detail of whatsnew --machine-readable
10:16 gh_ I want to change `From f` an `To g`into `F f` and `T g` just to have more homogeneous output, since F and T are not used anyway in the output of whatsnew --summary
11:05 gh_ done (pending review)
12:09 mizu_no_oto joined #darcs
12:47 gh_ joined #darcs
13:46 gh_ hmm I'm having a failure of test utf8-display with darcs 2.10.3 compiled with ghc 7.6
13:55 gh_ it's an error with the switch to an utf8 locale occurring on my machine
14:01 gh_ not-our-bug then
14:03 Riastradh joined #darcs
14:05 BitPuffin joined #darcs
15:10 maerwald joined #darcs
15:41 gh_ I just released Darcs 2.10.3
15:41 gh_ https://hackage.haskell.org/package/darcs-2.10.3
15:41 sm hurrah! \o/
15:42 * sm reads the changelog
15:43 sm all sounds good
15:44 sm gh_: reminder, mention darcs is in stackage LTS 5 when you announce
15:44 gh_ sm, only version 2.10.2 is for the moment, right?
15:46 sm gh_: good point. Let's see.. 2.10.3 should appear in the next nightly automatically.. and then then next lts 5 revision, when that arrives
15:46 sm bummer. I'll double check
15:47 BitPuffin gh_: will there be a windows build on the website?
15:50 gh_ BitPuffin, I guess if someone does one.. I don't know who was the last person who did one and if s/he is still around to help
15:50 BitPuffin I mean I could try, but I'm not well versed with haskell ecosystem
15:50 BitPuffin Heffalump is good at it though
15:51 gh_ BitPuffin, these days with "stack" it should be easy to build
15:51 sm yes
15:52 sm for now, the process would be: get stack from haskellstack.org, then in a copy of darcs 2.10.3 source do stack build
15:54 BitPuffin hm
15:55 BitPuffin tempting
15:55 sm ask not what darcs can do you for you.. ask what you can do for darcs!
15:55 BitPuffin lol :D
15:56 BitPuffin is Heffalump still active here?
15:56 sm yes, but we need him for more important things :)
15:57 sm join the teeeam BitPuffin !
15:57 BitPuffin join the team, compile a thing, feel important!
15:58 sm yeah! important, useful, generous, abundant, magnanimous, of service!
16:00 gh_ :)
16:00 BitPuffin okay I have stack
16:00 BitPuffin you guys and your persuation
16:02 sm \o/ yay go BitPuffin!
16:04 BitPuffin building
16:05 BitPuffin hm there is some c code here
16:05 BitPuffin I wonder if stack will be enough
16:07 gh_ BitPuffin, you may have to pass the flag http
16:08 BitPuffin stack build -http ?
16:08 gh_ hmm.. sm? :)
16:08 gh_ should be -fhttp
16:08 BitPuffin turns out you needed to run stack setup first
16:08 BitPuffin what does it do?
16:08 BitPuffin btw the trouble I was having with darcs on windows was with pushing and stuff over ssh
16:09 BitPuffin http get seemed to work
16:09 gh_ it disables the dependency on libcurl, and uses the haskell HTTP library instead
16:10 BitPuffin but yeah stack setup wasn't much of a surprise, the install was like 9mb and haskell takes like 723 terrabytes normally
16:11 sm BitPuffin: stack setup installs ghc, I think it tells you
16:12 BitPuffin yeah the stack setup command does, and it's currently chugging along
16:12 BitPuffin but the stack installer from their website only installed like 9mb
16:12 sm I suggest trying a regular "stack build" without any flags first
16:12 sm (after stack setup)
16:12 BitPuffin oh wow it install msys64 and everything
16:12 BitPuffin but I already have all that xD
16:12 BitPuffin oh well
16:13 gh_ sm, does "stack install darcs" download darcs from hackagedb?
16:14 sm gh_: I suppose testing windows building before release would have been smart, oh well
16:15 sm no, stack install darcs downloads it from stackage
16:15 BitPuffin hmm
16:15 BitPuffin I run stack build
16:15 BitPuffin Run from outside a project, using implicit global project config
16:15 BitPuffin Using resolver: lts-5.0 from implicit global project's config file: C:\Users\usefulProgrammer\AppData\Roaming\stack\global-project\stack.yaml
16:15 BitPuffin Error parsing targets: The specified targets matched no packages.
16:15 BitPuffin Perhaps you need to run 'stack init'?
16:15 gh_ sm, well we didn't test that in the previous releases so..
16:16 BitPuffin in the darcs project root
16:16 BitPuffin also tried in src
16:17 sm gh_: "stack install darcs-2.10.3" will install the new darcs release after it appears in stackage nightly, that's probably what we should recommend
16:17 gh_ sm, ok thanks, will do
16:17 sm I don't think "--resolver nightly-2016-01-30" is needed, I'm still double shecking
16:18 BitPuffin trying stack init then
16:18 sm BitPuffin: no
16:18 sm you need a copy of darcs 2.10.3 source now
16:18 BitPuffin but I was in the root of darcs 2.10.3 source
16:18 sm oh, hmm
16:18 BitPuffin why would I run stack build in some random place :P
16:18 sm one sec
16:19 BitPuffin well maybe since the initial configuration went caputt I'll try and do a fresh extraction of the tar ball
16:19 sm BitPuffin: ok you're right, please go ahead and stack init. It's because we decided not to have a stack.yaml
16:20 BitPuffin also have to stack install cabal-install apparently
16:20 BitPuffin man, so now haskell has a package manager on top of a package manager?
16:21 BitPuffin what's next? another package manager? :P
16:21 sm could be worse.. <cough>js
16:21 sm BitPuffin: did stack say to install cabal-install now ? I'm surprised it didn't do that already
16:21 BitPuffin I guess stack setup didn't install cabal-install
16:22 BitPuffin if it already installed it it wouldn't be installing it right now I think
16:26 BitPuffin so much for saving space by putting it on another harddrive, it's installing all the big stuff to %appdata% anyway :P
16:28 sm oops
16:28 sm this will all be useful info for folks interested in installing darcs on windows
16:30 BitPuffin not necessarily if we just provide a binary though?
16:30 BitPuffin you don't need haskell installed if you already have a darcs binary
16:31 sm BitPuffin: oh true, of course
16:31 BitPuffin but yes anyone looking to compile darcs themselves
16:31 sm s/useful/irrelevant/
16:39 gh_ we have this page that we could improve now with stack: http://darcs.net/Windows
16:42 BitPuffin hmm it seems stuck on installing cabal, hope it's not that I'm running out of space
16:42 sm gh_: do the http and curl flags interact ? they look independent in the cabal file
16:43 gh_ sm, there is the following:
16:43 gh_ if (!flag(curl) && !flag(http))
16:43 gh_ buildable: False
16:43 sm yes
16:43 BitPuffin but that doesn't make them mutually exclusive?
16:43 BitPuffin maybe it shouldn't
16:43 sm no, it's saying at least one of them is required I think
16:44 BitPuffin should they both be able to be set?
16:44 BitPuffin otherwise
16:44 BitPuffin if (flag(curl) && flag(http))
16:44 BitPuffin yell_at_user
16:45 sm really, this should be autodetected on winows and the flags should go away or at least not be something the user has to know about
16:45 BitPuffin true that
16:46 gh_ oh sorry..
16:46 * sm is kind of assuming "stack build" will fail and require a flag, but we'll see
16:47 BitPuffin we will see indeed, if cabal-install, well, installs one day
16:47 sm what's it building now ?
16:48 gh_ indeed it does not make them exclusive, i read it wrong. they are independent at "cabal level" but in the code, the flag HAVE_HTTP actually changes the imports in several places, so it seems like -fhttp changes the default codeof darcs.
16:48 sm maybe it's not verbose enough to tell
16:49 sm gh_: I wonder why wouldn't it always use the pure haskell version ? Is there a faster C http lib ?
16:49 gh_ sm, I recall HTTP does not do pipelining, hence it's practically slower than libcurl
16:50 sm oh it's libcurl. So "http" and "curl" do seem very related
16:50 BitPuffin Cabal-1.22.7.0: copy/register
16:50 BitPuffin for uh
16:50 BitPuffin what feels like half my lifespan by now
16:51 sm we said "should be simple" not "should be quick" :)
16:52 sm I guess you have at least 2G of ram
16:52 BitPuffin :D
16:53 BitPuffin yeah 8 I think
16:53 BitPuffin stack is only using about 181 though
16:53 BitPuffin mb, not gb
16:53 sm good. Building certain packages takes more
16:54 sm when the time comes, stack build --dry-run will give you an idea of how many are to come
16:54 BitPuffin how many packages?
16:54 sm yes
16:54 BitPuffin that's alright
16:54 BitPuffin I'll just let it chug along
16:55 BitPuffin it's weird though, it wasn't the building stage that took long
16:55 BitPuffin it was the copy/register
16:56 BitPuffin I have 3.65gb free space though
16:56 sm it does sound weird
16:56 sm though, it's building multiple things in parallel and output is interleaved
16:57 BitPuffin oh it is?
16:57 sm yup. haskell-src-exts is one of the slow-building packages IIRC
17:56 * Heffalump waves
17:56 * Heffalump waves
17:57 Heffalump twice, because I was scrolled back and didn't realise the first one had arrived :-)
17:57 Heffalump sm: I think that's a dependency of darcsden, not darcs
17:58 sm Heffalump: I was just guessing what might be slow in BitPuffin's cabal-install install
18:00 BitPuffin it's still going btw
18:01 BitPuffin or well, still "stuck"
18:01 gh_ :/
18:01 sm that's not right :/
18:01 BitPuffin not darcs' fault though
18:01 Heffalump I thought stack was supposed to be magic :-)
18:01 BitPuffin this is "stack install cabal-install"
18:01 BitPuffin yeah what the hell, it's written in haskell isn't it ;)
18:02 sm that's right, all of this is supposed to be error free
18:02 BitPuffin if only haskell had dependent types!
18:03 BitPuffin woe is haskell
18:03 sm I'd kill it and try again
18:03 sm with verbose flags
18:04 BitPuffin done
18:05 sm hallelujah
18:08 BitPuffin wait what
18:08 BitPuffin it finished with verbose flags?
18:08 BitPuffin although it's so verbose I can't tell if it was successful
18:13 BitPuffin While constructing the BuildPlan the following exceptions were encountered:
18:13 BitPuffin --  Failure when adding dependencies:
18:13 BitPuffin time: needed (>=1.4 && <1.5), 1.5.0.1 found (latest applicable is 1.4.2)
18:13 BitPuffin needed for package: darcs-2.10.2
18:13 BitPuffin .[
18:13 BitPuffin :[
18:15 BitPuffin I don't think I've ever used cabal without it screaming at me about conflicts
18:20 BitPuffin b
18:20 BitPuffin oops
18:23 gh_ hmm https://hackage.haskell.org/package/darcs-2.10.3/reports/
18:24 sm BitPuffin: I doubt verbose made it finish, it just needed another attempt. I shouldn't have suggested verbose flags yet
18:24 BitPuffin yeah but another attempt is madness
18:24 BitPuffin or insanity rather
18:24 sm it happens with these installs, I don't know why
18:25 BitPuffin "Insanity: doing the same thing over and over again and expecting different results." - Albert Einstein
18:25 sm always worth a try
18:25 BitPuffin I guess Einstein never used a computer
18:26 BitPuffin anyway
18:26 BitPuffin I do have cabal
18:27 sm soo.. try stack build --flag darcs:use-time-1point5
18:27 sm that flag should be true by default in your darcs.cabal, so I don't know why you're getting that
18:29 BitPuffin err this failure is still in init I think
18:29 BitPuffin or wait no
18:29 BitPuffin maybe not
18:30 BitPuffin things are happening
18:30 BitPuffin goats have been sacrificed
18:31 BitPuffin "cthulhu f'lagn" has been uttered
18:35 BitPuffin okay it's complaining about curl like you said
18:36 Heffalump I normally build on Windows with -f-curl
18:37 BitPuffin well I guess I don't have curl
18:37 BitPuffin how do I make it build with http with stack
18:37 BitPuffin simply -fhttp didn't do it
18:37 sm ok, stack build --flag darcs:use-time-1point5  --flag darcs:-curl then ?
18:38 BitPuffin darcs:curl
18:38 sm you want to disable the use of curl, so -
18:39 BitPuffin well that's not how you do it with stack it seems
18:39 BitPuffin nevermind
18:39 BitPuffin it was because of another flag
18:43 BitPuffin okay
18:43 BitPuffin I think it compiled?
18:48 BitPuffin yeah i do find darcs in .stack-work
18:49 BitPuffin okay, now what
18:49 BitPuffin what's expected to be in the archive
18:49 BitPuffin or is there a command I can run that makes it
18:49 BitPuffin sm or gh_ ^
18:51 gh_ BitPuffin, I don't know; you mean what to do to execute darcs?
18:51 sm BitPuffin: ok, that binary should be all that's needed
18:51 BitPuffin no I know how to execute it
18:51 BitPuffin ah it's statically linked?
18:51 sm ..maybe ?
18:53 sm I'm pretty sure if you copy that binary and wipe the rest of today's darcs/stack/hackage data, it'll work
18:53 BitPuffin that would be nice
18:53 BitPuffin anyway
18:54 BitPuffin I've made a zip
18:54 BitPuffin lemme try to sort out a way to send it over to one of y'all
18:54 BitPuffin should I just email it maybe?
18:54 BitPuffin or well here's a link
18:54 BitPuffin https://m.fuwa.se/ggp15v.zip
18:55 sm you should test ssh support I guess
18:55 BitPuffin true
18:56 BitPuffin 4685b4bd7f9c34927998093cbf48cd56 *darcs.zip
18:56 BitPuffin checksum for the zip file anyway
18:56 BitPuffin maybe it should come with a checksum.txt for the binary itself?
18:57 sm I'm not sure, I hand you over to the Release Manager gh_
18:57 BitPuffin who just left :P
18:57 sm gh ? gh ??
19:00 Heffalump gh_: it builds and tests fine on Windows, except for the git_quoted_filenames test
19:00 Heffalump dunno what's wrong with that
19:02 BitPuffin darcs failed:  Not a repository: BitPuffin@hub.darcs.net:BitPuffin/emacs-conf (The program "scp BitPuffin@hub.darcs.net:BitPuffin/emacs-conf//_darcs/inventory .\darcs633426500" failed with error: "Unable to negotiate with 173.255.219.222: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
19:02 BitPuffin ".)
19:02 BitPuffin hm
19:04 sm BitPuffin: you need a custom ssh config, it's in "how to I configure ssh" on the front page
19:04 BitPuffin front page of darcs hub?
19:04 sm yup
19:06 BitPuffin why does darcs hub use such an old weak exchange algo
19:06 BitPuffin "In this case, the client and server were unable to agree on the key exchange algorithm. The server offered only a single method diffie-hellman-group1-sha1. OpenSSH supports this method, but does not enable it by default because is weak and within theoretical range of the so-called Logjam attack."
19:07 sm darcs hub uses the ssh haskell package, which is quite limited
19:08 sm Heffalump would welcome a patch to fix this
19:08 Heffalump muchly
19:12 BitPuffin hmm nope
19:12 BitPuffin darcs failed:  Not a repository: BitPuffin@hub.darcs.net:BitPuffin/emacs-conf (The program "scp BitPuffin@hub.darcs.net:BitPuffin/emacs-conf//_darcs/inventory .\darcs1916915724" failed with error: "invalid path
19:12 BitPuffin ".)
19:12 sm progress.. you may need to create the repo first
19:13 sm through the web, or ssh hub.darcs.net init emacs-conf
19:13 BitPuffin hm
19:13 BitPuffin how do I update?
19:13 sm though, I see your repo
19:13 BitPuffin darcs repair? :P
19:13 BitPuffin yeah, it's also suspicious because it asks me for the ssh password 3 times
19:13 sm ugh
19:14 BitPuffin whereas if I just raw ssh into the service it does what it should
19:15 sm Heffalump: is there some trick for one-time ssh password prompting on windows ? (or, ssh generally ?)
19:15 BitPuffin ie lets me in and kicks me out because it doesn't allocate PTTY for me
19:15 BitPuffin I mean
19:15 BitPuffin maybe this is a side effect of cygwin ssh not caching my password
19:17 sm I think it's possible that "stack exec bash" will give you a shell and ssh that works differently
19:19 BitPuffin but then we're requiring stack :P
19:20 sm true, we want to see it working in a standard CMD window
19:20 sm I no longer have a windows machine accessible, but Heffalump will know more
19:20 BitPuffin I guess I should'nt be doing this in cygwin then
19:20 sm probably not
19:20 BitPuffin (I built in regular cmd though)
19:21 sm well, except you'd like to know it works everywehere
19:21 BitPuffin (so the build is a legit build and stuff)
19:22 BitPuffin ugh then I need to mess with putty
19:27 sm @tell gh_: for the record, the stack build recipe on windows seems to be "stack build --flag darcs:-curl --flag darcs:use-time-1point5" (I don't know why the latter)
19:27 lambdabot Consider it noted.
19:28 sm @tell gh_: also "stack install darcs-2.10.3" won't work at least until the next stackage nightly
19:28 lambdabot Consider it noted.
19:33 Riastradh joined #darcs
19:36 Heffalump sm: I'm not entirely sure. At one point darcs tried to use ssh control-master to deal with that.
19:36 Heffalump But I'm not sure if it does now, or if there's an alternative.
19:36 Heffalump In practice I just use a passphraseless key
19:38 Heffalump BitPuffin/sm: ssh hub.darcs.net <cmd> works for me from a command prompt
19:38 Heffalump looks like it's the mingw64 ssh client that gets launched
19:38 Heffalump I can't really remember how I got my machine in this state though
19:39 BitPuffin probably crap in your PATH variable
19:39 BitPuffin I'm trying with putty and it seems stuck
19:41 BitPuffin anyway, I need to go I think
19:42 BitPuffin I'll probably not use irc much (at least on this computer, can try to remember to join #darcs on my mac) if you need me then I guess go to my twitch stream or twitter lol
19:42 BitPuffin otherwise I'll try to remember to be back monday :P
19:43 sm BitPuffin: great, thanks for working on it
20:06 BitPuffin no problem! take care :)

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