Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> This is also why they do Windows on Linux emulation.

They don't. They use WINE, which as the name says, Is Not an Emulator. :D

(I'll let my pedantic self out now)



despite the funny backronym, Wine actually IS a WINdows Emulator. Someone apparently told them that it's only called an emulator if it's emulating a CPU architecture, but that's not true.


I thought it was an implementation of the Win32 API as a compatibility layer.

What is it emulating exactly?


DOS interrupts, for starters.


Windows.


Does Windows NT have a Windows 9x API emulator?


Windows NT predates Windows 95 for two years.

And yes it did had emulators for Windows 16, and DOS

https://en.wikipedia.org/wiki/Virtual_DOS_machine

https://en.wikipedia.org/wiki/Windows_on_Windows


If you squint a bit (well, a lot really), Win32S on 3.1 and Windows 95’s Win32 implementation are Windows NT emulators running on top of 16 bit Windows.


Windows NT doesn't emulated Windows, it is Windows. Wine is not Windows and emulates Windows.


It is windows today, but in the beginning the two were incompatible different products.


Wine Is Not (an) Emulator


Yet, it emulates windows and is a windows emulator.


No, it's a Win32 implementation for Unix.


its closer to a translator than an emulator


What do you think an emulator is?


“Emulator” is a term of art in this area which refers to emulation of a hardware (and usually machine instruction) environment. Ironically, “translation” (as in instruction translation), as proposed by a sibling comment, is an even more connoted-with-hardware-emulation term.

WINE is … well, most directly it’s just an implementation of an API (the Windows APIs). In webdev parlance it might be called a “polyfill”. Perhaps a “compatibility shim”?


I think in common usage, people expect an "emulator" to be a more sandboxed translation layer than Wine, for example, provides.

e.g. it's probably a security vuln if loading a Game Boy ROM reads arbitrary paths on your local filesystem determined by the ROM's code, not so much with Wine.

Someone made a cute demonstration that I think usefully encapsulates this a while ago. [1]

[1] - https://gpfault.net/posts/drunk-exe.html


Mostly because the Gameboy doesn't have any IO register to reformat your hard disk. If the emulator interpreted some instruction as reformatting your hard disk, that would be a bug because it's not interpreting it as whatever it actually does on a real Gameboy.


A translater is a more accurate description of WINE. WINE literally translates API calls from the client program to the host OS.


What do you think an emulator is?


For me an emulator works to simulate the hardware which is very different from translating API calls. THe result may appear to be same, but the approach is very different.


Why is hardware the only thing that can be emulated?


an traditional emulator emulates all the hardware of the target machine. WINE does nothing of that.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: