You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: models with modules or SMOOTH/DELAY skip incremental compile #295
The salsa-based incremental compiler could not handle models with modules or with SMOOTH/DELAY/TREND, so those models fell back to the older whole-model compiler on every simlin_sim_new call.
Results were correct; the fallback just threw away the incremental speedup.
The gaps were:
module instances got no stock-phase code, even though the dependency graph ordered them with the stocks;
the helper stocks and flows that SMOOTH/DELAY/TREND expand into had no slots in the variable layout;
module output references (sub.out) could not be resolved, because the per-variable compile never saw the module's model;
every instance of a module compiled to the same code, ignoring which outside variables feed its inputs.
Current state
The whole-model compiler was deleted in #375, so every model, including modules and stdlib builtins, now compiles through compile_project_incremental.
changed the title [-]Incremental compilation gaps: modules, builtins, variable layout[/-][+]engine: models with modules or SMOOTH/DELAY skip incremental compile[/+]on Oct 12, 2026
The monolithic compiler was deleted in 22978a5 (#375); simlin_sim_new calls queue_compile::compile_sim (src/libsimlin/src/simulation.rs:118), which sends every ordinary model through compile_project_incremental with no fallback. Module instances are enumerated per (target model, bound-port set) and implicit SMOOTH/DELAY helpers get layout slots and fragments in db/assemble.rs and db/layout.rs, and the corpus in tests/integration/simulate.rs runs module and builtin models through this one path.
Activity
engine: add GitHub #295 references to deprecation docs
engine: add deprecation docs with GitHub #295 to interpreter.rs
doc: update project context for salsa consolidation
engine: add GitHub #295 references to deprecation docs
engine: add deprecation docs with GitHub #295 to interpreter.rs
doc: update project context for salsa consolidation
engine: consolidate compilation onto salsa incremental path (#360)
docs: add finish-salsa-migration design plan
engine: update stale docstrings for monolithic compilation path
[-]Incremental compilation gaps: modules, builtins, variable layout[/-][+]engine: models with modules or SMOOTH/DELAY skip incremental compile[/+]bpowers commentedon Oct 12, 2026
Closing: already fixed on main.
The monolithic compiler was deleted in 22978a5 (#375);
simlin_sim_newcallsqueue_compile::compile_sim(src/libsimlin/src/simulation.rs:118), which sends every ordinary model throughcompile_project_incrementalwith no fallback. Module instances are enumerated per (target model, bound-port set) and implicit SMOOTH/DELAY helpers get layout slots and fragments in db/assemble.rs and db/layout.rs, and the corpus in tests/integration/simulate.rs runs module and builtin models through this one path.