Speaking of emscripten, I have a few horror stories of my own.

But I have to say that it is quite an impressive project. I once said
that it was a small miracle that the entire ATS compiler (atsopt) can
actually be compiled into JS successfully via emscripten. The generated
C code alone consists of at least 500K lines. In general, emscripten is
not well-suited for handling C code generated from ATS that makes use
of higher-order functions. I almost gave up. At the end, templates saved
the day: I replaced various higher-order functions in atsopt with templates
to allow them to be properly eliminated (through inlining). This kind of 
replacement
had been designed to support the use of higher-order functions in embedded 
programming,
but it was used in this very peculiar setting to solve a very peculiar 
problem :)

Cheers!


On Tuesday, May 3, 2016 at 4:56:31 PM UTC-4, Raoul Duke wrote:
>
> (i think only via emscripten, a route i personally do not like, but ymmv.)
>

-- 
You received this message because you are subscribed to the Google Groups 
"ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ats-lang-users+unsubscr...@googlegroups.com.
To post to this group, send email to ats-lang-users@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ats-lang-users/3a440f0e-8296-4789-a947-bf56d0671010%40googlegroups.com.

Reply via email to