Live data from Hacker News

Run Windows 1.01 in your browser

jsmachines.net

31–40 of 93 posts

Re: Run Windows 1.01 in your browser

#33

I love that windows 1.x had a tiling window manager. I think it's kind of a shame that mode died for so long.

Back in Windows 8. And improved in Windows 8.1. EMACS, of course, never lost it.

I only wish it was a bit more flexible in W8 :(

Re: Run Windows 1.01 in your browser

#34
There is some issue with the mouse. When I click on terminal.exe and try to click on "File", the mouse is coming out of the emulator. You would probably want to create an interface like a VM, where the mouse comes out of the emulator only when you press some combination of keys.

Re: Run Windows 1.01 in your browser

#35
post #29

Every time I see an emulator like this on HN, my mind is blown. Can someone explain to me and any other run-of-the-mill hackers reading this, how an emulator like this is made? I wouldn't even know where to start.

Run-of-the-mill hackers should know this.

You pick a sufficiently low-level abstraction layer and implement it in Javascript. Everything above that layer 'just works'TM.

Re: Run Windows 1.01 in your browser

#36

As there seems to be a lot of interest in emulators in the browser, here's my effort: I ported an emulator for classic Mac and IBM PC to the browser. Mac System 7 Demo: http://jamesfriend.com.au/pce-js/ Windows 3.0 Demo: http://jamesfriend.com.au/pce-js/ibmpc-win/ IBM PC doesn't have mouse support... Yet. For Mac OS it's writing the mouse position directly into memory, but I've yet to add that hack for Windows.

Wow, awesome! For the Mac one with mouse support, you might want to add ".emscripten { cursor: none; }" to your stylesheet so the host cursor doesn't cover up the emulated one.

Re: Run Windows 1.01 in your browser

#37
post #29

Every time I see an emulator like this on HN, my mind is blown. Can someone explain to me and any other run-of-the-mill hackers reading this, how an emulator like this is made? I wouldn't even know where to start.

Run-of-the-mill hackers should know this. You pick a sufficiently low-level abstraction layer and implement it in Javascript. Everything above that layer 'just works'TM.

It's like drawing. http://i.imgur.com/RadSf.jpg

Re: Run Windows 1.01 in your browser

#38

Earlier quoted context omitted.

Run-of-the-mill hackers should know this. You pick a sufficiently low-level abstraction layer and implement it in Javascript. Everything above that layer 'just works'TM.

It's like drawing. http://i.imgur.com/RadSf.jpg

Hahaha, precisely. Or drawing turtles!

Re: Run Windows 1.01 in your browser

#39
post #29

Every time I see an emulator like this on HN, my mind is blown. Can someone explain to me and any other run-of-the-mill hackers reading this, how an emulator like this is made? I wouldn't even know where to start.

Seems like they're usually based on hardware emulators like qemu, bochs or similar which are compiled to javascript using tools like emscripten. IO hardware needs to be emulated in JS, a framebuffer is drawn to a canvas, mouse input events are translated to the native hardware events, I'm sure there's a million details.
Post reply on HN