http://qs1969.pair.com?node_id=11139889


in reply to [OT] Merry Christmas and gift of love

G'day Mario and Merry Christmas,

This is great. I've followed all of the links; I'll delve into them in greater detail over the next few days.

I've been interested in fractals for some decades. Back in the late '90s, I wrote some Perl code to create them: my personal computer didn't have sufficient power to generate these in any useful amount of time; I ran them on a $work machine at ~5pm and got a result the next morning (these were tiny; around 50-100px squares).

About a decade later, now with a personal machine that could produce these in minutes, rather than hours, I set about exploring the basic Mandelbot algorithm. I was surprised with what I was able to achieve. Take a look at the user image on my "home node". It's an APNG which works in every graphical browser I've tried (including those embedded in small mobile devices). Due to size restictions on this site, I had to greatly reduce the number of transitions; however, you'll still be able to see the morphing of a basic Mandelbrot set into a rather fanciful "K" (my initial letter); a Julia set was applied as a last step purely for beautification purposes. All of the images were created using Tk.

The original code for this became huge with a massive (although, not unwanted) feature creep: algorithm selections; output choices, and so on. I hadn't used it in a very long time (over ten years) but, after setting up my latest rig, I dug it out and gave it a try. It still worked perfectly (very please about that) and 800px squares completely rendered in a just a few seconds (as you might imagine, even more pleased about that).

As I'm still on annual leave for the next two weeks, I think I may have a fun project to occupy myself. I'll look into the CUDA demonstrations you indicated, as well as seeing what I can leverage from MCE. A very nice Christmas present — many thanks ++.

— Ken

  • Comment on Re: [OT] Merry Christmas and gift of love

Replies are listed 'Best First'.
Re^2: [OT] Merry Christmas and gift of love
by marioroy (Prior) on Dec 26, 2021 at 04:32 UTC

    I have a great appreciation for mathematicians. It took me some time to make this. I updated the repo, adding more comments.

    The letter 'k' in your node's image is neat.

Re^2: [OT] Merry Christmas and gift of love
by cavac (Parson) on Jan 13, 2022 at 15:08 UTC

    my personal computer didn't have sufficient power to generate these in any useful amount of time

    I know the feeling. I started with the Commodore 64, and doing something like fractals was just painfully slow. Of course, some enterprising people found a way to do multi-processor computing on those: The floppy drive used the same processor as the computer, so if you hooked up multiple of those(*) you could speed up the process quite a lot.

    (*) These were the days of uhm, backing up every game disk you could get your hands on and uh, storing them at all your friends houses for, well, "safekeeping". Having multiple disk drives just sped up the process. Nothing to do at all with software piracy...

    perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
      I started with the Commodore 64, and doing something like fractals was just painfully slow.

      It depended on precisely what you were doing with the fractals. Rescue on Fractalus! was released on the C64 (among many other platforms) and played fairly well AFAIR.


      🦛