Hacker News new | past | comments | ask | show | jobs | submit login
Getting Rid of Flash (ncannasse.fr)
56 points by p4bl0 on Dec 22, 2012 | hide | past | favorite | 20 comments



NME(The premier Haxe cross-platform gaming/media library) also just updated, adding some support for native OpenGL calls: http://www.haxenme.org/blog/2012/12/22/merry-christmas-nme-3...

2013 is shaping up to be a strong year for Haxe's gaming abilities.


Something like a game never really sounded like the problem, it actually is a good idea before all standards get dragged into something usable, flash being used to power content and annoying ads was the reason the platform got to this point, I think.

This is exactly what flash was for, power things not possible in the browser until the standards catch up (animation, video), then moving to the next missing thing (i.e.: gaming, 3d worlds)


> This is exactly what flash was for

I contest your use of the past tense here. I think it'd be fairer to say "this is exactly what Flash is for". Historically (mid 2000s) Flash was doing for simple content animation what it's doing now for 3D libraries like the one linked to by OP. In other words in the days before jQuery and <canvas> etc. simple high fidelity animation of basic 2D content just wasn't technically practical in the native browser, so Flash filled the gap. Browsers moved on, and now its 3D (and arguably secure/hardware accelerated video) where a plugin like Flash can be useful.

Flash had its time driving content, and at that time (as thousands of agencies, businesses and developers can attest) it was the best tool for the job.


Yeah Flash has its uses for sure. But it's best not to design portfolio websites with it, etc.


Cannasse is the last person I expected to see leave Flash. Dude built a career around the platform and released more tools for it than any single individual.


The title doesn't properly summarize the article.

He is just saying that because Haxe can target WebGL, he could now dump Flash when performance of WebGL is good enough.


Uh, I know everyone going to yell at me, but...

I think it would have been much much better, had Adobe open-sourced Flash and turned into a standard (like ECMA or something).

This could saved everyone in the industry a huge amount of effort porting, rewriting, etc. stuff to work on a platform where every browser does things in its own (horribly) inconsistent way.


There's many reasons this didn't happen. Some of them Adobe's fault, some not.

The main thing to realize is that Adobe based AS3 on many leading proposals for Ecmascript 4. Ecmascript 4 would lay the groundwork for future versions of javascript, etc. Flash would still be closed source, but the language would be useful elsewhere in the browser. Several people have described the political issues surrounding this ES4 situation in far more detail, and how we arguably ended up the worse for it:

Resig: http://ejohn.org/blog/ecmascript-harmony/ Canasse: http://ncannasse.free.fr/?p=82 Mike Chambers: http://www.mikechambers.com/blog/2008/08/14/actionscript-3-a...

So, why didn't Adobe just open source the flash plugin? One main reason not to was Microsoft: http://en.wikipedia.org/wiki/Microsoft_Java_Virtual_Machine#... Another reason was, naturally, control. Both for Adobe and for user development. The Flash player was quirky, but incredibly consistent with decent performance. There really was no other option... js, java applets, activeX, they all had significant weaknesses due to differing availability and performance.

If you wait around long enough in web development, you will have seen this type of situation many times. Haxe is a "free agent" that can break this cycle imho. It is not tied to a company like Typescript or Dart, nor is it tied to corporate controlled committees like ES4. It has an incredibly gifted language author, and a great team of developers. It's also very mature at this point (> 5 years old).

I've used Haxe professionally for just under 5 years now.


No sane person can deny the great things that have been written in Flash when JS in the browser was nothing - I wish I had ridden that wave.


The Flash VM is open-source and Mozilla using it. It's not the whole flash player but at least something. http://en.wikipedia.org/wiki/Tamarin_%28software%29


The original blog post of Nicolas Cannasse has a question mark at the end (very strange and confusing vibes, if the originator does not know ...), which is missing here, which makes me want to ask how serious Nicaolas Cannassee really is, what can he really offer right now? How serious is he really, I don't trust him. Does anyone use haxe successfully in a professional context and earns money through it, is this platform worth an investment (time, learning) or are there hidden maintenance-nightmares-producing or other shortcomings, which prevent professional reliable large scale use comparable to flash? I would like to read opinions of people who do successful business with haxe (edit: first hand info).


