Earlier quoted context omitted.
It largely works and it's a massive business success. This is the classic engineer asking the 'why this technology?' to what amounts to a business question. They chose it early on, it works, and it makes obscene amounts of revenue. End of story. That doesn't mean it was the "greatest" choice, or has a perfect technical architecture. Rewrites are never easy, even the bun rewrite. But a non-UI developer tool with a rig…
> It largely works and it's a massive business success. You can make anything work when you have enough money to buy and radically change the entire runtime you’re relying on. One must suspect that if they did not have insane amounts of money to burn, they could have tried other approaches to fixing the problems. Maybe engineering, perhaps.
Claude Code uses Bun written in Rust now
901–910 of 920 posts
Re: Claude Code uses Bun written in Rust now
#902Earlier quoted context omitted.
Because it lets you constrain the parts that the compiler can’t check and has to trust you on. The alternative is either a langue that can’t do necessary things, or a language that can’t check what could be checked. With unsafe, you’re telling the compiler “I’ve taken extra care to make sure that what I’m doing is safe and doesn’t break your rules” and the compiler can go ahead and assume that you don’t, in fact, bre…
Yes, when a human does it. With an LLM, the "trust me, I took extra care" is extremely doubtful. If LLMs could do that, they might as well use unsafe languages.
Re: Claude Code uses Bun written in Rust now
#903Re: Claude Code uses Bun written in Rust now
#904Earlier quoted context omitted.
I've argued elsewhere some things that are wrong with RAII and C++ objects in general. Here I would just like to mention that if you have to rely on "de-virtualization" passes, you're in a miserable situation architecturally. If you have code where the overhead of virtual function calls might be too much to pay, don't do virtual functions then. End of story. To deconstruct a pool of objects, I don't see what should e…
I've argued elsewhere some things that are wrong with RAII and C++ objects in general. You claimed there were problems many times for sure, I don't think you came up with any evidence of those problems.
Re: Claude Code uses Bun written in Rust now
#905Earlier quoted context omitted.
> It largely works and it's a massive business success. You can make anything work when you have enough money to buy and radically change the entire runtime you’re relying on. One must suspect that if they did not have insane amounts of money to burn, they could have tried other approaches to fixing the problems. Maybe engineering, perhaps.
I disagree, Solid Fuel.
Re: Claude Code uses Bun written in Rust now
#906Re: Claude Code uses Bun written in Rust now
#907Re: Claude Code uses Bun written in Rust now
#908Earlier quoted context omitted.
This saying has been abused 10 ways til Sunday. "I'm using technology I know that will get us there" is not the same as treating every problem as a nail. It's making a practical choice that probably also had time constraints and other factors we don't know.
> "I'm using technology I know that will get us there" is not the same as treating every problem as a nail. Hammering in a screw is using technology that the hammer-wielder knows will get there. You’ve just rephrased the statement. What you seem to be saying is that in some cases, the hammer may be the appropriate tool. No-one disputes that.
My point is that the idiom has now come to mean "I disagree with your tech choices".
Re: Claude Code uses Bun written in Rust now
#909Re: Claude Code uses Bun written in Rust now
#910Earlier quoted context omitted.
I've argued elsewhere some things that are wrong with RAII and C++ objects in general. You claimed there were problems many times for sure, I don't think you came up with any evidence of those problems.
You keep "asking" for evidence but the only evidence presented by yourself is that you have merely surface-level understanding of the subject matter, and are looking for arguments, not insight and critical examination.
People use them because by default values have scope based lifetimes and destructors unify the handling of stack based values which require no explicit cleanup with data structures that heap allocate, which require no explicit cleanup once the destructor is implemented.
This is the opposite of C where even though the resource cleanup needs to happen on scope end, it is not automatic, and so becomes a source of bugs. This is exaggerated when there are multiple returns, gotos, macros and other sources of branching especially for error handling.
This automation also removes boilerplate so there is less management that needs to be done when using data structures.
What was your evidence or explanation?