Another compile-time perversion. Or not?

Kristian kjkilpi at gmail.com
Wed Aug 30 08:16:17 PDT 2006


Nice!! Heheh, is a new programming language/method devoloping here? ;)


On Wed, 30 Aug 2006 17:06:41 +0300, Ivan Senji  
<ivan.senji_REMOVE_ at _THIS__gmail.com> wrote:
> The idea for another perversion I got from Knud Sørensen when he
> mentioned mandelbrot:
>
> The result is when running dmd like this:
>
> dmd -c ctmand.d
>
> it produces:
>
> 11111111111111111111111111111100011111111111111111
> 11111111111111111111111111111100111111111111111111
> 11111111111111111111111111111000011111111111111111
> 11111111111111111111111111110000001111111111111111
> 11111111111111111111111111110000001111111111111111
> 11111111111111111111111001100000000011111111111111
> 11111111111111111111111000000000000000001111111111
> 11111111111111111111111000000000000000001111111111
> 11111111111111111111110000000000000000011111111111
> 11111111111111111111100000000000000000011111111111
> 11111111111101110111100000000000000000000111111111
> 11111111111100000001000000000000000000001111111111
> 11111111111110000000000000000000000000001111111111
> 11111111111100000000000000000000000000001111111111
> 11111111110000000000000000000000000000001111111111
> 11111111100000000000000000000000000000011111111111
> 00000000000000000000000000000000000000011111111111
> 11111111100000000000000000000000000000011111111111
> 11111111110000000000000000000000000000001111111111
> 11111111111100000000000000000000000000001111111111
> 11111111111110000000000000000000000000001111111111
> 11111111111100000001000000000000000000001111111111
> 11111111111101110111100000000000000000000111111111
> 11111111111111111111100000000000000000011111111111
> 11111111111111111111110000000000000000011111111111
> 11111111111111111111111000000000000000001111111111
> 11111111111111111111111000000000000000001111111111
> 11111111111111111111111001100000000011111111111111
> 11111111111111111111111111110000001111111111111111
> 11111111111111111111111111110000001111111111111111
> 11111111111111111111111111111000011111111111111111
> 11111111111111111111111111111100111111111111111111
> 11111111111111111111111111111100011111111111111111
>
> Which is if you look at it from a little distance a Mandelbrot
> set (only two colors 0 and 1), unfortunately in a very little resolution
> because of the limiting execution times.
>
> Actually dmd produces one more line:
> Internal error: ..\ztc\cgobj.c 395
> but that isn't a part of the fractal.
>
> Code is attached. (I hope Tom S will not be angry because i borrowed his
> itoa and sqrt template).
>
>




More information about the Digitalmars-d-announce mailing list