Open Raynos opened 10 years ago
this is almost backwards to me, like, why aren't we just talking about asm.js being a compile target? or are there features we would have to cut in order to achieve that?
even if we can't output 100% asm.js it would be amazing if we could support it where possible, when certain language features aren't used we just sort of automatically upgrade the per benefits of asm.js.
also, asm.js includes do ... while
@mikeal I guess the fif
I wanted to write would be an "implementation" detail.
i.e. if somebody wants to use my module written in fif
they would just think its javascript and there would not be any compiled code or build step or anything.
ya, one of the stated goals is to be portable. basically, every module written in fif should run in the browser, node, some future runtimejs thing, etc.
When I was thinking about
js--
which is basically the same as fif I was thinking that it would be nice if asm.js was a subset of it.I wanted to remove as many features as possible but still allow people to write highly performant code in the language.
One of the ways to write highly performant code is to use asm.js
See http://asmjs.org/spec/latest/#putting-it-all-together