Nabi 0.1.0
發行說明只有英文版。
The first release of Nabi: the compiler, the `nabi` package tool, the language server, the runtime, the standard library and 20 official packages, with Nabi's own code generator and linker for 17 supported targets and release archives for 8 hosts.
#Highlights
- One toolchain with no LLVM and no system linker:
nabicgenerates machine code and links it itself, and each archive ships the runtime of every supported target (the Apple ones in the macOS archive), so--target <triple>cross-compiles to the Linux, FreeBSD, Windows, Android and wasm32 targets from any host (Android links with the NDK). - 17 supported build targets, and release archives for 8 hosts: macOS on Apple Silicon, Windows 11 on x86_64 and aarch64, Linux on x86_64 and aarch64 (glibc, and static musl), and FreeBSD 14 on x86_64.
nabiruns the whole workflow:new,build,run,test,bench,fmt,lint,doc,repl, dependencies withnabi.lock,publishto the package registry at packages.nabi-lang.org,toolchainto install and switch versions, andbindgenfor C headers.- 20 official packages on packages.nabi-lang.org (
json,http,regex,toml,csv,markdown,table,stats,linalg,plotand more) come with the toolchain: code that uses one gets it added to its manifest on first use, with no network. nabils(nabi lsp) for editors, with extensions for VS Code, Vim and Zed; a REPL and a Jupyter kernel (nabi jupyter install).- A generational, moving garbage collector that works with threads; async tasks; a standard library with collections, files, processes, and networking with TLS.
#Platforms
- Supported build targets: x86_64 and aarch64 Linux (glibc, and static musl), macOS on Apple Silicon, x86_64 and aarch64 Windows, x86_64 FreeBSD, i686 Linux and Windows, armv7 Linux (glibc, and static musl),
wasm32-wasip2,wasm32-wasip1-threadsandwasm32-unknown-unknown, Android on x86_64 (x86_64-linux-android, the emulator) and the iOS simulator (aarch64-apple-ios-sim). - Six targets are in progress and come in a later release: Android and iOS devices (
aarch64-linux-android,aarch64-apple-ios), riscv64, powerpc64le and s390x Linux, andriscv32imac-unknown-none-elf.--targetrefuses them and names what to build for now. - Apple targets build only on macOS, with the Xcode Command Line Tools SDK (the iOS simulator with Xcode's iOS SDK).
#Compatibility notes
- Before 1.0 the minor version is the breaking slot: 0.2.0 may break code written for 0.1, while 0.1.x releases add features and fixes without breaking it. Only the latest series gets fixes.
- Programs linked for the
-gnuLinux targets need glibc 2.34 or newer. On an older system the installer picks the static musl archive.
#Known limits
- The TLS stack and the cryptography in
core::cryptoare Nabi's own code and have had no external audit. Treat them as experimental. - Releases are signed:
SHA256SUMSwith minisign (keyB33E6FE61BE5314C,keys/release.pub), whichnabi toolchain install/updaterequire andinstall.sh/install.ps1check whenminisignis on PATH, plus GitHub build provenance and SBOM attestations. The binaries themselves are not code-signed (no macOS notarization, no Windows Authenticode): Gatekeeper and SmartScreen warn about an archive downloaded with a browser; thecurl | shandirm | iexinstallers are not affected. - Only the registry's maintainers can publish packages for now; anyone can sign in and use them.
- The toolchain's build cache is capped at 5 GiB;
NABI_CACHE_MAX_SIZEchanges the cap (off: none).