News for hackers. Stuff that matters.
Re:Prepack helps make JavaScript code more efficient by msoad on Wednesday May 03, 2017 @03:06PM (#14259018)
This is fucking impressive!

Just evaluated this:

   (function() {
   var a = 'a';
   var b = [a, 'b', 'c']
    .filter((i, index) => i.charAt( 1 - index)  !== 'b')
    .map(i => i + '!')
    .join(',')
   console.log(b)
   })()

BTW how you avoid going to infinite loops?
Re:Prepack helps make JavaScript code more efficient by msoad on Wednesday May 03, 2017 @03:08PM (#14259029)
Another question: Does this use Flow types to optimize things like object member properties?
Re:Prepack helps make JavaScript code more efficient by hokkos on Wednesday May 03, 2017 @05:13PM (#14260153)
That is not surprising, your filter/map/join only use constants, it probably does an eval().