---
title: "Bun v0.1.12"
description: "Bun v0.1.12 fixes stability problems in `bun install` that caused crashes or hangs roughly once per 80,000 cold package installs on Linux."
url: "https://swe.quest/articles/bun-v0-1-12-78431d37239a7e49"
canonical: "https://bun.com/blog/bun-v0.1.12"
source: "Bun"
published: "2022-09-18"
difficulty: "medium"
kind: "Release"
reading_minutes: 4
tags: ["javascript","runtimes","performance","concurrency","debugging"]
---

# Bun v0.1.12

A post on [Bun](https://swe.quest/sources/bun.md), published 2022-09-18, 4 min read, Release. Original: [https://bun.com/blog/bun-v0.1.12](https://bun.com/blog/bun-v0.1.12)

## Summary

Bun v0.1.12 fixes stability problems in \`bun install\` that caused crashes or hangs roughly once per 80,000 cold package installs on Linux. Four bugs were behind them: a threadpool deadlock, an HTTP client suspend/resume bug, an empty-JSON crash, and DNS failure crashes. The fixes were a lock-free MPSC queue, eventfd/machport readiness notification instead of a futex, and an HTTP client rewrite on uSockets and getaddrinfo. \`fetch()\` now reaches 155,000 req/s on Linux x64, which is 24x Node v18.9 and 4.5x Deno. The release also adds \`read\` helpers to \`bun:ffi\`, with a breaking change to a 52-bit integer pointer representation via a WebKit DOMJIT change, picks up 2x faster \`String.prototype.replace\` from WebKit, and moves \`crypto.getRandomValues\` to BoringSSL.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Concurrency](https://swe.quest/tags/concurrency.md) (Compilers & runtimes)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)

## Prerequisites

- JavaScript runtimes ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- HTTP clients
- FFI basics

## Keywords

Bun, bun install, uSockets, bun:ffi, WebKit DOMJIT, BoringSSL, eventfd

## Related posts

- [Bun v1.1.11](https://swe.quest/articles/bun-v1-1-11-e2abf125ea0a0b79.md): Bun · 2024-06-01 · Medium · 9 min read · JavaScript, Runtimes & VMs, Performance engineering, Build systems
  Bun v1.1.11 fixes 36 bugs, makes \`bun update\` write changes to package.json (preserving semver ranges unless \`--latest\`), and fixes incorrect peer dependency hoisting in \`bun install\` that broke packages like ajv and expo.
- [Bun v1.1.13](https://swe.quest/articles/bun-v1-1-13-5296aa9cfb98f4b1.md): Bun · 2024-06-05 · Medium · 13 min read · JavaScript, Runtimes & VMs, Testing, Networking, Build systems
  Bun v1.1.13 fixes 97 bugs and adds \`eval: true\` for \`node:worker\_threads\`, \`URL.createObjectURL\` for spawning TypeScript workers from Blobs, custom failure messages in \`expect\`, and five new \`bun:test\` matchers.
- [Bun v1.0.10](https://swe.quest/articles/bun-v1-0-10-49e5b151965cc45d.md): Bun · 2023-11-07 · Medium · 5 min read · Runtimes & VMs, JavaScript, Performance engineering, Linux
  Bun v1.0.10 makes node:http 14% faster by building Node.js headers, rawHeaders and url strings directly in native code.
- [Bun v1.0.31](https://swe.quest/articles/bun-v1-0-31-9173b12d836487e8.md): Bun · 2024-03-14 · Medium · 10 min read · JavaScript, Runtimes & VMs, Supply chain security, Linux
  Bun v1.0.31 adds \`bun --print\` (Node-compatible eval with top-level await, TypeScript and JSX), running code from stdin via \`bun run -\`, \`bun add --trust\` plus \`bun pm untrusted\`/\`trust\` for managing blocked postinstall scripts, and \`fetch()\`/\`node:http\` support for Unix and Linux abstract domain sockets.
- [Bun v1.1.34](https://swe.quest/articles/bun-v1-1-34-d8b685a5be9be177.md): Bun · 2024-11-02 · Medium · 7 min read · JavaScript, Runtimes & VMs, Build systems
  Bun v1.1.34 fixes 64 bugs and adds Bun.randomUUIDv7() for sortable, database-friendly IDs, more aggressive garbage collection while idle in the event loop to cut memory in long-running processes, and Node-API type tagging (napi\_type\_tag\_object/napi\_check\_object\_type\_tag) that unblocks tree-sitter.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
