READY.
In 1983, I was reading a computer magazine, likely Compute!, that featured an advertisement for a PET computer graphics card. The ad showed a 3D plot of a hat, and I was inspired to try and recreate it on my C64. After consulting the C64 Programmer's Reference Manual to learn how to plot on the high-resolution screen, I wrote the code in C64 BASIC V2. It took 23 minutes to run!
Later, I found that using a SuperExpander cartridge improved the plot time to 13 minutes. As time passed, I optimized that SuperExpander code further, bringing the runtime down to 3 minutes. This webpage visualizes the "Sine Hat," allows you to adjust parameters, and displays the original BASIC, SuperExpander, and optimized code.
Over the decades, I enjoyed porting the code to various languages and devices. It became my "Hello World" program. Finally, in 2026, Gemini Pro 3.1 AI produced a C64 Assembly version that ran in just 9 seconds. That's a massive improvement over my original 23-minute journey.