4 ms·
> Sure, we can do those things in C, but they are easier and faster to do in Rust ...I don't know what to say to this except "no?". I'd have to question what
by 1propionyl 2y ago
> Sure, we can do those things in C, but they are easier and faster to do in Rust
...I don't know what to say to this except "no?".
I'd have to question what priors someone making that claim is bringing and where they got them from.
> The only language that comes close, AFAICT, is python.
With well over a decade in Python experience and having regularly defended it against many claims of unsuitability for many tasks, I have to call BS on this and say that no, that is not even remotely correct. Of all the possible use cases where Python is an easily dismissed but very defensible choice this is NOT one of them.
> easier and faster to do in Rust, and safer, largely because of Rust's enums (algebraic data types, not as simplistic as C's)
Python enums are largely equivalent to C enums, except you can use string constants as values. Otherwise there's little ergonomic difference.
> and traits
Python Protocols (less anything that came before) aren't even remotely comparable to Rust traits. And neither affords any major advantage to red team style development.
And while memory safety is great for mission critical pieces of a larger system, and language ergonomics are essential for readable and maintainable code, I don't know what either of these possibly has to do with writing exploits.
> shellcode, a web server, and a phishing page in
Python would at least be a better choice than Rust for all of these, but so would have been Perl 20 years ago.
- PhilipRoman 2y agoI wonder, what is it that causes the hackernews users' inability to comprehend sarcasm?
- 1propionyl 2y agoWell, it not being sarcasm at all might be a start, in this particular case.
- PhilipRoman 2y agooh my god I just looked at the other replies and it's real I'm not sure what to say
- PeterWhittaker 2y agoApologies, my reference to python was unclear: I was referring to the python module system and the strength and depth of community contributions, not to the syntax and semantics of the language. In both cases, the communities do so much good work that often someone else has at least a partial solution to problème-du-jour, so it can be relatively easy to get at least a prototype or PoC, and learn from it, and sometimes one gets a complete solution to at least part of the problem.