Remix.run Logo
ecshafer 3 hours ago

I think Rust is "higher level" than C or Zig in the sense that there are most abstractions than C or Zig. Its not Javascript, but it is possible to program Rust without worrying too much about low level concerns.

flykespice 2 hours ago | parent | next [-]

Which is still a crazy claim considering Rust is often told about having strong bureaucracy around even sharing variables (borrow checker).

namr2000 2 hours ago | parent [-]

The languages trade complexity in different areas. Rust tries to prevent a class of problems that appear in almost all languages (i.e two threads mutating the same piece of data at the same time) via a strict type system and borrow checker. Zig won't do any of that but will force you to think about the allocator that you're using, when you need to free memory, the exact composition of your data structures, etc. Depending on the kind of programmer you are you may find one of these more difficult to work with than the other.

Ygg2 2 hours ago | parent | prev [-]

Except if you need to expose or consume a C API, or you need to use some obscure performance improvement.