flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Smith <gosm...@adobe.com>
Subject RE: ABC -> JS
Date Tue, 04 Dec 2012 20:37:30 GMT
> SO I will say to anybody, in the current state of the FalconJS compiler, you NEED to know
opcdes to be able to fix anything.

I don't know much about FalconJS but I would be very surprised if this is true. Can you show
me one method of FalconJS that actually writes out an ABC opcode?

There are many methods -- for example in JSGeneratingReducer -- which have *commented-out*
code that writes out opcodes. That's because Bernd Paradies created JSGeneratingReducer by
starting with ASGeneratingReducer and as he changed the method bodies to generate JS source
code he left the original opcode-generating code, for comparison purposes I presume. As you
can see, most of the method signatures have been changed to return String rather than InstructionList.

- Gordon

-----Original Message-----
From: Michael Schmalle [mailto:apache@teotigraphix.com] 
Sent: Tuesday, December 04, 2012 2:24 AM
To: flex-dev@incubator.apache.org
Subject: Re: ABC -> JS

Quoting Gordon Smith <gosmith@adobe.com>:

> The possibility of transcoding ABC -> JS (rather than AS -> JS, MXML
> -> JS, CSS -> JS, and .properties -> JS) has come up on another
> thread. I should mention that this approach is the one that the 
> architect of the Falcon compiler (Chris Brichford, who recently left
> Adobe) recommended for getting to JS. Bernd Paradies, who did 
> FalconJS, was on another team and decided to run with AS -> JS.

You say he decided to fun with AS -> JS, this is because he used a implementation of a
tree walker that is still traversing the AST correct?

What makes that code REALLY confusing is although you say he is using AS, there is a huge
amount of ABC opcode in that code he wrote.

SO I will say to anybody, in the current state of the FalconJS compiler, you NEED to know
opcdes to be able to fix anything.

This is hwy I kinda got bummed out, I don't know that stuff so it's like walking in the dark
but knowing your standing on the ground at least.

Knowing the cookie jar is right in front of you but has a lock on it... :)

> One advantage of ABC -> JS is that it solves the problem of having a 
> 3rd party SWC that you don't have source code for but want to 
> transcode to JS.

Couldn't we write an intermediary SWC parsing tool that could create classes with native stubs
(by parsing the ABC in the SWF), like Frank has done, then feed those into the parse session?

> One disadvantage is that you have to have a good understanding of the 
> ABC format and its opcodes.

I would say this is a major disadvantage in this open source environment.

> - Gordon

Michael Schmalle - Teoti Graphix, LLC

View raw message