dmjio / miso

:ramen: A tasty Haskell front-end framework
https://haskell-miso.org
BSD 3-Clause "New" or "Revised" License
2.18k stars 133 forks source link

Building the example project takes 8GB of RAM, is this expected? #692

Open zeme-wana opened 2 years ago

zeme-wana commented 2 years ago

I followed the exact steps in the README, and running nix-shell -A env --run 'cabal configure --ghcjs && cabal build' takes 8GB or RAM. Is this expected? Is this related to miso or is this common to all ghcjs projects? I wonder what will happen as my project scales: as I actually add modules and packages, how will RAM takeup increase?

dmjio commented 2 years ago

This seems to only be a problem with the latest GHCJS (8.10.7)+. Using miso's last pin of nixpkgs will use GHCJS 8.6.5, which will not use as much RAM. I'm contemplating a revert.

dmjio commented 2 years ago

@zeme-wana could you post this on https://github.com/ghcjs/ghcjs/issues? Ideally with as much detail as you can provide. I imagine everyone is running into this.

dmjio commented 2 years ago

there's this https://github.com/ghcjs/ghcjs/issues/821

smelc commented 2 years ago

I posted on ghcjs/ghcjs#821

pmiddend commented 1 year ago

This is simply not fixed upstream if I read this correctly, right? Any workaround?