News for hackers. Stuff that matters.
Re:Nissan Leaf by citricsquid on Friday February 18, 2011 @01:17AM (#2234470)
I don't understand how we've gone from "Flash is crap for entire websites" (edit: which is almost always true) to "Flash is the devil in every situation". It has its place, Javascript will never and shouldn't try and "kill" Flash, they're different.
Re:Nissan Leaf by spoondan on Friday February 18, 2011 @02:06AM (#2234571)
How exactly are Flash and JavaScript different? I don't see the separate niches you envision these technologies occupying for the rest of their existence.

And how can you say JavaScript "will never" kill Flash? Aren't Apple and JavaScript already hurting Flash's market share? Doesn't every major browser release leave less and less that Flash alone can do? Aren't we looking at an example of a major, mainstream brand avoiding Flash for a site? What is going to change over the next few years to reverse these trends?

Re:Nissan Leaf by HNer on Friday February 18, 2011 @02:46AM (#2234658)
So can html5 continually ping a variable (say a time point) while a video is playing, including other variables back to a third party server (if the video content was embeded via a jsonp wisget etc.) ??
Re:Nissan Leaf by Hixie on Friday February 18, 2011 @04:11AM (#2234817)
Sure.

<video ontimeupdate="sendXHR(currentTime)" src="myvideo" controls></video>

...where "sendXHR()" is a five- to ten-line wrapper around XMLHttpRequest.

Re:Nissan Leaf by coderdude on Friday February 18, 2011 @01:24PM (#2236577)
Indeed. So now browsers can finally start to do what Flash can do. This argument is only recently valid then.
Re:Nissan Leaf by frevd on Friday February 18, 2011 @02:54AM (#2234674)
That's the point - it can do whatever you can do, all technical prerequisites are available (threads, background-requests, runtime-dynamic code etc). Once the proper tools are available providing diverse standard functions, it will spread and be easier for non-developers.
Re:Nissan Leaf by spoondan on Friday February 18, 2011 @03:37PM (#2237147)
Hixie answered your specific question, but I think you're missing a very important point: "Doesn't every major browser release leave less and less that Flash alone can do?" There are some things (not this one) that Flash can do that browsers aren't yet able to do. The present limitations dictate what you can do today, but they have little relevance to the long-term discussion.
Re:Nissan Leaf by schwabacher on Friday February 18, 2011 @02:58AM (#2234682)
I don't want to weigh in on the flash/javascript debate, but couldn't you repeatedly change the src on a hidden image with get variables in the url?
Re:Nissan Leaf by mynameishere on Friday February 18, 2011 @03:18AM (#2234724)
The thought of Apple killing flash just about makes me sick. I really don't want to be forced into paying the 50-100 percent Apple premium for hardware just because they managed to "kill" a technology everyone decided to hate for no reason.
Re:Nissan Leaf by lsc on Friday February 18, 2011 @04:36AM (#2234873)
wait, what?

First, I don't own a single apple product. Thinking back, I don't think I ever have. When I worked at Yahoo they gave me a macbook, and I traded it with one of the Indians when he visited (Yahoo india got HP laptops which run linux, and were kinda okay copies of the thinkpad T series. My boss was okay with it, but Yahoo India made us trade back the next time the guy came to America.)

I'm a linux guy; I don't use flash. Security hazard, you know, if you compromise my workstation, it's damn hard for me to stop you from compromising the systems I admin.

but you know what? that website? works great on chrome in Linux.

Me, I don't like apple any more than you do. I like it less, most likely. I'm extremely unlikely to buy any of their hardware (if nothing else, the macbook keyboards and trackpads just feel /wrong/ somehow. I mean, it's just preference, but they just do not work for me. I've been using ThinkPads with the little eraser head pointers for well over half my life. Not switching now.)

But we can all cheer for the death of flash, that is, if you can do everything you can do in flash with something more open and less buggy.

Re:Nissan Leaf by joegaudet on Friday February 18, 2011 @03:50AM (#2234789)
The _reason_ everyone decided to kill Flash, is because it, combined with pdf reading, is responsible for the majority of browser crashes.

The push here is to eliminate an unnecessary layer from the web stack. And I would point out that while apple has taken the steps to rid flash from their mobile platforms, they aren't leading the charge per say, they are just a very large player in this space.

Finally, just because flash dies, doesn't mean you'll have to buy an apple computer, last I check FF / IE / Opera and even gasp Safari run on non-apple platforms.

Re:Nissan Leaf by stcredzero on Friday February 18, 2011 @09:44AM (#2235550)
The _reason_ everyone decided to kill Flash, is because it, combined with pdf reading, is responsible for the majority of browser crashes.

That a company with such incompetent programming and slimy marketing can come to be so ubiquitous -- this indicates something is broken in the functioning of our software market.

The last time I visited my sister, I asked her why she had Adobe Reader installed on her new 15" Macbook -- AFAIK, she doesn't need it, and Preview, which comes pre-installed, is so much more responsive. (Yes, I was watching her wait for a PDF to come up.) She just pretended I didn't ask. I wonder what trick they pulled?

Once, a few years ago, I started snooping around my old work laptop. Some background process was soaking up large amounts of CPU, even when I had no applications up. I found it was some Visual Basic background process polling so it could instantly spring into action with some Adobe Suite thing. After I deinstalled Adobe and installed Foxit Reader, my machine was much snappier!

Re:Nissan Leaf by CoryMathews on Friday February 18, 2011 @09:26AM (#2235477)
Safari sort of runs on windows. But that sort of is a stretch.
Re:Nissan Leaf by wisty on Friday February 18, 2011 @07:21AM (#2235153)
I have flash-heavy sites, but for the same reason I hate javascript-heavy sites:

* Silly animations are a bad idea in Powerpoint, a bad idea in Word, and a bad idea in web documents. Word seems to be the only place where most people avoid them though.

* Running a program in a web page breaks statelessness.

* Support for disabled readers will get lost.

I understand that gopher - just text and a list of links - is a little too minimalist. But the other extreme (setting up a GUI just to show a document) is worse.

Re:Nissan Leaf by nfg on Friday February 18, 2011 @03:29AM (#2234745)
What are you talking about?
Re:Nissan Leaf by mynameishere on Friday February 18, 2011 @03:41AM (#2234770)
Derp. There are many applications that I cannot run on my computer because my computer isn't an apple. All of these could have been written in flash, and thus been cross-platform. Apple doesn't like flash, because they want people tied to their platform. (Obviously, I'm not talking about plain javascript here, though.)

One of these days, a "must have" killer app is going to come around--that could have been written in flash--that will force me to buy an Apple. At a ridiculous premium.

I don't think that's too hard to understand, predict, or dislike, given that people have been bitching about a similar strategy from a similar company for many years.

Re:Nissan Leaf by anthonyb on Friday February 18, 2011 @03:46AM (#2234779)
What are you talking about?
Re:Nissan Leaf by delackner on Friday February 18, 2011 @05:06AM (#2234923)
Maybe he's a sock puppet that needs to back-fill some believable human look and feel?
Re:Nissan Leaf by mynameishere on Friday February 18, 2011 @07:31AM (#2235172)
Are you really that confused? I'm not talking about javascript, browser-based applications here, but rather the various apps that run on Apple's proprietary hardware. I think I made that clear, and I thought it was pretty clear that Apple is trying very hard to kill flash and replace it with its own platform that depends upon its own hardware.

This seems really, really simple to understand, but let me know if it's still confusing.

Re:Nissan Leaf by jasonlotito on Friday February 18, 2011 @08:18AM (#2235271)
You are confusing. This discussion is about Flash and JavaScript on the web, and you're talking about iOS Apps. One has nothing to do with the other. So, you decided to take the context of the discussion (Flash on the web) and change it (Flash apps), and then limit it to specific hardware (iOS devices, as you cannot run iOS apps on Macs).

On top of all of that, you are confusing how Apple is trying to kill Flash and replace it on the iOS devices (which is not entirely accurate).

So, while you thought you were clear, you weren't. You were confusing, incoherent, and frankly, even after I tried to give you the benefit of the doubt, I still find your arguments weak.

> This seems really, really simple to understand,

Context. You cannot join a conversation talking about something completely unrelated and expect to be understood.

Re:Nissan Leaf by mynameishere on Friday February 18, 2011 @10:41AM (#2235805)
You obviously understand what I'm talking about so how confusing could I honestly be? I'm pretty sure that everybody else understood me, even if they claimed otherwise, because we're not idiots here. It's a cheap tactic to pretend that I'm "incoherent" when I am certainly not.

The topic is flash. Everybody is saying that it should be replaced. Its replacements include 'X' and 'Y'. The fact that I reference 'Y' rather than 'X' is a completely natural context switch.

Re:Nissan Leaf by jasonlotito on Friday February 18, 2011 @12:02PM (#2236210)
> You obviously understand what I'm talking about so how confusing could I honestly be?

It took reading through multiple comments that were out of context from the original discussion. Your original comments weren't clear.

> I'm pretty sure that everybody else understood me, even if they claimed otherwise, because we're not idiots here.

That's your sign. =)

We generally aren't idiots here. So if people are having a hard time understanding what you mean, assume the problem lies on your end and that you are failing at communicating. Again, context is important, especially in threaded conversations.

> It's a cheap tactic to pretend that I'm "incoherent" when I am certainly not.

But you were. You're believe that you were perfectly clear hinders your acceptance of that.

And please understand I say this with the hope of helping you see how you weren't clear. I mean, I took the time to read your comments, which meant I had to highlight them, even though they were voted down. I could easily have ignored them.

> The topic is flash.

Flash on the web and JavaScript, CSS and others replacing Flash. That's the topic. It's not just flash.

> Everybody is saying that it should be replaced.

Yes, everyone is saying Flash on the web should be replaced.

> Its replacements include 'X' and 'Y'. The fact that I reference 'Y' rather than 'X' is a completely natural context switch.

It's "replacement" on iOS devices is not part of the topic, for several reasons.

The technology being linked to is not limited to iOS devices. In fact, it has nothing to do with Apple. Apple, in truth, has little to do with the desire to remove Flash from the web. However, they did put a spotlight on it.

So, if the technology being linked to and discussed (JS, CSS, HTML, etc) has nothing to do with Apple, but rather open standards, then it's fair to assume when you talk about proprietary devices, you're referring to iOS devices and the apps there. This is confusing. Flash has never been on iOS, meaning it's not being replaced. Also, Flash isn't being replaced on the desktop either. Flash is the one trying to be the platform to develop desktop applications on.

But that's mostly irrelevant, because you said this:

"I really don't want to be forced into paying the 50-100 percent Apple premium for hardware just because they managed to "kill" a technology everyone decided to hate for no reason."

You won't be forced to pay Apple premium for hardware. In fact, costs will only go down, because what is replacing Flash is open standards. If Flash dies today, nothing changes in terms of your choice of computer to use.

In fact, by keeping Flash alive, you are forcing others to pay a premium. By replacing Flash with open standards, you essentially level the playing field.

Anyways, this has gone on for quite a bit.

Re:Nissan Leaf by _b8r0 on Friday February 18, 2011 @05:10AM (#2234927)
What killer app is only available in Flash?
Re:Nissan Leaf by quiesce on Friday February 18, 2011 @05:49AM (#2234989)
Only the Oxford English Dictionary app comes to mind, terrible (content aside, hence managing to retain “killer” status) and ugly as it is.

However, it in no way stands as example of either good design or the strengths of Flash.

Re:Nissan Leaf by CoryMathews on Friday February 18, 2011 @09:27AM (#2235480)
grooveshark.
Re:Nissan Leaf by phsr on Friday February 18, 2011 @11:17AM (#2235982)
Grooveshark has an HTML5 version now, im pretty sure
Re:Nissan Leaf by eddieplan9 on Friday February 18, 2011 @12:17PM (#2236275)
Last time I checked - actually yesterday - the HTML5 is only used for the UI part. The audio is still done in Flash, maybe for the sake of DRM. I hate it, because I have my Flash plugin removed. I have to open Chrome just to use Grooveshark.
Re:Nissan Leaf by wladimir on Friday February 18, 2011 @01:41AM (#2234523)
Well, to me it's good news, the web will be a lot snappier when it's fully integrated. No more clunky plugins. No matter what Adobe says, the Flash plugin still manages to crash a lot here, increases memory usage, and loads the CPU like crazy.

There are certainly a few corner cases left in which flash remains a better fit, but it's losing territory, fast. Good work Nissan.

Re:Nissan Leaf by prawn on Friday February 18, 2011 @02:03AM (#2234567)
I'm no Flash apologist, but there was recently a HN thread about CSS-only drop shadows. Many people on fairly modern laptops reported significant slowdowns when it came to scrolling the page, animations, etc. And that was just with drop shadows.

That Nissan example ran pretty clunkily on my laptop and another desktop I checked in the office.

(That said, gradient transparencies always seem to doom Flash pieces to slow-hell for me.)

Re:Nissan Leaf by wladimir on Friday February 18, 2011 @02:13AM (#2234590)
True -- I didn't say flash is completely useless, just that it's losing territory. There is no structural reason why pure browser rendering should be slower, but indeed some tricks are still slow.

Anyway, the quip with rendering performance is only a matter of time. With every browser release, CSS and HTML rendering performance is increased, for example, by leveraging GPU acceleration.

Flash will be beaten soon, I'm sure. And at least that works for every platform, not just the ones on which Adobe decides it's important.

Re:Nissan Leaf by prawn on Friday February 18, 2011 @03:06AM (#2234700)
Platforms Adobe decides are important vs modern or whatever subset of non-MS browsers are capable of handling what you want to do...

I've had a bad day dealing with HTML email newsletters so I'm probably a bit more pessimistic about it than usual, but all sides of working on the web are a serious pain in the arse!

Re:Nissan Leaf by homecoded on Friday February 18, 2011 @02:41AM (#2234649)
Making things simpler on the net is probably a good thing. I'm worried though about what will happen when the same bad programmers who make mem-leaking and performance consuming flash ads now will jump on the JavaScript train. Flash is in a shell: no messing up the global namespace, no interfering with the rest of the website code.

It has been said before: not Flash is the devil. It's people who program but who have no clue how it's done. They have destroyed the reputation of a not-too-bad platform.

Re:Nissan Leaf by benmccann on Friday February 18, 2011 @02:04AM (#2234569)
Flash is a threat to the openness of the web. I can't reliably watch video, play games, or do anything else requiring Flash on my computer because I run Linux. Requiring you run an OS of Adobe's choosing is antithetical to the basic tenets of the web.
Re:Nissan Leaf by omellet on Friday February 18, 2011 @08:02AM (#2235225)
I run flash on ubuntu/chrome. Not that you have to, but the option is there.
Re:Nissan Leaf by radley on Friday February 18, 2011 @02:11AM (#2234588)
No it's only antithetical to the tenets of Linux users.

edit: Just saying, people who knowingly choose Linux don't expect to use Flash.

Re:Nissan Leaf by billybob on Friday February 18, 2011 @09:40AM (#2235529)
I disagree. The web exists because browsers and servers communicate based on open standards. The HN server doesn't know or care what OS or browser I'm using. I could be sitting here typing in my GET requests manually if I was fast enough. Nobody cares. It's a protocol.

When the web relies on a technology where the "protocol" is "first install this proprietary plugin, if it's available for your setup, and if not, screw you," it is antithetical to the protocol-based approach.

Look at how much browsers have improved in the last few years, making new things possible on sites. This happened because anybody can write a browser that conforms to HTTP protocols, Javascript specifications, etc. Do you see the same kind of improvement in Flash players? No. Because there isn't competition.

The web is better off without Flash. Or anything else that can't have 100 competing implementations.

Re:Nissan Leaf by fleitz on Friday February 18, 2011 @02:15AM (#2234591)
Some linux users. I love Linux but very little of the reason has to do with free software and has everything to do with Linux being the best way for me to do a number of tasks.

Note: I use Windows / OS X on the desktop.

Re:Nissan Leaf by Locke1689 on Friday February 18, 2011 @02:28AM (#2234624)
Well, to a certain extent. There's also a viable position that Flash is simply the improper tool for every job by the nature of its construction. The fallacy is believing that 1) the tool which should replace Flash exists or 2) existing technologies should be improperly shoehorned to replace the areas where Flash should be replaced.
Re:Nissan Leaf by radley on Friday February 18, 2011 @02:18AM (#2234601)
No YC-er would post such an inflammatory title like this. Hacker News has grown significantly in the past few years so the professional tone has inevitably diminished.
Re:Nissan Leaf by doorhammer on Friday February 18, 2011 @03:12AM (#2234713)
I tend to agree with this sentiment.

When I read a title like this, I pretty much assume that I'm not going to get any decent semi-objective information from the post.

It's flame-war fodder if you ask me.

Re:Nissan Leaf by Yaggo on Friday February 18, 2011 @02:24AM (#2234612)
"Flash is the devil in every situation"

Aside from technical issues, I think the above is valid philosophical argument per se due to closed nature of Flash.

From the very beginning, the Web evolved as an open system; no special tools are required for content creation and every browser has equipped with a "view source" feature.

Re:Nissan Leaf by nikster on Friday February 18, 2011 @07:15AM (#2235141)
For the vast majority of things Flash is being used for, it's crap.

Namely, video, and site navigation.

For other things it could be used - but you could also use HTML5 like the site in the example to do anything you'd do in Flash, and not lock out iPad, iPhone, Android users. Plus, it's open.

Re:Nissan Leaf by frobozz on Friday February 18, 2011 @04:46AM (#2234888)
Actionscript is an ECMAScript dialect.
Re:Nissan Leaf by webuiarchitect on Friday February 18, 2011 @02:31AM (#2234629)
Btw, SVG isn't exactly JavaScript; its a part - just like ActionScript in Flash.