Live data from Hacker News

Show HN: My x86 emulator written in JavaScript

copy.sh

181–190 of 194 posts

Re: Show HN: My x86 emulator written in JavaScript

#182
post #171
post #152

I know this sounds like crazy pants, but I would actually use this in the real world if it were a NodeJS module. Not for anything compute-intensive or serious, but for creating very secure very isolated VMs to run web apps or other services in an insecure environment. It could also be a great way to take a LAMP stack app and rapidly deploy it in certain cases. Again not for high performance, but for... I can think of…

The project is made with both browser and nodejs support in mind. There are still some issues to resolve, but I will definitely release a node version this year.

its HTML5 and SSE?

Re: Show HN: My x86 emulator written in JavaScript

#184
post #171

Earlier quoted context omitted.

The project is made with both browser and nodejs support in mind. There are still some issues to resolve, but I will definitely release a node version this year.

its HTML5 and SSE?

Yes its HTML5. Saw header ...

Re: Show HN: My x86 emulator written in JavaScript

#185
post #143
post #58

Earlier quoted context omitted.

I'm getting here > speed 1640kIPS on the old Nexus 7, don't you mean 8kkIPS? (This value was the average while booting Linux)

Absolutely so, yes. Thanks. :) 8 - 23 MIPS ain't so bad, right?

A little faster than an Arduino and a little slower than a PIC24. Not too bad.

Re: Show HN: My x86 emulator written in JavaScript

#186
post #82

@g3 this is super-mega awesome. 3 questions: 1. I know it is already available via the page, but would you please open-source it so others could contribute? 2. Thought I appreciate the apps being shown in the canvas in the resolution they are supposed to use, a full-screen option would be incredible. That way I could play space invaders the way it was meant to be played, in FreeDOS, in a JS emulator, in Firefox, on a…

Fullscreen is there and yes, it will be open source.

Re: Show HN: My x86 emulator written in JavaScript

#187

I got a kernel panic trying to boot tinycore linux: Decompressing Linux... Parsing ELF... done. Booting the kernel. init[1]: segfault at b8e8e089 ip 08071929 sp bfb81b08 error 4 in busybox[8048000 +7c000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to ac cess hardware directly.

Both bugs are fixed now.

Re: Show HN: My x86 emulator written in JavaScript

#188

Earlier quoted context omitted.

OnLive runs on OSX. gdb (i think) also runs on OSX. It should be possible to isolate the callback used to handle keyboard input and call it with c=10. This would take anywhere from hours to weeks of debugging though.

No, that won't work. Nothing you do client-side will help. OnLive Client OnLive Servers Deus Ex instance in a VM. The enter key is filtered out on their servers. Unless you hack into their servers and change that, there is nothing you can do on the client-side. That's what makes you completely helpless.

Ah, my apologies, I thought the game was running locally. (This sort of assholeness on the part of servers is basically why 'cloud computing' is such a bad idea.)

Re: Show HN: My x86 emulator written in JavaScript

#189
post #66
post #49

Earlier quoted context omitted.

Wait how does this differ from JSLinux? Aren't they doing the same thing? Also, this isn't just an x86 emulator, right? If it can boot linux, it's emulating the entire PC platform, not just x86. Very impressive of course. But I am interested in a comparison vs jslinux (also not open source).

Yes, it's very similar to the jslinux project. However, I added more hardware (it can boot a real bios: seabios). Also, I'll make this open source.

wait for you to open the source.

Re: Show HN: My x86 emulator written in JavaScript

#190
post #85

I want to write an emulator as a learning experience. Any tips how should I start?

I recently posted about emulating the NES with JavaScript. http://blog.alexanderdickson.com/javascript-nes-emulator-par... Part 2 will be posted when it's done. :) If you want to get something done much quicker, have a go at emulating the Chip-8 VM. I also have a post, but it's less hand-holding than the first. http://blog.alexanderdickson.com/javascript-chip-8-emulator Good luck!

I'd like to think of myself as an experienced programmer, but I still loved your tutorial ! Brilliant ! Keep up the good work.
Post reply on HN