[Papervision3D] Newbie post!

Alias™ aliasrob at gmail.com
Thu Feb 22 10:32:09 EST 2007


Not really - AS2 and AS1 both compile to the same bytecode, but AS2
doesn't actually get changed into AS1 - it just goes directly to
bytecode. It's true though that they have the same end result.

Microsoft .NET does similar things with C# and VB.NET - they both
compile down to the same intermediate bytecode format, but they're
both obviously quite different languages.

HTH
Alias

On 22/02/07, ricardo cabello ~ mr.doob <info at mrdoob.com> wrote:
> As far as I knew, AS2 was in converted to AS1 when compiling. Which
> means that, after all, AS2 was AS1.
> Wasn't it like that?
>
> --
> Ricardo Cabello ~ Mr.doob
> Designer + Developer
>
> Web: http://mrdoob.com
> RSS feed: http://mrdoob.com/rss.php
> MSN: info at mrdoob.com
>
>
> Paul Spitzer wrote:
> > I'm pretty sure some operations in AS2 / FP7/8 were JIT compiled as
> > well. Don't quote me on that though, I might be wrong.
> >
> > I believe another major reason the new VM is so much faster is the move
> > from prototype based inheritance to traits based inheritance. Instead of
> > traversing a potentially long prototype chain for lookups all inherited
> > properties and methods are stored in a "traits" object. Sort of like a
> > shared partial class. Something like that anyway. Maybe a player
> > engineer can pipe in and clarify.
> >
> >
> > David Rorex wrote:
> >
> >> AS2 is actually compiled as well, just like AS3. They both compile
> >> down to a bytecode, similar to Java or .NET. In AS3, the bytecode
> >> format was completely changed, and the Virtual Machine (similar to
> >> Java or .NET's virtual machine) is much faster & more optimized, one
> >> of the optimizations they use being JIT.
> >>
> >> On 2/21/07, *Ralph Hauwert* <r.hauwert at gmail.com
> >> <mailto:r.hauwert at gmail.com>> wrote:
> >>
> >>     As an additive to what Aral already mentioned : AS3 gets it's speed
> >>     being run on a JIT AVM, which makes it run like any other code on the
> >>     processor, as opposed to AS2 being an interpreted language.
> >>
> >>     Ralph.
> >>
> >>     On 2/21/07, Aral Balkan <aral at aralbalkan.com
> >>     <mailto:aral at aralbalkan.com>> wrote:
> >>     > Hi Stephen,
> >>     >
> >>     > There's a completely new virtual machine in Flash Player 9 that runs
> >>     > AS3 bytecode. It sits alongside the legacy virtual machine that
> >>     runs
> >>     > AS2/AS1 bytecode.
> >>     >
> >>     > The new VM is much faster since it doesn't have to worry about
> >>     legacy
> >>     > bytecode support all the way back to the earliest days of Flash.
> >>     >
> >>     > Aral
> >>     >
> >>     >
> >>     > On 21 Feb 2007, at 13:03, stephen white wrote:
> >>     >
> >>     > > Hi guys,
> >>     > >
> >>     > > I know nothing! Nothing! About Flash or ActionScript or
> >>     anything to
> >>     > > do with web browsers. I'm a C and OpenGL type. I've been
> >>     waiting for
> >>     > > a few days, but haven't seen any mention of what Papervision3d
> >>     is or
> >>     > > what has changed to make this work.
> >>     > >
> >>     > > So here's my guess...
> >>     > >
> >>     > > ActionScript 3 is like a compiled version of JavaScript, and
> >>     > > Papervision3d is using the compiled speed to handle 3d graphics on
> >>     > > the CPU? Which would be one reason why eval() was taken out of
> >>     AS3,
> >>     > > when it is available in AS2?
> >>     > > <snip>
> >>     >
> >>     > _______________________________________________
> >>     > Papervision3D mailing list
> >>     > Papervision3D at osflash.org <mailto:Papervision3D at osflash.org>
> >>     > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >>     >
> >>
> >>
> >>     --
> >>     Ralph Hauwert
> >>     FlashCoder
> >>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>



More information about the Papervision3D mailing list