Re:Learning Haskell is no harder than learning any other pro...
by codebje on Sunday October 06, 2019 @06:09AM
(#21171017)
GHC is fairly slow for a compiler, and Haskell has no separation of interface and implementation, so small changes can have big consequences.
Template Haskell is the worst for it, but I did have a code generator produce code that took about 25G of memory to compile recently, which was very, very slow on a 16Gb machine ;)
Won't reply to everything you've said, but just one little thing that I remember vividly. I was trying to get this 300-400 lines basic OpenGL setup code to work. Each time I made a little change it took 10+ seconds to compile. I went with the minimal types needed to interface with this OpenGL library, which was nothing fancy by Haskell standards, but just a "straightforward" C wrapper.