Skip to content

Releases

v0.1.3

Choose a tag to compare

@github-actions github-actions released this 12 Nov 18:02
v0.1.3
a08dbd7

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 = &.{}, becoming choices: []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 the StaticStringMap that std.meta.stringToEnum makes 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

Choose a tag to compare

@github-actions github-actions released this 12 Nov 14:08
v0.1.2
03e21d8

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.spawn or io.concurrent gained a parameter no longer reports a false type error in that function, such as expected 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 a zig build with b.addTranslateC) translates for the native target instead of refusing with bs translates C only for x86_64-linux and aarch64-macos so far ('native'). It resolves the native target as build-exe does, so a native musl host's -lc now takes musl's headers on x86_64 too, as build-exe links 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

Choose a tag to compare

@github-actions github-actions released this 12 Nov 08:28
v0.1.1
141392a

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.1 runs the release. packages.default in 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 on PATH and bs runs on a machine that has none. The org's binary cache serves that build, so nix run downloads 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 a BS_ZIG_0_16 a 0.16 project supplies. The release notes name the tag, so an install follows the release and not main.

Changed

  • The flake's dev shell covers a native aarch64 Linux host, where bs builds and tests natively. qemu-user stays 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

Choose a tag to compare

@github-actions github-actions released this 09 Nov 16:43
v0.1.0
83ae474

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/behavior tests 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's zig cc.
  • Lint: a project with a lint section 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.