Hacker News new | ask | show | jobs
by FractalNerve 4046 days ago
I start to like Haskell and would enjoy learning to use it for the Web, but look at the size of it:

http://i.imgur.com/kPHl4L7.png

7834KB is way too large for just that, I'm afraid.

I've 120Mbit/s, that's why it still loads fast, but I remember how slow, but fascinating surfing with 56K modem was.

1 comments

I've explored ghcjs. I had a reasonable react based site down to ~400k after dead code removal and minification. Still biggish, but not multi-megabyte.

The raw unoptimized code was in the several megabyte range though.

I think it would be worth sharing that on a blog post submitted to HN. Sounds like a lot of work, maybe there are ways to automate that with a shell script or a Haskell program. 400KB is absolutely okay I think.
I agree, that would be awesome to study/emulate. Possibly use some of the techniques to make GHCJS programs smaller.