this post was submitted on 12 Dec 2024
108 points (100.0% liked)

Programmer Humor

32743 readers
180 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] balsoft@lemmy.ml 3 points 2 weeks ago (1 children)

This is why I'm kinda excited about WASM. With a WASM backend for GHC, you can now write almost the entire frontend logic in Haskell, with only some minor bindings on the JS side. I really wish that this happens at some point to eliminate the need for JS almost entirely, but I'm not that hopeful anymore.

[โ€“] yogthos@lemmy.ml 2 points 2 weeks ago

Yeah, WASM definitely looks promising. It's also worth noting that you can treat Js as a compile target using something like Elm or ClojureScript. These languages have decent semantics that insulate you from a lot of the underlying insanity. For example, stuff like equality works the way you'd expect it to. I've worked on a few large frontend apps with ClojureScript and it was pretty nice as long as you didn't need to interop with the Js ecosystem.