Log inSign up
Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
Bun
3,285 posts
Image
user avatar
Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
Bun
@cirospaciari
eng @bunjavascript at @AnthropicAI Alien of Extraordinary Ability - @USAGov
San Francisco, CA
github.com/cirospaciari/s…
Joined October 2017
368
Following
3,457
Followers
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Oct 17, 2025
    Bun's S3 API is fast, I put a lot of love on this project
    Image
    GIF
    74K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Oct 18, 2025
    PHP doesn't stand a chance against Bun
    Image
    88K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Aug 3, 2025
    Replying to @LayTXT
    Breno after deleting 3 databases
    Image
    12K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Oct 19, 2025
    Bun’s MySQL support was a project I poured significant effort into optimizing. Careful tuning of the pipeline and queue management led to substantial performance gains.
    Image
    40K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Aug 22, 2025
    In the next version of Bun Bun.SQL gets a native high-performance MySQL adapter
    Image
    39K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Oct 24, 2025
    JavaScript’s Date() has been confusing devs for decades The new Temporal API finally fixes that, immutable, timezone-aware, precise, and simple to use. You can already try it in Bun!
    Image
    19K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Oct 17, 2025
    Bora codar?
    Image
    15K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Nov 3, 2025
    Bun.password makes hashing and verifying passwords simple and secure. The algorithm used to create the hash is stored in the hash itself. When using bcrypt, the returned hash is encoded in Modular Crypt Format for compatibility with most existing bcrypt implementations; with
    Image
    18K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Oct 16, 2025
    mongodb first draft
    Image
    6.5K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Oct 23, 2025
    Bun comes with a built-in bundler, dev server, and hot reload. Zero config. Instant updates. Run bun ./index.html to start a dev server. TypeScript, JSX, React, and CSS imports work out of the box. Build optimized bundles with bun build ./index.html --production. Tree-shaking,
    Image
    00:00
    11K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Oct 22, 2025
    postMessage is the most common way to send data between multiple worker threads in JavaScript. By avoiding serialization for strings we know are safe to share across threads, it's up to 500x faster and uses ~22x less peak memory
    // Benchmark for string fast path optimization in postMessage with Workers

import { bench, run } from "mitata";
import { Worker, isMainThread, parentPort } from "node:worker_threads";

// Test strings of different sizes
const strings = {
  small: "Hello world",
  medium: Buffer.alloc("Hello World!!!".length * 1024, "Hello World!!!").toString(),
  large: Buffer.alloc("Hello World!!!".length * 1024 * 256, "Hello World!!!").toString(),
};

let worker;
let receivedCount = new Int32Array(new SharedArrayBuffer(4));
let sentCount = 0;

function createWorker() {
  const workerCode = `
    import { parentPort, workerData } from "node:worker_threads";

    let int = workerData;

    parentPort?.on("message", data => {
      Atomics.add(int, 0, 1);
    });
  `;

  worker = new Worker(workerCode, { eval: true, workerData: receivedCount });

  worker.on("message", confirmationId => {});

  worker.on("error", error => {
    console.error("Worker error:", error);
  });
}

// Initialize worker before
    11K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Nov 1, 2025
    Transforming HTML on the fly has never been this easy. The Bun HTMLRewriter API gives you low-level control to parse, modify, and enhance HTML using CSS selectors, all at incredible speed. Bun’s implementation is based on Cloudflare’s lol-html. It can rewrite content coming
    Image
    13K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Oct 25, 2025
    Bun.redis benchmarks shows it performing up to 7.9x faster while using 2.1x less memory compared to other Redis clients in similar workloads. With corking and pipelining techniques combined make the client highly optimized for high-throughput and low-latency workloads
    Image
    9K
  • user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Oct 20, 2025
    Bun.SQL uses tagged template literals in this example, which means that it will transform it into a prepared statement protecting against SQL injection and running faster in subsequent runs
    user avatar
    Ciro Spaciari πŸ‡§πŸ‡·πŸ‡ΊπŸ‡Έ
    Bun
    @cirospaciari
    Oct 18, 2025
    PHP doesn't stand a chance against Bun
    Image
    14K

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

TermsΒ·PrivacyΒ·CookiesΒ·AccessibilityΒ·Ads InfoΒ·Β© 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up
Advertisement
Advertisement