(转)我庆幸选择AS3而没有AS4


legacy ActionScript 4.0 whitepaper has been now released under Apache 2.0
遗弃的ActionScript 4.0白皮书被基于Apache 2.0协议发布了。


quite interesting
but now I'm happy to stay with AS3 and not having AS4
很有趣,但现在我很高兴继续AS3而没有AS4

with AS4, we would have lost the following
如果AS4,我们将会失去以下这些东西
- namespace
- E4X
- package-level variables
- package-level functions
- undefined value
- prototype
- dynamic classes
- the Proxy class
- include construct
- rest parameters
- operators like: >>>, void, instanceof, typeof, delete, in, etc.

losing all that only to gain speed ?
抛弃所有仅为了速度?

well sorry I prefer an expressive language and a little less speed
噢抱歉我更喜欢一个有表现力的语言即使慢一点




zwetan kjukov17 小时前
I don't know why Adobe decided to make all that public now
我不知道Adobe为什么决定现在将所有这些公开

but remembering some blog posts
但记得有些博客文章

the dates are close
日期很接近

so my guess is that Adobe did test AS4
and did obtain good results, probably faster than v8 and other engines
所以我猜测Adobe在测试AS4
而且取得好结果,可能比v8和其他引擎快

"The ActionScript toolchain beat the JavaScript toolchain by around 3x."
“ActionScript toolchain 比 JavaScript toolchain 差不多快3倍.”

now I do agree that replacing AS3 with AS4/ASNEXT/AVMNEXT
could have been a huge bet and I personally I'm happy they didn't do it
现在我也认为将用AS4代替AS3是一个大的赌注,而且个人觉得,我很高兴他们没这样做。

but, this little white paper about AS4 is maybe a sign for things to come, eg. my bet is Adobe is waiting for ES6 standard to be finalised and come back with "something" (compiler/language/VM/etc.) that is compatible with ES6 and by extension ECMAScript/JavaScript
但,这个小小的关于AS4的白皮书也许会是一个将有东西出现的标志什么的。我猜测 Adobe在等待ES6最终定案,然后带点什么回来(编译器/语言/虚拟机等),基于ES6,扩展ECMAScript/JavaScript

maybe we will see something called ActionScript 6 (based on ES6) which will inherit all the speed from that AS4, but with the advantage of allowing developers to compile their sources code not only to Flash and AIR but also to HTML5/JS
也许将来会有个叫 ActionScript 6 的东西(基于ES6),继承AS4的速度,但是让开发者编译他们的源代码不仅仅到Flash, AIR但也能到HTML5/JS

One thing is sure, I do prefer AS3 compared to AS4, sure it can be slower but it provides so much more expressiveness and dynamic behaviour.
有一个是肯定的,比起AS4我更喜欢AS3,当然会更慢但它提供更多的表现力和动态行为 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值