On Thu, Nov 29, 2012 at 1:44 AM, Michael Schmalle
<apa...@teotigraphix.com>wrote:

> I bet if I had some time I could port some of your generation code using
> the Falcon AST.


Mike, that would be the way to go!
I believe every word you say about the Falcon compiler, since my
information about the Flex compiler is surely outdated. I guess they were
not using ANTLR back then and the whole architecture has been cleaned up in
the meantime.
We wanted to have had a closer look recently, but honestly we did not know
where to start.
Sounds to me like in a common effort, it should be possible to join Falcon
and Jangaroo's AST-based JS code generation! Wow!

Concerning GCC, it is said to have the best compression factor in the
market when using "advanced optimizations", which only work when providing
the correct type hints, so we would have to generate these like Bernd
proposed on his FalconJS blog. And GCC has some real cool features like it
can output JavaScript source
maps<http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/>,
which again is the optimal way to support debugging generated JS code
directly in the browser. However, for this feature, I would not run the
generated JS code through GCC, but experimented with reusing their Java
library for creating the source maps directly during code generation (this
is on a branch called "source-maps" in the jangaroo-tools github project).

-Frank-

Reply via email to