this post was submitted on 18 Sep 2023
1 points (100.0% liked)

Zig Programming Language

160 readers
4 users here now

A lemm.ee community for Zig!

founded 1 year ago
MODERATORS
 

Excerpt:

To me, one of the biggest motivators for efficient enum arrays has been compilers. One problem that keeps coming up when designing an AST is figuring out how to reduce its memory footprint. Big ASTs can incur a hefty performance penalty during compilation, because memory bandwidth and latency are a frequent bottleneck in compiler frontends. Chandler Carruth's video on the Carbon compiler has been making the rounds on language forums. In it he describes how a parsed clang AST regularly consumes 50x more memory than the original source code!

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here