Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by sedatk on Tuesday July 05, 2022 @08:02PM
(#31995225)
What do you have against Rust?
[ Parent
| on HN ]
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by mr90210 on Wednesday July 06, 2022 @04:28AM
(#31998236)
The whole rewrite everything in Rust.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by jokethrowaway on Wednesday July 06, 2022 @06:25AM
(#31998985)
Rewriting into a safe language actually has some benefits - namely safety compile time guarantees.
Only RAM manufacturers like memory leaks.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by Cthulhu_ on Wednesday July 06, 2022 @07:28AM
(#31999398)
While true, I think there's a lot of "this is better because it's been written in Rust" software around these days. The emphasis is on the language, not the problem being solved.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by conaclos on Wednesday July 06, 2022 @07:42AM
(#31999478)
Agreed. Some project attract attention just because it is written in Rust. Although Rust is well-designed, the language does not make everything.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by krona on Wednesday July 06, 2022 @07:40AM
(#31999470)
Memory leaks in rust might be less common than a fully GC'ed language but saying rust prevents or makes them less common than e.g. zig/c++ seems like a stretch.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by crabbygrabby on Wednesday July 06, 2022 @08:50AM
(#32000086)
You literally cannot get them period in rust. Like it is not possible. That's the point of rust.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by 3836293648 on Wednesday July 06, 2022 @09:23AM
(#32000478)
Leaks are absolutely considered safe by rust. Just look at Box::leak. And if we're comparing it to GC'd "leaks", those are typically hashmaps growning out of control and that can also happen
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by voorwerpjes on Wednesday July 06, 2022 @11:38AM
(#32002549)
Leaks can happen in rust. The guarantee safe rust makes is that memory leaks cannot result in undefined behavior.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by crabbygrabby on Wednesday July 06, 2022 @08:53AM
(#32000128)
That's mostly a thing teenagers are doing to learn CS, when it's not it's because the software is vulnerable or slow and benefits from a rewrite in a safe language.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by sedatk on Wednesday July 06, 2022 @05:02PM
(#32006785)
How is that worse than Zig in that context?
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by avgcorrection on Wednesday July 06, 2022 @10:24AM
(#32001458)
It is effectively bait, irrespective of intent. Why would you say that “this pastry is great: it’s blueberry and not chocolate”. Is the implication that 50% of the enjoyment is on account of what it is not? Just weird.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by k__ on Tuesday July 05, 2022 @08:54PM
(#31995569)
Haha, good question.
Should have used Nim, to make it interesting :D
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by aidaman on Tuesday July 05, 2022 @11:32PM
(#31996372)
too complicated
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ...
by Existenceblinks on Wednesday July 06, 2022 @05:37AM
(#31998682)
The bible is too thick!