summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Refresh singleton escapes after type closure and preserve saved calleesch33_try2Cliff Click115 min.11-12/+104
| | | | Recompute final singleton-slot escapes after recursive types are interned. Preserve aggregate, mutable-slot, and opaque bounds. Sharper escapes allow unused imported helpers to die: restore their summaries when later direct calls appear, and retain native entries referenced by serialized IR even when lowering removes the last local caller. Seed those entries with analyzed ranges, and interpret only callback default memory as an outside interface. Add recursive-type and native interpolation regressions; full make -k -j8 tests passes (844 executions).
* Publish escapes from the selected field valueCliff Click2 hours2-8/+58
| | | | Keep prior public escapes and derive new escapes from the field value bounded by its declaration. Do not import unrelated aggregate-private escapes or broaden them when selecting a weaker alias slice. Cover callback publication, alias selection, borrows, and opaque referents. Full make -k -j8 tests passes.
* Start constructor private-memory defaults without escapesCliff Click2 hours4-1/+48
| | | | Use the same defaultArg rule for parsed functions and imported summaries, while preserving broad signature bounds and actual call memory. Add source and separately compiled constructor regressions. Full make -k -j8 tests passes.
* Separate summary call dependencies from function escapesCliff Click2 hours6-12/+57
| | | | Restore a discarded private initializer summary when a later inline import reveals its direct call. Keep class-init dependencies for cycle checking without publishing their function pointers. Cover escape separation and unloaded private initializer cycles; full make -k -j8 tests passes.
* Replace XInt with TypeSet while preserving existing set semanticsCliff Click2 hours29-522/+272
| | | | | | | | Migrate function targets, escape aliases/functions, RPC sets, struct caches, compiler consumers, and serialized types. Keep uniform defaults and the existing cofinite import remapping so this step does not alter parsing or escape policy. Clear lazy struct set caches before recycling TypeSets on reset. Remove XInt source. Use C0DC for the new packed set layout and test rejection of C0D2 objects. Add packing and word-boundary coverage. Before migration, differential checks matched XInt for 10,000 finite/cofinite pairs and 11 million memberships. Validation: make -k -j8 tests passes after rebuilding old-format caches (835 executions), including four lattice shards and native/separate-compilation tests. Warmed TypeSet intern hits allocate no storage. git diff --cached --check passes.
* Add interned TypeSet with duals, reset, and reusable scratch storageCliff Click3 hours3-0/+509
| | | | | | Retain the local/external default design and explicit rebasing API. Add uniform-default overloads for migrating existing finite/cofinite compiler sets without changing import semantics. Tests cover the lattice, discovery, rebasing, reset, and allocation-free warmed intern hits. Validation: make -k -j8 tests passes (834 executions); existing compiler sites still use XInt at this checkpoint.
* Eliminate repeated sign extension of already narrowed integersCliff Click3 hours4-4/+83
| | | | | | Fold matching left/right shifts when their input already has the signed result type. Cover i8/i16/i32 boundaries, unequal shifts, unsigned input, branch Phis, and worklist propagation after narrowing. Update the affected Chapter13 IR expectation; retain all spill baselines. Validation: the repeated-extension test fails before the fix. make -k -j8 tests passes (829 executions), and Chapter33Test plus WorklistTest pass with simple.assert.expensive=1.
* Parse complete qualified forward type names in type contextsCliff Click3 hours4-83/+110
| | | | | | Consume nested type names through open definitions and forward references, including new expressions. Resolve expression primaries separately so dotted member access remains a sequence of loads. Commit forward types only after recognizing a type context. Validation: reproduced two parsing failures before the fix. Four qualified-name regressions and the complete make -k -j8 tests suite pass (825 executions).
* Extract the shared WorkList and accept dead-self peephole resultsCliff Click3 hours7-87/+128
| | | | | | Move the deduplicating node worklist into util, including traversal marks. Skip replacement processing when a peephole has already killed its returned self. Add regressions for traversal/requeue behavior and a rewrite that subsumes itself. Validation: the dead-self regression fails at the old assertion; make -k -j8 tests passes with both regressions (821 executions).
* Start chapter 33 again from the green chapter 32 baselineCliff Click3 hours595-3/+58806
| | | | | | Copy the completed chapter 32 snapshot into chapter33 and register the new Maven and IDE module. Update chapter paths and introductory documentation; retain the chapter 32 compiler behavior. Preserve the previous memory-management attempt on ch33_wip for selective follow-up changes. Validation: make -k -j8 tests passes with 819 JUnit test executions, including all four lattice shards and native/library integration. git diff --cached --check passes.
* Merge pull request #265 from SeaOfNodes/ch32mainCliff Click3 hours742-601/+61970
|\ | | | | Land Chapter 32 compiler performance work and backported fixes
| * Update README.mdch32Cliff Click2026-11-161-657/+185
| |
| * Another round of test speedupCliff Click2026-11-168-94/+286
| | | | | | | | | | | | More TestType lattice test speedups. Collapse together some expensive tests. Trim some tests from `sanity` target
| * Phi fixCliff Click2026-11-16153-638/+3256
| | | | | | | | | | Fix Phi/Add refactoring peephole to canonicalize regardless of peephole order. Treat class fcns as having `self` be the class pointer
| * Packing Serialize tighterCliff Click2026-11-169-39/+260
| |
| * One more qucik speedup itemCliff Click2026-11-164-9/+67
| |
| * CI fixCliff Click2026-11-162-2/+4
| |
| * More cachingCliff Click2026-11-155-51/+106
| | | | | | | | and during RegAlloc, hang on to only a single fcn's BBs at a time
| * Make MemMerge inputs packedCliff Click2026-11-156-37/+239
| |
| * Bunch of unrelated speedupsCliff Click2026-11-157-4/+166
| | | | | | | | And some modest tracking bugs
| * Split off chapter 31Cliff Click2026-11-15601-28/+58359
|/ | | | Ch 32 will be focused on compiler performance issues.
* Graphics now allow resizeCliff Click2026-11-1575-2010/+1372
| | | | | | Reorganize docs. Fix bugs X86 LOad+cmp scheduling. Math intrinsics
* CLeanup BreakoutCliff Click2026-11-1421-210/+870
| | | | | | | Fix a half-dozen compiler bugs; various kinds of forward refs and readable types. Allow read-only self-types; and read-only methods. Anonymous inner functions are treated as methods. Better error messages in many places.
* Breakout, Clock demosCliff Click2026-11-1475-523/+2117
| | | | | | | | | Math lib with simple constants raw bit converters TypeConAry unified Big Formatting change Debug symbols for constant data IterPeeps was endlessly running asserts with much inlining RegAlloc rounds raised
* Array init syntaxCliff Click2026-11-1324-109/+589
| | | | | | New array init syntax; used in a bunch of places. Allows e.g. read-only arrays with not-null entries. Fix bug x86 encoding of mem/cmp/fp compares
* Clean up Clock exampleCliff Click2026-11-132-17/+30
|
* Cleanp the new time & graphics APIsCliff Click2026-11-1318-135/+267
|
* ch31 early push needs reviewCliff Click2026-11-1245-158/+1268
|
* Scope time, cooperative timers, and animation for the next chapterch31Cliff Click2026-11-121-0/+85
|
* Add audio, overhaul makefilesCliff Click2026-11-1264-3841/+1131
| | | | | Adds simple audio support to Simple Overhaul makefiles; remove common boilerplate; make them more uniform
* graphic tictactoeCliff Click2026-11-1227-32/+711
| | | | Hex & octal digits
* Small load hoist bugfixCliff Click2026-11-122-11/+10
|
* First cut graphicsCliff Click2026-11-1217-8/+534
|
* Brainfuck uses aryu8Cliff Click2026-11-122-12/+21
|
* Start Chapter 31 from the completed Chapter 30 compilerCliff Click2026-11-12544-21/+52525
|
* BrainFuck uses aryu8Cliff Click2026-11-086-33/+54
|
* Better error messagesch30Cliff Click2026-11-08112-654/+2909
| | | | | | | | Better error messages. Buffs to the std lib; getch() to fetch a single character; streaming I/O handles retries, and large sizes, with better error reporting. Formatted strings. Default int moved to i32. TicTacToe, the game.
* Start Chapter 30 from the completed Chapter 29 compilerCliff Click2026-11-07528-10/+50582
|
* Partial objects allow field readingescape-flowCliff Click2026-11-0723-127/+597
| | | | Still type safe, but broader usability for partial-init objects
* Cleanup public escapesCliff Click2026-11-06100-719/+1691
| | | | | | Drop "frozen" public escapes, and recompute in Start/Stop so Opto gets a precise escape set. Rename XInt.free -> XInt.alloc Fix some String tests to not escape by default
* Remove a bunch of extra graph walks pre-Optoch29-cleanupCliff Click2026-11-0551-422/+1001
| | | | | Removed most; moved a few into Opto setup pass. Lots of modest bug fixes
* Early version of safe using partial construcitonCliff Click2026-11-0352-385/+1210
|
* First cut parser splitCliff Click2026-11-0128-218/+311
|
* Add Chapter 29 for tech debt cleanup with the parser splitCliff Click2026-11-01519-36/+48573
| | | | | | Keep Chapter 28b intact and carry the grammar-oriented parser package, Var move, IterPeeps move, and parser regression tests into Chapter 29. Defer privacy and exclude its experimental tests and fixture changes. Register the chapter in the indexes, IntelliJ modules and run configurations, Maven reactor, roadmap, and linear-history publisher. Windows and Linux each pass 573 tests, release builds, 199 allocation replays, and 29 native checks.
* Canonicalize aggregate memory duals and preserve field finalityCliff Click2026-10-306-18/+90
|
* Preserve escape bounds when splitting bulk memory PhisCliff Click2026-10-302-16/+8
|
* Skills updateCliff Click2026-10-292-25/+82
|
* Removing hook between encode and exportCliff Click2026-10-294-23/+82
|
* A more incremental StopCUCliff Click2026-10-2814-46/+120
| | | | Incremental summary of escape data in a single node, instead of repeated in StopCU over and over
* Backport some minor speedupsCliff Click2026-10-2878-356/+1543
|