News for hackers. Stuff that matters.
Re:Don't kill my app by masklinn on Thursday November 23, 2023 @01:23AM (#38389953)
Because it costs resources the developers are unwilling or unable to spend.

They might also be lacking competence. My local bus authority’s application is barely able to keep track of its state while it’s running.

An other common situation is an applications getting in an irrecoverably broken running state. If the application preserves state on shutdown you might not be able to get it out of the broken state.

Re:Don't kill my app by resonious on Thursday November 23, 2023 @08:22AM (#38392458)
I think Android dev is unnecessarily designed in a way that makes saving data require a lot of code. If you know what you're doing, you can mmap a file, put all your working memory in there, and let the OS save it for you. No serialization or parsing necessary and memory access is exactly the same as usual with no overhead. You'd think that using a managed language would make it easier to abstract and support this kind of thing but seems they'd rather require all app devs do manual saving and reloading of their app data.
Re:Don't kill my app by guappa on Thursday November 23, 2023 @09:24AM (#38393066)
How to kill solid storage with one easy trick!

Please don't do this.

Re:Don't kill my app by resonious on Friday November 24, 2023 @05:10AM (#38402314)
How does it kill solid (state?) storage compared to writing JSON or SQLite constantly? Genuine ignorance on my part.