Re:The Hacker Who Cracked the Code in Iron Man and The Socia...
by wanda on Monday January 13, 2014 @02:20PM
(#7052676)
How interesting, thanks for your insight. I'll have to play with it sometime.
I remember there was a poll on HN with a huge majority vote against AS; perhaps people confuse it with ActiveX and that's why they seem to dislike it so much.
Re:The Hacker Who Cracked the Code in Iron Man and The Socia...
by georgemcbay on Monday January 13, 2014 @02:29PM
(#7052725)
I think most of that is just misdirected Flash hate. Having worked with the source code to the Flash player, I understand better than most why Flash was hated, but ActionScript wasn't bad (especially at 3.0), and the Flex framework for ActionScript had a lot of really sweet features like two-way binding with smart property re-evaluation that are just now becoming common in JavaScript via frameworks (though it also had some horrible stuff as well, not all roses).
You may want to check out the haxe language as it borrows quite a lot from ActionScript 3 with tools that allow you to compile your haxe code down to JavaScript, AVM1 (AS2), AVM2 (AS3), C/C++, etc, and while it is a relatively niche language it is a lot more "alive" than ActionScript 3 currently is.
ActionScript 3.0 added optional static typing and classes and efficient binary blob handling and other features and at one point was going to serve as the basis for ECMAScript 4.0 via the Mozilla Tamrin project (so ActionScript would have actually been modern JavaScript) but this was killed (primarily by Microsoft and Yahoo) for political reasons.
AS3.0 was actually a pretty nice language and I would have loved to see it replace JavaScript back then as the usable set of JavaScript features is still quite a bit behind where ECMAScript4 would have brought it years ago.