Skip to content

Windows: Winsock, trackc.exe seed, bootstrap.ps1, install.ps1, yard on cmd.exe - #43

Merged
dev-dami merged 5 commits into
mainfrom
agent/xp-win-finish
Nov 23, 2026
Merged

dev-dami merged 5 commits into
mainfrom
agent/xp-win-finish

Conversation

@dev-dami

Copy link
Copy Markdown
Owner

Finishes Windows, so a Windows user can install Track and bootstrap it with no Linux machine.

  • Sockets: Winsock (ws2_32) through the whole net_socket_* interface.
  • Deleting open files: file_remove first renames the file, then deletes it, which works under Windows' delete semantics.
  • Divide trap: divide by zero exits with STATUS_INTEGER_DIVIDE_BY_ZERO (0xC0000094).
  • Seed and bootstrap:
    • bootstrap/seed/trackc.exe is committed alongside the Linux seed, and update_seed.sh writes and checks both.
    • scripts/bootstrap.ps1 runs seed → stage1 → stage2 → stage3 and requires a fixed point.
  • Install: irm …/scripts/install.ps1 | iex installs trackc.exe and yard.exe to %USERPROFILE%\.track\bin.
  • Paths: trackc treats \ as a path separator.
  • yard: runs its commands through cmd.exe.
  • CI: a windows job runs bootstrap.ps1, the example goldens and install.ps1.

Results under wine:

  • 15 of 15 examples and 53 of 53 native programs pass.
  • The bootstrap.ps1 steps reach the fixed point stage1 = stage2 = stage3 = seed.
  • yard.exe test passes.

On Linux, a clean clone bootstraps, both seeds are up to date, and 109 of 109 tests pass.

The pwsh scripts have not been run under pwsh yet; the CI windows job is their first real run.

🤖 Generated with Claude Code

dev-dami and others added 5 commits November 23, 2026 01:12
…0xC0000094

net_socket_* use ws2_32 (WSAStartup once). file_remove renames to a
scratch name before deleting, so the name goes at once under wine too.
track_trap_div ends with STATUS_INTEGER_DIVIDE_BY_ZERO. xplat tests for
net_demo, rt_smoke and divzero under wine; seed regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- bootstrap/seed/trackc.exe: the x86_64-windows fixed point, cross-built
  by the Linux one; update_seed.sh writes and --checks both seeds.
- scripts/bootstrap.ps1: seed -> stage1 -> stage2 = stage3 (Get-FileHash).
- trackc: '\\' is a path separator, '.\\' module keys, mkdir via cmd.exe.
- rt/windows: sys_exec runs cmd.exe /s /c "..." so commands may start
  with a quoted path.
- yard: on Windows uses cmd.exe (mkdir, rmdir, dir /s /b, xcopy, where,
  move), runs jobs serially, names executables .exe, '/' inside yard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dev-dami
dev-dami merged commit 1c0cae2 into main Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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