Seems like that jerryscript does not fully implement the ecmascript (3
and/or 5).

I have tried to run a pretty complex test suite (
https://github.com/funcool/cats tests) under it  (that already includes
async code with promises and core.async among other stuff) and the code
never executes without any error.

There are also other js engines that are intended to be used for IoT, such
are: v7 (https://docs.cesanta.com/v7/master/), mujs (http://mujs.com/),
duktape (http://duktape.org/), ...

After trying them all, I found that only duktape can run partially the
funcool/cats test suite (core.async and promise stuff fails because of
lacks support for setTimeout and other related stuff).

If somebody interested on this, I have compiled the code targeting the
browser with  `:whitespace` optimization level (simple and advanced should
also work as expected). Then, manually prepend to the compiled file `var
window = this;` because duktape seems like does not have global object that
is needed in some cases.

v7 seems like it does not have support for labeled statements that are used
in the cljs compiled code so it just fails with syntax error. I suspect
that jerryscript fails in the same way, but without any error message.

Andrey.

On Wed, Jun 1, 2016 at 3:03 AM, Paul deGrandis <paul.degran...@gmail.com>
wrote:

> Hi Gregg,
>
> I've previously used ClojureScript to target other JavaScript engines (on
> small devices and on Android), without any issue.  You shouldn't need to do
> anything special, but if something comes up and you hit a snag, just post
> here.
>
> Good luck and have fun!
>
> Cheers,
> Paul
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Andrey Antukh - Андрей Антух - <n...@niwi.nz>
http://www.niwi.nz
https://github.com/niwinz

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to