Rust is the improved version of C just like C++. There's no reason to hate on Rust nor for Rustoceans to hate on their ancestor. Eventually we will have a working popular OS much safer and faster and more perfect written completely in Rust. There's no reason to resist the tide. Changing and evolution to adapt the hardware is what C programmers should do instead of being skeptical. Even better, all C programmers should learn to work with Rust and we can develop an evolved version of C better.
All you need, is pick up this book and start coding. Rust is exemtrenly easy if you have known C. In fact, it only takes a week to get familiar with Rust. Let's improve together for the future of evolved C, Rust.
Tip Your Landlord Shirt $21.68 |
There aren't any jobs
Why would you want superflouos bound checks in your syscall handlers? They should add an option to disable bound checking. But, theyre gay and never will. Also, why would you want all the million linked lists in the kernel to be "borrow-checked" every access with Rc<RefCell<T>>??
And of course, cant wait to, well, ... WAIT to compile the kernel.
There are unchecked getters for arrays too, no problem. Borrow checking happens in compile time so it has no runtime cost.
RefCell is borrow-checked at runtime.
>A mutable memory location with dynamically checked borrow rules
>no problem
Yeah ok Rakesh, let me just .get_checked literally everywhere on every array and slice.
Not to mention all the trillion unsafe {
} blocks that will be everywhere.
Cannot be overloaded with Index, because you cannot impl Index for slices. The slice is arguably one of the most important types in rust.
They couldnt finish it not because browsers are complex, which they are, but because rust is very slow to write in for noobs that dont know how to code. Because if youre a dumb noob that doesnt know how to code, like
your rust code simply wont compile.
You are supposed to dynamically check the anyway. Rust just makes it imperative. Why are you getting so defensive?
some one did a studied and rust found out is slower performance by 1.7x percent
I don't even care about the performance, I hate it's ugly syntax and lousy design patterns.
The zealots are constantly raving about the borrow checker, like it's going to solve every problem ever.
Coding in Object Pascal is more enjoyable.
Imagine if you worked in a company where code reviewer was a midwit and he couldn't understand your code, he'd reject it and there's nothing you could do about it. That's the rust's borrow checker, you CANNOT prove to it in any way that you are right, without writing 500+ lines of cnile tier code, removing any benefit it had before you did this.
>make language for morons
>it attracts morons and nobody else
>morons still fail to get shit done
and that's why C will always be king. it filters nuggets with surgical precision and leaves only ones worthy of writing high performance software
Why do cniles always pretend that they write high performance software by default?
>highly specific structures and algorithms for the use case
>no """zero cost"""" abstractions
>full control, and the compilers are so good they help you out even further
>UB (yes, it's a good thing if you're not moronic)
and of course
>we actually finish products
just like your transition, rust is a meme at best and a mental health crisis at worst.
I'm not OP, I'm just anon who every morning gets reminded that cniles are moronic due to waking up and thinking "I will update my gentoo install today", halfway in the resolution, I remember that Python is slower than your obese mother walking and I go wash myself, brush my teeth, eat breakfast and hope that by then I will be able to inspect use flags, read the news items, and hopefully accept new updates without anything breaking.
You should atleast finish the Servo browser along with a support for extensions before you shill this language as a "language killer".
Servo got dissolved into mainline firefox, Servo rendering backend, Stylo and WebRender are being used in Firefox already. They just operate that way, same thing happened with Quantum.
Not an mozilla employee btw so don't quote me on this.
so is your axewound, and in fact after you have a nice day, your male bone structure will stay for thousands of years underground, until someone digs it up and finds out that a man was buried there
God I hope Rust continues to be isolated to a small vocal minority. I would kill myself if I had to code it professionally.
>Rust is the improved version of C just like C++
>Rust is the improved version of C
>the improved version of C
>>>>just like C++
ruh roh
easy there bud, let me .unwrap() your post before you throw another melty
probably epic post but I'm just not going to read it sorry anon, just too schizo for me
the power of oestrogen
>wakes up thinking about straight, white men
checks out, have you tried grindr?
cool deflection homosexual, cniles never care about performance until you threaten them
>Python will have a JEET compiling now
>it depends on LLVM
>C++ code
lol
we do, we just don't have to rave about it, since it's almost inherent to the language
>bbbbbut PYTHON LLVM CPP GOTCHA CNILE
what?
Python is getting faster? Nice. Another reason not to use Rust.
sadly it also is getting more bloated
I think you guys are mistaken. I hate trannies. You clearly didnt read my post, I even mentioned the axe wound guy. Now what, what is your excuse? That you're fricking moronic nocoders?
>troony hates what it's become
yes, we know
Mojo is better though. Better python syntax, integrates fully with c++ and python, compiles using all the llvm optimizations... why would I ever touch ugly ass rust when I get all the speed of C and memory safety with python syntax?
>LLVM
into the trash just like Python's default JEET, I am using programming language implemented in C, I will not install C++ compiler for it.
Cniles have dependended on C++ programmers for years to fix their performance issues and still larp that they are relevant.
Rust trannies are the same, considering they also depend on LLVM. It seems like everyone who's better than C++ depends on LLVM for some reason?
I have 2 words for you: Cranelift
It will be the day of mass an hero-ing on IQfy once cranelift releases
wrong cranelift is slow so not a compiler
Zig is better
>another wrapper for C++ compiler
wouldn't a cnile who loves full control implement a JEET in C code, more optimal than shitty LLVM code written by C++ morons? Really makes me think that C programmers just aren't as good as they claim.
wtf does python have to do with anything, moron? do you just like to think about big snakes in your ass all day or what?
CPython's implementation language is in the name, and it's insufferably slow, Cniles, our response?
heil zigler
Estrogen troony meltdown. Go look in the mirror to remind yourself how ugly and manly you are.
Get your daily dose of estrogen please
(You)
No thanks, I will stick to language where I have to go out of my way to get the range checks where they matter.
Good for you. I’ll stick to Rust and use iterators wherever possible.
C++ has iterators and they're better than your inane garbage.
I accept your concession homosexual. Absolutely noone likes C, and noone likes insecure homosexuals like you who are as bad if not worse than troony who made this thread.
I said literally nothing about C you estrogen monster
I accept your concession, cnile, and thanks but no, feel free to drink it with your troony friend, because you're the same.
t. C++ programmer
>still projecting
whatever lets you sleep at night, lol
I’m not interested in C++. I’ll check it out maybe when the ranges and pattern matching has a decent synergy like in Rust but looks like it’s not happening anytime soon.
already happened, you're just a nocoder who doesn't know anything about C++
>Already happened
Can I see the equivalent pattern matching code in C++?
fn is_palindrome(chars: &[char]) -> bool {
match chars {
| [first, between @ .., last] => first == last && is_palindrome(between),
| _ => true,
}
}
>nocoder
How would a nocoder know about iterators and pattern matching?
I'll get back to you when I can understand what that means.
I don't know Rust but that's pretty straightforward to me.
yeah I'm sure it's more straightforward than the equivalent that any JeetCope grinder would write.
> | _ =>
Bro, that is not valid rust. The guard goes AFTER the pattern.
@ ..
| >
|
It's so ugly
The code isn't even valid rust code. Since you didn't notice this you clearly don't know the semantics either. You do not have a right to say it is ugly, fricking midwit.
I don't know shit about rust, correct. But that just LOOKS ugly as frick. It is unaesthetic, unappealing. There is nothing nice about it. It is slop.
The author of the code here. The code is not ugly, you are simply too unfamiliar with pattern matching. Same code in Scala or F# would look pretty identical.
>same code in other dead languages
now it makes sense
And also the code is valid. The other anon got knowledge-checked unfortunately. But I don't utilise these situations as a tool to impugn his competence, wish the other two anons who are hostile to me for no reason would understood.
Scala is pretty big in data science, anon. Rust is emerging as the successor of C/++.
C++ is adopting pattern matching in a few years, you should familiarise yourself with this idiom.
>data science
lol, lmao, we already had the only solution we needed, they were called databases
I admit it, I didn't know that was *valid*, but it is certainly superfluous. One can remove the |. Superfluous like all those fricking dynamic borrow checks you wont admit are there.
>C++ is adopting pattern matching in a few years, you should familiarise yourself with this idiom.
it won't matter since it'll be implemented in the most moronic and useless way possible
Kek, I hope not, but std::variant makes me worried. Still, I can't blame them, standard libraries are a moronic concept, it's ironic that rustrannies chose to have one.
You clearly haven't used the Rust stl. I can assure you it is LEAPS AND BOUNDS different from the C++ stl.
Yeah lol, literally
I know that Rust HashMap uses SipHash which tells me everything I need to know about quality of its standard library
Siphash is alright for medium sized key. You can of course override the default hashing yourself by implementing the Hash trait.
Rust is peak programming. I love it.
SipHash is shit for any sized key, it's fricking slow and thrashes icache, it doesn't belong in a hash table
>muh security
all a threatre, mitigate spam of your API instead of accepting it all and trying to larp that your hash function can handle it
An even bigger brain than
You know I miss the old days.
Correct. SipHash is bad. That's one bad thing among 999 good things. Great catch, midwit!
He didn't learn Rust. If you do not fully know both C++ and Rust you cannot compare the two. Yet bjarne usually wont even mention the name Rust. He just blissfully ignores its existence. He knows C++ has been replaced. Times have changed
Someone with a brain. Take notes all you morons in this thread.
yes because Rust is not relevant, he spent his life trying to improve C instead of trying to replace it, he won, trannies will never achieve anything
You can drop in another hashing algorithm very easily. Bit of a pain not to have it by default but meh. Typically I use https://lib.rs/crates/ahash
>You can of course override the default hashing yourself by implementing the Hash trait.
This is not how you replace the hashing algorithm, the most you can do by implementing Hash is feed the same algorithm different input.
>new language from scratch
>environment from scratch
>suffers same problems C catches flack for
grim
What? Does C have this problem?
NTA but some have gripes with the way you package C libraries. And it is not even part of the "ecosystem" (there is none). Basically a do whatever the frick you want attitude.
Rust is a fricking corporation, yet can't get a centralized package managing system right. Hell, even pypi is better than this shit (which is also not Organisational dicksucking, fwiw).
I like cargo/crates.io a lot more than pip/PyPI and it's very different from C no matter how you look at it, IDGI
>Rust is a fricking corporation
What do you mean?
>What do you mean?
look at the fricking rust """foundation""" you moron, it's a fricking front for huge companies. it is inorganic slop created by corporations that all have huge public scandals in their past.
Also python is getting pattern matching. Java already has it in java 21 and C# has a gimped version of it.
>take a look at this screenshot of the page modified by Inspect Element
ok
If you know bounds check will be superfluous, simply use the unchecked getter. I don’t understand why you are behaving so aggressive and condescending towards me. This isn’t how you talk irl, so why here?
I hate to break it to you Rakesh, in that which your refer to as "IRL", your so-called PhD thesis aint shit.
Again, I hate trannies, read the fricking post dumb nocoder
>weeeh jeet weeeeeeh nocoder
I do not have a PhD thesis, why are you hallucinating? And why are you being so defensive? What did I say to trigger you like this?
My bad, MSc, soon to be PhD. Defensive or not, you can interpret it either way. However, you haven't brought anything of substance to the discussion. You do not say anything new. You probably don't know as much as I do about low-level programming. Go ahead, give me a fricking example moron.
I didn't do masters either. I started working full time after my bachelors.
>However, you haven't brought anything of substance to the discussion
You weren't giving me any thing substantiative to discuss about. So far you have complained about bounds checking overhead and I only said you can use unchecked getters in scenarios like this.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=006b390a35a50e1fa4f308f98bcac2a2
Why the frick are you here? Go to work???
>if i say jeet every other post, they wont notice i smell and my skin is brown
>itt: THERES A CNILE FLYING OVER MY HOUSE
Rust is here to stay because enough C-level corpobozos got duped by the marketing pitch from pozzilla evangelist teams into adopting it into their core.
>Superior rust book incoming
I don't understand the hate Rust gets, and with this board it only comes down to anons shouting slurs without any technical discussion.
I hate being shilled at and will insult shills regardless of language. Only maid lisp gets an exception from me for posting cute pictures
I just hate tech troons
C++ iterators have interface similar to pointers so even cniles can use them without getting butthurt about C++ superiority, why can't Rustsisters do this?
Pass, I respectfully decline to participate in modern computing. I will probably stop using a computer alltogether soon.
c-can i b-borrow this?
huehue let me c-check
*BEEEEEEEEEP* (brain EEG)
all this seethe because of based bjarne and based old white men
Bjarne is senile now. People change. Understand this. Bjarne then isn't the same person he is now. Just because he has the same name, doesn't mean he's the same and will always be. What's so difficult about this concept to you?
How is this relevant? Does he even work on C++ anymore? He already did his job, C++ won.
ALL OF YOU DELUSIONAL BOOMER BACKWARD TECHNICAL C PROGRAMMERS DON'T EVEN UNDERSTAND WHST IT MEANS TO PROGRESS AND EVOLVE TO BECOME A BETTER. YOU ALL WILL BE LEFT IN THE DUST TOMORROW ONCE RUST OS BECOME A THING AND IT WILL SOON BE A THING. C HAS TOO MANY DRAWBACKS AND IT'S ALREADY 50 YEARS OLD. STOP CLINGING ONTO A DYING BACKWARDS LANGUAGE AND ACCEPT THE CHANGE. I DON'T UNDERSTAND WHY YOU BOOMERS KEEP REFUSING TO BECOME BETTER PORGRAMMERS. I GUESS ALL OLD MEN WERE THE SAME. YOU GUYS ARE AS IGNORANT AS THE PEOPLE THAT REFUSED TO USE THE COMPUTER AND INSTEAD KEPT USING AN OUTDATED FAX MACHINE TO GET AROUND.
AND NO. THIS IS NOT A SEETH. I JUST WANT TO SAVE YOU. WHY DO YOU KEEP REFUSING TO BECOME BETTER?
Imagine when the AIs start writing operating system code in Rust. But wait.. if an AI is that good, wouldn't it be better to write the code of the OS in C? C compiles way faster and doesn't have bound checks that cannot be disabled. I think the AI would pick C instead of Rust. Someone(something) that intelligent wouldn't need handholding. It would thrive from the expressibility of raw C.
and yet "AI" cannot write C without a segfault even if you threaten its immediate deletion if it fails to do it
AI would unironically do good with C because C errors are human errors. Bots are good at repetitive tasks without fail. Rust is designed for humans.
>AND NO. THIS IS NOT A SEETH
hormones gone wild
-ACK!
>you vill use our troony language with our CoC shitlord
kek pyton already has bled experts (e.g. the decimal module) because of special snowflake homosexuals
I don't write C/++ or Rust because 99% of my programming tasks can afford a GC.
But for that 1% task I will prefer Rust because it is modern and has good guardrails.
All the people fighting each other are not the representative of real world, none of them are working on the NT kernel or Linux. So I don't care what they have to say. If Rust is good in Linus' book, it's good for me too.
absolutely 0 code was written in Rust for Linux, and Windows programmers use C++
I program for both Windows AND Linux.
I use both C++ AND Rust
People like you are so fricking stupid. You think it has to be either one or the other.
Rust didn't exist back then, obviously
Hence the word *when*
I obviously meant the kernels, I and yeah I know, I don't expect you to be allowed to frick up kernel code with your garbage.
win32kbase_rs.sys
>I don't expect
lol, love to see it
don't make people look things up, link them to propaganda and hope that they won't do their own research
NtQuerySystemInformation with 0xB says otherwise.
https://www.phoronix.com/news/VP9-Linux-Kernel-Rust-V4L2-RFC
https://www.bleepingcomputer.com/news/microsoft/new-windows-11-build-ships-with-more-rust-based-kernel-features/
>VP9 codec
lel, I use gentoo, and I know for a fact that this is irrelevant and not a thing on my system
>windows
good for them, pajeets cannot write C nor C++ anyway
Cant wait to have programmers like you replaced by AI. Soon, (You) will not be representative of the real world. You'll be a useless man.
sadly, the hype about AI is nothingburger and even he has very low chance of actually being replaced
Nothing he said. You know vacuum is not 100% vacuum. There's always the possibility. Wishful thinking goes a long way anon.
but these models are fundamentally broken, even most moronic brownoids are smarter than LLM's, and they cost less money to feed than LLM's in electricity bills...
Fortunately all AI is not LLM. There are image processing AIs too. Wonder what comes next. Perhaps one that excels at logical reasoning. Combined...
photoshop did what AI does not back in 80's using dumb algorithms
Clearly not. CPUs and GPUs are several magnitudes faster nowadays. Even if such an algorithm existed then, the hardware did not.
there's an old demo from 1986 where with photoshop, you could remove world trade center from new york city skyline, AI cannot imitate such art
Yes. Nevermind. AI is a hoax. It will never improve. The evolution curve is an S curve and it has plateaued. 2 more weeks.
Hell yeah brother just 2 more weeks, only kernel programming will exist by 2025!
>rust is here to stay
is that a promise, a threat or a delusion?
>dead tomorrow, gone today
dead tomorrow, gone today
let us know when r*st is stable and used for anything more than personal toy projects
>rust threads usually die in a mater of a few hours, usually sub 20 replies
>this one is at 120 and going strong on page 1 before i make this post
yesterday IQfy really was broken...
Tonikaku, rust is ngmi, C is actually growing faster than your shitlang LMAO
>captcha: tryg4
something rustjeets will never have to do while programming, C is the drivers language.
Agreed. I'm learning it now. I honestly think this is like the stock market. People shit all over something until it explodes, then they suddenly want in aka fomo. It's being used more and more often though. It's inevitable that the market for it will grow. By the time I'm good with it, there will be more opportunities.
>fomo
word of the day, huh
>jumps on it as if "the stock will go up"
the projection is clear as day
>by the time I'm good at it, there will be opportunities
so you will never be good at it (just like anyone else, because the language is inherently bad)
I think the language has potential but the ecosystem just isnt mature enough yet.
129/8/1
all me btw
I'm considering learning it but there's also plenty of software written in C++ that I may want to help maintain in the future. Both of them seem like big investments, I'm not sure where to start.
C++ has proven itself against the test of time and will always be around due to legacy software but there is always a chance at this point someone comes up with a better version of Rust and everyone migrates over, that said it has alot of QoL over C++ as a modern language.
C++: https://www.learncpp.com/
Rust: https://doc.rust-lang.org/book/
>will always be around due to legacy software
Um no, C++ is evolving too.
Rustrrannies judge C++ by C++98 (lol) but we live in 2024 and C++23 is pretty damn nice
Rust. Is. Unreadable. (Period)