[Lazarus] Firefox OS

Kostas Michalopoulos badsectoracula at gmail.com
Wed Jul 17 09:18:40 CEST 2013


> Now if something like that can't, ultimately, be run from a shell or a
> makefile it's going to be problematic for an FPC port. It's going to be
> particularly problematic for the various tests that are run automatically
> to test the compiler's correctness: it's all very well saying that in the
> target environment FPC -> asm.js is used strictly to run apps in the
> context of Firefox but that's hardly going to be convenient for working
> through a large corpus of test cases.
>
>
Asm.js is 100% compatible with normal JavaScript - the only difference is
that it is slower. But for testing this shouldn't be a problem and you can
use any JavaScript interpreter. Google V8's source code has a command-line
version (which Emscripten uses or used at some point for tests too) that
you can build (it is very easy, i did it at the past when i was messing
with Emscripten). Here is some information:
http://stackoverflow.com/questions/1802478/running-v8-javascript-engine-standalone

You will obviously need some sort of "interface" between the asm.js
function and the outside world for tests (f.e. what "writeln" would do?)
but you'd need that interface anyway since even for real asm.js use people
will need to provide such interfaces
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130717/1cd2f400/attachment-0003.html>


More information about the Lazarus mailing list