Stephane-D / SGDK

SGDK - A free and open development kit for the Sega Mega Drive
https://www.patreon.com/SGDK
MIT License
1.75k stars 187 forks source link

SGDK tools #242

Closed vschwaberow closed 2 years ago

vschwaberow commented 2 years ago

Just a question: Isn't it giving a benefit for performance and memory management if the additional SGDK tools, esp. rescomp, are rewritten in a modern dialect of C++ or even in Rust? What do you think?

Stephane-D commented 2 years ago

Rescomp was historically wrote in pure C and to be honest it was a pain to maintain / make it evolve because of that. I know using Java isn't really fun as you require to install Java JVM to make SDK companion tools to work but it offers 2 big advantages (at least for me):

And finally Java performance by itself is definitely not that bad, it comes really close to C++ / Rust when properly used. But again for me it's just because Java is my first programming language and it would take me much much more time to develop these tools using C++ for instance.

vschwaberow commented 2 years ago

I understand that. I would not criticize Java by its performance, but by its memory usage. Thanks for your statement, Stephane.

Stephane-D commented 2 years ago

It's true that memory usage is not optimal by any way but just for tooling i think it's not a too big deal. rescomp, lz4w or apj packers should not be very hungry about memory usage (and if they are, it's probably a bug on my side).