News for hackers. Stuff that matters.
Re:Was Rust Worth It? by SkiFire13 on Thursday October 26, 2023 @03:26AM (#38022747)
An abstract syntax tree can't have cycles by definition.
Re:Was Rust Worth It? by foldr on Thursday October 26, 2023 @03:52AM (#38022925)
Technically true, but sometimes you want parent pointers. You then have a more general graph in the underlying representation, but it still represents a tree structure.
Re:Was Rust Worth It? by lumost on Friday October 27, 2023 @04:43PM (#38043665)
Same shows up in Postgres Query* struct for SQL. Copying memory between parser, planner, execution would be too expensive in large queries - so instead you have an arena allocated representation.