What language is used to write a game library, Go or Rust?

What language, between Go and Rust, would you use to create a library for games (without bindings)?

Go is a simpler language that relies heavily on garbage collection. Rust is a more complex language that can be safely used without a GC, which is ideal for low-level system programming.

+5
source share
2 answers

I am biased since I spent two years working on Rust, but if you are willing to invest the necessary time to keep up with the rapidly changing language, Rust will be really good for games. It has a really good set of built-in concurrency primitives, so it would be easy to separate the various components, such as the rendering engine, AI, etc., and use multi-core computers. You can also avoid the need for garbage collection, so you don’t have to worry about unpredictable GC pauses. It is designed to fit well with existing C code, and many data types map directly to types C. Rust's approach to polymorphism leads to some really good builds when LLVM runs with it.

, , - . Mozilla Rust , , , .

+14

Rust: - , . , , . .

Go . Go . Go (), Go.

++ Go. Go lib ++.

, Rust Go.

2015 Go 1.4 /- Android Go 1.5 (2015 Summer) iOS.

android.

+1

All Articles