-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce Elm closure #15800
Comments
I suspect most of it is Haskell #4504. |
I tried setting |
I guess it needs to compile haskell during runtime. |
Don't think so, npm has binary compiled elm in 80M:
All statically compiled |
OK, sounds convincing. If it doesn't assume |
@domenkozar, |
@peti indeed. I can get it down from 1.7G to 50MB using following patch:
But |
If the elm library is required to compile elm programs, then it seems like elm compilation implies Haskell compilation, which in turn requires GHC and friends. I don't see what we could do about that, really (except for some multiple outputs magic). |
@peti it's not required to compile Elm programs, but to compile all of Elm executables (elm-make, elm, etc). |
Hmm, in that case you would probably need a full version of elm for compiling the toolchain, and the toolchain itself would then be linked statically so that nothing refers to GHC. I am sorry for being vague, but I know nothing about elm and its internal structure, so I have really no clue what I am talking about here. 😄 |
There is now upstream discussion to join all projects under Elm: https://groups.google.com/forum/#!topic/elm-dev/-qGgYTKyAS8 Until this is decided I don't think it's worth pursuing reducing closure size, but let's keep the issue open as a reminder to myself to check this in a few months. |
0.19 is going to be great for us and allow really simple change to achieve this: https://groups.google.com/forum/#!topic/elm-dev/qdu3NqOqGrY |
I'm going to close this, Elm 0.19 ships a single executable so it will be easy to use static haskell dependencies for compiling it with small closure-size. |
Elm 0.19 should have been released a long time ago. Once #32082 is done, we can really just do |
Elm 0.19 has just been released! |
See #45448 |
It's around 1400MB atm: http://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.elmPackages.elm-compiler.x86_64-linux#tabs-charts
The text was updated successfully, but these errors were encountered: