BorgDrone

joined 1 year ago
[–] [email protected] 4 points 1 day ago

And yet, I’ve never run into RAM problems on iPhones, both as a user and as a developer. On iOS an app can use almost all the RAM if needed, as long as your app is running in the foreground. Android by contrast is much stingier with RAM, especially with Java/Kotlin apps. There are some hard limits on how much RAM you can actually use and it’s a small fractIon of the total amount. The actual limit is set by the manufacturer and differs per device, Android itself only guarantees a minimum of 16MB per app.

The reason is probably because Android is much more lenient with letting stuff run in the background so it needs to limit the per-app memory usage.

Those apps also use more RAM than an equivalent iOS app, simply because they run on a garbage-collected runtime. With a GC there is a trade-off between performance and memory usage. A GC always wastes memory, as memory isn’t freed immediately once no longer in use. It’s only freed when the GC runs. If you run it very often you waste little RAM at the cost of performance (all the CPU cycles used by the GC) if you run it at large intervals you waste a lot of RAM (because you let a lot of ‘garbage’ accumulate before cleaning it up). In general, to achieve similar performance to non-GC’d code you need to tune it so it uses about 4 times as much RAM. The actual overhead depends on how Google tuned the GC in ART combined with the behavior of specific apps.

Note that this only applies to apps running in ART, many system components like the web browser are written in C++ and don’t suffer from this inefficiency. But it does mean Android both uses more RAM than iOS while at the same time giving apps less RAM to actually use.

It basically comes down to different architectural choices made by Google and Apple.

[–] [email protected] 1 points 3 days ago

It's not hard to target the older models, with iOS it's mostly just a few small tweaks.

It depends what you are doing. Targeting the iPhone 7’s GPU can be quite a PITA.

[–] [email protected] 5 points 3 days ago

Upgrade your dinosaur of a phone.

[–] [email protected] 14 points 5 days ago

You’d think he’d run out of red crayon at some point.

[–] [email protected] 3 points 1 week ago (1 children)

Several things that made the SD card annoying to developers.

First: you could not install an APK on the SD card (probably due to DRM reasons). So if you had a larger app and you wanted users to be able to take advantage of the additional storage offered by the SD card you could not do this simply by having a large APK. (Note that this also was true for phones that had no removable SD card but had internal memory that presented itself as ‘external storage’).

On some phones the normal storage was so small that any larger app had to leverage the external storage to be able to even fit (we’re talking 10+ years ago). The way to do this was using so-called ‘expansion files’. These were additional data files, up to 2GB a piece, that could be installed on the external storage. These came with some additional difficulties.

  • They were pure data files, so they could not contain any executable code. They were just big binary blobs, so none of the Android built-in mechanisms for loading assets depending on screen density, screen size and all that stuff worked. You had to do it all by hand.
  • Since they were just binary blobs, you had to do any organization inside the files yourself. For example, they could be large ZIP files but you had to do all the ZIP handling yourself. Compared to normal APKs that are also ZIP files but where you can just load stuff from the APK archive and it’s all handled by the framework.
  • The expansion files were separate from the APK. The Play Store did try to automatically download them if your app had expansion files, but this was not guaranteed. Furthermore, because they live on an SD card they could disappear at any moment. Your app needed additional logic to deal with this, code to re-download the files if they were missing, code to handle errors during the download, UI to show the download progress, etc.

Another problem with SD cards was the huge variety in quality of SD cards. Phones internal storage is reasonably fast, but you never know what kind of cheap-ass yanky SD card the users installed in their phone. This caused all kinds of performance problems in more demanding apps and as a developer you had to deal with the fall-out (bad reviews, support requests, etc.)

[–] [email protected] -5 points 1 week ago (5 children)
  • Losing SD Expansion sucks; they should bring this back. Only reason they stopped this is greed.

Fuck that noise. SD expansion was a terrible idea and I’m glad it’s gone. There are so many problems introduced by removable storage, it was a terrible PITA to deal with as a developer. One of Google’s dumbest ideas in early Android. Good. Fucking. Riddance.

[–] [email protected] 3 points 1 week ago (1 children)

Sure, but if you’re going to use it as a car replacement it doesn’t really make sense to get some cheap piece of shit from AliExpress. The car it would be replacing wasn’t going to a be a cheap Chinese PoS either, right?

[–] [email protected] 2 points 1 week ago

I went from a 50” to a 65” to a 77”, I live in an apartment, maybe 3.5m viewing distance. You go from “damn that’s big” to “I wish I could afford something bigger” in about 2 days.

Fortunately prices keep coming down so if you upgrade every 5-10 years or so you can usually afford the next step up. I currently have what was LG’s top of the line OLED last year (77” G3) and it was about €3k5.

[–] [email protected] 1 points 1 week ago

What is big changed over time. When I was in college I had a 28” CRT that was big for the time. But with higher pixel counts you can get a bigger screen without losing sharpness.

Ideally you replace a 28” CRT (576p) with about a 50” 1080p TV, which would then be replaced with a 100” 2160p TV.

[–] [email protected] 2 points 1 week ago

Sure, his requirements aren’t realistic for his budget.

[–] [email protected] 3 points 1 week ago (2 children)

You can get a 77” for around 1k if you wait for a good deal.

[–] [email protected] 2 points 1 week ago (8 children)

OP stated he wanted a large TV though. I don’t think a 55” TV qualifies as large.

view more: next ›