Slashdot Mirror


22nd International Obfuscated C Code Contest Starts Thursday 1 Aug 2013

achowe writes "The 22nd International Obfuscated C Code Contest opens 2013-Aug-01 03:14:15 UTC through to 2013-Oct-03 09:26:53 UTC. The rules have been updated, in particular Rule 2 (size rule) has changed. The draft rules and guidelines are available online. In addition there is now an IOCCC Size Rule Tool to aid with counting the secondary size rule. Questions and comments for the Judges can be emailed to q.2013@ioccc.org and must include 'IOCCC 2013' in the subject. Or contact them via Twitter @IOCCC." Anyone planning on entering?

48 comments

  1. You want obfuscated code? by Anonymous Coward · · Score: 0

    Just code in VB.

    1. Re:You want obfuscated code? by Anonymous Coward · · Score: 0

      or .Net

    2. Re:You want obfuscated code? by hcs_$reboot · · Score: 1

      I'd have said Perl instead (program made from people in need of showing off, since there are ways to write redable Perl ).

      --
      Slashdot, fix the reply notifications... You won't get away with it...
    3. Re:You want obfuscated code? by mwvdlee · · Score: 2

      since there are ways to write redable Perl ).

      You mean like Perl code written on paper for an exam where mistakes are marked with a red pen?

      --
      Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
    4. Re:You want obfuscated code? by TheCarp · · Score: 4, Informative

      While I agree perl can be written readable, and I do try to do that whenever I am writting perl... it also has so much syntactic sugar and idiom that writing obfuscated perl is a bit too easy.

      I used to give people a perl code test that included the line:

      "split //;"

      Where else can you operate on one variable, save your result in another, and specify neither? Never mind functions that operate differently depending on whether or not they are called in scalar context.

      --
      "I opened my eyes, and everything went dark again"
    5. Re:You want obfuscated code? by jones_supa · · Score: 1

      My experience is that anything created by .NET crawls along like a dog, but I'm not sure how it contributes to obfuscated code. And as .NET executes bytecode, which programming language do you mean, C#?

    6. Re:You want obfuscated code? by Pino+Grigio · · Score: 1

      None of the software I write in C# crawls along like a dog. Notwithstanding the fact that .NET uses JIT (Just In Time Compilation), if you're doing something with a time constraint that's not met by .NET, you're either doing it wrong, using the wrong language or using the wrong hardware.

      It's plenty fast enough for all kinds of applications.

    7. Re:You want obfuscated code? by RaceProUK · · Score: 0

      My experience is that anything created by .NET crawls along like a dog

      Don't blame the tools, blame the monkey using them. Bad code is bad, regardless of language/runtime.

      --
      No colour or religion ever stopped the bullet from a gun
    8. Re:You want obfuscated code? by Thud457 · · Score: 1
      --

      the preceding comment is my own and in no way reflects the opinion of the Joint Chiefs of Staff

    9. Re:You want obfuscated code? by Anonymous Coward · · Score: 1

      Why would you not blame the tool if the tool itself is the problem? This whole "blame the user not the tool" meme is stupid as hell. There are plenty of tools that are made that are just plain bad and they deserve the blame they get.

    10. Re:You want obfuscated code? by RaceProUK · · Score: 0

      Stop using a hammer to tighten a bolt then.

      --
      No colour or religion ever stopped the bullet from a gun
    11. Re:You want obfuscated code? by inasity_rules · · Score: 1

      Seconded. I have written low level drivers in C#, and they keep up with the hardware just fine on old (Core 2 laptop processors are now old?!) machines, with numerous devices. In fact, the SQL throughput in .NET is pretty impressive. Admittedly, I miss pointer arithmetic, and the ability to read a byte array as (for example) an int32, but I don't miss the inevitable chaos that ensues from that... All in all, I think a good move for the software apart from the fact that I doubt it will be portable to mono... :/

      --
      I have determined that my sig is indeterminate.
    12. Re:You want obfuscated code? by aled · · Score: 1

      Just code in VB.

      So you didn't even looked at the contest site right? read some previous winners entries and come back then.
      There is a reason that there is not a VB obfuscated contest.

      --

      "I think this line is mostly filler"
  2. Can you enter someone elses code? by Anonymous Coward · · Score: 0

    I have a few examples in mind that I've had to work with.

    1. Re:Can you enter someone elses code? by hermitdev · · Score: 1
      No from the rules:

      7) The obfuscated C program must be an original work that you own.
      You (the authors) must own the contents of your submission OR you must have permission from the owners to submit their content under the Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license (see rule 18).

  3. I was going to enter the contest by Dishwasha · · Score: 2

    But it was just way too confusing.

    1. Re:I was going to enter the contest by Anonymous Coward · · Score: 0

      Rule #1: All candidates MUST be able to read obfuscated rules.

  4. You mean C can be even more opaque? by Anonymous Coward · · Score: 1, Funny

    I can't believe people try to make C even more unreadable and senseless.

    Hell, their tutorials pretty much would win this competition.

    1. Re:You mean C can be even more opaque? by Anonymous Coward · · Score: 0

      Do you even C?

  5. Absolutely! by elfprince13 · · Score: 1

    I've been waiting for this all year. I've got some fun stuff planned. Good luck to all contestants :)

  6. Here's my submission: by I'm+New+Around+Here · · Score: 2

    10 GOTO 10;

    /* I'm not saying what it does, but it's powerful.

    --
    If you think I voted for Trump because of this post, you're wrong. I voted for Dr. Jill Stein of the Green Party. Again.
    1. Re:Here's my submission: by egamma · · Score: 2

      10 GOTO 10;

      /* I'm not saying what it does, but it's powerful.

      Shouldn't that say:

      10 GOTO 10

      Without the semicolon?

    2. Re:Here's my submission: by I'm+New+Around+Here · · Score: 1

      I can't answer that until you sign this support contract. X_________

      And this non-disclosure form. X_________

      And this non-compete agreement. X_________

      And this EULA. X_________

      And initial here ____ and here___ aaannd
      here____.

      --
      If you think I voted for Trump because of this post, you're wrong. I voted for Dr. Jill Stein of the Green Party. Again.
  7. A contest to code poorly? by fredrated · · Score: 1

    Next up: who can drive the poorest without killing anyone!

    1. Re:A contest to code poorly? by Pikewake · · Score: 2

      NASCAR?

    2. Re:A contest to code poorly? by Anonymous Coward · · Score: 1

      I disagree, there are size rules so you cannot . No one expects to use the code written for this competition for any practical purposes. "C" is such a powerful language that whenever you go through the code samples from winners, you will find something that surprises you even though you have been using C all your life. A more relevant analogy would be who can best drive in NASCAR in reverse or on two wheels or something but you get the point.

    3. Re:A contest to code poorly? by achowe · · Score: 3, Interesting

      IOCCC 1991 Best Utility was a vi like editor in 1536 bytes; Debian went on to use the unobfuscated version "ae" as a small editor for the rescue floppy for many many years.

    4. Re: A contest to code poorly? by andrewleung · · Score: 1

      NASCAR was born from the whiskey runs during prohibition. Think about THAT.

    5. Re:A contest to code poorly? by Pino+Grigio · · Score: 1
    6. Re:A contest to code poorly? by Anonymous Coward · · Score: 0

      As noted in TFA:

      GOALS OF THE CONTEST:

              * To write the most Obscure/Obfuscated C program under the rules below.
      * To show the importance of programming style, in an ironic way.
              * To stress C compilers with unusual code.
              * To illustrate some of the subtleties of the C language.
              * To provide a safe forum for poor C code. :-)

      (emphasis mine).

    7. Re:A contest to code poorly? by fredrated · · Score: 1

      Accidents are no laughing matter, but some of those are just too funny!

    8. Re:A contest to code poorly? by tlhIngan · · Score: 1

      Actually, if you take a look at the entries, it's not really poor code, just highly skilled code.

      Of course, if you've been in software development for any time, you'll realize that it's not the poor coders that do the crappiest hardest to maintain code, it's the prima donna ones that use all sorts of strange tricks that make code unreadable. At least poor coders generally produce bad code, but there's an honest effort that goes into it (like using the wrong sort, or not using an API that would've made life easier, etc.,). The hot shot coder would submit something like what you see in the IOCCC - it works like magic, but damn if you can figure it out.

      And I believe one of the criteria has always been code aesthetics, hence why a lot of entries do a bunch of ASCII art stuff.

    9. Re: A contest to code poorly? by Briareos · · Score: 1

      So... NASCAR evolved from driving drunk?

      That explains some things...

      --

      "I'm not anti-anything, I'm anti-everything, it fits better." - Sole

    10. Re: A contest to code poorly? by hermitdev · · Score: 1

      No...it evolved from driving to get drunk, and make a lot of tax-free money along the way.

  8. Obscure dates/times, too by Anonymous Coward · · Score: 4, Interesting

    2013-Aug-01 03:14:15 UTC through to 2013-Oct-03 09:26:53

    Umm, where'd those dates/times come from?

    03:14:15 looks like pi truncated to 4 decimal places, but why Aug 1? And where'd the close date/time come from?

    1. Re:Obscure dates/times, too by Anonymous Coward · · Score: 5, Informative

      pi = 3.1415 92653 589...
      That explains the close time anyway, I didn't look at the dates.

    2. Re:Obscure dates/times, too by leob · · Score: 2

      Retrospectively,
      Aug. 1 is the birthday of Otto Toeplitz, German mathematician, author of The enjoyment of mathematics. Selections from mathematics for the amateur (with Hans Rademacher).
      Oct. 3 is the day Edouard Lucas, French mathematician, known for his study of the Fibonacci sequence, died.

  9. Good old days by fruey · · Score: 2

    At least one of the judges (^chongo^) was a contributor to this very site many moons ago, not sure if he's still here. (Had|Has) some fine prime number & math pages.

    I strongly suggest taking time to look at just what previous entries have been able to do, including print musical notation, a working spreadsheet implementation, and a flight simulator. With obfuscation & size limits.

    Ahhh memories. Never could enter myself though, can't even write normal C with any proficiency.

    --
    Conversion Rate Optimisation French / English consultant
  10. And this is for people who by azav · · Score: 3, Funny

    think that C isn't obfuscated enough.

    --
    - Zav - Imagine a Beowulf cluster of insensitive clods...
  11. I've got one by slashmydots · · Score: 2

    I should send a co-worker of mine. Nobody can ever tell what the hell his code does.

    1. Re:I've got one by Anonymous Coward · · Score: 0

      Some people are born with the gift. :P

  12. Obfuscated Lisp by ebno-10db · · Score: 1

    Obfuscated C is unreadable, obfuscated Perl is completely impenetrable, but what I want to see is obfuscated Lisp.

    1. Re:Obfuscated Lisp by johntromp · · Score: 1

      Obfuscated C is unreadable, obfuscated Perl is completely impenetrable, but what I want to see is obfuscated Lisp.

      Then you clearly overlooked this Common Lisp entry:

      http://www.ioccc.org/2005/mikeash/hint.text

      Last year's winners also included some obfuscated lambda calculus programs, like a 167-bit prime number generator.

      -John

  13. I'm totally going to win with my by mandark1967 · · Score: 1

    ROT26 encoded masterpiece.

    --
    Sig Follows: "Suppose you were an idiot. And suppose you were a member of Congress. But I repeat myself." -- Mark Twain
  14. Already entered, several times by damn_registrars · · Score: 1

    I send all the C that I write to IOCCC. When they get back to me with failures to understand and/or run it, I know it is OK to release to the general public. It is the greatest development system I've ever found, and it costs me nothing. Who needs beta testers when I can just submit my code to IOCCC?

    --
    Damn_registrars has no butt-hole. Damn_registrars has no use for a butt-hole.
  15. It is telling there is obfuscated .. by 140Mandak262Jamuna · · Score: 1

    It is very telling there is no obfuscated FORTRAN coding contests. I think most carefully written lucid code in FORTRAN will beat the winner of this obfuscated c code winner handily.

    --
    sed -e 's/Chuck Norris/Rajnikant/g' joke > fact