Advertisement Β· 728 Γ— 90

Posts by Bun

Post image

30 days until Bun v1.3

7 months ago 57 1 3 2

wow

maybe ur right

9 months ago 3 0 0 0
Post image

Bun v1.2.15

10 months ago 67 2 2 1
Preview
Bun v1.2.15 Fixes 11 issues (addressing 261 πŸ‘). bun audit scans dependencies for security vulnerabilities, bun pm view shows package metadata from npm. bun init adds a Cursor rule to use Bun instead of Node.js/Vi...

Bun v1.2.15
- Fixes 11 issues (addressing 261 πŸ‘)
- `bun audit` scans for vulnerabilities
- `bun pm view <pkg>`
- `bun init` adds a Cursor rule
- `bun ./index.html` gets "Automatic workspace folders" edit files in browser
- Fixes for vm & worker_threads

bun.sh/blog/bun-v1....

10 months ago 40 4 3 0
Preview
Bun v1.2.14 Fixes 39 issues (addressing 179 πŸ‘). Adds support for catalogs in bun install, --react flag for bun init, improved HTTP routing with method-specific routes, better TypeScript default module settings, f...

Bun v1.2.14
- Fixes 39 issues (addressing 179 πŸ‘)
- Catalogs in bun install simplify sharing dependency versions in monorepos
- Fixes HTTPS proxy issue impacting OpenAI Codex
- zstd + fetch
- Several Node compatibility bugfixes

Thanks to 13 contributors!

bun.sh/blog/bun-v1....

10 months ago 26 0 1 0
Stream browser console. log to terminal
Memory
272 MB
OLD
150 ΠΌΠ²
NEW
Hot reloads with lucide-react (307 reloads)
[browser)
Hello!
Node.js
Compatibility
98.4% of timers tests pass
node,js

Stream browser console. log to terminal Memory 272 MB OLD 150 ΠΌΠ² NEW Hot reloads with lucide-react (307 reloads) [browser) Hello! Node.js Compatibility 98.4% of timers tests pass node,js

Bun v1.2.12

11 months ago 70 3 3 2
Preview
Bun v1.2.12 Stream browser console logs to your terminal, dev server uses less memory. Node.js compatibility improvements for timers, vm, net, http, and bugfixes for TextDecoder, hot reloading reliability bugfixe...

Bun v1.2.12
- Echo browser console logs to terminal
- Reduced memory usage for frontend hmr with Bun.serve()
- Node.js compatibility fixes for `timers`, `vm`, `net`, and `http`
- bugfix for global postinstalls impacting Claude Code

thx 10 contributors!

bun.sh/blog/bun-v1....

11 months ago 35 3 0 0
Preview
[JSC] Add MultiGetByVal FTL node by Constellation Β· Pull Request #43579 Β· WebKit/WebKit ed70771 [JSC] Add MultiGetByVal FTL node https://bugs.webkit.org/show_bug.cgi?id=291030 rdar://148552535 Reviewed by Yijia Huang. This patch adds new FTL node MultiGetByVal. In DFG / FTL, we atte...

github.com/WebKit/WebKi...

1 year ago 9 0 0 0
mport { run, bench } from "mitata";

// Assuming the vectors are of the same length
function cosineDistance(a, b) {
  let dotProduct = 0;
  let magA = 0;
  let magB = 0;
  for (let i = 0; i < a.length; i++) {
    dotProduct += a[i] * b[i];
    magA += a[i] * a[i];
    magB += b[i] * b[i];
  }
  return 1 - dotProduct / (Math.sqrt(magA) * Math.sqrt(magB));
}

// Generate random data for testing
const dimensions = 1536; // Adjust dimensions as needed
const array1 = Array.from({ length: dimensions }, () => Math.random() * 100);
const array2 = Array.from({ length: dimensions }, () => Math.random() * 100);
const floatArray1 = new Float32Array(array1);
const floatArray2 = new Float32Array(array2);

bench("Array", () => {
  cosineDistance(array1, array2);
});

bench("Float32Array", () => {
  cosineDistance(floatArray1, floatArray2);
});

await run();
bun-latest array.mjs # New
clk: ~3.94 GHz
cpu: Apple M3 Max
runtime: bun 1.2.9 (arm64-darwin)

