Support Windows hosts - #62
Merged
Merged
Conversation
luciusmagn
marked this pull request as ready for review
September 9, 2026 19:33
luciusmagn
force-pushed
the
port/windows
branch
from
September 9, 2026 19:34
403ae75 to
2117622
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.
What
Ports Autolith to Windows x86-64 on the official SBCL binary, following the plan in six commits:
src/core/platform.lispdefines the generics (file status and identity, private files and modes, publication and replacement, tree deletion, environment, truename, terminal and shell, local sockets, capabilities);platform-posix.lispkeeps today's behaviour on Linux and macOS;platform-win32.lispbinds the wide kernel32 and advapi32 entry points with SB-ALIEN and never touches SB-WIN32.sb-posix,sb-unix, andtruenameuse insrc/goes through the protocol;#+win32appears only in the two adapters, inautolith.asdfeature expressions, and in the standalone scripts that run before the system loads.with-test-fixtureand are recorded as FiveAM skips where the host lacks them, never as passes.bin\autolith.cmd,bin\autolith.ps1,bin\autolith-runtime.ps1,script\check.ps1,script\bootstrap.ps1, and the Lisp side (script/runtime.lisp,script/launcher.lisp,script/roots.lisp). The runtime script downloads the official SBCL MSI pinned insbcl-windows-releases.sha256, unpacks it below the data root withmsiexec /a, and installs the verified SBCL source tree so Lisp workers resolve implementation source. The fast-startup image is built by a fresh process where fork is unavailable.docs/windows-port-review.orgrecords every decision the plan asked to be told about, the upstream references, what was verified where, and what is not done.Windows withholds, each with a user-visible reason: sandboxed command execution, detached sessions and the localgroup handoff, fork-based checkpoints and forked image saves, and filesystem sockets. Workers save images by restarting from the saved core. Privacy is expressed through access control lists naming the process token's user and SYSTEM, never through the read-only attribute.
Depends on
The locked dependencies need the Windows changes in these pull requests;
qlfile.lockshould be re-pinned to their merged commits before this one merges (it still pins the pre-port revisions here):The bootstrap also needs three small changes to qlot (symlink-free cache handling and skipping tar entries whose names NTFS forbids); they are described in the review notes and will go to fukamachi/qlot separately.
Verification
script\check.ps1 --jobs 8reports 467 cases, 5,126 checks, 0 failures. The recovery probe and listing pass; the recovery fallback fails by construction on an uncommitted branch because it runs the source committed at HEAD, and passes once merged../script/check --jobs 8reports 470 cases, 5,852 checks, 0 failures, recovery checks passing, after every change.--immutable, and the/authkey prompt.Full notes:
docs/windows-port-review.org.