Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

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

Unknown Lamer posted about a year ago | from the only-the-most-confusing dept.

Programming 48

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?

cancel ×

48 comments

Sorry! There are no comments related to the filter you selected.

fristy (-1)

Anonymous Coward | about a year ago | (#44422091)

fristy frosty

You want obfuscated code? (0)

Anonymous Coward | about a year ago | (#44422117)

Just code in VB.

Re:You want obfuscated code? (0)

Anonymous Coward | about a year ago | (#44422167)

or .Net

Re:You want obfuscated code? (1)

jones_supa (887896) | about a year ago | (#44423251)

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#?

Re:You want obfuscated code? (1)

Pino Grigio (2232472) | about a year ago | (#44423373)

None of the software I write in C# crawls along like a dog. Notwithstanding the fact that .NET uses JIT (Just In Time Compilation) [stackoverflow.com] , 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.

Re:You want obfuscated code? (1)

inasity_rules (1110095) | about a year ago | (#44425613)

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... :/

Re:You want obfuscated code? (0)

RaceProUK (1137575) | about a year ago | (#44423873)

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.

Re:You want obfuscated code? (1)

Anonymous Coward | about a year ago | (#44425435)

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.

Re:You want obfuscated code? (0)

RaceProUK (1137575) | about a year ago | (#44425535)

Stop using a hammer to tighten a bolt then.

Re:You want obfuscated code? (1)

Thud457 (234763) | about a year ago | (#44425215)

one quine [wikipedia.org] to rule them all. forever. [github.com]

Re:You want obfuscated code? (1)

hcs_$reboot (1536101) | about a year ago | (#44422171)

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

Re:You want obfuscated code? (2)

mwvdlee (775178) | about a year ago | (#44422307)

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?

Re:You want obfuscated code? (4, Informative)

TheCarp (96830) | about a year ago | (#44422597)

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.

You mean C can be even more opaque? (1, Funny)

Anonymous Coward | about a year ago | (#44422299)

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

Hell, their tutorials pretty much would win this competition.

Re:You mean C can be even more opaque? (0)

Anonymous Coward | about a year ago | (#44425457)

Do you even C?

Re:You want obfuscated code? (1)

aled (228417) | about a year ago | (#44446237)

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.

Can you enter someone elses code? (0)

Anonymous Coward | about a year ago | (#44422221)

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

Re:Can you enter someone elses code? (1)

hermitdev (2792385) | about a year ago | (#44423991)

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).

I was going to enter the contest (2)

Dishwasha (125561) | about a year ago | (#44422291)

But it was just way too confusing.

Re:I was going to enter the contest (0)

Anonymous Coward | about a year ago | (#44422485)

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

Absolutely! (1)

elfprince13 (1521333) | about a year ago | (#44422443)

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

Here's my submission: (2)

I'm New Around Here (1154723) | about a year ago | (#44422613)

10 GOTO 10;

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

Re:Here's my submission: (2)

egamma (572162) | about a year ago | (#44422779)

10 GOTO 10;

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

Shouldn't that say:

10 GOTO 10

Without the semicolon?

Re:Here's my submission: (1)

I'm New Around Here (1154723) | about a year ago | (#44427509)

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____.

Frost Pist (-1)

Anonymous Coward | about a year ago | (#44422625)

to keep up as Move forward, 3ead. It is a dead

A contest to code poorly? (1)

fredrated (639554) | about a year ago | (#44422677)

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

Re:A contest to code poorly? (2)

Pikewake (217555) | about a year ago | (#44422781)

NASCAR?

Re: A contest to code poorly? (1)

andrewleung (48567) | about a year ago | (#44423075)

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

Re: A contest to code poorly? (1)

Briareos (21163) | about a year ago | (#44426341)

So... NASCAR evolved from driving drunk?

That explains some things...

Re: A contest to code poorly? (1)

hermitdev (2792385) | about a year ago | (#44426471)

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

Re:A contest to code poorly? (1)

Anonymous Coward | about a year ago | (#44422827)

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.

Re:A contest to code poorly? (3, Interesting)

achowe (829564) | about a year ago | (#44422977)

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.

Re:A contest to code poorly? (1)

Pino Grigio (2232472) | about a year ago | (#44423401)

I'm pretty sure the winner would be a Russian [youtube.com] .

Re:A contest to code poorly? (1)

fredrated (639554) | about a year ago | (#44423851)

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

Re:A contest to code poorly? (0)

Anonymous Coward | about a year ago | (#44423479)

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).

Re:A contest to code poorly? (1)

tlhIngan (30335) | about a year ago | (#44423945)

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.

Obscure dates/times, too (4, Interesting)

Anonymous Coward | about a year ago | (#44423187)

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?

Re:Obscure dates/times, too (5, Informative)

Anonymous Coward | about a year ago | (#44424505)

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

Re:Obscure dates/times, too (2)

leob (154345) | about a year ago | (#44425347)

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.

Good old days (2)

fruey (563914) | about a year ago | (#44423357)

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.

And this is for people who (3, Funny)

azav (469988) | about a year ago | (#44423691)

think that C isn't obfuscated enough.

I've got one (2)

slashmydots (2189826) | about a year ago | (#44423707)

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

Re:I've got one (0)

Anonymous Coward | about a year ago | (#44424405)

Some people are born with the gift. :P

Obfuscated Lisp (1)

ebno-10db (1459097) | about a year ago | (#44424659)

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

Re:Obfuscated Lisp (1)

johntromp (565732) | about a year ago | (#44430729)

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 [ioccc.org]

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

-John

I'm totally going to win with my (1)

mandark1967 (630856) | about a year ago | (#44425003)

ROT26 encoded masterpiece.

Already entered, several times (1)

damn_registrars (1103043) | about a year ago | (#44425277)

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?

It is telling there is obfuscated .. (1)

140Mandak262Jamuna (970587) | about a year ago | (#44425557)

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.
Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>