News for hackers. Stuff that matters.
Re:Burning Ship Fractal by iverjo on Monday September 26, 2016 @01:21PM (#12583705)
Fractals can be drawn by surprisingly small amounts of code. For example, this mandelbrot fractal is implemented in 122 characters of JavaScript: https://www.dwitter.net/d/123

I wouldn't be surprised if the burning ship fractal could be coded on dwitter (i.e. with 140 characters or less) as well

Re:Burning Ship Fractal by AceJohnny2 on Monday September 26, 2016 @02:22PM (#12584285)
When working on an SoC over 5 years ago, we'd have it display the company logo on screen upon boot. While not necessary for the test, it was really useful to see if the system reached that boot stage.

As an afternoon exercise, I wrote a Mandelbrot draw function (my first fractal display code!). Then I realized it was both faster and used less code and runtime memory than the image display stuff, so I replaced it in my environment. Other people were amused by it, so it went in public repository.

A couple weeks later, someone removed it to reinstate the image display. I guess having the company logo for internal-only code was more important to someone :(

I don't work there anymore.

Re:Burning Ship Fractal by userbinator on Monday September 26, 2016 @11:33PM (#12587276)
Even better if your company's logo is a fractal:

https://en.wikipedia.org/wiki/File:American_Megatrends_Logo....

If I remember correctly, early AMIBIOS did generate that logo procedurally using a short piece of code.

Re:Burning Ship Fractal by quarterto on Monday September 26, 2016 @01:44PM (#12583914)
Just need to add a Math.abs: https://www.dwitter.net/d/457
Re:Burning Ship Fractal by vog on Tuesday September 27, 2016 @01:50AM (#12587709)
Nice, but you don't need Math.abs to stay within the 140 chars limit:

  t?i++:i=0;for(j=1080;j--;){a=b=0;k=35;for(;k--&&a*a+b*b<4;)c=a*a-b*b+i/540-2,b=2*(a*b<0?-a*b:a*b)+j/540-1,a=c;x.fillRect(i,j,1,S(k/9))}