Live data from Hacker News

Show HN: My x86 emulator written in JavaScript

copy.sh

21–30 of 194 posts

Re: Show HN: My x86 emulator written in JavaScript

#21

This is awesome. You might want to consider re-ordering the font list in the console though. Consolas isn't perfectly fixed-width apparently, and it made Rogue rather puzzling to play.

Consoles isn't perfectly fixed width? That sucks. Till now it was my go-to fixed width font.

I assumed something named consolas would be a font suitable for consoles.

Which font do you like to use?

Re: Show HN: My x86 emulator written in JavaScript

#23
post #12
post #6

This may as well be magic as far as I'm concerned. When I first saw http://bellard.org/jslinux/ I just about shat myself. This is definitely another level of awesome. Well done.

This really is extremely well done [and I'd like to see the unminified source]. The next feature I'd want to see is networking support. I love the idea to be able to run my entire dev setup in an emulated browser session [e.g. ruby, rails, redis]. That would be a game changer on how I'd develop.

Absolutely. This would be awesome.

Re: Show HN: My x86 emulator written in JavaScript

#25
Very impressive.

Interesting bug: I can't seem to type '-', '=', '+', or '_' into the Linux image. Missing '-' in particular makes it hard to run commands with options.

Elaborate workaround:

    /root% eval eq$(dmesg | grep 'e820 update' | sed 's/.*) \(.\).*/\1\1/')
    /root% echo $eq
    =
    /root% eval dash$eq$(uname bad 2>&1 | grep Usage: | sed 's/.*\[\(.\).*/\1/')
    /root% echo $dash
    -
    /root% uname ${dash}a
    Linux (none) 2.6.34.14 #44 Tue Oct 15 20:50:15 CEST 2013 i586 GNU/Linux 
The first command grabs an '=' from dmesg and sets "eq" to it (without typing '='), and then the second command grabs a '-' from the usage message of uname and sets "dash" to that (without typing '-'). The last shows how to use ${dash} in a command.

Re: Show HN: My x86 emulator written in JavaScript

#27
post #15
post #12

Earlier quoted context omitted.

This really is extremely well done [and I'd like to see the unminified source]. The next feature I'd want to see is networking support. I love the idea to be able to run my entire dev setup in an emulated browser session [e.g. ruby, rails, redis]. That would be a game changer on how I'd develop.

At 2000 kIPS you may have a few generations of javascript engines to go before we get there. That's not meant to take away from this project - it truly is amazing what can be interpreted in the browser now.

Dynamic translation of x86 sequences could give you some boost, as could use of asm.js.
Post reply on HN