this post was submitted on 20 May 2024
210 points (95.3% liked)

Technology

58012 readers
3121 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


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

While they are at it, can we get Prism for Linux?

[–] possiblylinux127 3 points 3 months ago (2 children)
[–] Blisterexe 2 points 3 months ago (2 children)
[–] [email protected] 1 points 3 months ago

not hw accelerated either

[–] possiblylinux127 1 points 3 months ago
[–] [email protected] 0 points 3 months ago (1 children)
[–] possiblylinux127 1 points 3 months ago (1 children)

I'm not sure that means anything. For it to be hardware accelerated you would need a amd64 cpu

[–] [email protected] 0 points 3 months ago* (last edited 3 months ago) (1 children)

both apple m cpus and snapdragon have hardware magic to make translation viable when paired with usermode tools like Rozetta or Prism
otherwise it's painfully slow, as demonstrated by both box64 and fex.

[–] possiblylinux127 0 points 3 months ago (1 children)

Do you have a source for that? It seems like that would defeat the purpose of using ARM.

[–] [email protected] 1 points 3 months ago* (last edited 3 months ago)

well apple cpus have a hardware flag which slightly changes side effects of some existing arm instructions AND completely changes the memory model to one that imitates Intel x86 for the current thread. (TSO)

with this flag enabled, the code can be almost fully recompiled ahead-of-time (from x86_64 to arm64) with minimal overhead (no need to remap memory addresses etc), with no reason to resort to e.g. jit recompilation on the fly (which is exactly what box64 does all the time)

i assume snapdragon and microsoft are doing a similar thing (it definitely involves some hw magic too, maybe not exactly the same as in apple) since it's seemingly the only way to achieve parity with apple in terms of performance