4 ms·
The question about C++ vs Rust boils down, to me, when the game developers finally decide to switch. Game developers are not wedded to languages, if something
by bsder 8y ago
The question about C++ vs Rust boils down, to me, when the game developers finally decide to switch. Game developers are not wedded to languages, if something is 25% more productive they WILL use it. If game developers flip, Rust is going to displace C++.
Embedded, unfortunately, is not a good canary. I still program all of my devices with C and not C++. C++ simply brings nothing to the table for the end user of an embedded device (<1M flash; <256K RAM). Development productivity on those platforms is gated by way more factors than choice of programming language.
- overgard 8y agoWell, it seems to me that a lot of developers that don’t really have a great in house engine aren’t super interested in starting one from scratch anymore unless they’re super constrained by what the current offerings are (UE4 or Unity or bitsquid or some open source alternatives). Almost all of those are going to box you into c++ with “scripting” coming from c#/lua/python/ or more c++. It seems hard to see how Rust makes a dent there significantly.
- pjmlp 8y ago> Game developers are not wedded to languages, if something is 25% more productive they WILL use it. If game developers flip, Rust is going to displace C++. Actually game developers tend to only switch when forced to do so via the SDKs of the platforms they have to target for their business. It was so during all the transitions that already took place. Assembly -> C/Pascal/AMOS, C/Pascal/AMOS -> C/C++, C/C++ -> C++/C#/Blueprints/Swift/Objective-C/Java So there is already an ongoing slow movement regarding D, C#, Rust and eventually Jai, but there needs to be a catalyst from a few well known names in the industry for it to take place, like all those before.
- SlowRobotAhead 8y agoEmbedded. That’s when I’ll beleive Rust has made it as Rust is a direct competitor to ubiquitous C in this area. When Rust approaches and gets an IDE like Segger/Rowley, KEIL, IAR, etc then I’ll beleive it’s happening. But currently supporting a few old chips and the cargo package system having some ambiguous entries for other chips tells me it’s not close yet.
- dleslie 8y agoGame development isn't what it was ten years ago; better tools have basically reshaped how games are made. C# is a serious contender for most-used language in game development, because the gains in productivity thanks to related tools easily make the performance impact worthwhile. Besides, hot points can always be rewritten in something faster. Or rather, many game developers already switched to C#. Most every major engine has C# bindings to some degree.
- steveklabnik 8y agoThe latest news out of Unity is really interesting in this regard; they switched from C++ to a restricted subset of C# for their hot loops, in my understanding.
- pjmlp 8y agoIndeed, it is called HPC# and from what I understood during the interview with Miguel at Unite, Unity developers also contributed to the design of low level programming features from C# 7.x, and the ongoing ones for C# 8.0. There are a few well known former developers from Insomniac Games working on the project.
- mwkaufma 8y agoYes, it's much like asm.js -- the code works as plain C# but can also be fed through their "burst compiler" to produce optimized native binaries: https://unity3d.com/learn/tutorials/topics/scripting/using-burst-compiler https://unity3d.com/learn/tutorials/topics/scripting/using-b...
- steveklabnik 8y agoWe have some small amount of this happening: Chucklefish’s new game is in rust. EA: SEED has been using it. Some people left SEED and started a new AAA studio (Embark) that’s all Rust. Ready At Dawn has moved all development over and has even been releasing some open source. Their CTO has said some really nice stuff on Twitter, repeatedly. Other rumblings and rumors. We’ll see! Exciting times.