Live data from Hacker News

Anthropic acquires Bun

bun.com

601–610 of 1001 posts

Re: Anthropic acquires Bun

#601
post #537

Earlier quoted context omitted.

Yea, they just posted this a few days ago: https://www.anthropic.com/engineering/advanced-tool-use They discussed how running generated code is better for context management in many cases. The AI can generate code to retrieve, process, and filter the data it needs rather than doing it in-context, thus reducing context needs. Furthermore, if you can run the code right next to the server where the data is, it's all tha…

Java can run anywhere too

Java is not for sale.

Re: Anthropic acquires Bun

#602
post #493

Genuine question: why js? Why not something like c#: native, fast, crossplatform, strongly-typed, great tooling, supports both scripting (ie single file-based) and compiled to a binary with no dependency whatsoever (nativeAOT), great errors and error stacks, list goes on. All great for AI to recover during its iterations of generating something useful. Genuinely perplexed.

You could make a better argument for Go (compiles to native for multiple targets, zero actual dependencies (no need for a platform or virtual machine on the target)

Go is the most portable compiled language out there and makes a lot of compromises with the interpreted lang world. But it's got its own issues.

Re: Anthropic acquires Bun

#603
post #520

Earlier quoted context omitted.

Yea - if you want a paranoidly-sandboxed, instant-start, high-concurrency environment, not just on beefy servers but on resource-constrained/client devices as well, you need experts in V8 integration shenanigans. Cloudflare Workers had Kenton Varda, who had been looking at lightweight serverless architecture at Sandstorm years ago. Anthropic needs this too, for all the reasons above. Makes all the sense in the world.

Bun isn't based on V8, it's JavaScriptCore, but your point still stands.

Who would have predicted KDE could become the foundation of both AI and gaming

Re: Anthropic acquires Bun

#604

Earlier quoted context omitted.

I suspect you do not know how to use AI for writing code. No offence intended - it is a journey for everyone. You have to be setup with the right agentic coding tool, agent rules, agent tools (MCP servers), dynamic context acquisition and workflow (working with the agent operate from a plan rather than simple prompting and hoping for the best). But if you're lazy, don't put the effort in to understand what you're wor…

Always the same answer. It's the user not the AI being blown out of proportion. Tell me, where are all those great amazin applications that were coded 95-100% by AI? Where is the great progress the great new algorithms the great new innovations hiding?

My stack is React/Express/Drizzle/Postgres/Node/Tailwind. It's built on Hetzner/AWS, which I terraformed with AI. Probably 90-95% of it is AI driven.

It's a private repo, and I won't make it open source just to prove it was written with AI, but I'd be happy to share the prompts. You can also visit the site, if you'd like: https://chipscompo.com/

Re: Anthropic acquires Bun

#606
post #361

I work on Bun. Happy to answer any questions

Any chance there will be some kind of updating mechanism for 'compiled' bun executables?

I have a PR that’s been sitting for awhile that exposes the extra options from the renameat2 and renameatx_np syscalls which is a good way to implement self-updaters that work even when multiple processes are updating the same path on disk at the same time. These syscalls are supported on Linux & macOS but I don’t think there’s an equivalent on Windows. We use these syscalls internally for `bun install` to make adding packages into the global install cache work when multiple `bun install` processes are running simultaneously

No high-level self updater api is planned right now, but yes for at least the low level parts needed to make a good one

Re: Anthropic acquires Bun

#607

Earlier quoted context omitted.

I haven't used Deno, but I do use Bun purely as a replacement for npm. It does the hard-linking thing that seems to be increasingly common for package managers these days (i.e. it populates your local node_modules with a bunch of hard links to its systemwide cache), which makes it vastly quicker and more disk-efficient than npm for most usage. Even with a cold cache, `bun install` with a large-ish dependency graph is…

pnpm does all that on top of node. Also disables postinstall scripts by default, making the recent security incidents we've seen a non-issue.

A whitelist in package.json is only a partial assist

Re: Anthropic acquires Bun

#608

Earlier quoted context omitted.

Yeah why are you not out on a boat somewhere enjoying this moment? Go have fun please.

Acq's typically have additional stips you have to follow - they probably have new deadlines and some temporary stress for the next few months.

yes, acquisitions rarely result in an immediate cash payout.

Re: Anthropic acquires Bun

#609

Earlier quoted context omitted.

When you say runtime sandboxing, are you referring to JavaScript agents? I haven't worked all that much with JavaScript execution environments outside of the browser so I'm not sure about what sandboxing mechanics are available.

https://nodejs.org/api/vm.html Bun claims this feature is for running untrusted code ( https://bun.com/reference/node/vm ), while Node says "The node:vm module is not a security mechanism. Do not use it to run untrusted code." I'm not sure whom to believe.

Doesn’t Bun use JavaScriptCore though? Perhaps their emulation, rather implementation, leans more towards security.

Re: Anthropic acquires Bun

#610
Extrapolating and wildly guessing, we could end up with using all that mostly idle CPU/RAM (the non-VRAM) on the beefy GPUs doing inference on agentic loops where the AI runs small JS scripts in a sandbox (which Bun is the best at, with its faster startup times and lower RAM use, not to mention its extensive native bindings that Node.js/V8 do not have) essentially allowing multiple turns to happen before yielding to the API caller. It would also go well with Anthropic's advanced tool use that they recently announced. This would be a big competitive advantage in the age of agents.
Post reply on HN