786
So cool, dude! (lemmy.ml)
submitted 1 year ago by coja@lemmy.ml to c/programmerhumor@lemmy.ml
top 23 comments
sorted by: hot top controversial new old
[-] Pechente@feddit.de 61 points 1 year ago

Is there a reason Android studio is so fucking resource hungry? XCode is running way better with a simulator open and the other Jetbrain IDEs are just fine as well and so is any other virtualization. It’s just Android Studio that sucks somehow.

[-] skullgiver@popplesburger.hilciferous.nl 28 points 1 year ago* (last edited 1 year ago)

[This comment has been deleted by an automated system]

[-] pewpew@feddit.it 11 points 1 year ago

It's probably because it uses Java, which isn't known for its speed

[-] fiah@discuss.tchncs.de 11 points 1 year ago

the java VM itself is actually pretty damn fast, sometimes even faster than native code because it can optimize code paths while it's running

applications built with it tho, I'd say hit and miss but honestly we all know it's a miss most of the time

[-] tias@discuss.tchncs.de 2 points 1 year ago* (last edited 1 year ago)

It has been shown to run faster in some benchmarks. This is usually due to hotspot optimizations performed at runtime by the VM, but also sometimes thanks to offloading the (often costly) deallocation of memory from the main thread. Since Java has a GC running in a background thread, the deallocation of memory occurs outside of the measured execution.

However, I remain convinced that while burst execution of a computation can perform on par with a language like C or Rust, the total resource usage of Java code is significantly worse. When taking into account the entire execution including GC and JIT compilation, it will have spent more memory and/or CPU cycles. It's harder to quantify, but the overall performance experienced by the user becomes worse. Fans run more and battery time is lower.

And yeah, I'd say Java libraries are generally more poorly written than e.g. their Rust counterparts, for example not paying attention to the CPU cache (which is hard and sometimes impossible since Java still lacks value classes).

[-] Petrichor@feddit.de 10 points 1 year ago

AFAIK, JetBrains IDEs are also based on Java

[-] boonhet@lemm.ee 7 points 1 year ago

Android Studio is a Jetbrains IDE itself!

[-] karlthemailman@sh.itjust.works 6 points 1 year ago

I think that was his point. He said none of the other jetbrains ides are slow so it can't just be because it's java

[-] boonhet@lemm.ee 3 points 1 year ago

But they are slow. At least when you're doing a lot of things at once on your machine (I run ~20 "microservices" for my local dev environment because it's a goddamn distributed monolith, most of them are JVM). IntelliJ often grinds down to a halt. Other software on my laptop runs fine. Firefox doesn't get slow at all.

[-] MyNameIsRichard@lemmy.ml 6 points 1 year ago

Android Studio itself doesn't seem to be that resource hungry but the emulator on the other hand...

[-] dandroid@dandroid.app 4 points 1 year ago

The emulator runs super well... If your host OS is Linux. If not, yeah, it's useless.

[-] outadoc@beehaw.org 3 points 1 year ago

Xcode is also a pretty bad IDE feature-wise, it's hard to compare the two.

IntelliJ is not so bad resources-wise, but it's pretty RAM-hungry and so is the build process, that doesn't help.

[-] dandroid@dandroid.app 3 points 1 year ago

I have had the exact opposite experience.

[-] pizzaiolo@slrpnk.net 24 points 1 year ago

Mf running a homemade data center

[-] danc4498@lemmy.world 12 points 1 year ago

Bitcoin miner

[-] Annoyed_Crabby 3 points 1 year ago

It happened in Malaysia some times ago, bitcoin miner using stolen electricity

[-] IWantToFuckSpez@kbin.social 10 points 1 year ago

Electricity must be cheap in that country. No way those top units are working properly when they are stuck in the heat from all the units below

[-] Madison420@lemmy.world 9 points 1 year ago

Those units pull in air from the side of the wall and exhausts it straight out. As long as they're placed so wind helps carrying everything away they should be fine.

[-] Coreidan@lemmy.world 4 points 1 year ago

Just add more. Problem fixed

[-] Ddhuud@lemmy.world 4 points 1 year ago

I'm pretty sure that's Photoshop. After the 8th unit it is probably cheaper to run a central AC.

[-] the100rabh@lemmy.ml 9 points 1 year ago

Liar, bloody miners giving a bad name to Android

[-] AI_toothbrush@lemmy.zip 8 points 1 year ago

If i ever want to learn android app development what would you guys recommend. If theres a foss android ide it would be pretty cool.

[-] SkyeStarfall@lemmy.blahaj.zone 9 points 1 year ago

Probably Android Studio, it's officially supported and does a ton of useful things for you.

load more comments
view more: next ›
this post was submitted on 04 Aug 2023
786 points (98.5% liked)

Programmer Humor

32558 readers
466 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS