Live data from Hacker News

Bun has an open PR adding shared-memory threads to JavaScriptCore

github.com

221–230 of 330 posts

Re: Bun has an open PR adding shared-memory threads to JavaScriptCore

#221
post #182

Earlier quoted context omitted.

Well, it was (is?) significantly easier to use, faster, the team behind it is fantastic, and generally had enough compatibility to run the projects I needed it to. When it’s enough of a drop-in replacement, that’s more than good enough. As long as we’re not adding a hundred bun-specific things, it’s not terribly difficult to back out of, either. Kind of a no-brainer.

Faster I get. But easier to use?

Yeah. Take a look at the docs. So much niceties

Re: Bun has an open PR adding shared-memory threads to JavaScriptCore

#222

>Scalability, measured (the honest section) Ugh.

Yes, that's the smoking gun!

151 commits, 1826 files changed and claude found 0 smoking guns? I call bullshit. It found 3 in one run-of-the-mill query the other day

Re: Bun has an open PR adding shared-memory threads to JavaScriptCore

#223

Earlier quoted context omitted.

When did JS not have strict equality?

1995-1999. Strict equality was introduced in ES3 which was first released in December 1999. https://www-archive.mozilla.org/js/language/e262-3.pdf

The parent said 'before ES6', I suspect they were not thinking of 1999.

Re: Bun has an open PR adding shared-memory threads to JavaScriptCore

#224
post #190

I’m the author of this PR. This PR is an implementation of the design from https://webkit.org/blog/7846/concurrent-javascript-it-can-wo... . I think it would be really cool if JavaScript had true shared object multi-threading without compromises (SharedArrayBuffer, postMessage are not that). If we had both threads and structs, it’s likely the TypeScript compiler would never have needed to be rewritten in Go. The titl…

While you're here, what's the status of the Rust rewrite and that blog post you promised to write?

It's a strange world.

Rust rewrite: 6 days.[0]

Blog post: 37 days and counting.

[0] https://xcancel.com/jarredsumner/status/2060050578026189172

Re: Bun has an open PR adding shared-memory threads to JavaScriptCore

#225
post #75

I wonder if I'm the only one for whom the bun project vanished completely. In software code is only part of the package. Stability and trust are big part of it, too. And for me 1800 files change PRs created by Anthropic overseen by one person is not necessarily adding to the package. Even it that'd be the best code and design in the world, I won't use it. I don't trust it.

For me it’s still up in the air. I won’t bet against them just yet. Also, did they say only one person reviewed it? I really doubt that. Don’t assume that what you can see on GitHub is the sum of all actions taken.

Yea, more likely for the majority of the code nobody reviewed it. It was over a million line diff.

Re: Bun has an open PR adding shared-memory threads to JavaScriptCore

#226
post #182

Earlier quoted context omitted.

Well, it was (is?) significantly easier to use, faster, the team behind it is fantastic, and generally had enough compatibility to run the projects I needed it to. When it’s enough of a drop-in replacement, that’s more than good enough. As long as we’re not adding a hundred bun-specific things, it’s not terribly difficult to back out of, either. Kind of a no-brainer.

Faster I get. But easier to use?

There is no comparison when running a TypeScript project with Bun vs with Node. Or when mixing ESM and CJS. Or when setting up unit testing.

Node and its ecosystem was considerably behind in multiple regards.

Re: Bun has an open PR adding shared-memory threads to JavaScriptCore

#227

I'm curious to hear from people if anyone who uses Bun after this changed has noticed any day to day differences with the rust version over the zig version

The latest version of Claude Code is the compiled with the Rust version of Bun, I've been using it and haven't noticed any regressions.

Re: Bun has an open PR adding shared-memory threads to JavaScriptCore

#228

Earlier quoted context omitted.

Everyone's excited about using AI to make their quick end products. But no-one wants to actually build on or rely on vibe-coded frameworks, languages, or tools.

I think AI is fine, the problem is what you mentioned: vibe coding. Have AI do work for you, it’s certainly faster in most cases. But just know exactly what it’s generating and building before putting it into production. That’s not some massive bar to surpass.

Yeah, but you dont know who is vibe coding and who actually knows the output of what they had LLM make

This leads to lack of trust, which the entire open source community is based on. Even if that vibe coded slop is flawless, the stigma will never go away.

Re: Bun has an open PR adding shared-memory threads to JavaScriptCore

#229
post #141

Earlier quoted context omitted.

> And for me 1800 files change PRs created by Anthropic overseen by one person is not necessarily adding to the package. Bun is mostly AI written and AI reviewed at this point (all automated). The 1-person is luxury.

citation needed

go clone the repo and run `git blame`.

Re: Bun has an open PR adding shared-memory threads to JavaScriptCore

#230
post #190

I’m the author of this PR. This PR is an implementation of the design from https://webkit.org/blog/7846/concurrent-javascript-it-can-wo... . I think it would be really cool if JavaScript had true shared object multi-threading without compromises (SharedArrayBuffer, postMessage are not that). If we had both threads and structs, it’s likely the TypeScript compiler would never have needed to be rewritten in Go. The titl…

> I’m the author of this PR.

> And yes, the PR description is entirely Claude.

If you didn't write it, you're not the author. That's how it works, man.

I would also love to read that blog post about the Rust rewrite, when you get it published.

Post reply on HN