[Epic] Deterministic Reproducible Builds & Incremental Compilation for Lua Target #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview & Objective
Enable bit-exact, deterministic reproducible compilation and sub-second incremental builds for the WurstScript Lua target (
-lua).Currently, WurstScript runs as a monolithic batch compiler that re-translates and optimizes the entire world on every build, taking up to 30 seconds on large maps like TeveR. Furthermore, non-deterministic file discovery, flawed sorting comparators, sequential symbol mangling, and identity-hash iterations prevent bit-exact reproducible builds across machines and rebuilds.
Architecture Pillars
war3map.luaoutputs across different machines, file system layouts, and build counts.ModelManager's cached AST and partial typechecking, bypassing whole-program optimization in development mode.war3map.luafrom precompiled chunks in <20ms.Sub-Issues
ImTranslator.sortEverything& stableTypeIdModelManagerincremental state intoCliBuildMap& ABI interface diffing