Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by azangru on Saturday December 19, 2020 @02:54PM
(#25480590)
I haven't played with assemblyscript, but just read today that it doesn't support closures. So no javascript good parts in assemblyscript yet?
[ Parent
| on HN ]
Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by maxgraey on Saturday December 19, 2020 @03:01PM
(#25480666)
This is a temporary limitation which mean you can't capture free vars from outer scope (except global scope). One of the main goal of AS is performance but closure elimination required some extra efforts like Middle IR, eta/beta-reductions, lambda lifting / dropping. Without all of this closures will produce significant overhead. So at first need to implement all this things