|
|
|
|
|
by mrkgnao
3293 days ago
|
|
Good compilers don't keep immutable things immutable at runtime, but turn uses of clean high-level functional code into tight C-like loops. https://donsbot.wordpress.com/2010/02/21/smoking-fast-haskel... It's been seven years since: that's GHC 6.13, and GHC 8.2.1 is being released soon. Performance is even better now as long as laziness doesn't bite you (which is much less rare than people think). > you won't be able to convince him that a standard recursive-descent parser is 10x simpler to write and read I don't know what a "compile-time parser" is, but someone used to a good parser combinator library is going to be difficult to convince. http://www.haskellforall.com/2017/06/translating-c-parser-to... It reads like the formal spec of the language. Hand-writing recursive descent parsers isn't fun (given a sufficiently complex grammar) and expecting people to accept it as the One True Practical Non-Ivory Tower Way (and expressing dismay at not being able to convince them otherwise) is suggestive of monoculture, the kind that prides itself on copying code and using wrappers over the two or three first-class data structures that exist in the language for everything. |
|