this post was submitted on 20 May 2024
211 points (95.7% liked)

Technology

58303 readers
15 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 6 months ago (1 children)

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

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

not hw accelerated either

[–] [email protected] 1 points 6 months ago
[–] [email protected] 0 points 6 months ago (1 children)
[–] [email protected] 1 points 6 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 6 months ago* (last edited 6 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.

[–] [email protected] 0 points 6 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 6 months ago* (last edited 6 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