4 ms·
Buddhabrot Fractal in Canvas / CoffeeScript (with annotated source)
- jashkenas 16y agoHere's the annotated source code: http://jashkenas.s3.amazonaws.com/misc/buddhabrot/docs/buddhabrot.html http://jashkenas.s3.amazonaws.com/misc/buddhabrot/docs/buddh... It was mentioned on a Changelog interview earlier today, so I figured it would be good to put up: http://thechangelog.com/post/849754840/episode-0-2-9-coffeescript-with-jeremy-ashkenas http://thechangelog.com/post/849754840/episode-0-2-9-coffees...
- jaen 16y agoneeds web workers for some multicore sweetness!
- jashkenas 16y agoThat would be fantastic. You can't touch the DOM (or the canvas) through a webworker, so you'd have to serialize your list of exposure updates, and pass them around between the cores somehow...
- mrkurt 16y agoAs cool as I think CoffeeScript is, the annotated source examples are really my favorite part of the language.
- snorkel 16y agoWell that was a fun way to crash my browser.
- zokier 16y agoJust give it some time. After approx 5mins my firefox came back to life. ...yeah, its slow. And Firefox really needs to get a multitasking scheduler or something
- jashkenas 16y agoOr try it in Chrome, and be amazed by just how different it feels -- not just to have V8, but to have it in a separate process.
- w1ntermute 16y agoOriginal Usenet post by Daniel Green: https://groups.google.com/group/sci.fractals/msg/b891a40bc12b7a4d https://groups.google.com/group/sci.fractals/msg/b891a40bc12...
- ggrot 16y agoIf you like Buddhabrot, a friend of mine used MapReduce to create a high-res image of Buddhabrot's cousin: Nebulabrot. Kinda fun. How it was done: http://scienceblogs.com/goodmath/2008/01/databases_are_hammers_mapreduc.php http://scienceblogs.com/goodmath/2008/01/databases_are_hamme... Images: http://www.danvk.org/wp/2007-04-06/nebulabrot/ http://www.danvk.org/wp/2007-04-06/nebulabrot/
- Groxx 16y agoCoffeeScript's creators / users (which is this one?) have been a source for some of the best code annotations I've ever seen. Here's hoping they keep up the epic work!
- jashkenas 16y agoThere's now a little family of quick and dirty documentation generators, a-la Docco (the program used here): Docco (CoffeeScript) http://jashkenas.github.com/docco/ http://jashkenas.github.com/docco/ Rocco (Ruby) http://rtomayko.github.com/rocco/ http://rtomayko.github.com/rocco/ Pycco (Python) http://fitzgen.github.com/pycco/ http://fitzgen.github.com/pycco/ Schocco (POSIX Shell) http://rtomayko.github.com/shocco/ http://rtomayko.github.com/shocco/ Lo-fi literate programming for the rest of us...