News for hackers. Stuff that matters.
Re:The Mandelwat Set by krylon on Thursday March 30, 2017 @06:12PM (#13999364)
A little more than eight years ago, I came across a nice documentary: "Fractals - The Colors of Inifnity", narrated by Arthur C. Clarke (yes, THE Arthur C. Clarke!), with music provided by Dave Gilmour of Pink Floyd; to top it off, I was tripping on LSD for the first time when I saw it, and I had to rewind at least once to check if something I had seen was actually on the screen or just in my head (to my disappointment at the time, it was actually on the screen).

It's a nice documentary, though. Highly recommend it. They even have an interview with Benoit Mandelbrot himself, may he rest in peace.

Two years after that, I wrote my first Mandelbrot-renderer. First in Python, but that was waaaay too slow, then in C, which was a lot faster (duh!), and then I made it even faster by telling the compiler to use SSE. (To some, that sounds trivial, but it was something I had never done before.)

I have always suspected that it is like a rite of passage, building at least one simple-minded Mandelbrot renderer. I rewrote mine after two more years to take advantage of multiple threads and wrote another one to render the Buddhabrot[1]. Then I remembered an article I had read years before, about the Parallel Virtual Machine, PVM. So, the next weekend, I turned my Mandelbrot renderer into a distributed application.

So Kudos to the author. Tackling the Mandelbrot set has the dual advantage of being interesting and you can make pretty pictures along the way. It is great fun, and I learned a few things along the way. What more could I ask for?

[1] https://en.wikipedia.org/wiki/Buddhabrot

Re:The Mandelwat Set by ErikBjare on Friday March 31, 2017 @02:25AM (#14001572)
> I have always suspected that it is like a rite of passage, building at least one simple-minded Mandelbrot renderer.

At the university where I study and work as a TA, all CS students have to write a Mandelbrot generator (we provide a simple GUI for them) in the second programming course.

Everyone is always very happy with the results and many consider it one of the coolest things they've done with programming up until then. I think assignments like those make them more enthusiastic about programming, which we (imo) need more of.

Re:The Mandelwat Set by sllabres on Friday March 31, 2017 @02:40AM (#14001631)
There is a excellent animation of the Buddabrot from Benedikt Bitterli at [1] and a description what he has done to produce it at [2].

[1] https://www.youtube.com/watch?v=zxIcydL7wwY [2] https://benedikt-bitterli.me/buddhabrot/index.html

Re:The Mandelwat Set by ihaveajob on Thursday March 30, 2017 @08:20PM (#14000212)
Thanks for the tip about that documentary. You can watch it on https://www.youtube.com/watch?v=Lk6QU94xAb8
Re:The Mandelwat Set by david-given on Friday March 31, 2017 @07:55AM (#14002846)
For me it was a Mandelbrot renderer typed in from a computer magazine, in BBC Basic, on a 2MHz ARM with five-byte floating point. It'd do a 256x256 four-colour render overnight.

These days?

    $ sudo apt install xaos
    $ xaos
Click in the window, hold the mouse button down, watch.
Re:The Mandelwat Set by psyc on Thursday March 30, 2017 @06:29PM (#13999469)
I wrote my first Mandelbrot renderer around 1990. I've been a graphics programmer for almost 30 years, and it still absolutely blows my mind. I understand the math, but I still watch ultra-mega-zooms on YouTube and marvel that such an object exists.
Re:The Mandelwat Set by Baeocystin on Thursday March 30, 2017 @10:11PM (#14000720)
My high school science fair project in 1989 was the Mandelbrot set, and I was using my Amiga to generate them, then some funky dot-matrix printer voodoo to get even grayscaling for the prints. I barely made the cutoff time, even though I'd spent weeks working on the project, because each possible render took at least a day, and my code had a lot of hiccups. (IIRC, everything was written in Modula-2. I need to see if I can find those old disks somewhere.)

It's funny that of all the things I'm 'jealous' of in modern tech, the thing that still blows me away is just how fast I can generate/zoom around fractal sets, just for the hell of it, on my phone. This much computing power in the palm of one's hand was inconceivable to me at the time!

Re:The Mandelwat Set by kirrent on Thursday March 30, 2017 @11:13PM (#14000926)
One of my most enjoyable projects was writing a Mandelbrot generator for the Gameboy. It was so slow that if you wanted to fill the very low res screen you'd be the better part through your battery life. Great fun though.
Re:The Mandelwat Set by lanebrain on Friday March 31, 2017 @07:27AM (#14002713)
Similar - this and Julia and then the color cycles. Lots of hours as well with Fractint back in the day
Re:The Mandelwat Set by blt on Thursday March 30, 2017 @06:20PM (#13999412)
next step: CUDA :)
Re:The Mandelwat Set by Dylan16807 on Friday March 31, 2017 @05:21AM (#14002211)
A shader's probably one of the easiest ways to do it, since the framework's already there to run on each pixel.
Re:The Mandelwat Set by krylon on Thursday March 30, 2017 @06:41PM (#13999543)
I have not owned an nVidia card in years. However, I am about to buy a new PC, and I got a used GeForce GTX 960 for cheap from a coworker, so I have the option at least. ;-)