s-macke 2 days ago

I will give a lecture about Haskell next week and might use this website for demonstration.

kreyenborgi 2 days ago

For one, it demonstrates how far the ghc wasm backend has come, in that such a large system as ghc itself can now run in wasm

jes5199 2 days ago

yeah why would anyone want to run code on a website

  • bqmjjx0kac 2 days ago

    It would be more plausibly practical if GHC could now target wasm, but this announcement is actually about being able to run the compiler itself in the browser.

    • tempay 2 days ago

      It can target wasm, the point of the post is that it’s now mature enough to be able to build itself for wasm and run in a browser.

    • Jaxan 2 days ago

      This is a show case of the wasm backend

  • swannodette 2 days ago

    Loading 50mb of WASM is a big tradeoff just to run code on a website.

    • extraduder_ire a day ago

      For comparison: the homepage of cnn.com right now is 33.37MB on my machine. 16.82MB of which is JavaScript.

    • tuveson 2 days ago

      Loading time is pretty rough, but it seems responsive enough after the initial load. Probably as fast or faster than downloading and installing GHC locally.

    • wslh 2 days ago

      I would assume that in the near future one can preload, cache, update selected WASM packages. I also imagine that sooner than that we can preload open models in the browser to run the natively instead of only invoking third parties (e.g. window.ai in the DOM)

fuzzy_biscuit 2 days ago

I think the immediate and obvious case would be educational materials. Other than that, technical achievements need not always be practical to be cool :)

pkage 2 days ago

In addition to the other responses, it's also worth noting that wasm itself is useful outside of the web itself; e.g. in containerized applications.

anon291 2 days ago

Compilers are complicated. WASM has been a priority for the Haskell community for a while. Demonstrating GHC's ability to compile itself to WASM is thus a show that it is robust enough to compile a very complicated program into this backen.d

IshKebab 2 days ago

Have you ever used Godbolt? The Rust playground? The Typescript's playground? The Go playground?

It lets you have that without the pain of hosting compilers server side.

[removed] 2 days ago
[deleted]