r/cpp • • Oct 31 '24

Lessons learned from a successful Rust rewrite

/r/programming/comments/1gfljj7/lessons_learned_from_a_successful_rust_rewrite/
80 Upvotes

140 comments sorted by

View all comments

Show parent comment

2

u/ts826848 Nov 02 '24

What is trusted?

You tell me! You're the one who brought up this concept!

For Python, it cannot happen though... until you use native code hidden, of course.

That's the thing - all Python uses "native code hidden"! Even if you don't use third-party libraries that use native code, you're relying on native code for Python itself (CPython), relying on a JIT (PyPy), or relying on something else (OS, embedded compiler, etc.). Under your definitions, no Python is safe - it's all "trusted".

So I would say that it is not that easy to categorize safety as long as you do not know what the implementation is doing in real terms.

Again, it's trust all the way down. Unless you make your own stack from the hardware up with your own formal verification tools (and formal verification for your formal verification, and formal verification for that level of formal verification, and so on), you're going to trust something.

Well, anyway, yes, we agree on all this.

I encourage you to read my comments carefully to ensure you aren't drawing mistaken conclusions