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] 0 points 6 months ago (2 children)

Emulation is almost always slower and eats more battery.

FTFY. There have been some cases where emulation actually outperforms native execution, though these might be, "the exceptions that prove the rule." For example, in the early days of World of Warcraft, it actually ran better on WINE on Linux than natively on Windows.

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

For example, in the early days of World of Warcraft, it actually ran better on WINE on Linux than natively on Windows.

WINE literally stands for "WINE Is Not an Emulator".

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

To be fair this is also a translation layer and not an emulator.

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

To be fair this is also a translation layer and not an emulator.

Prism is an x86 emulator for ARM. If you think that Prism is "a translation layer and not an emulator", I refer you to the very first word of the second to last paragraph of the submitted article.

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

That's assuming the writer knows what they're talking about. Last line from the second paragraph:

Windows 11 has similar translation capabilities, and with the Windows 11 24H2 update, that app translation technology is getting a name: Prism.

And first line from the third paragraph.

Microsoft says that Prism isn’t just a new name for the same old translation technology.

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

That’s assuming the writer knows what they’re talking about.

Certainly more than you because Prism emulates an x86 CPU and WINE doesn't, therefore the WINE comparison is still wrong.

Edit: Please prove the writer wrong.

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

This article seems to conflate "emulation" and "translation layer". I don't think there is anything that confirms "Prism emulates an x86 CPU", only that it allows for running x86 code on ARM. This does not inherently require emulation as demonstrated by Rosetta 2, which is a translation layer.

[–] [email protected] 4 points 6 months ago* (last edited 6 months ago) (1 children)

only that it allows for running x86 code on ARM. This does not inherently require emulation as demonstrated by Rosetta 2, which is a translation layer.

WINE doesn't "translate" one CPU architecture to another CPU architecture either, so the WINE comparison is still wrong, no mater if CPU translation is called emulation by you or not. WINE is a wrapper for API calls within the same CPU architecture. That's it.

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

WINE doesn’t “translate” one CPU architecture to another CPU architecture

Wrong again.

[–] [email protected] 4 points 6 months ago* (last edited 6 months ago)

"Windows apps are mostly compiled for x86 and they won't run on ARM with bare Wine"

What you linked is an effort to combine WINE with the QEMU x86 emulator which is an emulator because it emulates CPU calls. Hint that it's an emulator is in the name "QEMU" and an actual quote from the wiki page you linked and clearly didn't care to read: "Running Windows/x86 Applications: See Emulation"

EDIT: Let me also quote from the readme file of the Hangover project:

Hangover uses various emulators as DLLs (pick one that suits your needs, e.g. works for you) to only emulate the application you want to run instead of emulating a complete Wine installation.