News for hackers. Stuff that matters.
Re:Sayonara, V8 by AshleysBrain on Monday August 19, 2013 @07:43PM (#6240651)
Isn't asm.js moving towards standardising a dialect of Javascript that definitely will be optimised well by VMs? Seems like a possible solution to struggling to figure out what V8 does and doesn't optimise well.
Re:Sayonara, V8 by mraleph on Tuesday August 20, 2013 @04:15AM (#6242378)
Except that right now you are limited to arithmetic and typed array manipulation. Subset like that is predictable because it is taking away all moving dynamic parts. You become free from questions like "where should I put methods? on prototype or on object itself?" not because you have an answer now, but because you can't have objects, prototypes and methods :-) [well you can but you have to emulate them with typed arrays and virtual dispatch tables, it is likely be slower than "native" JS method dispatch].
Re:Sayonara, V8 by kevingadd on Monday August 19, 2013 @09:24PM (#6241081)
If asm.js eventually evolves to support a large enough subset of applications, it does 'solve' this. But it only solves it for people like me who are writing compilers; people trying to write high-performance JS by hand are left out in the cold.