Julia Meets HTML5
mikejuk writes "Google labs has created a demo web page where fractals combine with HTML5 to give a fully interactive viewer that uses nothing but JavaScript and as many cores as you care to offer it and not a plug-in in sight."
So why not hyperlink "Julia sets" to something telling us wtf a Julia set is?
htm5 schmaTML5. I wrote a fractal viewer in TeX, in 1995. How's that for useless? http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=mandel
I thought it was Julia :)
Here's the link to Google Labs' . Also, there's an obvious typo in the summary title. I'm unhappy with Slashdot lately.
"Google labs has created"... I think not. Actually I suspect talented people have created. How about their names?
Or have they been totally borged?
People create. Corporations monetize.
Here's the link to Google Labs' Julia Map. Also, there's an obvious typo in the summary title. I'm unhappy with Slashdot lately.
And ? So what.
I feel like I did after seeing Inception - that's it? Zzzzzzzz
If Google really cared they would fix Android Chrome to reflow text, instead of discriminating
And I thought Flash used a lot of processor time!
The canvas tag is a part of the HTML5 spec. So it is an HTML5 application.
It's nice, although not as quick as all that on my machine.
But what does this demonstrate? Anyone interested knows you can display arbitrary graphics using HTML5 canvas. Anyone with any sense knows you can calculate a view of a Julia set in Javascript. Add the two together, and it's inevitable that this demo would be possible.
Now, how about using Web sockets to set up some kind of P2P network whereby if someone else is viewing the same region as you are, your machines collaborate on the calculations...
The HTML demo is here.
In other new, /. editors still fail the Turing test.
One of the first things I ran on my shiny-new Commodore Amiga in 1985.
"I disapprove of what you say, but I will defend to the death your right to say it." - historian Evelyn Beatrice Hall
Almost as slow as the new slashdot interface!
Boobs?
Either this is getting slashdotted and causing something to run slowly or what should be javascript running locally on my
dmesg | grep CPU0:
CPU0: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ stepping 01
is slower than my old 486 at rendering a mandelbrot.
I wrote my own viewer on an archimedes for a school project over 14 years ago and it was faster than this.
Any clues?
Or is this proof that browsers and scripts are only good for GUI and not actual processing?
...it's neat. Nothing more, nothing less.
Here's a wacky idea: a link that is (a) not slashdotted, and (b) not to a blog posting.
Google Labs
And It performs awesomely! They need to stop smoking the banana peels and put the javascript down.
Tiger Blooded Bi-Winning Machine
Just Google it, there are various years old implementations! http://blog.nihilogic.dk/2008/10/23-pretty-javascript-fractals.html
They render pixels on screen according to some mathematical equation. Stop the presses, nobody has done this before. Pretty underwhelming coming from Google.
Microsoft's IE9 HTML5 demos are far more impressive. Actually viewed this on Chrome and it was quite slow, but Chrome is slow compared to most new generation browsers including IE9 when rendering HTML5.
From Google? So it's some sort of new-fangled wrapper around Flash?
Thank god for silverlight, this html5/javascript shit runs like crap.
The demo is pretty; but Not Fast, even in the latest chrome on a dual-core A64. Not going to try it in FF on the netbook...
It takes me back to the old days, of my misspent youth, when we grabbed somebody's Postscript fractal generator demo, set the number of iterations to something dubiously suitable to even the desktops of the time(it worked; but took about ten minutes) and then sent it to every postscript-capable printer we could locate across our school's network...
I hate to say it, but javascript and canvas are disappointingly slow. XaoS is dozens of times faster than this, and while I'm sure a lot of it is to do with specific fractal optimisations, surely a significant factor is the slowness of pixel operations and drawing images.
I'm writing an HTML5 game, and simply drawing an image that fills the screen (with no resampling) brings you down to about 50 fps. A few more small images, some resizing later and I'm into the 30 fps realm, and that's on a really fast computer using Chrome.
Excellent demo though :)
[John]
Shit better not happen!
I got nothing. Lame IE8 here at work and Julia Map opens to a big blank screen with a grabber hand...nuthin'.
If it doesn't "just work" it won't gain traction.
Oh, a fractal viewer. Or more specifically, a Julia set viewer.
Would have been nice to know what sort of a viewer this was by the summary. After all, it's not like there are other things named Julia or that fractals have been used for other types of viewers.
It only goes to a zoom level of 50. Hmm!
America, Home of the Brave.
Here's a similar one: http://blogbybubble.blogspot.com
There's a similar one at http://blogbybubble.blogspot.com/
Native languages for CPUs/GPUS... much better at this:
SSE and GPU (CUDA) implementation... 210 fps at 1024x768
Instead of trying so hard to optimize JavaScript to do things like that, why can't we just get a wider language choice? Like, a properly sandboxed language with static typing could be handy, and the standard could mandate its presence. Everybody would get a compatible browser eventually, if it allowed them to run web apps that are actually fast.
It doesn't work past about zoom level 48-50. Fractals aren't supposed to have bottoms.
I am on a 6 core AMD Phenom II machine and it seems to be limited to only using 3 cores.
Don't see any ways of increasing the number of cores it can use. Maybe thats a hard limit in that script I guess (no, I have not checked the source).
FF 3.6.13 running on Win 7 Ult 64bits / 8 GB Ram.
This single core 512MB RAM laptop was choking at 100% on the demo. I immediately thought of Flash. With HTML5, WHERE do we go to in the process managers after the fact to reprioritize? Flash plugins are exposed as a separate process in Firefox. In Opera and IE, it's impossible to micromanage the slow / runaway flash work directly as you only find the whole opera.exe or iexplorer.exe. Chrome has the most separation into multiple processes, though not perfect, and you can guess and shepperd the hungry one individually by percent CPU usage.
Non-IE HTML5-capable browsers are already at 50% browser share. Since you mentioned underpowered laptops flops-wise, we should remember that it won't be long before clandestine ad-servers start experimenting with the penetration of "dual-stack" ads over our flash blocking tools (for those too squeamish to enable No-script on computers they share with the incompetent and uninformed.) I am concerned that just like we can't throttle JS processor usage separately for, say, slashdot browsing, then ad-makers will slip through our unguarded doors till browsers give us more direct control over impending plugin-less CPU hogging.
Our Real-World HTML5 Benchmark at ClubCompy had a Julia set running in the browser a full month ago!
It's not a fair comparison though that they're so much faster than us, our code runs out of a BASIC-like language called Tasty that runs ATOP JavaScript.
What's the point of the canvas tag without an API?
Don't thank God, thank a doctor!
Go here: http://mandelbrot.is.rly.gd/
I created this a couple years ago to explore custom rendering of tiles on Google Maps. Neat that they're doing it all in JS - my version is entirely rendered server-side!
That's 0.01% of the computing power of my machine.
"not a plug-in in sight"
Submitter needs to check out the following 7 games/gadgets.
Then (s)he understands that nowadays there is a _lot_ more possible without plug-ins than just checking out fractals.
TankWorld
Google Body (yes, also from Google)
Crystal Galaxy
Biolab Disaster
WordSquared
Canvas Cycle
Freeciv.net
in FF 3.6 it is dog slow... in Google Chrome 10 it is passable.
That 7 MHz 68000 CPU rendered a lot faster than my quad core Phenom does today.
Great, now I can render the Mandelbrot set on my dual-core 4800+ box nearly as fast as I could on my 386 with FractInt.
I wish I was kidding, but if this is a representative demo of HTML5 then we're in trouble.
"Nine times out of ten, starting a fire is not the best way to solve the problem." - my wife