Live data from Hacker News

Rust – What made it “click” for me (Ownership and memory internals)

deavid.wordpress.com

41–50 of 76 posts

Re: Rust – What made it “click” for me (Ownership and memory internals)

#41

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.

Problem 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.

Re: Rust – What made it “click” for me (Ownership and memory internals)

#42
post #21

Earlier quoted context omitted.

All the big tech companies are using Rust in one way or another. What other recent language can claim that?

Big 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.

What other recent language is used by all large tech companies.

Re: Rust – What made it “click” for me (Ownership and memory internals)

#43

Earlier quoted context omitted.

A 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!

Criticize Rust and here comes god talk in 3... 2... 1....

Lol 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.

Re: Rust – What made it “click” for me (Ownership and memory internals)

#44

Personally, I'd recommend learning C to learn about the basics of memory management in higher level languages in general. It is simpler than Rust and is very transparent, making it easier to grok the concepts before moving on to something like the borrow checker, further more, it will actually make the motivations for the borrow checker and what it does to help clear. Same goes for other memory management solutions,…

I started learning some Rust, just begging of this yeae, and I am starting to think learning C might be the shortest path to fully understand the motivation of ownership model.

But at the same time, I don't want to invest so much time into learning a language which I probably am not going to use.

I am probably being disrespectful. I understand a lot of people use C, including Linux kernel devs, but I cannot imagine developing new apps with an old language such as C.

Re: Rust – What made it “click” for me (Ownership and memory internals)

#45
post #41

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.

Problem 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.

You put this better than I did.

Re: Rust – What made it “click” for me (Ownership and memory internals)

#46
post #20
post #9

Earlier quoted context omitted.

> not everybody comes with a CS background. Something doesn't sit quite right with me to describe the "basics of hardware" as being something that comes with a "CS background". I come from a formal CS background, and we spent more time dealing with finite state automatons, programming language theory, and other aspects of abstract computation. Getting down and dirty with data sizes, system components, and bit fiddlin…

I have a funny relationship with this. I also come from a formal CS background too. The old joke is that there are two lies in Computer Science: firstly its not science, and secondly it isn't really about computers. But the reality is, I still can't tell you what Computer Science actually is. Is it: - About understanding how to control computers (which are fast electronic machines) - About inventing programming, from…

- Learning to make software in order to improves the lives of humans

This is not a discipline that I am aware of

- Learning to make software in order to make the lives of humans miserable

This is a discipline, but not quite Computer Science

- Learning to make software so that great engineers become average engineers, and incompetent engineers become managers

This is software engineering

Re: Rust – What made it “click” for me (Ownership and memory internals)

#47
post #44

Personally, I'd recommend learning C to learn about the basics of memory management in higher level languages in general. It is simpler than Rust and is very transparent, making it easier to grok the concepts before moving on to something like the borrow checker, further more, it will actually make the motivations for the borrow checker and what it does to help clear. Same goes for other memory management solutions,…

I started learning some Rust, just begging of this yeae, and I am starting to think learning C might be the shortest path to fully understand the motivation of ownership model. But at the same time, I don't want to invest so much time into learning a language which I probably am not going to use. I am probably being disrespectful. I understand a lot of people use C, including Linux kernel devs, but I cannot imagine d…

Not wanting to invest time makes sense, but I think you'll definitely get return on investment by learning C. It's doesn't end with rust. Learning C's approach to memory will give you a much better understanding of pretty much all object oriented and imperative languages and give you a better understanding about how memory might be used under the hood in higher level languages in general.

It won't take you too long either! Compared to modern languages, C is very small and very simple and likely won't take as long as learning any other popular language in use today. You can learn all of C in the amount of time it takes most people to learn just the basics of a borrow checker. If you only focus on the aspects related to memory (stack, heap, sizing, arrays, pointers) it would likely only take half a day, if that.

Re: Rust – What made it “click” for me (Ownership and memory internals)

#48
post #24

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.

> Freedom is slavery, and ignorance is strength

Strength Through Borrowing

Borrowing Through Faith

Rust Prevails!

Re: Rust – What made it “click” for me (Ownership and memory internals)

#49
post #17

Earlier quoted context omitted.

Why do you think Rust has been such a success?

It has not a success. Just aggressive ads.

Rust is a resounding success and it's only getting started.
Post reply on HN