this post was submitted on 12 Aug 2023
75 points (91.2% liked)

Apple

17241 readers
1 users here now

Welcome

to the largest Apple community on Lemmy. This is the place where we talk about everything Apple, from iOS to the exciting upcoming Apple Vision Pro. Feel free to join the discussion!

Rules:
  1. No NSFW Content
  2. No Hate Speech or Personal Attacks
  3. No Ads / Spamming
    Self promotion is only allowed in the pinned monthly thread

Lemmy Code of Conduct

Communities of Interest:

Apple Hardware
Apple TV
Apple Watch
iPad
iPhone
Mac
Vintage Apple

Apple Software
iOS
iPadOS
macOS
tvOS
watchOS
Shortcuts
Xcode

Community banner courtesy of u/Antsomnia.

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 year ago (1 children)

ART is the equivalent of a JVM. It doesn't implement all the apis, the compiled bytecode differs, it's optimized for mobile but that doesn't make it not a JVM.

That's why the NDK exists: so you can build and run C++ code natively.

[–] [email protected] -5 points 1 year ago (1 children)

Python VM is Java by your logic. If you don't understand IT, you shouldn't really talk on IT topics.

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

I can use the exact same apache jars on my Android project and my Java server.

That's not Python. That's very clearly java code.

The implementation of the contract is different but that's not the same as not being Java.

[–] [email protected] 1 points 1 year ago (1 children)

You can't use the same JARs in runtime.

[–] [email protected] 0 points 1 year ago (1 children)

You absolutely can pull the same jars into server and android projects.

Sometimes you need a different one for Android to avoid NoClassDefFoundErrors but you're totally able to grab a jar and stick it directly into both sides.

[–] [email protected] 0 points 1 year ago

The hell are you even talking about? You can't even load a JAR file on Android. My god...