Repository navigation
docs/bugs: issues found porting native_ts_graphics samples - #534
Merged
Merged
Conversation
A report (native-ts-graphics-findings.md) and a minimal repro per issue, each verified on v0.0-pre-alpha92: comparing Opaque with Opaque | null crashes the compiler (0xC00000FD, no message); boolean array elements read back wrong; `let s = 0` is inferred as an integer so `s += 1.5` truncates; escapes stay unprocessed in templates with substitutions; Math.max of negative numbers returns Number.MIN_VALUE; `boolean && (Class | null)` as a condition fails to compile. Plus issues seen earlier that no longer reproduce, and two C interop behaviors worth documenting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ASDAlexander77
force-pushed
the
docs/native-ts-graphics-findings
branch
from
October 11, 2026 10:40
cbfb396 to
b7b5002
Compare
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.
A report of tslang issues hit while porting ~100 D3D12/Vulkan samples in native_ts_graphics, with a minimal repro per issue in
docs/bugs/ntg_*.ts(print/assertstyle). Each was verified onv0.0-pre-alpha92(2026-10-06 build) withtslang --emit=jit --jit-cache=false.OpaquewithOpaque | nullcrashes the compiler (0xC00000FD, no message)if (FLAGS[i])never taken)let s = 0is an integer, sos += 1.5truncatesMath.maxof negatives returns 2.2e-308 (default lib starts fromNumber.MIN_VALUE,src/lib.ts:1552)boolean && (Class | null)as a condition:'___cast' not all generic types can be identifiedThe report also lists issues seen earlier that no longer reproduce in minimal form, and two C interop behaviors worth documenting (
char*string returns aren't copied;numberparameters are doubles).Docs only; no code changes.
🤖 Generated with Claude Code