3 ms·
Why not just run C inside of Python?
by hk1337 19d ago
Why not just run C inside of Python?
- saghm 19d agoFor the same reasons someone might prefer Rust to C in general; safety, ergonomics, etc. If you want to write C in Python, nothing is stopping you.
- the__alchemist 19d agoYou can do that too. I generally prefer rust as it's a nice lang to work with.
- m00dy 19d agoyeah, Rust is eating C/C++...
- pjmlp 19d agoWhile using a compiler framework written in C++, yeah.
- zbentley 18d agoI'm with you on the broader sentiment that Rust isn't making nearly as many inroads many people think. But this example is silly. Do we say "FORTRAN is eating R" because R uses BLAS/LAPACK/whatever via gfortran? Nah. A zillion languages use LLVM.
- wolvesechoes 18d agoBut this is not a good analogy. Rust is being talked about explicitly as "better C++", with a huge and vocal group of online people going around and saying that the world will end if we don't rewrite everything in Rust, or that no new C++ project should be started today with Rust being available. Very few people, if any, put R against Fortran in this way, so the fact that Fortran libraries weren't rewritten in R doesn't contradict anyone's expectations.
- simonw 19d agoBecause you want to use other existing libraries that are written in Rust.