logoalt Hacker News

buggerylast Saturday at 5:06 PM9 repliesview on HN

Interesting technical achievement but what would this be used for in practical terms?


Replies

s-mackelast Saturday at 6:48 PM

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

kreyenborgilast Saturday at 8:10 PM

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

jes5199last Saturday at 5:10 PM

yeah why would anyone want to run code on a website

show 2 replies
fuzzy_biscuitlast Saturday at 5:25 PM

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

show 2 replies
pkagelast Saturday at 7:20 PM

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.

anon291last Saturday at 6:18 PM

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

IshKebablast Saturday at 6:20 PM

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.

show 1 reply
0x264last Saturday at 5:20 PM

Teaching