[fpc-devel] First pas2js public release

Sven Barth pascaldragon at googlemail.com
Mon Dec 18 17:14:48 CET 2017

Am 18.12.2017 14:56 schrieb "Benito van der Zander" <benito at benibela.de>:

Isn't speed the main idea of using pointers?

It would be to port all existing pascal code

But that isn't the goal of pas2js. That is what WebAsm is for.

You may want to take a look at asm.js, which has a working
model for emulating pointers in JavaScript. It would be possible to add
a pas2js target for that. But then again there is webassembly
as well and it seems to have better support.

That model looks like quite a slow down

Considering that asm.js and its successor WebAsm can be used to run
ordinary computer games (e.g. DOS games running in DosBox, though there are
also more modern examples - then again running a VM is no small feat
either) I'd say that it works fast enough.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20171218/10303cc2/attachment.html>

More information about the fpc-devel mailing list