Repository navigation
Releases
v0.1.3
A fix release. An edit build after a struct's fields all lost their default values no longer crashes with a segmentation fault.
Fixed
- An edit build after a struct's fields all lost their default values (
choices: []Choice = &.{},becomingchoices: []Choice,on the last one) no longer crashes with a segmentation fault. The struct's declarations are then made again, and the build brought a type's field defaults up to date before its layout when the edit reached only the defaults, such as those of theStaticStringMapthatstd.meta.stringToEnummakes from an enum in that struct.
Install
- mise:
mise use github:baskingspot/bs - Homebrew:
brew install --cask baskingspot/tap/bs - Nix:
nix run github:baskingspot/bs/v0.1.3
Every file is listed in SHA256SUMS, and attested by the org's release workflow. Check one with gh attestation verify FILE -R baskingspot/bs --signer-repo baskingspot/gh-actions.
v0.1.2
A fix release. zig build with b.addTranslateC works on a native aarch64 Linux host, and an edit build no longer reports a false type error in a thread entry point that gained a parameter.
Fixed
- An edit build after a function passed to
std.Thread.spawnorio.concurrentgained a parameter no longer reports a false type error in that function, such asexpected type 'bool', found 'i16'at the new parameter's use. The build reused the old thread entry point's records, whose function had the old type. - On a native aarch64 Linux host,
translate-c(and so azig buildwithb.addTranslateC) translates for the native target instead of refusing withbs translates C only for x86_64-linux and aarch64-macos so far ('native'). It resolves the native target asbuild-exedoes, so a native musl host's-lcnow takes musl's headers on x86_64 too, asbuild-exelinks musl there.
Install
- mise:
mise use github:baskingspot/bs - Homebrew:
brew install --cask baskingspot/tap/bs - Nix:
nix run github:baskingspot/bs/v0.1.2
Every file is listed in SHA256SUMS, and attested by the org's release workflow. Check one with gh attestation verify FILE -R baskingspot/bs --signer-repo baskingspot/gh-actions.
v0.1.1
A packaging release. Nix becomes an install channel, and the dev shell runs on a native aarch64 Linux host. The compiler is unchanged.
Added
- Nix:
nix run github:baskingspot/bs/v0.1.1runs the release.packages.defaultin the flake builds bs with the Zig 0.17.1 it compiles std with, ReleaseFast and stripped as the release binaries are, wrapped so that zig is onPATHand bs runs on a machine that has none. The org's binary cache serves that build, sonix rundownloads it instead of compiling: 5 MiB, plus the 365 MiB Zig it wraps on a machine that has no zig. zig 0.16.0 stays aBS_ZIG_0_16a 0.16 project supplies. The release notes name the tag, so an install follows the release and notmain.
Changed
- The flake's dev shell covers a native aarch64 Linux host, where bs builds and tests natively.
qemu-userstays on x86_64, where it runs that target's test binaries.
Install
- mise:
mise use github:baskingspot/bs - Homebrew:
brew install --cask baskingspot/tap/bs - Nix:
nix run github:baskingspot/bs/v0.1.1
Every file is listed in SHA256SUMS, and attested by the org's release workflow. Check one with gh attestation verify FILE -R baskingspot/bs --signer-repo baskingspot/gh-actions.
v0.1.0
The first release of bs, a fast Debug-mode compiler for Zig.
bs compiles Zig 0.17.1, and Zig 0.16.0 for a project whose .bs.zon says .zig_version = "0.16", with each release's own std library, for x86_64 and aarch64 Linux and Apple Silicon macOS. It takes the same commands and flags as zig build-exe, zig build-obj, zig run, zig test and zig build, so a project's build.zig builds unchanged. Every build has Debug semantics. For ReleaseFast, use upstream zig.
- Conformance: bs passes every one of upstream's
test/behaviortests that upstream passes on each target (2190 on x86_64-linux, 2077 on aarch64-linux, 2083 on aarch64-macos for 0.17; 2108 on x86_64-linux for 0.16), and all of std's tests. - Speed: an edit to a project rebuilds only what the edit reaches, from an on-disk cache. Editing libvaxis's text_input example rebuilds in about 40 ms, where upstream Debug takes 1.1 s; editing upstream's own compiler takes about 0.4 s, where upstream takes 25 s.
- Compile errors for agents: exact locations, the facts needed to fix the error, and the fix when bs knows it, also as JSON.
- C:
-lc,@cImport, and C and C++ sources through upstream'szig cc. - Lint: a project with a
lintsection in.bs.zon, or a.ziglint.zon, gets ziglint 0.8.1's rules as compile errors in its own files.
bs needs upstream zig 0.17.1 on PATH, and zig 0.16.0 for a 0.16 project. See the README and CHANGELOG.md for details.
Install
- mise:
mise use github:baskingspot/bs - Homebrew:
brew install --cask baskingspot/tap/bs - Nix:
nix run github:baskingspot/bs
Every file is listed in SHA256SUMS, and attested by the org's release workflow. Check one with gh attestation verify FILE -R baskingspot/bs --signer-repo baskingspot/gh-actions.