InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

C#/Silverlight Features for Flash Developers and haXe

Posted by Abel Avram on Aug 25, 2009

Sections
Development
Topics
Rich Internet Apps ,
Silverlight ,
Java ,
.NET ,
Rich Client / Desktop
Tags
Flash ,
ActionScript

A number of Flash/ActionScript developers have expressed their desire to see Silverlight/C# features in their development tools. haXe, a multiplatform language that compiles to SWF files among others, promises to provide what AS3 is missing.

After explaining some of the problems he has encountered with ActionScript (AS3), Joa Ebert, a Flash developer and contributor to several open source Flash projects, says what he would like to see changed in three areas:

Contributing. Contributing to the SDK and to the Flash Player is a great option and I am thankful for having it. But this includes also contributing to the Flash Platform with tools.
  • Extend the open source Wiki for up-to-date specifications and allow people to contribute to them.
  • Create an open ActionScript documentation.
  • Do not develop something closed source to open it six months later like the TextLayoutFramework.
  • Create a progress for code reviews and allow people to contribute without having to go through JIRA hell.
  • Make a roadmap available so developers know what happens inside Adobe.

Language

  • Add support for generics.
  • True method overloading.
  • Threading support has to be implemented including synchronization features.
  • Rethink the const keyword which is currently completely unusable.
  • Implement standard OOP features like private constructors, abstract methods and classes.
  • Create a collection framework making use of generics.
  • Create a robust concurrency framework.

Performance

  • Improve the VM performance especially for object allocation and method calls.
  • A tracing JIT would be great, hotspot would be fantastic.
  • Improve the performance of the compiler and its produced output.

Sascha Balkau, another Flash developer, has his wish list of ActionScript features:

  • Method Overloading (because writing Open-Source frameworks and libraries often is a travesty without this).
  • Generics
  • Threading (Oh yes!)
  • Multi-CPU-Support
  • Private Constructors (bring them back!)
  • True Abstract classes/methods
  • Enums (has been a long time wish. Don’t know what the problem is!)
  • Hardware rendering (PV3D etc. are great and all but whats the point if you hit the wall with under 1000 triangles?!)
  • Compiler performance (Seriously MXMLC needs to hide in the corner if the haXe compiler shows up!)
  • And last but not least I’d like to see a lot more love for the AIR runtime like better OS-integration (changing screen resolution for example) and better performance and resource management (the way how AIR wastes up RAM is not from this planet!)

Nicolas Cannasse also complains about AS3 but offers a solution: haXe. haXe is an open source multiplatform language that can be used to write programs that are compiled either to JavaScript, NekoVM, PHP, C++ or Flash6 to 10. haXe advertises a consistent number of language features making it an attractive option for ActionScript programmers, according to Cannasse:

  • Strongly Typed Language
  • First-class methods and functions (closures)
  • Regular Expressions
  • High Level Type System including :
    • classes and interfaces
    • enums
    • function-types
    • anonymous types (structures)
    • dynamics
  • Enums
    • optional constructor parameters (à la ML)
    • type parameters (polymorphism)
  • Complete type inference : you don't need to type your local variables
  • Type parameters (generics) with optional constraints
  • Module system : packages + private definitions
  • Structural Subtyping (duck typing) using type inference and anonymous types
  • Polymorphic methods

ActionScript has some important features to implement in order to compete with C#, but Flash still leads when it comes to design tools. In the meantime, the frustration among the AS3 community seems to be mounting. Maybe the following MAX 2009 scheduled for October 4-7 will enlighten the Flash future. Some of the sessions scheduled for MAX 2009 are:

  • Roadmap: Flash Platform Runtimes
  • Roadmap: Flash Platform Servers and Services
  • Roadmap: Flash Platform Tooling and Framework
  • Roadmap: Web Professional Tools and Services in Creative Suite
  • What's Ahead for Flash Catalyst
  • What's Coming in Adobe AIR 2
  • What's New In ColdFusion 9
  • What's New in Flash Builder 4
  • What's New In Flash Player
  • What's New in Flex 4
RAM by Jean-Yves Linet Posted
  1. Back to top

    RAM

    by Jean-Yves Linet

    Flash Player plug-in/ActiveX is wasting up RAM as much as AIR !

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.