Post #612 3.05K Jun 14, 2024, 09:21 UTC 👣 Flattening abstract syntax trees (and other compiler data structures) to make use of memory arenashttps://cs.cornell.edu/~asampson/blog/flattening.html@rust_code www.cs.cornell.edu Flattening ASTs (and Other Compiler Data Structures) This is an introduction to data structure flattening, a special case of arena allocation that is a good fit for programming language implementations. We build a simple interpreter twice, the normal way and the flat way, and show that some fairly mechanical… 👍 3 🔥 3 ❤ 2