jor1k icon indicating copy to clipboard operation
jor1k copied to clipboard

Move to ES6/7 (babeljs) and webpack

Open socketpair opened this issue 8 years ago • 4 comments

This may significantly reduce and simplify code base, especially asynchronous parts due to usage of await paradigm and many other ES6/ES7 things.

socketpair avatar Mar 30 '16 16:03 socketpair

I observe the ES6 compatibility in the web browsers approx. every half a year. Looks like some browsers are still missing support for async and promises. So I would say it is too early to switch to ES6. Also I am not sure, if this would solve any of the timing problems I encounter. http://jor1k.com/jor1k-orconf2015.pdf Slides 30 to 36

s-macke avatar Mar 31 '16 12:03 s-macke

I understand,but babeljs transform ES6/ES7 code to ES5. That's why this code CAN be run in browser.

socketpair avatar Mar 31 '16 12:03 socketpair

When I talk about ES6/ES7 I mean code (user interface) around jor1k core, and maybe also some asynchronous tasks like getting blobs from server. I don't consider moving emulator itself to ES6/ES7 . At least for now.

socketpair avatar Mar 31 '16 12:03 socketpair

@socketpair BabelJS will be useful, however I'm not sure how performance will be affected. Even in the best case, we'll lose the ability to control exactly what gets executed by the browser (due to transpilation), thus losing control over performance.

Although I agree with your comment that the non-performance-critical parts (initialization, getting blobs from server, etc) can be migrated.

neelabhg avatar Apr 02 '16 11:04 neelabhg