Hacker News new | past | comments | ask | show | jobs | submit login

The js.js Fibonacci Demo exhibits some weird characteristics versus the native implementation.

Native result for iteration NaN: 1

js.js result for iteration NaN: 0

Native result for iteration 46: 1836311903

js.js result for iteration 46: 1836311903

Native result for iteration 47: 2971215073

js.js result for iteration 47: -1675624448




This is because I'm converting to an i32 rather than a double. It should be able to be fixed relatively easily.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: