Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Would it make sense to make the code Literate Haskell?


A Literate Haskell blockchain might just be Peak HN.

(Definitely peak HN if it runs in the browser).


Is GHCJS using WASM yet, because if so...


There's a Summer of Haskell project going this year. I think it's called WebGHC?

Edit: https://webghc.github.io


Haha, when that happens, what will it even mean anymore. What even will software be.


A literate blockchain implementation?? YES please!!!


I'm not familiar with Literate Haskell, what would that involve?


"Programs should be written for people to read, and only incidentally for machines to execute." (Structure and Interpretation of Computer Programs" by Abelson and Sussman)

The idea is that you write a "Book" and the program is extracted, from the book.

Literate Programming Wikipedia: https://en.wikipedia.org/wiki/Literate_programming

A nice talk about it: https://youtu.be/Av0PQDVTP4A


It's just where the majority of the file is a comment instead of a minority.


Thank you. Thank you so much.

It's an old pet peeve of mine. I cringe inside every time someone starts waxing about "writing your thoughts first, and your code only incidentally" or "it's a completely different paradigm of programming" and other such pieces of useless, discouraging new age fluff.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: