Skip to main content

Timeline for Ray-trace a shiny sphere

Current License: CC BY-SA 3.0

17 events
when toggle format what by license comment
Apr 22, 2018 at 17:08 history edited 6502 CC BY-SA 3.0
re-added image
Apr 6, 2017 at 16:48 history edited 6502 CC BY-SA 3.0
added 19 characters in body
Feb 28, 2017 at 18:03 history edited 6502 CC BY-SA 3.0
deleted 5 characters in body
Oct 28, 2014 at 6:04 vote accept N. Virgo
Oct 13, 2014 at 20:42 comment added 6502 qwr: ah... you caught me. Indeed I started programming in asm on an Apple 2, back in 1981 :-D
Oct 13, 2014 at 20:27 history edited 6502 CC BY-SA 3.0
Shaved one more byte
Oct 13, 2014 at 20:14 comment added qwr Wow, this is very impressive. I assume you've done assembly programming before? (judging by your username)
Oct 13, 2014 at 20:02 comment added 6502 @Claudiu: Thanks for the suggestion. I had to change the parameters a bit to avoid a division by zero. I also used a single loop over the image and that saved a lot.
Oct 13, 2014 at 20:01 history edited 6502 CC BY-SA 3.0
single loop, 'if/else' removal
Oct 13, 2014 at 17:11 comment added Claudiu Another code golf trick, you can replace a if b else c with (c,a)[b] so long as you don't rely on short-circuiting to avoid e.g. division by zero errors. Also if A:code;return B\nelse:return C you can replace with code;return(C,B)[A].
Oct 13, 2014 at 12:53 comment added 6502 @Nathaniel:Doh... very big mistake for a code golf :-) Fixed. I've also removed the zlib packing trick because I've to investigate on its legality (the latest version for example when zipped works with standard python but doesn't work with pypy, and that's very strange).
Oct 13, 2014 at 12:50 history edited 6502 CC BY-SA 3.0
Exp notation to save some bytes
Oct 13, 2014 at 1:18 comment added N. Virgo You can save a few bytes without doing the zlib trick by replacing 0000 with e4 throughout.
Oct 12, 2014 at 22:26 history edited 6502 CC BY-SA 3.0
added 390 characters in body
Oct 12, 2014 at 22:05 history edited 6502 CC BY-SA 3.0
added 366 characters in body
Oct 12, 2014 at 14:03 comment added N. Virgo Beautiful image!
Oct 12, 2014 at 13:29 history answered 6502 CC BY-SA 3.0