Skip to content

Pi-Bolt 0.3.0 (Pi 1.0.0)

Choose a tag to compare

@opensec-intelligence opensec-intelligence released this 02 Oct 20:42
· 2569 commits to pi-bolt since this release

Pi-Bolt 0.3.0 makes helper functions in hot loops fast however they are declared, fixes a crash in the JIT-on build, and installs faster. It runs Pi 1.0.0.

Helpers in hot loops

Arrow functions in module constants (const isSpace = (c) => ...) are now inlined into the loops that call them, like function declarations. Measured over 16.8M iterations:

Loop body Pi-Bolt 0.2.0 Pi-Bolt 0.3.0 Bun 1.4.2 (JIT)
function isSpace(c) { ... } 39 ms 39 ms 27 ms
const isSpace = (c) => ... 181 ms 39 ms 24 ms
helpers.isSpace(c) (a method) 241 ms 243 ms 24 ms

Methods looked up on objects are still real calls. docs/PLUGINS.md has the guidance.

Fixed

  • JIT-on build: module variables before assignment. In pi-bolt-linux-x64-jit, a top-level variable read before its assignment held an invalid value instead of undefined. Calling a helper defined later could succeed when it should throw a TypeError, and typeof on such a variable crashed the process. Variables are now initialized correctly, and the compiled call checks also reject the invalid value.

Both changes are in patches/webkit/0003. JavaScriptCore's test suite gives the same results as 0.2.0 (no new differences), and Pi's end-to-end tool and UI checks pass on all builds. Startup, session CPU and memory are unchanged from 0.2.0 within measurement noise, so the benchmarks still apply.

Faster install

  • Smaller downloads. Each build also comes as .tar.xz, about 40% smaller than the .tar.gz. The installer uses it when xz is installed.
  • Parallel download. The installer fetches the archive over 4 connections at once, which is several times faster over long distances.
  • Live progress. The bar animates from the start, fills smoothly, and shows speed and time left.

Install

curl -fsSL https://pi-bolt.opensec.in/install.sh | sh

or npm install -g pi-bolt, or bun add -g pi-bolt.

Asset For
pi-bolt-linux-x64.tar.xz / .tar.gz Recommended. CPUs with AVX2 (Intel Haswell 2013+, AMD Zen+).
pi-bolt-linux-x64-baseline.tar.xz / .tar.gz Any x86-64 CPU.
pi-bolt-linux-x64-jit.tar.xz / .tar.gz JIT also on, for plugins loaded at run time.
pi-bolt-runtime-linux-x64.tar.gz The Pi-Bolt Bun runtime, for compiling plugins in.

Linux x86-64 with glibc 2.17 or later. Tested on Ubuntu 20.04/22.04/24.04, Debian 11/12, Rocky Linux 8/9, CentOS 7 and Amazon Linux 2.