Originally posted by akira128
View Post
Announcement
Collapse
No announcement yet.
Rust For The Linux Kernel Sent Out For Review A Fourth Time
Collapse
X
-
- Likes 1
-
Originally posted by Vistaus View Post
Age is never a definition of maturity. If it was, then we wouldn't have 40-year olds acting like 16-year olds, for example. Hell, even in software land, that would mean that we should be using KDE 1 instead of KDE 5, as KDE 1 is more mature in terms of age.
Maturity refers to things like being well-understood, having a formal language specification...etc
ie
I mean, developers want a language and associated libraries to be well-documented, api stable, and bug free.
And that obviously takes time to get to that point.
So in short: stability and standardization --which again, are traits that have absolutely nothing to do with overall functionality.
Also, I simply said that time helps on the maturity scale (as in it doesn't hurt). I never said it was the be-all end-all.
There's obviously a million other factors involved.
And why does everyone on the g*d damn internet take everything to the extreme?!
Oh...he said that "time helps on the maturity scale"....oh...that must mean that he thinks "time == mature == better".
I bet you'd be great at this game called "jumping to conclusions" .... you definitely have the mind for it ; )
I mean c'mon man, understanding context and nuance is key. Unfortunately, not everyone has the ability to process information like that...Last edited by akira128; 13 February 2022, 06:55 PM.
- Likes 1
Comment
-
Originally posted by Volta View Post
I bet it's not C fault, but some developer. It's quite hard language, but very powerful one.
But, on planet Earth, things are very different. Programmers are just humans. Their brains have very limited powers. We get tired. We lose concentration. And we make mistakes.
And if the programming model isn't there to help you, disaster is around the corner. It is that simple.
The radical innovation proposed by Rust is the implementation of a new programming model, a restricted model that squeezes the state dimension of a software and make it tractable by an automatic system. To understand this concept, thing about AES cryptography. Do you know why it is secure? Because the space of possible solutions ( keys ) is hugeeeee. This means the problem is intractable. There is no computer capable of brute forcing it in a reasonable time.
But what happens if you make a part of the key fixed? Maybe you force the highest 192 bit to be all zeros? The dimension of the problem decreases dramatically. Our computer can manipulate it and extract a solution in a relative short time.
Rust makes the same thing to the programming problem. The restrictions imposed by the ownership rules, make it possible for the compiler to track the lifecycle of a program object from the start to the end. This is why Rust's compiler can catch a lot of bugs at compile time.
Also Rust imposes on the programmer I code of conduct, by which no undefined behavior is tolerated. Think about strings in Rust. They are just vecs, so all the typical bound checks, ownership rules, etc... apply. But the string class adds another rule, that the byte sequences inside its buffer must be valid Unicode code points. This is not something imposed by Rust's programming model, but it is imposed by the code of conduct. A programming construct must identify the shortcomings and undefined elements of its domain and remove them.
So it isn't the language the only component being sanitized. It is the ecosystem. Build small modules, with restrictions in place if necessary and controls to shoot down every possible undefined behavior or other type of uncertainty.
- Likes 9
Comment
-
Originally posted by pabloski View PostYes obviously. If we programmers were omniscient God, we would program with a hex editor.
Obligatory xkcd: https://xkcd.com/378/
Comment
-
Originally posted by Volta View Post
Can you show us how successful the Rust is? I'm not against it, but I'm trying to figure out on what basis some people formulate their claims.
I just think someone claiming that Rust is a high level language and seemingly thinking that it relies on not being able to manage memory is hilarious to laugh at.Last edited by smitty3268; 13 February 2022, 04:11 PM.
- Likes 3
Comment
-
Originally posted by mmstick View Post
Weird quote pick for System76. We've made better pitches for Rust in the past, and that was just a description of a small project.
This would be more appropriate: https://www.rust-lang.org/production/users (138 companies listed)
But it's only a small fraction of companies using Rust, because your company has to willingly and voluntarily request to be added to the Rust website. Apple, Google, Microsoft, IBM, and virtually all the fortune 500 won't bother.
Comment
-
I have written some device drivers in C, and I do not think Rust will help me a lot implementing, but yes, on the side of memory and thread safety.. yeah. It happens that you just oversee the obvious buffer overflow or race. It happens, no matter how experienced you are. It should not, but it does.
Time spent for me was hardly on the issues with C as a language but with unpredictable hardware and bad documentation, where it just does stuff it's not supposed to do. Rust will not change that.
I'd think on using Rust too, but for me Rust in the past years was waiting for features and fixes in stable. And my guess is this patches will have the same issue (I didn't even screen them, so it's just a guess).
When there is a version of Rust they deem fit for the task.. sure, I'd consider it. There are better and more knowledgeable people to decide where it makes sense and where not than me, and they know where their safety issues primarily come from. I don't have the full picture, only the perspective of somebody having developed device drivers, for me it would make sense. Not more work, and kills the issue of me and colleagues making stupid mistakes.
And for haters of Redox, I like what they're doing. They are not close to anywhere as of the time writing of becoming competitive, but it could one day in certain markets. Linux has a long history, Redox is young. For me it's a nice proof of concept. If it will have any mainstream real life application in industry or private use is to be seen. But with Linux around it will certainly be hard, just by the manpower and industry focus today behind the Linux kernel. But Linus himself said he's waiting for the next big thing to replace Linux. It may not be Redox, but something will come up some day. I may not live to see it though.Last edited by STiAT; 13 February 2022, 08:40 PM.
- Likes 1
Comment
-
Originally posted by CommunityMember View Post
Actually, the most successful OSs (and their predecessors) were written in System 360/370/ESA/Z assembly language and (in some cases) PL/X. z/OS, z/VM, z/TPF, z/VSE are the current variants. While you may never have heard of those OS's, they do run a significant part of the underlying infrastructure and would be considered advanced and successful.
- Likes 4
Comment
-
Originally posted by betty567 View Post
OS kernels are a low level endeavor. C is an extremely mature and successful low level language.
- Likes 4
Comment
-
Originally posted by jacob View Post
You are fighting a losing battle my friend. Those are people who think that before the C language and Unix there was Nothingness(tm), and that those two are also forever the last word in programming language and OS design, respectively. Anything that exists or has existed outside of them shall not be named, and any attempt to evolve beyond them is strictly Verboten.
For those not knowing, BS2000 was released 1975, and even has a current release as of 2021.Last edited by STiAT; 13 February 2022, 09:15 PM.
Comment
Comment