Originally posted by Pajn
View Post
Originally posted by Pajn
View Post
Originally posted by Pajn
View Post
This is an example (from the specs):
function diag(x, y) {
x = +x; // x has type double
y = +y; // y has type double
return +sqrt(square(x) + square(y));
}
Indeed, quoting from the asm.js FAQs:
"Q. Why don't you specify a bytecode syntax instead of strange JavaScript idioms?
A. For compilers like Emscripten or Mandreel, the syntax of a bytecode language simply isn't that important. In fact, most bytecode and machine languages have non-human-readable binary formats. However, we may create a more human-readable surface syntax for asm.js, which could be used for convenient disassembly and human read/write-ability."
Comment