Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    54comments
  2. Cloudflare Quick Tunnels(cloudflare.com ↗)
    188comments
  3. Apple releases iPhone Duo simulator and Xcode 27.1 beta(developer.apple.com ↗)
    14comments
  4. Saving another 100TB of RAM with math (and Rust)(cloudflare.com ↗)
    7comments
  5. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    33comments
  6. Cache-to-Cache: Direct Semantic Communication Between Large Language Models(arxiv.org ↗)
    3comments
  7. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    56comments
  8. The Implications of Linguistic Illegibility for LLM Security(arxiv.org ↗)
    6comments
  9. OpenJev(openjev.com ↗)
    231comments
  10. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    137comments
  11. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    122comments
  12. Our brain evolved from two primitive nervous systems that merged: Study(newscientist.com ↗)
    29comments
  13. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    155comments
  14. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    13comments
  15. Border agents can search cellphones without a warrant or reasonable suspicion(lawandcrime.com ↗)
    53comments
  16. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    192comments
  17. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    83comments
  18. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    192comments
  19. Show HN: Ax-check.com – Can agents use your product?(ax-check.com ↗)
    21comments
  20. Minimal Phone 2(minimalcompany.com ↗)
    92comments
  21. How SpaceX streamlined the Raptor engine(construction-physics.com ↗)
    9comments
  22. A search-and-inference database from scratch in pure Zig(antfly.io ↗)
    5comments
  23. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  24. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    5comments
  25. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    12comments
  26. How to Write with an LLM(sockpuppet.org ↗)
    211comments
  27. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    13comments
  28. Jemalloc 5.4.0(github.com/jemalloc ↗)
    82comments
  29. I don't like passkeys(hawksley.dev ↗)
    654comments
  30. The scourge of x86 emulation(fex-emu.com ↗)
    73comments

Getting Rid of Flash

56 pointsby 13y agoncannasse.fr
20 comments
13y agoHN ↗

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)

13y agoHN ↗

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

13y agoHN ↗

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.

13y agoHN ↗

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).

13y agoHN ↗

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/

13y agoHN ↗

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

13y agoHN ↗

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

13y agoHN ↗

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/

13y agoHN ↗

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.

13y agoHN ↗

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.

13y agoHN ↗

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.

13y agoHN ↗

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.

13y agoHN ↗

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.

13y agoHN ↗

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.

13y agoHN ↗

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.

13y agoHN ↗

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.

13y agoHN ↗

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.