canvas + fast javascript is cool
-
After a discussion a month or so back about what is and isn't a fractal, I've been teaching myself some more current javascript and DOM techniques by screwing around with some old fractal generating code rewritten in javascript. In chrome and firefox it is suprisingly fast, and with the alpha channel in the canvas, the rendering looks much better than I ever did with my 28 year old C++ version. Yes, the UI is horrible, and yes I'm just calling eval on a JSON structure stuck in a textarea, but I've been having fun with it and just wanted to share. http://www.brummerfamily.com/curvature/fractal.htm[^]
I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon
-
After a discussion a month or so back about what is and isn't a fractal, I've been teaching myself some more current javascript and DOM techniques by screwing around with some old fractal generating code rewritten in javascript. In chrome and firefox it is suprisingly fast, and with the alpha channel in the canvas, the rendering looks much better than I ever did with my 28 year old C++ version. Yes, the UI is horrible, and yes I'm just calling eval on a JSON structure stuck in a textarea, but I've been having fun with it and just wanted to share. http://www.brummerfamily.com/curvature/fractal.htm[^]
I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon
Andy Brummer wrote:
calling eval on a JSON structure
That's pretty much what happens when you load JSON via AJAX, so it's pretty standard.
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe, but not a personality. [Charlie Brooker] ScrewTurn Wiki, Continuous Localization and My Startup
-
After a discussion a month or so back about what is and isn't a fractal, I've been teaching myself some more current javascript and DOM techniques by screwing around with some old fractal generating code rewritten in javascript. In chrome and firefox it is suprisingly fast, and with the alpha channel in the canvas, the rendering looks much better than I ever did with my 28 year old C++ version. Yes, the UI is horrible, and yes I'm just calling eval on a JSON structure stuck in a textarea, but I've been having fun with it and just wanted to share. http://www.brummerfamily.com/curvature/fractal.htm[^]
I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon
Wow, that's pretty cool :)
Andy Brummer wrote:
the rendering looks much better than I ever did with my 28 year old C++ version.
Could that simply be because 28 years ago, screen resolutions were really small?
Programming is 10% science, 20% ingenuity, and 70% getting the ingenuity to work with the science. WYSIWYMGIYRRLAAGW: What You See Is What You Might Get If You’re Really Really Lucky And All Goes Well.
-
After a discussion a month or so back about what is and isn't a fractal, I've been teaching myself some more current javascript and DOM techniques by screwing around with some old fractal generating code rewritten in javascript. In chrome and firefox it is suprisingly fast, and with the alpha channel in the canvas, the rendering looks much better than I ever did with my 28 year old C++ version. Yes, the UI is horrible, and yes I'm just calling eval on a JSON structure stuck in a textarea, but I've been having fun with it and just wanted to share. http://www.brummerfamily.com/curvature/fractal.htm[^]
I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon
That's simply due machines getting faster, and it is cool. Add a common 150MB penalty of WPF and Silverlight bloat, you get pointless flashiness and nothing more. You can see how low and stable memory use is for Chrome. And this doesn't depend on a single proprietary language with new dynamic nonsense, or LINQ, MIL, or runtime being available on your device or machine. Apart from that failing on IE7, no wonder that Chrome and Firefox are on the rise, and more is about to be done right. Google has worked very hard to get the CPU use for JS down because it is still very high. And once the verifiable code and HTML5 is in place the silly race (as most things) between XYZ and MS is over. The only gripe is that JS could have been strongly typed rather than weakly, but it simply works and delivers on portability.
-
After a discussion a month or so back about what is and isn't a fractal, I've been teaching myself some more current javascript and DOM techniques by screwing around with some old fractal generating code rewritten in javascript. In chrome and firefox it is suprisingly fast, and with the alpha channel in the canvas, the rendering looks much better than I ever did with my 28 year old C++ version. Yes, the UI is horrible, and yes I'm just calling eval on a JSON structure stuck in a textarea, but I've been having fun with it and just wanted to share. http://www.brummerfamily.com/curvature/fractal.htm[^]
I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon