News for hackers. Stuff that matters.
Re:Flattening ASTs (and Other Compiler Data Structures) by planetis on Sunday July 02, 2023 @10:10AM (#36561633)
Same ideas are used in Nim's incremental compilation (wip) https://github.com/nim-lang/Nim/tree/devel/compiler/ic Also there are two JSON implementations with a flat architecture https://github.com/Araq/packedjson and https://github.com/planetis-m/packedjson2 (this one I wrote) But I agree it's a pain to write it like that.
Re:Flattening ASTs (and Other Compiler Data Structures) by ergeysay on Sunday July 02, 2023 @05:30PM (#36565976)
One more JSON implementation using this approach is https://github.com/zserge/jsmn.