Re:“Warning: Do Not use my mirrors/services until I have rev...
by yafujifide on Sunday December 21, 2014 @09:13PM
(#8781662)
I agree about C and C++, but is there a language that exists today that you think would be better for writing security-conscious code? Should a language be invented that is specifically for writing security-conscious code?
[ Parent
| on HN ]
Re:“Warning: Do Not use my mirrors/services until I have rev...
by adrianN on Monday December 22, 2014 @02:29AM
(#8782345)
Ada is a language that is specifically for writing secure code.
Re:“Warning: Do Not use my mirrors/services until I have rev...
by kedean on Tuesday December 23, 2014 @11:35AM
(#8788792)
Correction, Ada is a language specifically for writing correct code. Correct is only a subset of secure.
Re:“Warning: Do Not use my mirrors/services until I have rev...
by mike_hearn on Monday December 22, 2014 @05:00AM
(#8782591)
Basically all modern languages with strict type systems do better than C or C++ when it comes to security. Anything JVM based can't be buffer overflowed or double-free/use-after-free exploited, for instance.
Now if you go with a weakly typed language like Javascript there are a whole other class of bugs that can bite you:
https://medium.com/@octskyward/type-safety-and-rngs-40e3ec71...
... so don't use those.
Re:“Warning: Do Not use my mirrors/services until I have rev...
by higherpurpose on Sunday December 21, 2014 @09:29PM
(#8781694)
Rust, for the former, Cryptol for the latter (just one caveat: written by the NSA/influenced people).
Re:“Warning: Do Not use my mirrors/services until I have rev...
by yafujifide on Thursday December 25, 2014 @03:35PM
(#8797119)
Hey, thanks a lot for recommending rust. Since your comment, I've investigated it, and it's exactly what I'm looking for!
Re:“Warning: Do Not use my mirrors/services until I have rev...
by imanaccount247 on Sunday December 21, 2014 @11:07PM
(#8781934)
Cryptol was written by Galois not the NSA. It was written for the NSA.
Re:“Warning: Do Not use my mirrors/services until I have rev...
by imanaccount247 on Sunday December 21, 2014 @11:00PM
(#8781920)
C is a great replacement for C. No, I don't mean that as a joke. Using C as a low level language and proving it correct via a higher level language gives you the performance of C without the security problems: http://sel4.systems/