News for hackers. Stuff that matters.
Re:Compilers: Incrementally and Extensibly by codr7 on Saturday April 05, 2025 @01:03PM (#43594897)
I didn't make much progress on my own languages until I discovered Forth, always seemed to get stuck and lose motivation in the parser.

Writing the parser is the least interesting part of building a language imo.

Re:Compilers: Incrementally and Extensibly by nickpsecurity on Saturday April 05, 2025 @11:13PM (#43598678)
That varies by person. While it may or may not interest, I'll say learning how to write or generate parsers is a useful skill that might keep paying off.

I keep running into situations where I'd like to describe data in a high level. BNF grammars often fit those situations, are more readable than regex's, and could make for nice parsers. One must know how to parse, though. :)

Re:Compilers: Incrementally and Extensibly by codr7 on Wednesday April 09, 2025 @03:29PM (#43636643)
Never found much use for any kind of generator, they don't scale once you want good error reporting/handle weird edge cases etc. It's nice to have a descriptive, succinct syntax though; as opposed to having it spread out over a recursive descent parser.
Re:Compilers: Incrementally and Extensibly by nickpsecurity on Thursday April 10, 2025 @11:27AM (#43644876)
That's because they often weren't designed to handle such things. Imagine a BNF-style generator extended with constructs for error handling and edge cases. We already have to do specifications of such behaviors. We might as well automatically get good code out of them.

I think that would be helpful.

Re:Compilers: Incrementally and Extensibly by DKordic on Sunday April 06, 2025 @10:17AM (#43601564)
Exactly! "Life After Parsing" [1].

IMHO C Family is a symptom of "low-level" of competence. I often get surprised by superficiality of their arguments. "Sophistry" is a useful concept (in a single word). Ad nauseam?

[1]: http://www.semanticdesigns.com/Products/DMS/LifeAfterParsing...