• 8 Posts
  • 50 Comments
Joined 5 years ago
cake
Cake day: March 23rd, 2020

help-circle










  • As an ex-Andrpid dev, all this optimization is what killed the creativity. Every feature you currently have is hyperoptimized (even with dedicated battery optimizations turned off for the most popular apps), and as a result nothing you can’t easily change is changeable anymore.

    Want a widget that self updates every couple minutes by connecting to the internet? Can’t have that, even if the user explicitly accepts it. Want to customize behavior of things in the settings? Nope. Want to hook into the phone memory and do crazy hacks? Not even with root. Want to keep running some checks to determine when to send a notification? Can’t do that either, non-push notifications are all scheduled in advance.






  • Back when I was a wee bit Java noob, I was trying to write a RuneScape bot to play Soul Wars. I had a basic recursive pathfinding algo for figuring out how to walk around the map, but it blew out of memory very quickly (each tile has 4 options, do that recursively, etc). So I added caching. Anyways, I never cleared the caching. So after 20 minutes of running the script, you had like 2GB of allocated RAM calculating the best path from any 2 tiles in the minigame.

    Great times. No amount of language safety features would have saved me from that stupidity.