News for hackers. Stuff that matters.
Re:PyPy.js: A fast, compliant Python implementation for the web by Nitramp on Wednesday May 06, 2015 @12:56PM (#9500042)
I think there is no point in trying to emulate different language semantics on top of JavaScript.

asm.js is a weird hack that lives in a totally different world than actual browser APIs (e.g. the DOM), and you have to emulate your entire runtime and environment to get anything useful, which means your binary is going to be huge (as in this example, but similar things apply).

Emulating better semantics than JS based on JS usually leaves you in this uncanny valley where you either trade off performance and size for nicer semantics (e.g. killing the null/undefined dichotomy, or 64 bit integer math), or you end up with odd semantics that don't quite fit the language you're compiling from, or a mix of both, which is a usability disaster.

So the only real chance to improve on the state of JS is being a syntactical shim on top of JS and help users with better syntax, static analysis, and compile time tooling. That'd be TypeScript.

Re:PyPy.js: A fast, compliant Python implementation for the web by fragmede on Wednesday May 06, 2015 @01:08PM (#9500126)
> That'd be TypeScript.

Or CoffeeScript. Or Dart. Or this. In fact, here's a whole big long list of other languages. Most of which don't use the asm.js "weird hack".

https://github.com/jashkenas/coffeescript/wiki/List-of-langu...

Re:PyPy.js: A fast, compliant Python implementation for the web by alexweber on Thursday May 07, 2015 @02:35PM (#9507238)
one weird hack to run assembler-like code in the browser!

developers hate him!