4 ms·
In the examples given, Dart with its optional type system (and with type-checking that only triggers warnings) would actually fall in the liberal camp. Yo
by bad_user 14y ago
In the examples given, Dart with its optional type system (and with type-checking that only triggers warnings) would actually fall in the liberal camp.
You can bet that the Mars Curiosity rover isn't
using a garbage collected dynamic language
It's using 2.5 million lines of C. C is not a strongly typed language. C can't really be classified as dynamic or static. C is just low-level assembly with some structure attached.
I don't think that Tim Sweeney or John Carmack
are prematurely optimizing ...
These people's jobs are building engines, not games. If you want to build a game, especially if you don't have their resources and knowledge, you're far better off by starting with friendlier tools, such as PyGame.
It's much cheaper to validate your idea that way and in the process you might end up with a hit like Angry Birds, which runs in the browser just fine.
- cromwellian 14y ago1. Dart is less liberal than JS. For example, it is early bound. This fact alone allows the IDEs to do a much better job with less complexity. As I mentioned, Carmack and Sweeney make engines, the artist interface is UnrealScript, or Lua, etc. But that's besides the point: performance matters. Carmack isn't trying to build yet another Box2D casual game (the Iphone Angry Birds uses a C implementation of Box2D, and Lua for game logic) For someone like John Carmack, they are trying to push the state of the art, and starting off implementing say, idTech 7 in Python would yield unrealistic data if you're trying to see how feasible a given new rendering technique works on the large scale. C is a typed language, there's no getting around it. It is in fact, a manifestly typed language, the types aren't optional. The fact that you can freely cast your way out of any situation doesn't really make it a dynamic language, anymore than Java reflection or bytecode rewriting makes Java a dynamic language. The basic fact remains, the Mars rover is a highly performance critical piece of software with hard real time requirements, and it's simply not going to be written in a language that doesn't allow precise control over numeric types and memory allocation behavior. It's really those guarantees that many people associate with strongly typed systems programming languages, not the compile time checking. Game programmers are very liberal, they want to escape straight jackets, and get deterministic and low level control over everything, often breaking the rules of the system. And in this regard, dynamic languages often taken away some freedom -- the freedom to control memory, stack, and cache behavior. They are conservative in a way.
- ajanuary 14y ago"C is a typed language, there's no getting around it. It is in fact, a manifestly typed language, the types aren't optional. The fact that you can freely cast your way out of any situation doesn't really make it a dynamic language, anymore than Java reflection or bytecode rewriting makes Java a dynamic language." C is statically and weakly typed language. That doesn't make it dynamic in the same sense as python or ruby, but it does make it a heck of a lot less safe, a heck of a lot more flexible, and thus a lot more liberal.
- anthonyb 14y ago> I don't think that Tim Sweeney or John Carmack are prematurely optimizing ... Well, this is where the rant misses the mark, I think. Whether some programming thing is Liberal or Conservative really depends on the context, how much is at stake and where you're currently pushing the envelope. The code for the Mars Rover has to be ridiculously safe and conservative, since it cost billions, is deployed in a harsh environment and if it crashes you've lost the lot. If you're hacking and validating some startup idea, then something that's bloated and poorly tested is fine, since it's likely to be wrong at first, and speed of development is more important than safety. Both of these are safe choices, and they're the choices that you'd make, but they're at opposite ends of the spectrum... but you're the same developer. He has 9 points for each side, but my take is that they're all true.
- derleth 14y ago> C is just low-level assembly with some structure attached. To make it clearer: By the standards of the article, C is quite liberal indeed. C++ is significantly more conservative.