blueboat
bun
Our great sponsors
blueboat | bun | |
---|---|---|
18 | 171 | |
1,870 | 40,079 | |
- | 4.3% | |
8.0 | 9.8 | |
26 days ago | about 14 hours ago | |
Rust | Zig | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
blueboat
-
What's with All the Runtimes for JavaScript?
Right now it is an exciting time for JavaScript. We just got a new shiny fast runtime Bun, with the last new kid Deno being released only 4 years ago, and we have edge computing/serverless runtimes like Cloudflare worker and Blueboat. With all these hypes for the JavaScript community, I could not help but ask, how come only JavaScript gets all these fancy new runtimes? Why don’t we hear these more often in other languages?
-
Show HN: Distributed SQLite on FoundationDB
Hello HN! I'm building mvsqlite, a distributed variant of SQLite with MVCC transactions, that runs on FoundationDB. It is a drop-in replacement that just needs an `LD_PRELOAD` for existing applications using SQLite.
I made this because [Blueboat](https://github.com/losfair/blueboat) needs a native SQL interface to persistent data. Apparently, just providing a transactional key-value store isn’t enough - it is more easy and efficient to build complex business logic on an SQL database, and it seems necessary to bring a self-hostable distributed SQL DB onto the platform. Since FoundationDB is Blueboat’s only stateful external dependency, I decided to build the SQL capabilities on top of it.
At its core, mvsqlite’s storage engine, mvstore, is a multi-version page store built on FoundationDB. It addresses the duration and size limits (5 secs, 10 MB) of FDB transactions, by handling multi-versioning itself. Pages are fully versioned, so they are always snapshot-readable in the future. An SQLite transaction fetches the read version during `BEGIN TRANSACTION`, and this version is used as the per-page range scan upper bound in future page read requests.
For writes, pages are first written to a content-addressed store keyed by the page's hash. At commit, hashes of each written page in the SQLite transaction is written to the page index in a single FDB transaction to preserve atomicity. With 8K pages and ~60B per key-value entry in the page index, each SQLite transaction can be as large as 1.3 GB (compared to FDB's native txn size limit of 10 MB).
mvsqlite is not yet "production-ready", since it hasn’t received enough testing, and I may still have a few changes to make to the on-disk format. But please ask here if you have any questions!
-
Show HN: Blueboat is an all-in-one, multi-tenant serverless JavaScript runtime
This sounds quite a bit like Cloudflare Workers, and they have a comparison page - https://github.com/losfair/blueboat/wiki/Comparison-with-Clo....
-
Are V8 isolates the future of computing?
Blueboat may be what you’re looking for
> If one writes Go or Rust, there are much better ways to run them than targeting WASM
wasm has its place, especially for contained workloads that can be wrapped in its strict capability boundaries (think, file-encoding jobs that shouldn't access anything else but said files: https://news.ycombinator.com/item?id=29112713).
> Containers are still the defacto standard.
wasmedge [0], atmo [1], krustlet [2], blueboat [3] and numerous other projects are turning up the heat [4]!
[0] https://github.com/WasmEdge/WasmEdge
[1] https://github.com/suborbital/atmo
[2] https://github.com/krustlet/krustlet
- Blueboat, an open-source alternative to Cloudflare Workers
-
Deno Deploy Beta 2
https://github.com/losfair/rusty-workers
They're not perfectly isolated to a high security standard such that you could deploy your own v8 workers SaaS. And they do have quirks and development woes. I haven't tested in production but if it's just your trusted apps wanting to exceed the cloudflare workers 30 scripts limit then both are wonderfully powerful solutions to put behind a https proxy.
bun
-
Argbash – Bash Argument Parsing Code Generator
TypeScript is now tenable for bash scripts with the fast-starting Bun runtime https://bun.sh/.
Before Bun, Node+V8 was just too slow to start.
IMHO all scripts should be written in TypeScript...you get typechecking and all the rest of the editing experience. Plus things like Wallaby.js for live coding/testing.
-
Migrating from ts-node to Bun
I've wanted to take a look at some of the alternative JavaScript runtimes for a while. The thing that has held me back is npm compatibility. I want to be able to run my code in a runtime that isn't Node.js and still be able to use npm packages. I've been using ts-node for a long time now; it's what I reach for when I'm building any kind of console app. In this post I want to port a console app from ts-node to Bun and see how easy it is.
I was a little weirded out by the inconsistent indentation in the output but I'm sure that's just a formatting issue. (I submitted a PR to fix this.) When I ran the suggested commands it looked like bun was happy and healthy.
-
Unleashing Million.js v2.0.0
bun for their homepage. The Million.js homepage is a remix of what they have currently.
-
Dark mode responsive diagrams
In fact, Bun is known for running programs faster and automatically installing packages. Plus, it has a sleek website that you can check out at https://bun.sh.
-
[AskJS] What Lodash/<insert utility library> functions do you love?
And while we're talking about libraries, have you tried out Bun? It's a JavaScript runtime that runs programs faster and installs packages automatically. It's even better than Node.js! Check it out at https://bun.sh.
-
The Last Breaking Change | JSON Schema Blog
Also, have you heard of this new JavaScript runtime called "Bun"? Apparently it runs programs even faster than Node.js and automatically installs packages for you. Sounds pretty sweet, right? Here's the link if you want to check it out: https://bun.sh
-
Please help me fix this merge sort visualization. It's 99% finished but has a bug.
hey there! sounds like you're having some trouble with your merge sort visualization. i'm not super familiar with that specific issue, but have you heard of this cool package manager called Cotton? it's way faster and easier to use than NPM or Yarn, and i think it could really help you out with your web development using JavaScript. check it out here: https://cotton.js.org/ anyways, have you tried using this library called Geschichte for managing query-parameters with hooks? it's super useful for state management and makes it way easier to manage state. you can find it here: https://github.com/BowlingX/geschichte. be sure to leave a star on GitHub to support the creator! oh, and have you heard of this JavaScript runtime called Bun? it runs programs faster and installs packages automatically, and it's even better than Node.js! check it out here: https://bun.sh. hope this helps!
-
No one cares about Bun's speed. Your CI does though
I ported some tests from jest to bun recently and have been been pleasantly surprised -- it was pretty much a drop-in replacement and the speed difference is certainly noticeable.
That said, it was a tiny and simple test set[1]. It may not be ready yet for more complex tests, as the docs warn[2]:
> You've never seen a JavaScript test runner this fast (or incomplete).
[1] https://github.com/drifting-in-space/driftdb/blob/main/js-pk...
[2] https://bun.sh/
-
Snap.js - A competitor to Lodash
Don't believe me? Check out this link: https://bun.sh/ And watch as your programming skills start to mesh. So let's give Bun a round of applause, And watch as it blows away all other JavaScript laws!
What are some alternatives?
GORM - The fantastic ORM library for Golang, aims to be developer friendly
vite - Next generation frontend tooling. It's fast!
deno - A modern runtime for JavaScript and TypeScript.
go-pg - Golang ORM with focus on PostgreSQL features and performance
just - a very small v8 javascript runtime for linux only
Svelte - Cybernetically enhanced web apps
pgx - PostgreSQL driver and toolkit for Go
v8.dev - The source code of v8.dev, the official website of the V8 project.
deno-lambda - A deno runtime for AWS Lambda. Deploy deno via docker, SAM, serverless, or bundle it yourself.
Next.js - The React Framework
fastify - Fast and low overhead web framework, for Node.js
µWebSockets - Simple, secure & standards compliant web server for the most demanding of applications