News for hackers. Stuff that matters.
Re:Nim – Python-like statically-typed compiled language by formerly_proven on Sunday August 16, 2020 @01:49PM (#24179681)
C++ has also been the lingua franca of media and game development since the mid-to-late 90s.
Re:Nim – Python-like statically-typed compiled language by CoolGuySteve on Sunday August 16, 2020 @01:51PM (#24179703)
SGI's STL implementation and later EA STL were game changers for C++ imo, they really kicked off "modern C++" as we knew it.
Re:Nim – Python-like statically-typed compiled language by jlokier on Sunday August 16, 2020 @07:46PM (#24182384)
C++ was used in game development long before the STL was widely used or even reliably supported by compilers.

The object-oriented and high performance features of C++ make it a good match for games. Seems to me this makes Rust a fairly natural choice for high-performance games in future.

Re:Nim – Python-like statically-typed compiled language by zelly on Sunday August 16, 2020 @11:23PM (#24183555)
Rust by design tries to discourage you from using object-oriented patterns. Not saying you can't write games with it, but it'd look more similar to C than C++.
Re:Nim – Python-like statically-typed compiled language by jlokier on Monday August 17, 2020 @02:24PM (#24190158)
Interesting, I hadn't thought of Rust as discouraging object orientation particularly. But then, I think of the Linux kernel as object-oriented C in places.

If you look at Unity, although the games are written in C#, there is a heavy emphasis on mixins for giving functionality to game objects, rather than inheritance or interfaces.

Between mixins and the ECS pattern, I think Rust's trait-oriented style looks aligned with that trend.