whs.js icon indicating copy to clipboard operation
whs.js copied to clipboard

Proposal: Use FlowJS and compile to asm.js

Open sasha240100 opened this issue 8 years ago • 4 comments

As we work with webgl - speed matters. I seriously think now about using Flow and then compile to Asm.js. Links:

  • https://flowtype.org/
  • https://github.com/RReverser/babel-plugin-asm-js
  • A post about it: https://rreverser.com/started-work-on-es6-asm-js-conversion/

@WhitestormJS/whitestormjs-dev-team What do you think?

Version:
  • [x] r12 (dev)
  • [ ] r11
  • [ ] r10
  • [ ] r9
  • [ ] r9 (dev)
  • [ ] r8
  • [ ] r7
Issue type:
  • [ ] Bug
  • [x] Proposal/Enhancement
  • [ ] Question

Tested on:

--- Desktop
  • [ ] Chrome
  • [ ] Chrome Canary
  • [ ] Chrome dev-channel
  • [ ] Firefox
  • [ ] Opera
  • [ ] Microsoft IE
  • [ ] Microsoft Edge
--- Android
  • [ ] Chrome
  • [ ] Firefox
  • [ ] Opera
--- IOS
  • [ ] Chrome
  • [ ] Firefox
  • [ ] Opera

sasha240100 avatar Oct 17 '16 17:10 sasha240100

Hmm, IDK.

Is this really worth to improve the performance than refactoring costs?

preco21 avatar Oct 17 '16 23:10 preco21

@preco21 let's keep it for featured releases

sasha240100 avatar Oct 17 '16 23:10 sasha240100

This looks cool - was not aware there was a flow -> asm tool. However may not provide much performance boost if underlying Three itself is not also written as Flow.

thejmazz avatar Dec 12 '16 00:12 thejmazz

@thejmazz I agree. Three.js should be affected too. But I think they will soon use SIMD and other optimizations. That would be cool for physics too

sasha240100 avatar Dec 12 '16 00:12 sasha240100