News for hackers. Stuff that matters.
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.