They should have gone with JavaScript.
Announcement
Collapse
No announcement yet.
Indian Developers Redesigning Linux Kernel With OOP, C++ Support
Collapse
X
-
let them try!
Speaking as someone who is working C++, with linux drivers...
First, Linus is right.
See: Why should I have written ZeroMQ in C, not C++ (part I)
Second: let them try! Maybe some good will come of it
Comment
-
Originally posted by d4ddi0 View PostSpeaking as someone who is working C++, with linux drivers...
First, Linus is right.
See: Why should I have written ZeroMQ in C, not C++ (part I)
Second: let them try! Maybe some good will come of it
Comment
-
Originally posted by log0 View PostThat ZeroMQ post is just silly. C++ is a (loose) superset of C. If some of the additional abstractions offered by the language don't do the job for you, don't use them.
Comment
-
Originally posted by DataPath View PostC doesn't have vtables. vtables are the implementation permitting virtual method resolution on classes that inherit from others (or are inherited from).
A C-driver is a number of structs containing function pointers, and pointers to inherited parent structs of function pointers.
struct my_driver_class {
struct parent_driver_class* parent;
void (*my_first_virtual_method)(int, int);
void (*my_second_virtual_method)(int, int);
}
ugly ugly shit that would be cleaner, faster and safer with C++.
Comment
-
Originally posted by d4ddi0 View PostSpeaking as someone who is working C++, with linux drivers...
First, Linus is right.
See: Why should I have written ZeroMQ in C, not C++ (part I)
Second: let them try! Maybe some good will come of it
Comment
-
Originally posted by DataPath View PostC doesn't have vtables. vtables are the implementation permitting virtual method resolution on classes that inherit from others (or are inherited from).
Originally posted by DataPath View PostSpeak for yourself. My phone runs mostly native code (Android's ART), which, on the benchmarks I've seen, is between 25% and 400% faster than Dalvik and probably about 40% faster on average.
Comment
Comment