Slashdot Mirror


16th IOCCC Winners Released

An anonymous submitter wrote: "A while ago the 16th IOCCC winners were announced. Apparently "releas[ing] the winning source by mid April 2002" actually means "within a year", but you can finally enjoy them here. Or, if you don't enjoy them, you can beat your head against the wall trying to figure out how these programs work ;-)"

7 of 99 comments (clear)

  1. Lost here ... by SuperDuG · · Score: 2, Interesting
    Okay so this is a contest to make a program where you have no idea what the program does by the source code?

    Hell wouldn't that be like 60% of the open source projects out there? Don't belive me?? Open up one of those .cpp or .c files next time you "Download the source" and never take a look at it.

    I can't confirm/deny this because I only got to see one program by "anonymous" who seems to post here on slashdot a whole lot.

    But yeah this seems ... kinda cool, but goes against every coding practice/standard I've ever seen, seems to me this is comparable in non-geek terms to a upside down watermellon eating contest.

    --
    Ignore the "p2p is theft" trolls, they're just uninformed
  2. In case the page gets /.ed by szquirrel · · Score: 2, Interesting
    yx; double u, b, tmin, sqrt(), tan(); double vdot(A, B) vec A, B; { return A.x*B.x + A.y*B.y + A.z*B.z; } vec vcomb(a, A, B) double a; vec A, B; { B.x += a*A.x; B.y += a*A.y; B.z += a*A.z; return B; } vec vunit(A) vec A; { return vcomb(1./sqrt(vdot(A, A)), A, black); } struct sphere *intersect(P, D) vec P, D; { best = 0; tmin = 1e30; s = sph+NSPHERE; while (s-->sph) b = vdot(D, U = vcomb(-1., P, s->cen)), u = b*b-vdot(U, U)+s->rad*s->rad, u = u>0 ? sqrt(u) : 1e31, u = b-u>TOL ? b-u : b+u, tmin = u>=TOL && u<tmin ? best = s, u : tmin; return best; } vec trace(level, P, D) vec P, D; { double d, eta, e; vec N, color; struct sphere *s, *l; if (!level--) return black; if (s = intersect(P, D)); else return amb; color = amb; eta = s->ir; d = -vdot(D, N = vunit(vcomb(-1., P = vcomb(tmin, D, P), s->cen))); if (d<0) N = vcomb(-1., N, black), eta = 1/eta, d = -d; l = sph+NSPHERE; while (l-->sph) if ((e = l->kl*vdot(N, U = vunit(vcomb(-1., P, l->cen)))) > 0 && intersect(P, U)==l) color = vcomb(e, l->color, color); U = s->color; color.x *= U.x; color.y *= U.y; color.z *= U.z; e = 1-eta*eta*(1-d*d); return vcomb(s->kt, e>0 ? trace(level, P, vcomb(eta, D, vcomb(eta*d-sqrt(e), N, black))) : black, vcomb(s->ks, trace(level, P, vcomb(2*d, N, D)), vcomb(s->kd, color, vcomb(s->kl, U, black)))); } main() { printf("%d %d\n", SIZE, SIZE); while (yx<SIZE*SIZE) U.x = yx%SIZE-SIZE/2, U.z = SIZE/2-yx++/SIZE, U.y = SIZE/2/tan(AOV/114.5915590261), U = vcomb(255., trace(DEPTH, black, vunit(U)), black), printf("%.0f %.0f %.0f\n", U); }
    (with apologies to minray)
    --
    Never approach a vast undertaking with a half-vast plan.
  3. Re:The code is obfuscated even more... by Anonymous Coward · · Score: 0, Interesting

    ... and being alcoholic makes you more of a "man"?

  4. Good code examples by phrantic · · Score: 2, Interesting

    If you read the hints (the only bit that makes [some] sense to me) some of the code is pretty damn cool, and I've only got to the networked pong example. Does anyone know where you can get any of these programs with some nice comments like

    /*this bit deals with n/w connection dummy */
    :
    :
    /*this does something else */

    --
    --My sig is bigger than your sig--
  5. Re:My favorite... by Anonymous Coward · · Score: 1, Interesting
    My favorite was theorem in 1990.

    Another good one was jar.

    But, Larry Wall's third entry was pretty good too.

  6. I for one... by FroMan · · Score: 2, Interesting

    I for one, am glad my entry didn't win. Considering I submitted my entry *november 2001*. If I hadn't been released until yesterday I'd be pretty crabby. My wife would be really pissed also.

    So, are there any interviews with the winners. I'd be curious where they were held and why it took so long to release them.

    --
    Norris/Palin 2012
    Fact: We deserve leaders who can kick your ass and field dress your carcass.
  7. My public apology for the late release of the winn by chongo · · Score: 3, Interesting
    Speaking for myself, as only one of the IOCCC judges:

    I want to make a Public apology for the extremely late posting of the 2001 winners. The delay was discourteous to the people who put a great deal of effort into their submissions.

    Rather than go into the reasons for the delay here: Let me say that when the 17th IOCCC occurs, things will be done differently.

    Thank you all those who encouraged us to complete the 16th IOCCC. And a very big S O R R Y for the lateness of the release.

    --
    chongo (was here) /\oo/\