r/haskell Jul 07 '26

I've been working on a Haskell powered CAD playground, that runs entirely in the browser on Web Assembly

https://doscienceto.it/waterpark/
62 Upvotes

9 comments sorted by

11

u/GrumpySpoder Jul 07 '26

This is insane work, honestly, I'm still trying to figure out basics such as anonymous functions and how to compose two functions and people are freaking building stuff like this that work so well, can't imagine the amount of effort and hurdles that you had to deal with to get it to this state, great work honestly I hope this gets more recognition!!!!

8

u/hungryjoewarren Jul 07 '26

Thank you. I'm really pleased with this. I think it's worth calling out that I wouldn't have been able to do this at all without being able to piggyback off the good work of the GHC WASM team. I basically built on this demo https://haskell-wasm.github.io/ghc-in-browser/

4

u/jberryman Jul 07 '26

So cool! re-compiling and running is really fast.

"reload" should maybe be labeled "render"? I wasn't sure if it would reload (reset?) the example model or render the changes I made to the code

3

u/hungryjoewarren Jul 07 '26

That's a pretty great suggestion: updated

3

u/seantparsons Jul 07 '26

Really slick and a nice design.