>> Another reason might be speed. The virtual machine is 20 to 40 times
>> faster than PHP interpreter or Flash Classic VM. That helps you serve a
> 
> 
> The effects of a server VM being faster than the old version of a client
> VM (Flash classic) is a Hard Thing to Assess :)

The VM can also run compiled scripts so you can compare a AS1/2 version
of a benchmark with its haXe equivalent by running the two computations
on the same computer and measuring time spent. You're welcome to run
your own benchs if you don't believe it :)

> But, of course, sounds great compared to PHP. Have you tested PHP with
> the Zend Accelerator or any of the free accelerators?

Yes we use both Zend Accelerator and EAccelerator for our old PHP devs.
Still, such technologies mainly cache the bytecode, they don't improve
so much interpreter computation speed.

>> A language is not just syntax, it's also architecture and a type system.
>> For example you will be able to do some kind of remoting by sending
>> Classes (not just anonymous objects) between the client and the server.
> 
> 
> And this precisely is the issue, because you're trying to provide common
> architecture and type system over 4 different VM-s (JS, F8.5, F Classic,
> your server mod). It'll be an interesting effort to follow.
> 
> I don't doubt the theoretical ability of any turing complete system to
> emulate another, but by the practical limitations imposed by the solution.

There will always be some, but it's ok as long as they don't hurt too
much development.

For example null.foo() will make a runtime exception on all platforms
but not on Flash 6/7/8. At least until there is a "debug" flag that
would add additional checks.

> Also we've seen how "layering" of new paradigms over old engines works
> with AS2, where all the compiler checks were superficial and easily
> worked around at author or runtime.

Yes, but I think this is an advantage, not a problem.

If you have a lot of runtime checks, you endup with Java which is quite
strict but not flexible. My thinking is that having a staticly typed
language over a dynamicly typed runtime permit the best of both worlds,
especialy if you provide enough Runtime Type Informations and Reflection.

Nicolas

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to