benchmark                   avg (min … max)
-------------------------------------------
Array                          1.07 Β΅s/iter   1.07 Β΅s  β–‡β–ƒ β–„β–ˆβ–‚
                        (1.06 Β΅s … 1.13 Β΅s)   1.09 Β΅s β–„β–ˆβ–ˆβ–†β–ˆβ–ˆβ–ˆβ–‡β–…β–„β–„β–„β–‚β–‚β–‚β–β–β–β–β–‚β–‚
Float32Array                   1.64 Β΅s/iter   1.64 Β΅s                   β–ˆ
                        (1.46 Β΅s … 1.68 Β΅s)   1.67 Β΅s β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–ˆβ–ˆβ–ƒβ–
bun-1.2.8 array.mjs # Prev
clk: ~3.87 GHz
cpu: Apple M3 Max
runtime: bun 1.2.8 (arm64-darwin)

benchmark                   avg (min … max)
-------------------------------------------
Array                          1.07 Β΅s/iter   1.07 Β΅s  β–„  β–ˆβ–‚
                        (1.06 Β΅s … 1.11 Β΅s)   1.10 Β΅s β–…β–ˆβ–†β–†β–ˆβ–ˆβ–„β–„β–…β–‚β–β–β–β–‚β–‚β–β–β–β–β–β–
Float32Array                  13.52 Β΅s/iter  13.50 Β΅s  β–ˆ   β–ˆ
                      (13.41 Β΅s … 14.02 Β΅s)  13.59 Β΅s β–ˆβ–ˆβ–β–β–β–ˆβ–ˆβ–ˆβ–β–ˆβ–ˆβ–β–β–β–β–β–β–β–β–ˆβ–ˆ
node array.mjs # Node, for comparison
clk: ~3.94 GHz
cpu: Apple M3 Max
runtime: node 23.10.0 (arm64-darwin)

benchmark                   avg (min … max)
-------------------------------------------
Array

mport { run, bench } from "mitata"; // Assuming the vectors are of the same length function cosineDistance(a, b) { let dotProduct = 0; let magA = 0; let magB = 0; for (let i = 0; i < a.length; i++) { dotProduct += a[i] * b[i]; magA += a[i] * a[i]; magB += b[i] * b[i]; } return 1 - dotProduct / (Math.sqrt(magA) * Math.sqrt(magB)); } // Generate random data for testing const dimensions = 1536; // Adjust dimensions as needed const array1 = Array.from({ length: dimensions }, () => Math.random() * 100); const array2 = Array.from({ length: dimensions }, () => Math.random() * 100); const floatArray1 = new Float32Array(array1); const floatArray2 = new Float32Array(array2); bench("Array", () => { cosineDistance(array1, array2); }); bench("Float32Array", () => { cosineDistance(floatArray1, floatArray2); }); await run(); bun-latest array.mjs # New clk: ~3.94 GHz cpu: Apple M3 Max runtime: bun 1.2.9 (arm64-darwin) benchmark avg (min … max) ------------------------------------------- Array 1.07 Β΅s/iter 1.07 Β΅s β–‡β–ƒ β–„β–ˆβ–‚ (1.06 Β΅s … 1.13 Β΅s) 1.09 Β΅s β–„β–ˆβ–ˆβ–†β–ˆβ–ˆβ–ˆβ–‡β–…β–„β–„β–„β–‚β–‚β–‚β–β–β–β–β–‚β–‚ Float32Array 1.64 Β΅s/iter 1.64 Β΅s β–ˆ (1.46 Β΅s … 1.68 Β΅s) 1.67 Β΅s β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–ˆβ–ˆβ–ƒβ– bun-1.2.8 array.mjs # Prev clk: ~3.87 GHz cpu: Apple M3 Max runtime: bun 1.2.8 (arm64-darwin) benchmark avg (min … max) ------------------------------------------- Array 1.07 Β΅s/iter 1.07 Β΅s β–„ β–ˆβ–‚ (1.06 Β΅s … 1.11 Β΅s) 1.10 Β΅s β–…β–ˆβ–†β–†β–ˆβ–ˆβ–„β–„β–…β–‚β–β–β–β–‚β–‚β–β–β–β–β–β– Float32Array 13.52 Β΅s/iter 13.50 Β΅s β–ˆ β–ˆ (13.41 Β΅s … 14.02 Β΅s) 13.59 Β΅s β–ˆβ–ˆβ–β–β–β–ˆβ–ˆβ–ˆβ–β–ˆβ–ˆβ–β–β–β–β–β–β–β–β–ˆβ–ˆ node array.mjs # Node, for comparison clk: ~3.94 GHz cpu: Apple M3 Max runtime: node 23.10.0 (arm64-darwin) benchmark avg (min … max) ------------------------------------------- Array

