Now that Linus is out of the picture how long until c++ is accepted into the kernel?
Now that Linus is out of the picture how long until c++ is accepted into the kernel?
Other urls found in this thread:
I'd rather have Rust in the kernel that that piece of shit++ any day.
C++ > Rust desu
Come back when C++ finally adds support for trait based generics in the standard.
unnecessary. Trait based generics are useless unless you have proper parametric polymorphism with first class polymorphic functions.
What's the practical difference between "does not implement trait" and "does not support operation foo()"? It's just wank, and it won't improve your code.
There's already a Rust-based kernel and it sucks.
>Linus is out of the picture
Have I missed something? Give a rundown on the news
>What's the practical difference between "does not implement trait" and "does not support operation foo()"?
Readable error messages.
>Trait based generics are useless unless you have proper parametric polymorphism with first class polymorphic functions.
Which C++ lacks. C++ is ad hoc polymorphism.
it doesn't suck, it's pretty good for a few years of development
Linus is not out of the picture you goddamn moron and C++ will function just as well as C will if you're writing it as you are C
Why, you can't play your epic Call of Battlefield V edition at 120 frames per second? Go back to /v/.
>Linus is out of the picture
>Have I missed something? Give a rundown on the news
He can't, because it didn't happen.
/thread
Linus has essentially stepped down until he goes through tolerance camp. Now is the time to infiltrate the kernel since he was a huge blockade to progress.
The error message tells you what operation isn't supported by the data types. Like I said, what's the difference between the compiler saying "Foo isn't a Bar because it doesn't implement barMethod()" and "foo.barMethod() isn't valid"?
C++ and Rust both lack first class polymorphic functions. Without those there's no point having traits.
Ha, it's hilarious how angry Rustlets get when people tell truth about their language.
At least you can have fun running some Rust programs on your OS written in C... OH WAIT, THERE AREN'T ANY!
This was supposed to be about c++. Fuck you rustfags.
As long as you stick to reasonable subset of C++ with strong coding standard, I dont see a problem.
c++ is the mutt of the programming world
c is europe
>The error message tells you what operation isn't supported by the data types.
Exactly. On the other hand a C++ compiler would go look for every single data types under the sun and tell them each of them are incompatible. Which is infinitely more verbose than trait constraints based error messages.
Redox is self hosted and it supports rustc.
>IT WAS HER TURN REEEEEE
lol
>I don't understand C++ templates
>templates means trait constraints
Who are you talking to?
>u anger bru
/v/ calls this "debate"
Have you ever actually written a program in Rust or do you just blindly defend it at every chance you get online?
rust is comfy desu
rust is boring
It::ead!(||{}))
you are a brainlet if you can't read rust
stick to your bloated c++
You can read brainfuck if you try, that doesn't mean it isn't cognitive load. Simple languages like C cause you to focus on the problem, not the code.
I've actually used and contributed to a few rust projects, of which some of them are quite useful to many people.
I do write C++ at work though.
I love it when retards think optional features in a standard library is bloat.
that's literally what bloated means
>Having access to libraries is bloat.
No wonder Rustlets think everything else is bloat, they're the only ones without them.
Disregard him. C++ is not bloated. But if you can't read Rust that's because of the unpopular lifetime annotations that Rust has.
Java/JS people can't read read a code with random void* and C (and legacy C++) fags feel smug about it.
Java/JS/C/C++ people can't read a code with random 'a and Rust fags feel smug about it too.
why do people keep shitting on c++ is literaly perfect.
>ohoh bbuts it complicated
well sucks for you, brainlet.
I program in Java and can read code with void* in it.
>Java/JS people can't read read a code with random void* and C (and legacy C++) fags feel smug about it.
retro-java abused Object everywhere, it's the same shit
lifetimes aren't hard to understand either, they're just bad and ugly
do lifetimes have a runtime costs?
In and of themselves, no. Lifetimes are checked by the compiler then have no runtime representation.
In practice, kinda. The restrictive semantics of references and borrowing mean you'll be using immutable clones, reference counts and runtime checks where you otherwise wouldn't just to make code that will compile.
>C++
>in something as low level as kernel
what you doing fampai
C++, D (betterC only) and Rust are perfectly suitable for kernels
Is D's betterC mature enough though?
zero chance
based
it's anything but boring, retard
Delete this
so accurate it hurts
I just translate void* to var in my head
t. javascript man
Ghost OS is written mostly in C++ from scratch: github.com
Many useful features like templates, namespaces and classes don't require any runtime support, hence they can be used in a kernel no problem.
Enjoy your dependencies, Retard. Oh no, you can't program without them, do you?
truth be told, there aren't many languages where you can do without any dependencies
[spoiler]a notable example is javascript[/spoiler]
Linus had a hard life
at what point in my life will I ever understand what you guys are talking about?
After you learn multiple programming languages from multiple paradigms.
I have an interview for a software dev position in two hours.Im feeling unprepared.
Linus is being blackmailed into "correct" behavior, various groups have been trying for a while, and he's said as much before.
after you get the fuck off Jow Forums and go actually learn something
Can you even fizzbuzz?
oh god.. just wait a few months and we will see a node.js version of Electron
What the fuck does trait based generics mean
Bounded generics. Think C++20's Concepts or Java's class GenericClass construct.
it's a bunch of code meant to make programming safer by abstracting everything out into 2-line files that are included on compile, which will make your software run better I promise for real this time.