Live data from Hacker News

V86 – An x86-compatible CPU and hardware emulator

github.com

41–50 of 58 posts

Re: V86 – An x86-compatible CPU and hardware emulator

#41
post #9

Earlier quoted context omitted.

Also, a few of the live demos have networking enabled.

But they're not internet connected, are they? I tried `ping 8.8.8.8` from each of them without any luck.

Same Origin Policy will prevent most network access from a browser tab.

You'd need to run chrome with SOP off.

Re: V86 – An x86-compatible CPU and hardware emulator

#42
post #29

Earlier quoted context omitted.

Also, 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!

Pardon, I am unfamiliar with what it means to go "Han Solo"? Could you elaborate?

Frozen in carbonite? Just a guess.

Re: V86 – An x86-compatible CPU and hardware emulator

#44

Earlier quoted context omitted.

Why must everything have a purpose?

I'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…

I would probably have more side projects if I could get over feeling like every one had to have a "purpose".

Re: V86 – An x86-compatible CPU and hardware emulator

#45

How 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

> How much work would be required ...

Can't speak to his NIC emulation (unless he borrowed it from jor1k), but otherwise it'd take roughly a flight from PDX to CHS for the NIC, plus another 2-3 hours for a dead simple virtual switch, plus a few days of watching the switch crash in various odd ways while HN, Reddit, and Slashdot beat it up.

Edit: If anyone is keen to experiment around with v86, jor1k, or a similar project and you want plug-n-play network support, I maintain the websocket proxy used by jor1k (and probably used by v86 in some demo or another). As far as I'm concerned, please no commercial use (I've made it stupid easy to host your own for that), but otherwise as long as you're not doing stupid things with it that will cause me to lose my hosting account, go nuts! To use it just start sending/reading ethernet frames to/from wss://relay.widgetry.org/.

Also if you do use it, please flick me a message (e-mail is in my profile) to let me know what you're doing with it and how you're getting on.

Re: V86 – An x86-compatible CPU and hardware emulator

#46
post #9

Earlier quoted context omitted.

Also, a few of the live demos have networking enabled.

But they're not internet connected, are they? I tried `ping 8.8.8.8` from each of them without any luck.

Not 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

Re: V86 – An x86-compatible CPU and hardware emulator

#47
post #9

Earlier quoted context omitted.

Also, a few of the live demos have networking enabled.

But they're not internet connected, are they? I tried `ping 8.8.8.8` from each of them without any luck.

I pinged google.com from the linux3 machine after enabling networking and it worked fine.

Re: V86 – An x86-compatible CPU and hardware emulator

#48
post #29

Earlier quoted context omitted.

Also, 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!

Pardon, I am unfamiliar with what it means to go "Han Solo"? Could you elaborate?

Firefox shot first.

Re: V86 – An x86-compatible CPU and hardware emulator

#49

How 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

> How much work would be required ... Can't speak to his NIC emulation (unless he borrowed it from jor1k), but otherwise it'd take roughly a flight from PDX to CHS for the NIC, plus another 2-3 hours for a dead simple virtual switch, plus a few days of watching the switch crash in various odd ways while HN, Reddit, and Slashdot beat it up. Edit: If anyone is keen to experiment around with v86, jor1k, or a similar pro…

Bro, How much time does it need to replicate a project like V86? I have close to 6 years in C++. I work for intel/amd but not on emulation, I do HW design. I want to know if this can be completed in 4-6 months doing work on the night only..

TIA.

Re: V86 – An x86-compatible CPU and hardware emulator

#50
post #30

Earlier quoted context omitted.

When 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).

Ah 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?

Most 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.
Post reply on HN