10 ms·
V86 – An x86-compatible CPU and hardware emulator
- cornstalks 10y ago> Author > > Fabian Hemmer (http://copy.sh/, copy@copy.sh) That's not Fabrice Bellard[1]... [1]: http://bellard.org/ http://bellard.org/ [edit]: The submission title has now been edited to no longer say this is a project by Fabrice Bellard.
- reacweb 10y agonice trick to make it appear in front page
- ekianjo 10y agoDidn't Fabrice do something very similar something like 3 to 4 years back ?
- masklinn 10y agoAre you thinking about JSLinux? http://bellard.org/jslinux/ http://bellard.org/jslinux/ It does sound similar to the underlying PC emulator (http://bellard.org/jslinux/tech.html http://bellard.org/jslinux/tech.html) and Bellard does indeed list v86 in section "Similar Projects (Several other PC or Linux emulators are now available)" The v86 project's initial release was late 2013 (https://github.com/copy/v86/commit/8180d49f24833fc6cc05a90253a1f57f9045a4f5 https://github.com/copy/v86/commit/8180d49f24833fc6cc05a9025...) about 2 years after Bellard's (http://bellard.org/jslinux/news.html http://bellard.org/jslinux/news.html)
- salamisultan 10y agoFabrice has expressed anti ELF comments before and as an honest Christian I can't support this work in good conscience. We need to uninvite Fabrice from any and all talks, conferences, and other industry events. Someone has got to take a stand for those helpers.
- Hello71 10y ago> by Fabrice Bellard huh?
- breakingcups 10y agoThis is really cool, I'm amazed at how smooth it runs Windows 98 in a browser.
- cmiller1 10y agoI'd personally prefer links to GitHub projects go to their main page rather than the Readme.md since the main page has the Readme.md displayed anyways.
- JosephRedfern 10y agoHow much work would be required to allow network access from one of these emulated machines? Could it be done over websockets (via a proxy)? EDIT: After reading the docs, it seems that this is already implemented (via websockets, too!): https://github.com/copy/v86/blob/master/docs/networking.md https://github.com/copy/v86/blob/master/docs/networking.md
- anawar 10y agoAlso, a few of the live demos have networking enabled.
- JosephRedfern 10y agoBut they're not internet connected, are they? I tried `ping 8.8.8.8` from each of them without any luck.
- rahkiin 10y agoI pinged successfully from the linux 3 machine. You need to run a command first though, it says so two lines above where the shell begins
- JosephRedfern 10y agoOops, I missed those lines! All working now. Thanks.
- randyrand 10y agoSame Origin Policy will prevent most network access from a browser tab. You'd need to run chrome with SOP off.
- benjamincburns 10y agoNot to detract from Copy's work (it's really quite impressive), but if you're really hard up to have a browser running in your browser, have a look at http://www.jor1k.com http://www.jor1k.com
- evantahler 10y agoNo big deal... just running windows98 on my phone...
- DrJokepu 10y agoSlightly off-topic, but back in the day "V86" (or "VM86") used to refer to the 80386 CPU's inbult 8086 hardware virtualization mechanism: https://en.wikipedia.org/wiki/Virtual_8086_mode https://en.wikipedia.org/wiki/Virtual_8086_mode
- userbinator 10y agoOne of the things that AMD broke in x86-64, and after that, both AMD and Intel decided to develop a new virtualisation mechanism completely incompatible both with V86 and each other (VT-x, AMD-V)... I think V86 mode was definitely far less appreciated than it should've been. On the other hand, I couldn't get a working command prompt in the Win98 demo, so it seems V86 does not emulate V86 quite right. ;-)
- nialv7 10y agoOr the realmode x86 emulator in Xorg server.
- Springtime 10y agoInterestingly the popup about copy.sh having control of the cursor was somehow overlaid above my Firefox titlebar, tabs, and addressbar. Didn't know that was possible. GIF: http://i.imgur.com/giCT1nI.gif http://i.imgur.com/giCT1nI.gif
- pierrec 10y agoIt's the pointer lock API: https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Loc... The browser tells you when a page calls requestPointerLock(), and tells you how to exit it, similar to the fullscreen API.
- wazoox 10y agoNot compatible with Firefox... This error in JS console: TypeError: a.table[b] is not a function Works in Chromium though.
- johnhenry 10y agoReally cool, but perhaps the title should indicate that this is an emulator that works in the browser? Perhaps a short description at the top of the readme before the demos?
- kelvin0 10y agoAlso, minimum HD requirements to run this. Otherwise, all my Firefox windows went 'Han Solo' on me ... But I think this is an awesome project, author must have learned quite a bit getting this running!
- johnhenry 10y agoPardon, I am unfamiliar with what it means to go "Han Solo"? Could you elaborate?
- haberman 10y agoFrozen in carbonite? Just a guess.
- simplexion 10y agoFirefox shot first.
- api 10y agoBooting Windows 98 in Firefox on a smart phone is a real tangible reminder of how far things have come in my lifetime.
- jordache 10y agothrough multiple abstraction layers no less!
- orbitingpluto 10y agoCirca 2009, playing 80486-era Master of Orion II on the Nokia N800 using a DOS emulator. 400MHz ARM tablet, actually playable.
- AdrianB1 10y agoIt is an interesting piece of software, but what is the purpose? For someone that wants to emulate a Pentium computer there are many better ways, for having fun there are many better ways, so what is left for this particular one?
- khedoros 10y ago> for having fun there are many better ways There's no accounting for taste. Building something like this sounds a lot more fun to me than most programming projects that I hear other people talk about as "fun". What would you have chosen to do instead?
- frutiger 10y agoWhy must everything have a purpose?
- nocman 10y agoOr what if the purpose is "because it was fun to make", or "it was a great learning experience".
- khedoros 10y agoI've got a lot of side projects like this one. The programming I do at work has a solid purpose. It's relaxing to work on something that isn't strictly necessary, as long as it satisfies my curiosity. I like reading through disassemblies of DOS games and figuring out how things work. It's fun recognizing C programming patterns in the assembly. There's something a little charming about looking up what writing to some VGA control register is supposed to do...and I haven't found anyone else who actually thought any of that sounded like fun. Someday, I'll put together a series of blog posts about it, and maybe I'll have some code that I actually want to show off, but right now I'm just having fun.
- vonmoltke 10y agoI would probably have more side projects if I could get over feeling like every one had to have a "purpose".
- grizzles 10y agoAwesome project. I tested it with a 32 bit version of android-x86 and managed to get a mangled booting screen. It would be so cool if android apps could run in the browser in the future with this tech.
- mankash666 10y agoThe "Why" section in the Readme doesn't quite explain the need for this. Can someone shed light on how and why this is useful Thanks
- kelvin0 10y agoWhen you have to ask "Why", you usually are not part of 'target audience' for this type of thing :) All jokes aside,this is a pretty big achievement for a given programmer to complete and denotes quite a bit of technical chops on many level (hardware, systems, OS, and web dev).
- mankash666 10y agoAh ok - "if you're not the target customer, no need to explain the product to you". Great mantra to live life by! You don't happen to work in marketing, do you?
- jlappi 10y ago>customer You see, that's where you're way off base. Not everything shown here is going to be a 'product'; people often like to learn by doing, and showing what they create.
- khedoros 10y agoWhy is everything a "product"? Why does everything have to be marketed? Why does there have to be a need for something, for it to be built and to be noteworthy? This looks like a cool personal project, built by the author as a learning experience, with a convenient API to manipulate the machine that's being simulated. If that doesn't tell you enough about why it exists, then I don't know what to tell you besides "nothing to see here".
- omegaham 10y agoMost of this kind of stuff is done for intellectual gratification. It's playing; the tools are just more sophisticated, and it takes more brainpower than usual.
- jasonjei 10y agoCrazy. This one also worked on my iPhone with some kinks on the mouse.
- yoavm 10y agoSheep.exe! I missed you!
- rasz_pl 10y agodidnt take long to crash it http://i.imgur.com/X8Qc8TS.png http://i.imgur.com/X8Qc8TS.png
- tluyben2 10y agoAmazed how fast this is on my 2011 laptop...