In the next version of Bun & Safari

Polymorphic array access gets up to 8x faster, thanks to
@yusukesuzuki.bsky.social

1 year ago 37 3 1 0
Advertisement
Preview
Bun v1.2.8 Fixes 18 bugs (addressing 18 πŸ‘). napi improvements make node-sdl 100x faster. Headers.get() is 2x faster. Several node:http bugfixes. node:fs improvements. `bun install --frozen-lockfile` now works wi...

Thanks to 10 contributors!

bun.sh/blog/bun-v1....

1 year ago 11 0 0 0
Post image

Bun v1.2.8
- Fixes 18 bugs (addressing 18 πŸ‘)
- napi perf improvement for integers
- 2x faster headers.get()
- node:http & node:fs bugfixes
- `bun install --frozen-lockfile` + `overrides` fix
- `bun pack` directory-specific ignores

Full release notes below

1 year ago 59 2 1 2
Preview
Bun v1.2.7 Fixes 35 bugs (addressing 219 πŸ‘). Bun.CookieMap is a Map-like API for getting & setting cookies. Bun's TypeScript type declarations have been rewritten to eliminate conflicts with Node.js and DOM type...

bun.sh/blog/bun-v1....

1 year ago 5 0 0 0
Post image

Bun v1.2.7
- Fixes 35 bugs (addressing 219 πŸ‘)
- Builtin request.cookies.set & get in Bun.serve() routes
- Fixed TypeScript type definitions conflicts with `@types/node` & libdom
- Bugfixes for node:http, node:vm

Thanks to 13 contributors! Full release notes below

