News for hackers. Stuff that matters.
Re:Ask HN: Do you regret choosing Java? by jokethrowaway on Thursday May 20, 2021 @05:12PM (#27227347)
It was a 2d game, we chose Java because there were tons of library available and because everyone knew Java or could learn it easily.

It's a usable language, albeit unpleasant. Also the primitive type system meant we had the weirdest bugs uncaught in production which took forever to debug.

I recently had the chance to build games again and we picked Typescript (for a 3d game) and Rust (for a 2d game).

Typescript is okish, unfortunately most of the libraries we use have patchy type support which translates to a few errors at runtime - but we didn't have many problems.

Rust has been pretty amazing. We're using early stage software (bevy) but the codebase is a pleasure to work with and once it compiles, things really work. One great advantage is using ECS. I tried to prototype the 3d typescript game with and ECS library but, again, lack of typing support in the library meant a lot of pain.

I've been using Rust for pretty much everything lately (from videogames, to running tensorflow, to writing web servers) and I have to say the advantages of using the language shadow the OSS projects being early stage.

There are no comments on this comment yet.