Skip to content

docs/bugs: issues found porting native_ts_graphics samples - #534

Merged
ASDAlexander77 merged 1 commit into
mainfrom
docs/native-ts-graphics-findings
Oct 11, 2026
Merged

ASDAlexander77 merged 1 commit into
mainfrom
docs/native-ts-graphics-findings

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

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/assert style). Each was verified on v0.0-pre-alpha92 (2026-10-06 build) with tslang --emit=jit --jit-cache=false.

# Issue Kind
1 Comparing Opaque with Opaque | null crashes the compiler (0xC00000FD, no message) crash
2 Boolean array elements read back wrong (if (FLAGS[i]) never taken) silent wrong value
3 let s = 0 is an integer, so s += 1.5 truncates silent wrong value (maybe by design)
4 Escapes not processed in template literals with substitutions silent wrong value
5 Math.max of negatives returns 2.2e-308 (default lib starts from Number.MIN_VALUE, src/lib.ts:1552) silent wrong value
6 boolean && (Class | null) as a condition: '___cast' not all generic types can be identified compile error

The 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; number parameters are doubles).

Docs only; no code changes.

🤖 Generated with Claude Code

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
ASDAlexander77 force-pushed the docs/native-ts-graphics-findings branch from cbfb396 to b7b5002 Compare October 11, 2026 10:40
@ASDAlexander77
ASDAlexander77 merged commit 1845406 into main Oct 11, 2026
2 checks passed
@ASDAlexander77
ASDAlexander77 deleted the docs/native-ts-graphics-findings branch October 11, 2026 10:40
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.

1 participant