Repository navigation
·
1 commit
to main
since this release
The guest runs faster this time: the JIT chains compiled code, now in desktop Safari too, and floating-point and vector code gets new fast paths. The desktop also gets themes, and the SDK gets a network policy backend and many fixes for embedders. Try it at unkernel.dev.
✨ Highlights
⚡ Faster guest code
- JIT rework: a compiled module now enters the next one itself instead of returning to the run loop (chaining), code pages are tracked exactly instead of through a hashed filter, region members are checked once per function run, fused multiply-add goes through relaxed SIMD where the host fuses it, and the compile threshold follows the host's compile cost. On V8 with one CPU, command-line workloads run 3-15% faster and Firefox loads a page in the guest about 21% faster.
test/work-bench.mjsmeasures Perl, Python, a C build, shell, dpkg, an app and Firefox. (#135) - Chaining in desktop Safari: 10-16% faster on Perl on an M4. It stays off on iOS and in Bun. The new
/jit-probe.htmlpage times guest work with chaining off and on in your browser, andKW_JIT_TAIL=1|0overrides the engine test. (#148) - Floating-point and vector fast paths in the JIT: flush-to-zero no longer drops code off the fast paths, double-lane fused multiply-add works on hosts without fused wasm instructions, and pairwise adds, conversions and min/max reductions are emitted inline. This came from running neuroimaging tools for Neurodesk, whose results match native Linux byte for byte. By @Vbitz and @astewartau. (#151)
🎨 Desktop themes
- The page has themes: KDE Plasma, GNOME, iOS, Android and Windows 2000. Each brings its own top bar, Dock, launcher and window title bars, loads when first shown and switches without a reload. Without a choice, the device picks one: iOS, Android, else KDE. Settings and System get a sidebar drawer in narrow windows, and the first paint is a minimal splash. (b033dc7)
- The Transfers button stays visible while idle, so Send files… is easy to reach on a fresh boot. By @harrisonk0. (#118)
🧰 SDK
policyBackend(inner, policy)wraps any network backend and asks your callback before each guest TCP connection or UDP flow. On ports 443 and 80 it reads the server name first (TLS SNI or HTTPHost), so you can allow, refuse or redirect connections by name. (#152)stats().cpusreports the CPUs the guest really runs on, andstats().cpuLimitsays why it got fewer than asked.MAX_CPUSis exported. (#159)PtyErrorhasstage(exec,chdiroruser) andguestCode(ENOENT,EACCES, ...) when a program cannot start. (#157)- A distro image without the account
usernow logs a warning once when programs run as root on it. (#158) fetchDistro()uses a cached image without the network or a full rehash, and falls back to a temporary cache directory. (#142)- The Node entry's
loadKernelModule()andloadBytes()readfile:URLs and paths, so one compiled module can be shared between kernels. (#139) - Behaviour change:
createKernel({ signal })aborts the boot only. OncecreateKernel()resolves, aborting the signal no longer stops the kernel. (#140) - The SDK docs list defaults and limits for embedders, and several kernels per thread. (#145, #138)
🛠️ Fixes and smaller changes
- A stopped inline kernel is now garbage collected: its JSPI stacks are unwound at exit. (#141)
- Idle WASI program workers end when the kernel exits, so a script that stops its kernel exits too. (#160)
- The inlined Node workers start from
data:URLs, so they work under--no-experimental-detect-module. (#143) spawn()andexec()rejectdetachableon pipes instead of ignoring it. (#156)- 🐧 Listing a directory on a FUSE mount no longer fails with ENOMEM: readdir replies are limited to one page with the flat vmalloc. By @minchenlee. (#127)
- 🎮 Guest Vulkan skips the readback of storage buffers that shaders only read. By @joshuawm. (#122)
- 💾 Disk fixes by @dagelf: discards survive an in-flight save (#86), short reads and writes on disk images complete (#90), and kwsparse rejects disk and block sizes it cannot represent (#91).
- The SDK API test suite passes reliably. (#147, #153)
Full Changelog: v0.3.0-261130-3ef745b...v0.3.0-261202-b033dc7