News for hackers. Stuff that matters.
Re:WebAssembly Raytracer by ajross on Saturday December 16, 2017 @12:59PM (#15940713)
Alternatively, it's pretty amazing that a nearly pure FPU task with small data that should live well in cache is only about 5x slower when written in straightforward JavaScript.

This is the kind of code that in previous generations would have expected to see a 20-100x penalty in perl or python.

Re:WebAssembly Raytracer by heavenlyblue on Saturday December 16, 2017 @03:08PM (#15941698)
As previous threads have already mentioned: that is not straightforward JavaScript. There’s nothing impressive about stripping down a scripting language by making it’s structure exactly the same as c in the end.

What’s the point of JavaScript in the first place? What we had done is we took a microscope and then made sure it’s made of toughened glass and the strengthened steel so that we could nail a few nails with it.