logoalt Hacker News

GHC now runs in the browser

345 pointsby kaycebasqueslast Saturday at 4:29 PM121 commentsview on HN

Comments

lrvicklast Saturday at 8:26 PM

Unfortunately there is still no way to actually bootstrap haskell (or anything based on it) which makes it impossible to put anything written in Haskell near any high trust linux distribution or environment.

I guess sandboxing the untrusted binary in a browser is -something- to let people play with haskell in a lower risk way for the moment at least but it is hard to take a language seriously or trust it with no way to bootstrap it from source.

show 5 replies
irusenseiyesterday at 1:41 AM

Can the Haskell people help me refresh my memory?

I remember running a Haskell interpreter on an HP Jornada running Jlime Linux. It was a long time ago in high school and I felt it was great because I thought it was a convenient way to do math classes since I could input some math formulas directly into the interpreter pretty much as they were. Definitely better than the Cassio scientific calculator my math teacher had us use.

It ran from a CF card so there was no chance it was as big as GHC. I can't seem to find the name of the interpreter.

show 1 reply
utopiahlast Saturday at 9:07 PM

Neat... but with QEMU-WASM I'm wondering what actually does not run in the browser (obviously that doesn't required specific input).

Not a criticism, love everything that can provide hassle-free onboarding to learn a new language, just curious.

show 1 reply
umutisiklast Saturday at 7:44 PM

This is very impressive. I once built an educational Haskell programming + math. + art web site (mathvas.com). Something like this would have simplified that a lot.

show 1 reply
Johnny555last Saturday at 5:24 PM

For those not well versed in Haskell, GHC is apparently this:

https://www.haskell.org/ghc/

What is GHC?

GHC is a state-of-the-art, open source compiler and interactive environment for the functional language Haskell.

show 1 reply
frou_dhlast Saturday at 6:02 PM

Does it use WasmGC, or bundle its own garbage collector?

show 2 replies
zhangchilast Saturday at 7:30 PM

Can someone please help me understand the difference between features like this and the technologies like Blazor Wasm which actually let you write frontend in non js for websites?

kaoDlast Saturday at 11:09 PM

Can anyone point to a "practical Haskell" tutorial/book/whatever for people that already know functional programming? I'm in this sour spot where most tutorials are boring to me so I just can't follow through.

I know what a monad is. What a typeclass is. Even what HKTs are. I can make sense of "a monad is just a monoid in the category of endofunctors" if I give it a few minutes to unravel the ball of twine... But I wouldn't be able to code a "ToDo list" in Haskell if my life depended on it.

Pls help.

show 10 replies
1vuio0pswjnm7last Saturday at 8:58 PM

Actual title: "GHC now runs in your browser"

de6u99erlast Saturday at 8:21 PM

Serious question. Is Haskell still a thing?

show 5 replies
pjmlplast Saturday at 7:56 PM

Is it just me or is it actually impossible to type anything?

show 2 replies
syahlanahlast Saturday at 9:15 PM

[flagged]

buggerylast Saturday at 5:06 PM

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

show 9 replies