Python cryptography, Rust, and Gentoo
Python cryptography, Rust, and Gentoo
Posted Feb 11, 2021 12:29 UTC (Thu) by moltonel (subscriber, #45207)In reply to: Python cryptography, Rust, and Gentoo by jrtc27
Parent article: Python cryptography, Rust, and Gentoo
Looking at the GCC/LLVM/MSVC example, implementations are able to compete on C/C++ language features, build/runtime performance, supported targets, analyzers, etc. The story is similar with Javascript engines, for example. That's both a frontend and backend win.
But looking at something like Python, none of the alternate implementations compete on language features, just aspects like performance (I put stackless in the performance category rather than feature) or target. Language-wise, they all lag behind CPython. That's a backend win but a frontend loss.
A rust gcc frontend will always lag behind rustc, like mrustc currently does. Keeping compatibility with gccrs will be a (hopefully small) burden for rust developers. Is the frontend/backend tradeoff that Python made a good bet for Rust too ? Turns out that rustc has an advantage over cpython: it already supports multiple backends (llvm and cranelift). It will hopefully support a gcc backend "soon". So rust could get its backend win while avoiding a frontend loss.
