Hacker News new | ask | show | jobs
by ectoplasmaboiii 2235 days ago
A Ray-Tracer in 7 Lines of K: http://nsl.com/k/ray/ray.k
1 comments

7? Just remove those comments and the last few newlines and it’ll be one line.

I don’t know K, but it looks like it uses semicolons to end statements. It’s “cheating” on line count to compress statements by just removing \n.

After all, how many “lines” are in the business card raytracer? 4.