News for hackers. Stuff that matters.
Re:Async Rust Is A Bad Language by winrid on Friday September 08, 2023 @03:40PM (#37438421)
I'm doing basically the same thing in Java for an MMO and the JDK makes it so easy. Just move objects via concurrent queues from network to model creation to UI threads. It's actually quite boring, and fast!
Re:Async Rust Is A Bad Language by Animats on Friday September 08, 2023 @03:59PM (#37438644)
Is there video or a demo?
Re:Async Rust Is A Bad Language by winrid on Friday September 08, 2023 @04:05PM (#37438725)
I don't have anything recorded from the past few years. Here's an old video:

https://youtu.be/L7XIFC2SawY?si=qN7TNxZi-P05uXVa

It's basically a custom 3D multithreaded OSM renderer, and the assets are a custom binary format. Uses very little network bandwidth.

Hoping to have an update this year that shows the updated graphics. I wrote a UI framework to improve my productivity (live hot reloading of UI components written with HTML with one way data binding. I had to do this because the game is gonna have so many UIs and I got tired of writing them in Java 8 style Java. Soon I can resume work on the game after sidewaysdata.com is doneish (also using the UI library to build the desktop/mobile timing application).

Re:Async Rust Is A Bad Language by Animats on Friday September 08, 2023 @04:22PM (#37438911)
Nice.

The "many UI" problem is large in Rust. Egui needs far too much Rust code per dialog box. Someone was working on a generator, but I haven't looked in on that project in a while.

Re:Async Rust Is A Bad Language by winrid on Friday September 08, 2023 @05:06PM (#37439433)
I actually quite liked egui. It was Rust that felt too slow to write. Also the egui template project with eframe and no app code yet took 15 seconds for an incremental compile. The entire game so far compiles and starts faster than that in Java, so...
Re:Async Rust Is A Bad Language by winrid on Friday September 08, 2023 @04:16PM (#37438838)
You can sign up to be notified if I ever get it done :) here https://tdworldgame.com/
Re:Async Rust Is A Bad Language by ttfkam on Saturday September 09, 2023 @10:03AM (#37445564)
Non-blocking I/O is quite mature on Java, and it shows. Unfortunately Java is still a rabid devourer of memory. Its RAM consumption tends to be the biggest con whenever evaluating the pros of using Java. Sometimes it's worth it. More and more often it's not anymore.
Re:Async Rust Is A Bad Language by winrid on Saturday September 09, 2023 @01:59PM (#37448212)
I think the game takes a few hundred mb to run while zooming out of a city right now.

FastComments pubsub system in Java takes less than 500mb of heap for like 100k subscribers.

But yes, you have to worry about object field count.