> Last, I've been thinking that it should actually be possible to create
> an AS3 compiler in AS3 (Regular Expressions, ByteArrays etc). Although
> performance would probably be awfull and one might run into "too many
> levels of recursion" troubles, it would enable a lot of people from this
> community to contribute.

I have been thinking the same thing, for the same reason -- easier to
contribute for its potential users. Also, it would be nice if AS3
could break the "compiler that can compile itself" barrier. I don't
think recursion would be a problem, it's set to 1000 by default and we
can easily change that.
However, integrating it with IDEs would be a hack, and performance
could be a problem as you said. But maybe it wouldn't be too bad? The
regular expressions are (hopefully) not implemented in AS, so parsing
the code might be pretty fast. However, I don't know what a compiler
takes the most time for, how fast/slow AS3 actually is, or anything
about compilers for that matter...

mark


On 10/25/05, Edwin van Rijkom <[EMAIL PROTECTED]> wrote:
> I've been folowing this thread with great interest. Some thoughts I'd
> like to share on the subject:
>
> I think functional languages are superior for compiler construction,
> simply by design. Nicolas knows what he is talking about and I deeply
> respect his work on MTASC and Neko. I don't really care how he makes his
> thoughts known, as long as he continues to do so (and doesn't harm any
> animals during the process)
>
> A compiler in a different language could still work well, but it will be
> a lot more work.
>
> I've got some AS2 compiler code to share, but it's in Haskell and it's
> only half finished - so I don't know if its of any interest.
>
> Last, I've been thinking that it should actually be possible to create
> an AS3 compiler in AS3 (Regular Expressions, ByteArrays etc). Although
> performance would probably be awfull and one might run into "too many
> levels of recursion" troubles, it would enable a lot of people from this
> community to contribute.
>
> Just my 2 euro-cents.
>
> Cheers,
> Edwin

--
http://snafoo.org/
jabber: [EMAIL PROTECTED]

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to