1 year ago 59 3 2 2
Post image
1 year ago 34 3 3 2
Preview
Bun v1.2.6 Fixes 74 bugs (addressing 36 πŸ‘). Faster, more compatible node:crypto. `timeout` option in Bun.spawn. Support for `module.children` in `node:module`. Connect to PostgreSQL via unix sockets with `Bun.SQ...

Bun v1.2.6
- Fixes 74 bugs (addressing 36 πŸ‘)
- node:crypto gets faster & more Node.js compatible
- Faster fastify & express
- `timeout` in Bun.spawn
- Dev Server stability fixes
- Bun.SQL unix domain sockets

Thanks to 23 contributors!
bun.sh/blog/bun-v1....

1 year ago 56 7 1 0
Preview
Bun v1.2.5 Fixes 75 bugs (addressing 162 πŸ‘), and adds +69 passing Node.js tests. Improvements to the frontend dev server, CSS modules support, a full rewrite of Node-API, faster `Sign`, `Verify`, `Hash`, `Hmac` ...

Bun v1.2.5
- Fixes 75 bugs (addressing 162 πŸ‘)
+69 passing tests from Node.js
- Frontend Dev Server fixes, CSS Modules support
- Full rewrite of N-API (napi addons)
- Faster Sign, Verify, Hash, Hmac from node:crypto

Thanks to 25 contributors!

bun.sh/blog/bun-v1....

1 year ago 41 3 0 0
Preview
GitHub - shutock/twurbun: A Turborepo template with a shared Tailwind v4 config, Biome for linting & formatting, and Bun for blazing-fast package management. A Turborepo template with a shared Tailwind v4 config, Biome for linting & formatting, and Bun for blazing-fast package management. - shutock/twurbun

built a @turbo.build template with a shared @tailwindcss.com v4 config, @biomejs.dev for linting & formatting, and powered by @bun.sh

Check it out: github.com/shutock/twur...

1 year ago 10 1 0 0
Preview
Bun v1.2.4 Up to 60% faster Bun.build on macOS, codesigning support for single-file executables on macOS, dev server stability improvements, fixes a regression from v1.2.3 affecting Hono, fixes up/down buttons i...

Bun v1.2.4
- Frontend dev server stability improvements
- Codesign compiled executables on macOS
- Up to 60% faster `bun build` on macOS
- Node.js compatibility fixes
- Faster array.includes
- Many bugfixes

Thanks to 17 contributors!
bun.sh/blog/bun-v1....

1 year ago 83 5 1 0
Preview
Bun v1.2.3 Fixes 128 bugs (addressing 349 πŸ‘). Bun gets a full-featured frontend development toolchain with incredibly fast hot reloading and bundling. Built-in routing for Bun.serve() makes it simpler to build w...

Bun v1.2.3
- Fixes 128 bugs (addressing 349 πŸ‘)
- Incredibly fast frontend dev server with hot reloading
- Builtin routes in Bun.serve
- Many Bun.SQL fixes
- Wasm gets faster
- Node compatibility improvements for napi & Buffer

Thanks to 23 contributors!
bun.sh/blog/release...

1 year ago 85 13 2 1
Advertisement

And done! Try exporting your Paper docs with my new tool: www.npmjs.com/package/drop...

1 year ago 4 1 1 0
Post image

The above is a TailwindCSS + shadcn/ui Twitter frontend clone demo app. This is hot reloading css & js/ts/tsx, running a tailwindcss plugin, transpiling jsx/tsx, websocket hmr happening live as you type.

1 year ago 11 0 0 0
Video

In the next version of Bun

Bun.serve() gets builtin support for hot reloading frontend applications.

1 year ago 133 10 3 2
Is Bun The End Of Vite?
Is Bun The End Of Vite? YouTube video by Jack Herrington

@bun.sh is gunning for @vite.dev! youtu.be/NvitRPQqaSs Now it can serve HTML files right off the command line, and it even supports API routes!

1 year ago 18 3 2 1
Preview
Bun v1.2.2 Fixes 38 bugs (addressing 129 πŸ‘). JavaScript idle memory usage drops by 10–30%. Fixes regression impacting vite build. Reliability improvements to Bun.SQL, Bun.S3Client, Bun's CSS parser. Node.js comp...

Bun v1.2.2
- Fixes 38 bugs (addressing 129 πŸ‘)
- JavaScript idle memory usage reduced by 10–30%
- Fixes v1.2.1 regression impacting `vite build`
- Node compatibility fixes
- Reliability improvements to Bun.SQL and Bun.S3Client

Thanks to 12 contributors!
bun.sh/blog/bun-v1....

1 year ago 69 6 2 1
Preview
Bun v1.2.1 Fixes 32 bugs. S3 storage class support, X25519 support in crypto.generateKeyPair. fs.stat uses less memory. node:fs, node:child_process, and node:process compatibility improvements. CSS parser bugfix...

Bun v.1.2.1
- Fixes 32 bugs
- S3Client gets `storageClass` support
- X25519 support in node:crypto
- Node.js compatibility improvements for node:fs & node:child_process. fs.stat uses less memory.
- Several memory leak fixes

Thanks to 16 contributors!
bun.sh/blog/bun-v1....

1 year ago 35 1 1 0

If we don’t already do this then that’s a bug. I’m pretty sure we already do this though

1 year ago 3 0 0 0
Bun's FINALLY A Bundler (and much much more)
Bun's FINALLY A Bundler (and much much more) YouTube video by Theo - t3β€€gg

bun dler

youtu.be/Y5JrsqBt7sI?...

1 year ago 41 0 2 0
Preview
Bun 1.2 Built-in Postgres client with Bun.sql, built-in S3 object support with Bun.s3, a new text-based lockfile: bun.lock, Express is 3x faster, and a major update on Node.js compatibility.

Introducing Bun 1.2

bun.sh/blog/bun-v1.2

1 year ago 115 20 1 3
Advertisement
Bun 1.2
Bun 1.2 YouTube video by Bun

Bun v1.2 in 17 hours

youtu.be/uSzffuqfJQk?...

1 year ago 58 7 2 1