Elektrine lite

← Feed

@swetland@chaos.social

Post #1928011

2026-05-03 05:14 UTC

Today's Compiler Project Adventures... sorting out transformation from the post-parser AST that is nearly 1:1 with the source text to an adjusted form reflecting operations that differ on the LHS/RHS of assignments, resolving various Type related issues, and so on... I've been staring at FIELD (all caps) in AST_FIELD_... defines and AST debug dumps for so long now it has ceased being a word and is now an incomprehensible jumble of letters. #Projects #Compiler #PLdev

Replies (2)

  • @swetland@chaos.social 2026-05-03 05:17

    It's going to be worth it though, as the direct code generation and IR generation paths will both end up cleaner and simpler as a result of moving a lot of bookkeeping up a layer. I think this also is going to be helpful for wrangling things like small structures (especially slices, arrays-with-length, interfaces) stored in 2-3 parameter/local slots.

    Open ##2196360

  • @ireneista@adhd.irenes.space 2026-05-03 05:15

    @swetland@chaos.social yeah we know that feeling. our sympathies.

    Open ##2196361