Nicolas Cannasse is (usually) serious and incredibly smart and fairly well known among anyone who pays attention to "indie" PL design and/or functional programming in ML dialects (particularly Ocaml).

I used haxe for over a year creating dozens of end-user apps when I was working at chumby industries because our base runtime on those devices was FlashLite 3 with ActionScript 2.0 and haxe is a significantly better language than AS2 while still targeting the same Flash runtime.

IMO it is definitely a language worth checking out, particularly since it should be trivial to learn if you already know the language for whatever runtime it is you're targeting. It looks and feels very much like ActionScript/JavaScript, but with far less warts than either.

The macro system it has is awesome and allows for lots of compile-time code generation scenarios that can result in massive runtime optimizations if used well.


I use Haxe in a professional context and sometimes for exploratory experimental stuff. I use it in the context of a framework called Haxe NME that allows me to produce android and ios moible apps. I am also using it to transcompile to arm running arch linux machines, it has one of the fastest compilers I ever used when target compiling to neko and it can output code if needed; java, c#, c++, js, you name it they got it wired up. I am going to use it for online through the usage of externs and libs that are usually up to date and well maintained on github. Haxe is going to hit a big one when version 3 comes out next quarter, if you want to invest some time learning a language that is encompassing and very much alive you will find it to be a good tool for various applications. I have no connection to Haxe other than being a user.


You can have a look at the haxenme gallery to see a bunch of things that use Haxe and NME together.

http://www.haxenme.org/showcase/ http://www.haxenme.org/showcase/page-2

Of those in the community developing flash only games, I have encountered a strong tendency to move away from AS3 towards haxe simply because you get the same API with a better language, faster compiler and faster code.

The weak point of Haxe is in library bindings. As a relatively young language, It doesn't have bindings to the breadth of things that C++ or Python has.

The guys behind NME have made the workflow almost completely painless with a simple command-line tool that will download and install everything required to do development on a variety of platforms. See details for setup here. http://www.haxenme.org/developers/get-started

The disadvantage of NME is that it closely mirrors the Flash API. That's great if you are aiming for cross platform flash/other, but if you want to drop flash from your supported targets there are probably better API styles (which I believe is where Nicolas is heading with h2d)

I have written Games using NME, The Flash API directly and the HTML5 canvas directly. I'd like to have something that provided a Cross-platform glES interface across iOS, Android and WebGL/Javascript but currently no such system exists for haxe.


I know a few people who use haXe professionally.

One of them that I know personally is a professional Flash developer who used haXe exclusively for some times, because it had a better standard library than Flash (AS2 at this time) and generated lighter and faster SWF files. I remember him telling me that he made a somewhat huge (several hundred euros) donation to the project and that it still cost him less than buying the Macromedia Flash software. Since AS3 he's back to Flash thought.

Some others I know through their work: Motion Twin [1] for instance, who are the creators of a lot of very successful Flash games.

[1] http://motion-twin.com/


Motion-twin is Nicolas Cannasse's company. So they obviously use HaXe extensively.


I know, Motion-Twin is a company he cofounded. He recently left to start a new one: http://shirogames.com/.


Thanks for claryfying that, now p4bl0's post appears to me like more or less self promotion.


Huh what? I've never worked for Motion-Twin, and I actually never wrote any haXe or Flash myself. I'm just a programming language enthusiast (and student to an extent, since my PhD subject is in part about PL design) so I like to follow Nicolas Cannasse's work. I also happen to enjoy one of MT games (Alpha Bounce [1]) very much and to have web developers friends among whom one made me discover haXe years ago, talking very highly about the technology (that's how I discovered Cannasse's work too).

[1] http://www.alphabounce.com/


Sorry, self promotion in the sense, that a fan praises haxe but does not do business himself, which was not, what I was asking for.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: