[fpc-pascal] WebAssembly Target

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Mar 16 14:35:16 CET 2017

On Thu, 16 Mar 2017 14:07:51 +0100 (CET)
"Karoly Balogh (Charlie/SGR)" <charlie at scenergy.dfmk.hu> wrote:

> Also, WebAssembly is a descendant of asm.js,

Maybe historically. Technically asm.js is higher lvl than webassembly.

> which was basically striped
> down Javascript with some integer/pointer type tagging. As far as I know,
> the main problem with JS from a computing point of view, that it handles
> all numbers as floats for "simplicity", but with some code in other
> languages, this can have real side effects (for example some integers
> cannot be exactly expressed as floats,

JS uses Double, which can express integers correctly from
-$10000000000000 to $fffffffffffff.
That should be enough for most browser programs, don't you think?

> So all in all, despite its [webassembly] problems, it's still the best effort to provide
> some sane bytecode standard for the web. (If a web bytecode can be
> anywhere near sane, that is.)



More information about the fpc-pascal mailing list