3 ms·
Out of curiosity, as someone who uses Yesod, do you have any issues with it taking a really long time to compile? Or do you not use cabal sandbox for Yesod dev
by kyllo 13y ago
Out of curiosity, as someone who uses Yesod, do you have any issues with it taking a really long time to compile?
Or do you not use cabal sandbox for Yesod dev projects?
I like to sandbox all my dependencies per app, but I just couldn't get over the fact that each new sandboxed install of yesod-platform took the better part of an hour to compile on my MacBook, and actually crashed my micro VPS instance.
- gregwebs 13y agoThere is a difference between installation and compilation. I install into a sandbox once, and then I don't need to do it again for a long time, so it isn't a big concern on a commercial project (make sure to use the -j option though!). You can deploy a final build image to a 'micro', but you do need a separate build server with some RAM to perform the build. You could just use a VM on your Mac. The compilation time during the development cycle is a greater issue for me. I am testing out a way to speed that up now.
- kyllo 13y agoOK, thanks for the response. So it's not just me, a new install of yesod-platform is supposed to take a lot of time and RAM. I was just a little shocked by it, since a new rails install is pretty quick, even on a micro VPS. I wasn't bothered by the time it took to recompile my app while running yesod dev, especially since it recompiles automatically when it detects a file system change. But my yesod app is trivial, maybe this becomes more of an issue with a substantial app. Worth it, though, for the compile-time syntax and type checking. And probably much faster compared to most rails test suites, which you'll have to rerun anytime you make a non-trivial change anyway.