Earlier quoted context omitted.
Before it was less labor, they might not have done it at all . Computers let you do things quicker. So you do more things.
Ok, then go work on homelessness or political corruption. It's not like we have a dearth of problems. Coding is solved.
Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
721–730 of 754 posts
Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
#722I suspect that the test suite isn't that great tho. Bun has so many different behaviors compared to other JS engines, sometimes just plain wrong or contradicting the spec. Test suite didnt catch those.. Not sure how much I trust the rewrite :)
Notably, Bun is not a JS engine. JavaScriptCore is the JS engine. Bun is just a complicated wrapper around it.
Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
#723Earlier quoted context omitted.
> Of course, if Bun's Rust port has tons of `unsafe`, it won't magically solve them all, but it'll still get better You get very few of the Rust guarantees when you litter your code with unsafe to get around the safety checks (which is what they're doing here). I would not recommend running this in production.
From what I understand, rust "unsafe" is actually pretty damn safe compared to an actually memory unsafe language.
Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
#724Very impressive that they could do this so quickly because I have been on a similar project (porting TypeScript to Rust) for 5 months. But I guess I don't have access to Mythos and unlimited tokens. I'm also close to 100% pass rate. 99.6% at the time of writing. https://tsz.dev Rust is perfect for writing all of code using LLM. It's strict type system makes is less likely to make very dumb mistakes that other languag…
Interesting, but why not then use an even stricter language? Say Idris, ATS, Lean or F* ?
But if you mean in general, I also totally feel that languages that let you represent more invariants statically are better fit for LLMs. I'd love to see experimentation with LLMs with dependent types and managed effects.
Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
#725Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
#726Earlier quoted context omitted.
I think you and I don't share what is a "test". Are you thinking about unit tests? I'm thinking about unit tests, smoke tests, integration tests, e2e tests, functional tests, manual QA tests and probably even "the-product-works-as-expected-as-I-can-see-from-the-amazon-reviews-of-our-clients tests". I agree with your point of view in general, but "having tests" doesn't mean "having great tests". If I rewrite my code a…
I'm not interested in debating what "test" means. There is a standard definition in the software industry.
Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
#727Very impressive that they could do this so quickly because I have been on a similar project (porting TypeScript to Rust) for 5 months. But I guess I don't have access to Mythos and unlimited tokens. I'm also close to 100% pass rate. 99.6% at the time of writing. https://tsz.dev Rust is perfect for writing all of code using LLM. It's strict type system makes is less likely to make very dumb mistakes that other languag…
Interesting, but why not then use an even stricter language? Say Idris, ATS, Lean or F* ?
Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
#728Earlier quoted context omitted.
Zig doesn't even have RAII...
which is a good thing. C++'s RAII is magic-sauce that does a lot for you when you can simply use `defer` in zig. A constructor is just a function call. A destructor is just a function call.
If I open a file, eventually I want to close it. If I allocate some memory, eventually I want to deallocate it.
Any programming language design that intentionally puts the onus BY DEFAULT on the user to *not forget to manually do something* is honestly asinine.
Defer has a place (I do use defer in C++, in fact you can implement it with RAII, proving that RAII is strictly more powerful/more flexible), but the default should be the safest and most straightforward option.
Also "magic-sauce that does a lot for you" is just false. It's literally a function call injected at the end of a scope.
Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
#729Earlier quoted context omitted.
> Zig doesn't have explicit annotations for it, but the concept of ownership and lifetime doesn't go away. It's not enforced by the compiler, which is an intentional tradeoff to let the programmer have more control and freedom. Right, it's exactly like C, and we kinda all know how that worked out in practice already... Hence why I called Zig a "love letter to C". If all you want is C with a dash of zest, that's Zig.…
> Right, it's exactly like C, and we kinda all know how that worked out in practice already... Production operating systems have been written in C, along the with the countless tooling, libraries and game engines (which you said are a poor fit for manual memory management) that modern systems depend on. I say it worked out it pretty well. And zig did learn from the hard lessons from the industry and fixes a lot of pr…
Game engines moved to C++ over 20 years ago.
Most major compilers are also in C++, including GCC (it switched over a decade ago). Which means the two largest C compilers are themselves not written in C. They have un-bootstrapped.
> That all said, I do agree that manual memory management is really hard to do if you are used to just sweeping gigabytes of memory under rug, hoping the GC vacuum cleaner slurps it afterwards. It takes a mindset and a set of practice. But once you internalized it, it becomes second nature.
Sorry, but no, you cannot internalize this. Nobody can. Once a program grows past some point, purely manual memory management & "git gud" are simply not practical. The amount of evidence against this is beyond any doubt.
Zig's emphasis on cross compilation seems like it's a better fit for embedded than anything else, which is where things shouldn't realistically grow to be huge projects, but with how coding efficiency (or lack thereof) works today along with microcontrollers getting ever more powerful... who knows.
Re: Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
#730Serious question… Who’s going to want to run a vibe coded runtime in production? I don’t see how this is a good look for Bun?