News for hackers. Stuff that matters.
Re:AssemblyScript: A Subset of TypeScript That Compiles to W... by orange8 on Thursday September 07, 2017 @05:30AM (#15190222)
asm.js is valid Javascript. It is a valid subset of js that the browser js engines understand, even for the older ones like IE 8. JavaScript has direct access to the DOM, with webassembly, not yet. It may in the future, its still in the proposal phrase (https://github.com/WebAssembly/gc/blob/master/proposals/gc/O...)

So the way to do it today would be WebAssembly -> asm.js/js -> canvas

Re:AssemblyScript: A Subset of TypeScript That Compiles to W... by abecedarius on Thursday September 07, 2017 @02:52PM (#15194704)
Good point about the proposal -- that'll be the answer in the end.

asmj.js as JS is irrelevant to the point I was making, because if you access the DOM directly, your code won't verify as the asm.js subset, and so won't run via the asm.js engine.

Re:AssemblyScript: A Subset of TypeScript That Compiles to W... by orange8 on Saturday September 09, 2017 @02:50AM (#15205866)
The asm.js engine is the javascript engine.

asm.js is javascript.

asm.js === javscript

Re:AssemblyScript: A Subset of TypeScript That Compiles to W... by abecedarius on Saturday September 09, 2017 @11:36AM (#15207566)
No: that's a choice that Chrome made and Firefox didn't, for example.