News for hackers. Stuff that matters.
Re:This is what Flash can do in 2008 by bd on Wednesday May 05, 2010 @08:16AM (#1320921)
Re:This is what Flash can do in 2008 by not_an_alien on Wednesday May 05, 2010 @09:44AM (#1321118)
'Similar', but not the same - it's only changing the color and not actually displacing the bitmap. Big difference.
Re:This is what Flash can do in 2008 by winter_blue on Wednesday May 05, 2010 @09:01AM (#1321009)
It's so slow.. According to hackermom the 14Mhz Amiga could do this at 25 fps, any idea why this is so slow on modern computers?
Re:This is what Flash can do in 2008 by efsavage on Wednesday May 05, 2010 @09:23AM (#1321059)
Because it's running in canvas? In other words, it's running within abstraction layer upon abstraction layer, with various other abstraction layers involved to help make sense of the fact that there are too many abstraction layers.

The amiga code was probably pretty close to talking to the graphics driver directly. Canvas is cool, but in terms of performance it's never really going to compete with native code, or even with flash for that matter since flash can remove some complexity by only building for a single, predictable, optimized environment.

Re:This is what Flash can do in 2008 by othello on Wednesday May 05, 2010 @10:36AM (#1321305)
"Graphics driver" still sounds too complex. The code was probably poking bytes to the memory segment mapped directly to the display - just like in DOS days, where each byte of the 0xA000 segment represented a pixel when using a VGA 320x200 resolution, 256 colors palette.
Re:This is what Flash can do in 2008 by raganwald on Wednesday May 05, 2010 @10:06AM (#1321204)
> it's running within abstraction layer upon abstraction layer, with various other abstraction layers involved to help make sense of the fact that there are too many abstraction layers.

"Every problem can be solved by adding another layer of abstraction--Except for the problem of having too many layers of abstraction"--Alan Perlis

Re:This is what Flash can do in 2008 by est on Wednesday May 05, 2010 @09:47AM (#1321138)
That's why everyone is embracing GPU powered graphics.
Re:This is what Flash can do in 2008 by mitjak on Wednesday May 05, 2010 @09:30AM (#1321079)
Not in Chrome it isn't!
Re:This is what Flash can do in 2008 by MichaelGG on Wednesday May 05, 2010 @09:23AM (#1321058)
It's not slow on modern computers. It's slow on these environments that weren't made to execute code quickly, much less do any pixel manipulation. How many orders of magnitude more instructions is it to set a pixel on an Amiga, versus setting it via JavaScript?
Re:This is what Flash can do in 2008 by Shorel on Wednesday May 05, 2010 @10:33AM (#1321293)
It's just as fast in Opera!
Re:This is what Flash can do in 2008 by keltex on Wednesday May 05, 2010 @10:48AM (#1321341)
Dramatically faster on Chrome vs. Firefox. I think Google is right... javascript speed does make a difference.
Re:This is what Flash can do in 2008 by tomlin on Wednesday May 05, 2010 @10:35AM (#1321302)
Really? What dimension of reality are we living in if we're even considering comparing this to canvas today?
Re:This is what Flash can do in 2008 by teamonkey on Wednesday May 05, 2010 @09:49AM (#1321142)
A bit of context: this is a demo showing parallax mapping, which was a soon-to-be-released feature of the Flash-based Alternativia engine at the time. It's was never supposed to be a state-of-the-art demonstration of Flash.

http://blog.alternativaplatform.com/en/2008/01/04/character-...

Re:This is what Flash can do in 2008 by pieter on Wednesday May 05, 2010 @07:00AM (#1320808)
Not respecting dvorak keyboard layout, even in 2008?
Re:This is what Flash can do in 2008 by entitlement on Wednesday May 05, 2010 @08:35AM (#1320952)
Lack of universal acceptance was one of the cons you either accepted, or naively overlooked, back when you decided dvorak was the way to go. It'd be nice to see it work in more places, sure, but it just ain't... you're conflating 'should' and 'could'.
Re:This is what Flash can do in 2008 by Groxx on Wednesday May 05, 2010 @10:52AM (#1321358)
The issue with ignoring dvorak is that any web browser (heck, nearly any application) will handle it just fine. Flash apparently doesn't, or makes doing simple things (like capturing +/- keystrokes) hard enough that people don't do them in a generic way.

Given that Flash is primarily used in the web browser, and most of the world doesn't use QWERTY, it's rather shameful.

A quick test on my end shows that the Flash example indeed does not respect dvorak, while a Javascript key event captures the same code regardless of layout. Including Japanese. How's Flash handle that?

Re:This is what Flash can do in 2008 by weavejester on Wednesday May 05, 2010 @10:52AM (#1321360)
Alternative keyboard layouts work for pretty much everything. Almost all applications rely on the OS to translate key mappings, so there's virtually no incompatibility to worry about. I don't think I've ever come across an application that didn't work just as well in Dvorak as Qwerty.
Re:This is what Flash can do in 2008 by ZeroGravitas on Wednesday May 05, 2010 @11:56AM (#1321536)
A snarky Apple fan could respond in the same way with regard to the absence of Flash on the iPhone products.
Re:This is what Flash can do in 2008 by logic on Wednesday May 05, 2010 @12:06PM (#1321580)
And additional mouse buttons.
Re:This is what Flash can do in 2008 by davidedicillo on Wednesday May 05, 2010 @08:56AM (#1320993)
And how would this improve the web experience? (considering you can do similar stuff with canvas as well...)
Re:This is what Flash can do in 2008 by owengot on Wednesday May 05, 2010 @09:52AM (#1321149)
One word: Indeed.. http://twitpic.com/1l9b7k
Re:This is what Flash can do in 2008 by baskinghobo on Wednesday May 05, 2010 @08:04AM (#1320901)
I remember something exactly like this except it was an Asian lady and it looked like a real photo. Also instead of looking away from the cursor her eyes were following the cursor.
Re:This is what Flash can do in 2008 by lenni on Wednesday May 05, 2010 @06:53AM (#1320794)
This sure is impressing, but nobody said Flash doesn't have some good features. The question is about whether anybody who wants to can implement a player for this page.
Re:This is what Flash can do in 2008 by est on Wednesday May 05, 2010 @06:58AM (#1320802)
Re:This is what Flash can do in 2008 by swombat on Wednesday May 05, 2010 @07:19AM (#1320830)
The hero example is a lot better than the one you posted.
Re:This is what Flash can do in 2008 by drKarl on Wednesday May 05, 2010 @07:21AM (#1320833)
Re:This is what Flash can do in 2008 by BillGoatse on Wednesday May 05, 2010 @08:00AM (#1320896)
http://www.kongregate.com/games/mike_id/doom-1

Wolfenstein, meet Doom.

I'd say the bunker example above is pushing Quake 2 levels.

I agree that Adobe have dropped the ball with Flash, but "HTML 5" is no where near where it should be...

Re:This is what Flash can do in 2008 by jm4 on Wednesday May 05, 2010 @07:55AM (#1320885)
Neat. This example is nowhere near as pretty as the Flash examples, but it's interesting that my CPU is barely doing anything even when walking around. In the Flash version my CPU is pegged just sitting there doing nothing.
Re:This is what Flash can do in 2008 by est on Wednesday May 05, 2010 @08:07AM (#1320904)
I am pretty sure if HTML5 implement the same scene as bunker.swf it would hog much much more CPU.

http://www.ponticstar.com/projects/burning-words/

Try set the font to 100, and see if it's still as smooth as you thought.

Re:This is what Flash can do in 2008 by not_an_alien on Wednesday May 05, 2010 @09:41AM (#1321110)
Canvas is by all means a CPU hog and much slower than software-mode Flash.

http://vimeo.com/10553088

But hey, Flash is dying, etc

Re:This is what Flash can do in 2008 by Shorel on Wednesday May 05, 2010 @10:40AM (#1321317)
Flash Games, demos, and webcomics are nice.

However:

No matter the codec or operating system, we should not NEED Flash to view video on the Web.

Re:This is what Flash can do in 2008 by est on Wednesday May 05, 2010 @11:29AM (#1321456)
i completely agree

however, suppose you are about to design a video site for the common public back in 2005, what technology would you choose? quicktime? realplayer? windows media player?

i dont think flash video is unneeded any soon, even if html5 has a 70% adoption rate, people would still need flash for h.264 fallback

Re:This is what Flash can do in 2008 by Shorel on Wednesday May 05, 2010 @10:38AM (#1321314)
150 in Opera runs smooth
Re:This is what Flash can do in 2008 by raimondious on Wednesday May 05, 2010 @10:40AM (#1321318)
The SWF specification is published. Anyone who wants to can http://www.scaleform.com/products/gfx. You can also create a compiler: http://en.wikipedia.org/wiki/MTASC http://en.wikipedia.org/wiki/SWFTools.
Re:This is what Flash can do in 2008 by mhd on Wednesday May 05, 2010 @07:54AM (#1320883)
I am not an atomic playboy!
Re:This is what Flash can do in 2008 by jleard on Wednesday May 05, 2010 @09:49AM (#1321141)
Re:This is what Flash can do in 2008 by hackermom on Wednesday May 05, 2010 @07:01AM (#1320809)
It's just plain displacement mapping. It's a very simple (and old), but versatile technique allowing a large amount of effects to be done. The first time I saw this was in 93 or 94, rendered in real time in 256*256 in 25 fps, on an Amiga running a 14mhz 68020 processor. THAT was impressive to me, but seeing this 15 years later in 15-20 fps in Flash on a 2ghz machine just isn't.
Re:This is what Flash can do in 2008 by dca on Wednesday May 05, 2010 @07:50AM (#1320875)
Exactly. And flash was introduced 14 years ago. It really has no excuse for not having better performance at this point. I'm glad its dying.
Re:This is what Flash can do in 2008 by swombat on Wednesday May 05, 2010 @07:20AM (#1320832)
Agreed - Also worth looking at the other examples est posted lower in the discussion. Those are more interesting.
[deleted]
Re:This is what Flash can do in 2008 by DrJokepu on Wednesday May 05, 2010 @08:33AM (#1320944)
Of course the real difference is a lot higher as it's not just about the clock rate - an awful lot of improvements were made in areas such as the pipeline, caching, floating-point support etc. so I wouldn't be very surprised if the real performance ratio was higher than 1000.
Re:This is what Flash can do in 2008 by ToastOpt on Wednesday May 05, 2010 @09:07AM (#1321018)
Floating point ops used to take a while. A 16Mhz Amiga with a floating point co-processor might have had one of these:

http://en.wikipedia.org/wiki/Motorola_68881

Yeah, 16 Mhz ==> 160 KFlops, if you believe wikipedia. Supposedly the i7 has a peak of 79 GFlops. Sure, you can't get all of that performance out (either then, or now), but 79,000,000 / 160 is a bit larger than 143.

You used to measure the number of cycles an integer multiply costed, in the dozens or hundreds. Now it takes 1/4 of a cycle. A factor of 10,000 might be a fairer number