News for hackers. Stuff that matters.
Re:Super Tiny Compiler by jakub_h on Thursday March 31, 2016 @11:03AM (#11397679)
With enough libraries, everything fits into a few lines. How big is Parsec itself?
Re:Super Tiny Compiler by LewisJEllis on Thursday March 31, 2016 @02:31PM (#11399423)
The answer to your question is "Not really that big": 3.5kloc with comments/whitespace and 1.6kloc without.

Your point is valid that much of this is the library's doing, but I think more of the difference than you're letting on is just from how well-suited functional languages are to this sort of work compared to dynamic scripting languages. Parsec is practically a Haskell standard library, anyway; I wouldn't discount it any more than I would discount using Node's buffer or stream module.

Re:Super Tiny Compiler by mej10 on Friday April 01, 2016 @12:29AM (#11402623)
I think you could implement (naively) all of the Parsec functionality used in the comment in like ~30 lines.