Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I like fractal renderers, I made one in Haskell[1] once. In only 41 lines of code (23 if you strip white lines and type sigs). It also makes a post of its output combined with the code[3]; warning 18MB PDF (sorry Github).

[1] https://github.com/cies/haskell-fractal

[2] https://github.com/cies/haskell-fractal/blob/master/fractal....

[3] https://github.com/cies/haskell-fractal/blob/master/poster.p...



I made one in one line of python:

for a in range(900):print"\n.x"[(a%30>0)+(abs(reduce(lambda z,c:zz+c,[a%30.1-2+1j(a/30.1-1.5)]*30))<2)],

For a code golf on stackoverflow


I like this a lot! Well done. Some * symbols for eaten by HN though, you can put spaces around them.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: