Ask HN: Javascript type inference and Asm.js
Can't we add type inference to JS to let it be Asm.js compiled? E.g., http://www.ccs.neu.edu/home/dimvar/jstypes.html (however, this doesn't distinguish between float/double/int/long, but that doesn't seem impossible)
I don't see in the Asm.js spec that they add type info for classes/objects, but this doesn't seem too hard to infer either. You'd take an inventory of what keys and types are in objects and make a hierarchy of them for 'inheritance' of objects.
Am I missing something?