All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Bun's unreleased Rust port contains 13,365 unsafe blocks, most of which are removable

By

helloplanets

9d ago· 1 min readenInsight

Summary

An analysis of Bun's unreleased Rust port reveals 13,365 unsafe blocks, with most being removable. The article compares unsafe code density across Rust runtimes (Bun, Deno, etc.), measuring how close code sits to C boundaries. Bun keeps bindings and runtime in one workspace, while Deno splits them and uses TypeScript for much of its runtime.

Key quotes

· 3 pulled
Bun's unreleased Rust port has 13,365 unsafe blocks. Most can be removed.
Density tracks how close the code sits to a C boundary: a crate that only binds a C++ engine is densest, a runtime that writes its own engine in Rust is sparsest.
Bun keeps its bindings and runtime in one workspace; Deno splits the binding into rusty_v8 and writes much of its runtime in TypeScript.
Snippet from the RSS feed
An audit of every unsafe block in Bun's unreleased Rust port: what each relies on, and what removing it would take.

You might also wanna read