3,934 karma · joined February 18, 2014
int[5] a = [1,2,3,4,5];
writeln(a.length); // 5In the meantime, chasing C++ programmers introduced problems. Template heavy code means that IDEs can't follow it well and there's problems with compilation time. C++ programmers never were keen on GC so D tried to introduce GC-free semantics for the language which aren't complete.
I don't think C++ programmers in general are worth chasing. If they stuck with C++ for such a long time, it means they are used to it and accept C++ with all its flaws. It's also my impression that Rust is attracting more JS programmers than C++.
Don't plan to go to the office ever. But it's not that I dislike offices, I just dislike the commute, which for me could easily be 1-1.5h one way.
It doesn't have to. The idea is that you'll develop the game as a desktop target, with all goodness such as live editing, and then just export the game to WebGL as a final step.
The model would crash the game (and world editor, that's why we have to spawn it during runtime) when displayed, but it wouldn't get displayed when under fog of war, so you'd put it in a place that is impossible to be seen by a player under normal circumstances. But if someone uses a fog of war cheat or a maphack, it'd crash for them.
Of course it won't prevent you from more advanced hacks which e.g. modify the client and display an overlay of the enemy units rather than just revealing the fog of war.
there's this for Warcraft 1 development
And of course they implement lots of policies restricting movement, taxing and limiting airplanes... except for private jets which are always exempt from those policies.
This article contains a basic implementation of such idea in Vulkan - https://vkguide.dev/docs/gpudriven/gpu_driven_engines/
In many games you have cars or guns which are obvious lookalikes of real life cars and weapons but have their names changed to avoid copyright infringements.
Look at GTA. They can pretend it's taking place in Los Santos, Las Venturas and San Fierro, but we know what real life locations they are meant to represent. We know what that VINEWOOD letters on the hills are meant to represent, we know what "Area 69" military base is meant to represent.
There are other aspects where D gets hit from both sides because it never picks a side, instead it tries to cater to both sides, never going full into any of them. I guess there is some benefit in a language that's general and doesn't force you into specific paradigms, but it also increases the surface area (maintenance area) of the language and adds complexity for developers when every step of the way you have to consider the alternatives.
"Adam Sandler is like, in love with some girl, but then it turns out that the girl is actually a Golden Retriever. Or something.""