Kris Nye

Results 26 comments of Kris Nye

This snippet also won't compile. I think it's related. ``` fn = -> while true if true 1 else return 2 ```

@D1plo1d I didn't close this bug, I only closed the related bug filed against commonjs-everywhere.

Shouldn't it use this instead of self? }({browser: true},self))

self is not defined in node though, and these shimmed files should work in both node and the browser. 'this' works in both. If you change self to this then...

If you wrap it in a function call then it won't violate strict: ``` (function() { this.global = this; this.process = {browser:true}; })(); ``` If you want compatibility with the...

This is weird. You have any ideas on why the results in the first comparison are so different from the second?

@stefnotch OK, I witnessed the previous performance of your sample with literal objects being slower. I updated the sample to use a small Vector class and the performance is back...

I added back your older object test so we can compare the difference between using literal objects and using class instances and added Array as well which is also very...

@stefnotch I actually wrote a C implementation AND a WebAssembly implementation of the add/cross/dot sample both with and without linear memory access (to make it more realistic) and my findings...

A quick improvement you could do or recommend to others is just to set the array type to use normal arrays and not Float32Arrays, only converting to Float32Arrays before assigning...