So it's 2017 and we are being cucked by a fucking double-free vulnerability. C is a cancer that plagues the modern software industry. If you want guaranteed memory exploits and security vulnerabilities in your program with timesink development period then use Assembly, not C.
That's actually nice. Does it support Vim and GCC? Please say yes
Asher Flores
No, it doesn't even have rustc working on it yet.
Isaiah Parker
Hmm, I have to wait then
Connor Butler
the exploit was patched a day after it was discovered nigger
Carson Robinson
You missed the point. This isn't a le linux suckzz!!11 XDD thread
Austin Ramirez
>You shat your pants in public! >Yes, but this isn't a problem since I've changed them eventually.
Chase Foster
>then use Assembly, not C.
C is platform-independent Assembly.
Kevin Thomas
how difficult would it be to write an os in Ada? i mean you could basically just rewrite gnu/linux in Ada right?
Evan White
False equivalence and you know it.
Mason Peterson
If you prefer slow programs why not do java? It doesn't have vulnerabilities of this nature due to the VM. Nobody writes rust for good reason.
Robert Fisher
Rust is pretty fast. By your logic C is slow as well.
Mason Adams
Not really user. I wish it were though. >a day after it was discovered We don't know when it was first discovered actually, it may have been used in attacks in secret. And people may not have updated their systems yet so there's still vulnerable people.
David Martinez
Java is too high-level, C is used mainly for low level things, MCU l, talking to metal etc.
Landon Lopez
>by your logic What logic? I made claims. What your post would imply is that C is the same speed as Rust. Which is simply false if rust is to offer extra protection. For instance here with the double free you couldn't protect against that for free.
Jaxon Nguyen
It's pretty close
Wyatt Hughes
I think that most of the protection is checked while compiling, not in run time
Jack Hill
> For instance here with the double free you couldn't protect against that for free Rust has no runtime checks for double free, it's all checked at compile-time. The only checks I know it does at run-time in release builds is bound-checking, it's highly optimized and you can disable it if you want.
Jose Long
Reminder that 1 Rust compilation = 1 formal verification and Rust programs are guaranteed to be bugfree. Another benefit of Rust is that it helps to smash the patriarchy.
Nolan Butler
>microkernel why
Angel Williams
Hell yeah I love smashing imaginary figures from candyland
Aaron Allen
zcat /proc/config.gz | grep DCCP # CONFIG_IP_DCCP is not set phew
Evan Young
>it was discovered you mean officially or unofficially, you silly excuse of a CIA nigger? kill yourself, now
Jaxson Miller
I doubt they would have caught this at compile time. >benchmarksgame I'll keep saying it. It's not a realistic test of programming languages at all. Especially for many of the less low level languages because they're all attempting to emulate the lower level implementation. That's how you get speed, you program for the hardware you're on. So you find plenty of python examples that aim to call out to precompiled C code as quickly as possible. Is it realistic to do that? Similarly with Rust I'm sure you're using unsafe to get where you are in that chart and you didn't even get all the way there. That's a major problem. Even in this contrived example you don't measure up.
Andrew Lee
>that damage control
Ryan Smith
>I doubt they would have caught this at compile time. I doubt you know what you are talking about
Julian Hall
I should add that there's plenty of places where languages like rust (languages with focus on safety) are appropriate. But in a kernel is probably not the place. Unless it's exclusively for home users
Julian Morales
>someone shouts "nigger" in a crowded theater >OP gets *triggered* >demands that we ban the word "nigger" >later, goes home, checks his email, sees a new CVE bulletin in the mailing list >it's a C double-free vulnerability >OP gets *triggered* >demands that we ban the C programming language
James Taylor
> I doubt they would have caught this at compile time. What do you mean you "doubt"? Why don't you read on how Rust actually works before making such statements? Borrow checker and move-by-default guarantee you never have two owners of the same piece of memory, neither can you access memory in any way after freeing it, thus making double frees impossible in safe Rust.
Josiah Peterson
Who are you quoting?
Jacob Rodriguez
but who are you quoting?
Liam Adams
go back to your garden, /jp/
Anthony Fisher
Who are you talking to?
Christian Bailey
Because microkernels are the future. t. Andrew Tanenbaum ca. 1987
Nathan Parker
Well there's tools like valgrind especially designed for this sort of thing that wouldn't have to my knowledge (which isn't perfect). It's a qualified guess user. Just like op does his own guess that Rust would have solved it. >in safe rust But it's a kernel user. It'd be outrageous to apply the performance penalties of Rust to the entity of the Linux kernel. The fact that there is an unsafe keyword makes it clear that the Rust community understands the limitations.
Mason Ross
>write everything in rust >get rekt anyway >stroke out before fixing anything
Thomas Lee
>Nobody writes rust for good reason. because whatever you wrote won't fucking work in a week or two when they change the ABI again
Xavier Long
And I doubt you can write an OS without unsafe code, so your hole starting point is moot. If you don't model the way you use your pointers correctly within Rust's type system (and no one forces you to do it), you get your double free soon enough.
Cameron Hill
Why is rust being shilled? It's an SJW language
Easton Powell
you cannot use valgrind with a kernel
Ian Foster
> It's a qualified guess user. Well, it's not, since you don't know how Rust works and just assume it works like C. > It'd be outrageous to apply the performance penalties of Rust to the entity of the Linux kernel. Yes, but it's better to have 5% unsafe code than 100% unsafe code. See for example, most of the kernel code is written in safe Rust.
Daniel Sullivan
Why is C being shilled? It's an NSA backdoor language
Sebastian Perry
Any language can be turned into a backdoor. Retard.
Joshua Adams
>C is backdoored >still uses a computer kek
Bentley Rodriguez
> he thinks a language developed by > is free from NSA
Jack Cook
C apologists are NSA shills plain and simple. Rust makes it harder to produce vulnerable programs as it actually implements safety precautions like Bounds checking, dangling pointer prevention, data race prevention, lifetimes etc. This is against the interest of the NSA and so they are shilling C so that people continue to produce exploit prone, unsafe and vulnerable programs.
Ignore the NSA/C shills. Programming in C should be banned and outlawed. Say no to security exploits, say no to the NSA. Your data and your privacy is worth preserving.
Julian Green
Networking was a mistake.
Adrian Garcia
t. SJW
James Phillips
Nice try, CIA. No one wants your weekly NSA backdoors anymore
Ayden Mitchell
>be clueless Rust idiot >have Github filled with Ruby, Python, JS projects and ofc the type-safest FizzBuzz in Rust >hear of vulnerability in age-old C project with a trillion contributers >security expert mode: activated
Logan Roberts
t. CIA Nigger
Hudson Russell
Shy why are you anti-NSA? Do you have something to hide? Are you a terrorist?
Ryder Myers
Who said these?
Blake Fisher
No, I am a programmer who doesn't want vulnerabilities in my programs.
Aaron Sullivan
Who are you quoting?
Landon Cox
>assume it works like C I clearly didn't. There's no way in hell C catches this. I don't know what unsafe rust does though. If it's as worthless as C at catching these vulnerabilities then it's useless. >it's better to have some amount of safe code No. It isn't. Facebook considers 1% performance gain in their backend a massive win. If you're slowing them down this way then they won't use your software. Facebook is an extreme example but really anyone with performance concerns will tell you they prefer a mild increase in performance over the mild security gains of moving from a mature kernel like Linux to your rust copy. As I've said. If you're a home user you can go with the gimped version.
Why don't you rewrite the Linux kernel in rust and see how many people use it before you start making wild speculations about how good or bad it is.
>see And? How many serious customers use redox? How many people moved when they got the news of this amazing change? I'm sure you can find some marketing wank on that somewhere if it's such a great idea. Likely you will find that there's a small group of people with all the resources in the world to throw around that like it on the concept level and have no proof that it was a good idea.
Dylan Myers
t. SJW who wants a compiler to shame you for being a white male.
Nathaniel Nelson
t. CIA Nigger who wants his shitty compiler to allow buggy piece of shit programs to be published
Jackson Morales
>How many serious customers use redox? They don't use Linux either. How did you miss the point so bad?
Jackson Peterson
>they don't use Linux either You have to be joking.
Isaiah Cook
>YOU'RE A FUCKING WHITE MALE Not an argument
Michael Gutierrez
I'm not. Linux was always a joke, and people laugh at the codebase as new vulnerabilities come out every single week
>A >FUCKING >DOUBLE FREE
Michael Gutierrez
Who are you quoting?
Lucas Smith
what do serious customers use then?
Andrew Ross
No one said this ITT
Landon Gonzalez
Windows
Luke Perez
>Windows KEK alright good bait you got me
Thomas Moore
That's what you're saying when you shill rust. Only someone who wishes jamal would fuck his wife use it.
Aiden Martin
Ever had a job?
Samuel Campbell
>No. It isn't. Yes, it is, you're just being contrarian for no reason. Besides, safe rust already has C-tier performance, so int's not like you'll be trading safety for 50% slowdown. Besides, the point of unsafe in Rust isn't performance, the only runtime check Rust has is bound-checking, and you can disable it. The point of unsafe Rust is low-level stuff like hardware and direct memory allocation. > no one uses redox Ofc no one does, it's a hobby OS being written by a single guy. Redox is a proof of concept, not a production-ready OS. Still, it proves the concept well enough.
Jaxon Phillips
No, actually C stands for Cucks. C is a cancerous. A Communist agenda if you ask me.
Nathan Ramirez
>BAN C ...but how?
Isaiah Price
That's why an anti white communist organization is rewriting Firefox in rust, a language they created.
Leo Turner
Ban C programming books Seize C documentation Fire C developers Outlaw C book publications
Kayden Wilson
>zcat /proc/config.gz | grep DCCP gzip: /proc/config.gz: No such file or directory
phew
Blake Nelson
C.ucks getting cucked by bulls. That's to be expected.
Jayden Hughes
That seems a bit authoritarian.
Dylan Baker
By requiring that all new government-funded project be written in a safe language. By banning C language classes in colleges.
Adam Martinez
You mean rust cucks get cucked by Jamal, which is part of the rust language.
John Nguyen
You don't need to. Given how quickly C is dying it'll be forsaken in the next decade. No one really uses C anymore for new projects.
Jace Morris
>tfw Tanenbaum was right and Linus was wrong
Wyatt Hernandez
No I meant C.ucks. C literally stands for Cucks and Communism.
Robert King
This is why we all use Minix 3.
Luis Scott
Have you? >Google uses Linux >Amazon uses Linux >Twitter uses Linux >>no srs company uses linux Spitting out lies isn't recommended desu
Charles Ortiz
>safe language first you would have to make one.
Nathaniel Carter
Most of the world uses Windows anyway :^)
Ryder Butler
This, also it must have a COC so that women/PoC/trans* people feel safe and included.
Michael Hernandez
>Redox I'm sorry to have to tell you this user, but that's not NetBSD.
Hunter Adams
>By requiring that all new government-funded project be written in a safe language. This doesn't fix projects that are not (primarily) government-funded, like Linux or OpenSSL.
>By banning C language classes in colleges. Are there any? The only C classes I ever did were under the electrical engineering faculty for an 8-bit microcontroller. We were never told how to use C for anything with an MMU, yet alone a full PC. It was just C++ and Java.
Aaron Peterson
C can't be when a literal commie cuck organization is writing rust.
>Check your privilege C shitlord Not an argument
Julian Rivera
>Are there any? Yea, very common in EE, probably only language they learn, but then again they don't write linux kernels.
Leo King
Actually, most of the world uses Linux-based OS.
Isaac Baker
gj, you're safe
Levi Walker
Just in time for Google to abandon the Linux kernel in Android, in favor of the Magenta kernel in Fuchsia.