News for hackers. Stuff that matters.
Re:Swarm: A resource-gathering game based on robot programmi... by Ciantic on Friday October 15, 2021 @07:27AM (#28876616)
How is the compile time?

I like Haskell's succinctness, but I was a bit shocked when I needed to compile Haskell IDE Engine (HIE) and had to wait almost 2 hours... That's when I thought, I'll just complete these university courses and see if I bother afterwards.

Re:Swarm: A resource-gathering game based on robot programmi... by unhammer on Friday October 15, 2021 @12:57PM (#28880011)
On a Thinkpad X270, 14m8s from I typed `stack build` in a fresh clone. I had the GHC version, but almost no libraries from that snapshot, so it had to compile a bunch of dependencies. I then tried a fresh clone and `stack build` again and that just took 1m15. Guess this is why people use things like cachix :-)
Re:Swarm: A resource-gathering game based on robot programmi... by WJW on Friday October 15, 2021 @09:15AM (#28877343)
Compile time in CI seems to be about 1 minute 20 seconds. Not the fastest, not terrible either.
Re:Swarm: A resource-gathering game based on robot programmi... by JoelMcCracken on Friday October 15, 2021 @01:17PM (#28880246)
Haskell does take a long time to compile from scratch, but once you compile once, it is much much faster. The annoying bit comes when you end up changing something which means a lot of other things end up needing to be recompiled, but there are ways to mitigate that, and overall I think haskell is very worth the tradeoff.

I often think about "what would replace haskell?" though and ponder it, and I do think that most likely one feature will be a faster compiler (though I don't really know how possible that is to maintain feature parity).