News for hackers. Stuff that matters.
Re:Flattening ASTs (and Other Compiler Data Structures) by dist1ll on Sunday July 02, 2023 @12:39PM (#36563093)
> small AST nodes will be pointlessly padded to account for the size of the largest AST node.

This is a great point, and something I mentioned in my blog post on custom-bitwidth integer types: https://alic.dev/blog/custom-bitwidth

Discriminated unions can work, but you have to be clever with your memory footprint.

There are no comments on this comment yet.