Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: