Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
If you want to go for security, why not go with rust?
C++ doesn't seem really better to me -
@sSam references and poinhors both point to somewhere on the ram. the difference is, that pointers are stored on the ram while references are stored on the stack. This allows for injection attacks
-
@gnulinuxer4fun yea no that's just wrong. References and ptrs optimize to exact same assembly stored all the same ways. References MAY be nice to use since you don't have null but they have their own problems too and can't be just swapped out in all cases
Also Linux has a struct called class so have fun with renaming that. Also c and c++ have subtly different type alaising rules so have fun finding my the newly created undefined behavior that will cause your port to "randomly" crash
A friend of mine and I decided we wanted to fork linux and port it to C++.
Sounds crazy yea, but there are many benefits:
1) More secure due to ability to use references
2) More sustainable due to the extensive standard lib
Not only would we port linux to C++, we would improve it as far as possible.
So now for the part of the rant where I misuse devRant as an advertizement platform. to those interested in helping, here is the poll where you can get included into the mailing list:
https://docs.google.com/forms/d/...
rant
c++linux