6 ms·
> You just got a tiny taste of what Rust enthusiasts have been doing to every C++ related submission Which is what C++ enthusiasts have done to C enthusiasts a
by tstack 2mo ago
> You just got a tiny taste of what Rust enthusiasts have been doing to every C++ related submission
Which is what C++ enthusiasts have done to C enthusiasts and C enthusiasts have done to assembly enthusiasts.
- bch 2mo agoIf people would just take the time to actually learn and appreciate the Analytical Engine they could bypass _all_ that noise...
- ashton314 2mo agoI’m rather partial to Plankalkül actually
- echelon 2mo ago[flagged]
- rustystump 2mo agoRust will never be the dominant output by a country mile. It will be python and typescript.
- echelon 2mo ago> It will be python and typescript. A waste. This code will be high-defect and slow. All of your LLM outputs should be Rust.
- rustystump 2mo ago> rust? Ya it is the community
- mchaver 2mo ago> I suspect that Rust will start taking over as a dominant LLM output language. I doubt it. I think most people will become more entrenched in their favored ecosystem. > I also suspect that in short order we'll have entirely new languages that are engineered to be ideal languages for LLMs to generate. This is already happening. A couple months ago I came across this language that is engineered for AI and human consumption https://www.moonbitlang.com/ https://www.moonbitlang.com/
- adrian_b 2mo agoRust is one of the safer languages, but saying that it is "the safest language" is just a baseless exaggeration. Decades before Rust and long before the simplified language that was C, there were safe programming languages, where all invalid operations, numeric overflows or out-of-bounds accesses generated exceptions and where use-after-free was impossible, because either garbage collectors or reference counts were used. Rust is much safer than C compiled with its bad default compilation options, but it did not bring much in comparison with other languages. Even in C++, with appropriate rules, restrictions and discipline you can write programs that are guaranteed to be at least as safe as any Rust program, but unfortunately very few use C++ in this way, i.e. by strictly avoiding the features that are obsolete or unsafe.
- vkazanov 2mo agoI am not a huge Rust fan but the language did bring a few practical and useful innovations, while also keeping a focus on practice. And no, C++ just doesn't make the same things easy or clean. And no, "discipline and appropriate rules" were never enough.
- pjmlp 2mo agoThe practical and useful innovations were invented else, Rust made them mainstream.
- vkazanov 2mo agoYes. The biggest innovation of Rust is bringing some of the good ideas from functional programming to low level programming. I'd also say that partially exposing data flow analysis to a proframmer is new. Rust package management is quite good, and also not by any means an invention. I am still not a fan of all the ugly macro programming systems and verbose syntax in the language.
- cmrdporcupine 2mo agoMacros in Rust are really ergonomically terrible. Zig's approach here is way better. The language I really want is somewhere inbetween those two languages.
- jes5199 2mo agoI tried that, but the Rust build process was too painful, and agents seemed to burn a lot of tokens guessing how to get the code to compile. I rewrote my project in Elixir and it’s been going much more smoothly
- graemep 2mo agoElixir is great, and I have recently started using it myself, but its not a substitute for Rust. Try writing device driver in Elixir, or anything CPU intensive.
- freedomben 2mo agoGP said nothing of what they were building. Seems pretty probable it was a web service/application rather than a device driver.
- graemep 2mo agoThat is my point. It might be better for some use cases, but those are very different from the ones Rust is best.
- jes5199 2mo agoI’m building a heavily parallel dataflow system. I thought Rust might be good for concurrency.
- throw1234567891 2mo agoYou mean your LLMs had an easier time with Elixir. Do you actually know either of the two yourself?
- jes5199 2mo agowhat’s the difference
- stackghost 2mo agoWhy are Rust people so insufferable? We get it. You like Rust. It's not a panacea.
- LtWorf 2mo agoYou mean ADA? I'd agree, at least gcc can compile it so it's not limited to the very few architectures that rust supports.
- swiftcoder 2mo ago> not limited to the very few architectures that rust supports Of all the complaints about rust, this strikes me as one of weirdest. How much code do you actually write for architectures outside the Tier 3 support list?
- LtWorf 2mo ago0 because it's not supported. However I did write ADA and C for those.
- swiftcoder 2mo ago> However I did write ADA and C for those. Ok, but recently? I too wrote code for obscure platforms once upon a time, but not in, say, the last 15 years. Now that PCs, game consoles, and mobile devices are basically all either amd64 or ARM, there's just not such a long tail of weird platforms to develop for. (the embedded world I will grant you, still lots of bespoke toolchains running around in that space)
- LtWorf 2mo agoOh it wasn't in my current job but it was less than 15 years ago.