WARNING: Dumb question alert!
I’ve seen in various places that building a whole project with ghc --make
is faster than compiling files one-at-a-time with ghc -c
because ghc --make
can keep information in memory across modules. Isn’t one possible solution to have a long running server that keeps things in memory, and you can submit requests to compile files one-at-a-time? Is there an existing proposal for this?
Random thoughts:
- This is separate from the new
-jsem
functionality, right?-jsem
is for ensuring parallel builds don’t consume all the host memory, but it doesn’t help the parallel builds actually share in-memory information - Is this related to HLS? (I don’t use HLS, so maybe this is the whole purpose for HLS)
- I’m semi-familiar with the gradle build system for Java projects. I believe it spins up a server when you first run a gradle command; is that build server similar to this idea?