Bun v0.2.0

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • bun

    Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

  • The version of that graph in the readme links to `bun/bench/react-hello-world` which makes use of `react-dom/server` so it is a slightly more involved test than sending plain `hello world`

    On a local 4 core VM, generating the load locally:

    Deno.serve() appears to be particularly bad for me at this test until you crank up the concurrent connections (>500) it gets up to 2k rps but it also falls over after that load.

    The node react-hello-world.node.js test peaks at about 1.5k rps @ 32 connection

    Bun running react-hello-world.jsx gets 8k rps with 32 connections. This uses a customised local copy of `react-dom/server` where [1] at least the `escapeHTML` function is switched for bun's native implementation, and this appears to be packaged (or will be?) with bun [2]. I'm not sure if anything else is different here as the bun packaged code is still minified. The `bench/snippets/react-dom-render.bun.js` [3] test comparing these only show the bun version of `react-dom/server` to be 1.5 - 2x faster on this VM so it appears there is something more to it. Maybe everything `react-dom/server` normally stresses is optimised in bun? or `escapeHTML` is very large on the flamegraph.

    Running the react-hello-world.node.js server in bun results in about 1.9k rps @ 32 connection

    Running react-hello-world.deno.jsx in bun doesn't work.

    Futzing with react-hello-world.deno.jsx to load the cjs react builds will run in bun at about 1.9k rps

    0: https://github.com/oven-sh/bun/tree/bun-v0.2.0/bench/react-h...

    1: https://github.com/oven-sh/bun/blob/bun-v0.2.0/test/bun.js/r...

    2: https://github.com/oven-sh/bun/blob/bun-v0.2.0/bench/react-h...

    3: https://github.com/oven-sh/bun/blob/bun-v0.2.0/bench/snippet...

  • bench

    πŸ“Š Comparing deno, node and bun HTTP frameworks (by denosaurs)

  • > Bun is about 4X faster than those runtimes.

    Lies, damned lies, and benchmarks.

    https://github.com/denosaurs/bench

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • zig

    The version of Zig used by Bun. Not a fork! Just a slightly older version. (by oven-sh)

  • You will need the version of Zig used by Bun. It’s a few months old, just before LLVM 13 -> 14 migration

    https://github.com/oven-sh/zig

  • nim_emscripten_tutorial

    Nim emscripten tutorial.

  • I believe cyclic imports are coming. And Nim does supports wasm...you can target it with `--cpu:wasm32`. You most likely want to pair that with emscripten as in https://github.com/treeform/nim_emscripten_tutorial

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Svelte As An Alternative LiveView DSL

    2 projects | /r/elixir | 27 Apr 2023
  • What are the primary issues or annoyances node developers face?

    4 projects | /r/node | 29 Oct 2022
  • Bun (can become) the ideal JavaScript runtime

    2 projects | news.ycombinator.com | 12 Jul 2022
  • React Magic: How to Create a Custom Hook for Seamless Data Retrieval.

    1 project | dev.to | 30 Apr 2024
  • Node Test Runner vs Bun Test Runner (with TypeScript and ESM)

    1 project | dev.to | 26 Apr 2024