Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
hexc11277yIve worked a lot with java and also hate how little control you have over memory related shit I had written a math lib for a game framework I had been making for Android but on Android you can't force call the GC and it would stutter the game each time it ran which was whenever it wanted so I ended up redoing my math lib passing everything as references to arrays and writing to referenced arrays as the return value just to prevent floats from being allocated in memory so the "stop the world" GC stutter wouldn't be there. Then I got to strings for UI stuff and couldn't do anything about those :/
-
@hexc you can actually control the gc but it takes a lot of effort for minimal gain
-
hexc11277y@BindView hm on Android? I know is used to work but the method the have exposed in the API didn't seem to do fuck all. Regardless though when youre aiming for silky smooth animation, calling the GC at any time is not ideal so I had taken the no allocation aproch but stupid strings if they need to update you can't just recycle there memory :(
Bind learning c++ chapter 3
Fuck whoever says that java is easier than c++. If i populate memory i can just fucking clean it out. I have access to the literal fucking stack my code runs on. I can integrate assembly. I can fucking make my program run in -3 seconds for fucks sake, this is so much easier than java where i have to fuck around with scopes to nudge the gc to start cleaning up and i need a separate engine to access jasm code.
rant