Skip to content

Conversation

@CubesterYT
Copy link
Member

@CubesterYT CubesterYT commented Nov 21, 2025

Merge upstream and finally add the next compiler.

Everything else works perfectly, unless people find otherwise.

Tacodiva and others added 30 commits June 16, 2024 13:10
…Warp#264)

The new compiler broke all the extensions doing compiler patches. We promised not to help them when those break but it seems enough people use those extensions that we sort of got forced into finding some solution, so this makes these changes:

 - The exports for the new compiler are now in `these_broke_before_and_will_break_again`
 - `i_will_not_ask_for_help_when_these_break` now returns some stubs that pretend to be the old compiler. It also emits an event so -gui can show a warning.
 - Focus is on compatibility & safety, not performance. There will be unnecessary casts and scripts marked as yielding.
 - Extensions that meet these assumptions should work without changes:
   - Extensions do not try to combine this compatibility layer with any APIs provided by the new compiler.
   - Extensions treat IR nodes received from descendSubstack and similar as opaque objects because they will be the new intermediate objects instead of { kind: "..." }
   - Extensions need to implement the JS generators for all AST node kinds they use. Can not rely on the default JS generator because those generators are expecting a different format than { kind: "..." }

Lack of tests is intentional since this will be removed at some point when we have a proper API we can tell people to use
Fix motion_turnleft and motion_turnright missing type casts
Temporary fix for an infinite loop, to be properly fixed later
…k-infinite-loop

Give up analyzing looped stack after 10000 iterations
Tacodiva and others added 21 commits September 28, 2025 12:22
…f-fix

Fix incorrect type in sensing () of () block
Make types for blocks which return ints more specific
Use more specific type for round, floor, ceiling
Optimize loops with provably-non-fraction iteration counts
Add face sensing to default extension URLs
Update scratch-translate-extension-languages to 1.0.7
@Nitro-Bolt Nitro-Bolt deleted a comment from AshimeeAlt Nov 21, 2025
@CubesterYT CubesterYT merged commit 72a2445 into develop Dec 3, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants