Remix.run Logo
▲ barchar a day ago

Rust encourages a kind of generic programming that can result in generating too much code.

The compilation model is vastly, vastly, vastly better than languages like C++ and C, though, and it does compile much faster than an equivalent C++ build (doesn't count if you download precompiled binaries of your c++ dependencies)

▲cozzyd a day ago | parent [-]

But the lack of ABI stability means that's not a choice anyway, doesn't it?

▲SAI_Peregrinus a day ago | parent [-]

Rust can compile to dynamic libraries. If you don't use the C abi you have to compile anything that loads them with the same Rust compiler version and target triple. So you need to have some way to guarantee the correct compiler is being used, e.g. Nix or Bazel.

▲cozzyd a day ago | parent [-]

And possibly compilation options?