Repository navigation
Drop the golden_line -mm=own workarounds tslang pre-alpha147 fixes - #361
Merged
Merged
Conversation
pre-alpha147 (TypeScriptCompiler#1131, #1132) compiles, under -mm=own --own-fallback=error, the code #341 and #353 had to work around, so it goes back to the original's shape: - cab: cabLimb's radiusAt / frame / ring / cap are closures again, as in cab.js - saloon: the chair back and wing surfaces are closures given straight to surface() - traingeo: callback results are held in locals again; geoTake and geoTakePoints are gone - world: refillBag assigns the new bag to the field Kept: the world's slot tables, since -mm=own does not let a Map hold class instances. golden_line ctest 6/6 on gc and on own (dx12, vk). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tslang pre-alpha147 (TypeScriptCompiler#1131, #1132) compiles the code #341 and #353 had to work around for
-mm=own, so golden_line goes back to the original's shape in these spots:cabLimb'sradiusAt/frame/ring/capare closures again, as in cab.js (theCAB_limb*module functions are gone).surface()again (SAL_backFace/SAL_wingFaceare gone).warp,orient,surfaceRaw, the flat shape,moulding, the bucket's style channels);geoTakeandgeoTakePointsare gone.refillBagassigns the new bag (this.bag = order) instead of refilling it in place.Kept: the world's slot tables. They aren't a compiler bug:
-mm=ownrejects aMapholding class instances ("'Map' cannot hold 'Anchor' ... use 'Shared'"), so going back to Maps would mean a different design.Checked locally (Windows, Debug, tslang pre-alpha147): golden_line builds under gc and under own (
--own-fallback=error), and its ctest passes 6/6 on each (default, cab, seat; dx12 and vk). I didn't run the other examples or compare frames byte for byte; the edits only move code back into closures and locals.Separate issue found: building only
--target golden_linedoesn't runcopy_media, sobin/media/golden_lineis missing and the test segfaults on null texture bindings. A full build (as CI does) is fine.🤖 Generated with Claude Code