News for hackers. Stuff that matters.
Re:Show HN: Virtjs, an ES6 emulation library by grindfest on Tuesday October 07, 2014 @08:20PM (#8424723)
Protip: don't call it an ES6 emulation library.

I came in expecting an expedition into emulating ES6 in ES5. What I got was much more awesome.

Re:Show HN: Virtjs, an ES6 emulation library by kolev on Tuesday October 07, 2014 @08:41PM (#8424770)
I had the same expectations!
Re:Show HN: Virtjs, an ES6 emulation library by arcatek on Wednesday October 08, 2014 @08:15AM (#8426472)
You're right! English isn't my mother language, next time I'll be more careful :)

Thanks!

Re:Show HN: Virtjs, an ES6 emulation library by bsimpson on Tuesday October 07, 2014 @11:18PM (#8425175)
"An emulation library, itself written in ES6"
Re:Show HN: Virtjs, an ES6 emulation library by lziz on Tuesday October 07, 2014 @06:55PM (#8424452)
The Pokemon example is pretty damn neat: http://arcanis.github.io/pokelib/example/
Re:Show HN: Virtjs, an ES6 emulation library by tokenizerrr on Tuesday October 07, 2014 @07:38PM (#8424592)
Oh that's great, and it seems you can hook into the game's events as well! Might look into making a bot that plays pokemon at some point...
Re:Show HN: Virtjs, an ES6 emulation library by arcatek on Wednesday October 08, 2014 @08:19AM (#8426485)
Yep, that's the big thing that Virtjs allows compared to the others: listen to runtime events.

The Pokelib is currently a kind of proof-of-concept and, as such, doesn't map all Pokemon game events (yet!), but it already have a few nice abstractions, and it should get better over the time.

In the meantime, you can hack an Input Device to make a bot :)

http://virtjs.com/developers/implementing-a-device/#random-i...

Re:Show HN: Virtjs, an ES6 emulation library by lohankin on Tuesday October 07, 2014 @11:48PM (#8425233)
doesn't work for me on Chrome. What exactly is this emulator supposed to emulate?
Re:Show HN: Virtjs, an ES6 emulation library by robinduckett on Tuesday October 07, 2014 @07:28PM (#8424565)
I love this. Wish I had the ability to build a SNES emulator in JS!