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
Anthropic acquires Bun
601–610 of 1001 posts
Re: Anthropic acquires Bun
#602Genuine 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)
Re: Anthropic acquires Bun
#603Earlier 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.
Re: Anthropic acquires Bun
#604Earlier 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?
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
#605Re: Anthropic acquires Bun
#606I work on Bun. Happy to answer any questions
Any chance there will be some kind of updating mechanism for 'compiled' bun executables?
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
#607Earlier 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.
Re: Anthropic acquires Bun
#608Earlier 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.
Re: Anthropic acquires Bun
#609Earlier 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.