4 ms·
Ownership is a time-wasting idea; an object should be freely able to go anywhere in the program you need it to go without any concerns.
by kazinator 4y ago
Ownership is a time-wasting idea; an object should be freely able to go anywhere in the program you need it to go without any concerns.
- adamnemecek 4y agoWhy do you think Rust has been such a success?
- Snelius 4y agoIt has not a success. Just aggressive ads.
- adamnemecek 4y agoAll the big tech companies are using Rust in one way or another. What other recent language can claim that?
- FpUser 4y agoBig tech companies do use many languages. Sometimes smaller one as well. I deal directly with at least 5 at the moment. C++ is in this set but no Rust so far as I do not have business case for it. But do some reading to be aware.
- adamnemecek 4y agoWhat other recent language is used by all large tech companies.
- FpUser 4y ago>"What other recent language is used by all large tech companies." What on earth constitutes "recent" language and where did you se me mentioning "resent"? Anyways, does C++17 qualify? What about PHP8, ECMAScript of latter editions, newer versions of C#, Java etc. etc. ? If I understand your thinking correct let me help you with your question: what native high performance language with no GC, memory / lifetime management and with the stable release after 2015 is used by all large tech companies. Nice try. Also what FAANGs do with their choice of tech is their own worries. They have needs that will never be encountered by majority of the rest of the world's programming.
- adamnemecek 4y ago> What on earth constitutes "recent" language and where did you se me mentioning "resent"? Anyways, does C++17 qualify? What about PHP8, ECMAScript of latter editions, newer versions of C#, Java etc. etc. ? No, language versions are not languages. > If I understand your thinking correct let me help you with your question: what native high performance language with no GC, memory / lifetime management and with the stable release after 2015 is used by all large tech companies. Nice try. I meant in general, which languages that were created in the last 20 years are used by all big tech companies. > Also what FAANGs do with their choice of tech is their own worries. They have needs that will never be encountered by majority of the rest of the world's programming. I was arguing that Rust is popular since it has quite a bit of adoption, as demonstrated for example by it's usage by big tech. Also, no, there is a dire need for good systems languages.
- notjake123 4y agoWhat aggressive ads?
- daniel-grigg 4y agoYes and no. The aggressive marketing is successfully entrenching it to future generations so whether it’s successful with the current gen of c++ programmers or even GC languages like Java doesn’t really matter imo.
- adamnemecek 4y agoRust is a resounding success and it's only getting started.
- kazinator 4y agoRust has an obvious audience: programmers who have somehow been lulled into accepting an insane language and language features: namely C++ people. You basically just have to readjust their blinders.
- shrimp_emoji 4y agoAaand that's how you end up with data races.
- josephg 4y agoOwnership sure saves a lot of time for the computer when it runs the final binary. For some software (eg browsers, operating systems), time spent making our programs correct and fast is worth the effort.
- kazinator 4y agoOwnership is completely inadequate for operating systems. Good luck with a browser without javascript.
- kstrauser 4y agoIronic that it came from a project in Mozilla, who used it to experiment with a new browser engine.
- josephg 4y agoYeah; I'm pretty sure parts of firefox have already been rewritten in rust. And there's a project at google to start adding rust to chromium too[1]. > Ownership is completely inadequate for operating systems. The linux kernel is adding rust support as a first class language. In time I wouldn't be surprised if large parts of the linux kernel were written in rust. Obviously linux will always have a lot of unsafe code, but unsafe is part of rust too. Its surprising how infrequently you need it. [1] https://security.googleblog.com/2023/01/supporting-use-of-rust-in-chromium.html https://security.googleblog.com/2023/01/supporting-use-of-ru...
- eyelidlessness 4y agoA new conception of software freedom: free from the constraints or considerations of reality. Where it’s not the code that’s unsafe, it’s the thinking about and addressing its safety that’s harmful. Kill your gods but don’t let the compiler ever figure it out!
- kazinator 4y agoCriticize Rust and here comes god talk in 3... 2... 1....
- eyelidlessness 4y agoLol I’m not a Rustacean, I’m amazed I’ve gotten any Rust to even compile some of the times I’ve tried. I was riffing on probably poorly fit sayings, but definitely not as a Rust partisan.
- nobody0 4y ago> Freedom is slavery, and ignorance is strength
- ihatepython 4y agoStrength Through Borrowing Borrowing Through Faith Rust Prevails!
- c3534l 4y agoProblem is, it can't go where you need it to go without any concerns. There are problems doing that whether you ignore them or not. I should be able to plug whatever I want into an electrical socket and not have to worry about whether it'll start a fire, but I can't.
- eyelidlessness 4y agoYou put this better than I did.
- kazinator 4y agoThis is a solved problem. There are situations when the solutions don't work, but they are subject to the 90/10 rule. Or 99/1 or whatever is applicable. There are almost no application domains in which you need to conform to some insane borrowing protocol for the entire software. Your analogy is stupid beyond belief; and terms of the safety of the circuit itself that is behind the outlet, yes I can plug in anything without worrying there will be a fire in the wall. I live in the first world, where we have electrical codes and circuit breakers.
- felurx 4y agoI think there might be a misunderstanding here: The analogy works precisely in that you can't plug in anything dangerous because the electrical codes make it so that dangerous things don't exist, and because circuit breakers protect you from malfunctioning stuff. You can't plug a device that pulls 10kW into a plug and have it work, because the circuit breaker stops you from overloading your circuits. You can't plug in a device that attaches the live to your left hand and the neutral to your right, immediately stopping your heart, because such a device is forbidden by electrical codes, and everyone who makes electrical devices has to follow these.
- kazinator 4y agoAre you saying that memory management under which I can confidently any object anywhere in the program without any puerile borrowing protocols isn't safe? Or, else, what is your point?