Doing math in javascript is painful. Needing to alloc just to do ez Vector3 calculations as well no op overload support is faff city supreme
Conversation
Ugh. Doesn't ECMAScript 6 allow you to have typed arrays or something? Have you looked into asm.js?
1
yes can do typed float arrays but that route is a bit extreme just to do something simple like "vec_a+vec_b"
2
Doesn't ES6 also have operator overloads?
1
not sure really. does javascript abide by emca 100%? right now definitely not supported
2
1
That's why asm.js would be cool - but that would mean rewriting in a language that could compile to LLVM IR.
1
I probably have the luxury of being more "blue sky" than you. I assume you have deadlines to meet?
1
no, just learning some javascript and finding some obstacles with doing math (as opposed to c++)
2
1
Replying to
Some of the js langs like elm-lang.org and look really exciting, but still abit high level for 3d stuff.
Replying to
Curious, did you find PureScript's generated code wasn't efficient enough?
3
Too be honest I have only really gone over the docs – and the type system looks awesome! Using row polymorphism to...


