News for hackers. Stuff that matters.
Re:A comparison of Rust's borrow checker to the one in C# by devjab on Thursday October 31, 2024 @06:55AM (#42005512)
I don’t like C# because I don’t like the “magic” which is also what makes it special. In that regard I actually think highly of Go’s more simplistic approach to everything, from explicit error handling to the flat “class hierarchy”. Go isn’t as good as C# for a lot of things and there are no technical reasons for my C# hatred. Well I guess you could argue that having to fight the “magic” when you run into things it can’t handle as technical but for 99% of the things this isn’t an issue.

Python is a horrible language, but it’s also the language I actually get things build in. I do think it’s a little underrated for large web apps since Django is a true work horse, but it takes discipline. C is for performance, embedded and Python/Typescript libraries and Zig is basically just better C because of the interoperability. Typescript is similar to Python for me, I probably wouldn’t use it if it wasn’t adopted everywhere, but I do like working with it.

We’ve done some Rust pocs but it never really got much traction and nobody really likes it. + I don’t think I’ve ever seen a single Rust job in my area of the world. C/C++ places aren’t adopting it, they are choosing Zig. That is if they’re going away from C/C++ at all.

Re:A comparison of Rust's borrow checker to the one in C# by jen20 on Thursday October 31, 2024 @09:21AM (#42006647)
Where are you? Somewhere with more Zig adoption than Rust outside of the OSS terminal ecosystem sounds pretty interesting!
Re:A comparison of Rust's borrow checker to the one in C# by devjab on Thursday October 31, 2024 @10:57AM (#42007578)
A non-Copenhagen part or Denmark, but it’s really not that interesting. Almost no adoption isn’t that much more impressive than no adoption.

I’m fairly confident that PHP, Python, JS/TS, Java and C/C++ will be what people still work on around here when I retire. Go is the only language which has managed to see some real adoption in my two decade career.

Re:A comparison of Rust's borrow checker to the one in C# by lenkite on Thursday October 31, 2024 @10:04AM (#42007039)
Zig looks to be pretty much work in progress at the moment, with lots of stuff broken. Even if the language is saner to learn than Rust, it cannot be considered ready for production.
Re:A comparison of Rust's borrow checker to the one in C# by devjab on Thursday October 31, 2024 @10:56AM (#42007573)
I think it works rather well as a drop-in for C, but it’s not like we’re rewriting, or have stopped working with C.
Re:A comparison of Rust's borrow checker to the one in C# by EraYaN on Friday November 01, 2024 @11:13AM (#42017698)
Quite a few C libraries are using it as their build system. Even in "production-ready" libraries.