Slashdot Mirror


2002 ICFP Programming Contest

Phil Bewig writes "The 2002 ICFP Programming Contest begins today. The programming task will be posted at 12:00 noon Pacific Time." Which should be... just about... now.

15 of 215 comments (clear)

  1. Solution! by Bingo+Foo · · Score: 4, Funny

    10 PRINT "I WIN!"

    --
    taken! (by Davidleeroth) Thanks Bingo Foo!
    1. Re:Solution! by Anonvmous+Coward · · Score: 4, Funny
      10 PRINT "I WIN!"


      Heh I got a chuckle out of that. I won a Gifted Ed. programming challenge once using a similar technique. We were supposed to write a program in Basic that solved a word problem. Unfortunately, they didn't give us a whole lot of time. So I worked out the answer to the problem. My source code was like this:

      10 PRINT "10:30"

      Nobody else got the problem right, and the rules were vague enough that displaying the right answer was good enough. Heh. Pretty damn efficient coding, dont'cha think? :)
  2. Robots drown... by MosesJones · · Score: 4, Funny

    I object to this test, this is quite simply awful that they are willing to risk Robot lives in such a callous fashion. I insist that all Robots must be fitted with inflatable life rafts to enable them to surive on the water squares. Anything else would a terrible waste of Robot life and would be ("two would be"s in a sentence, building up to the nutter finish) the same as Hitler during WWII.

    --
    An Eye for an Eye will make the whole world blind - Gandhi
  3. Do Not Trust the Pusher Robot! by Anonymous Coward · · Score: 4, Funny

    Shoving is the answer, please stand near the stairs

  4. Great idea! by Cutriss · · Score: 5, Funny

    1. Enter the 2002 ICFP Programming Contest.
    2. Submit the site to Slashdot after downloading/caching all the instructions and requirements.
    3. Be the only person to actually have a copy of the directions, therefore, the only person to submit a solution at all, let alone a working one.
    4. ??? (Presumably, win the contest)
    5. Profit!

    --
    "Mod, mod, mod...and another troll bites the dust."
  5. missing keys... by McCart42 · · Score: 4, Funny
    The player controls the robot by issuing commands.

    • The Move command moves the robot to an adjacent square, in one of the four directions north, east, south or west.
    • The Pick command is used to pick packages. Packages are initially available from home bases. Packages may not be picked up if they are too heavy, or if there are no packages available when the robot gets to execute its command (for example if it got pushed).
    • The Drop command is used to drop packages. Packages are always dropped.
    So what button is the "Strafe" command? Are there "quad" packages?
    --
    "I may be quite wrong." - Socrates
  6. one based array? by [amorphis] · · Score: 4, Funny

    Coordinates on the board are pairs of integers, ranging from (1,1) to (width, height), where (1,1) is the southwest corner of the board.

    What kind of programming challenge uses a one-based array?

    1. Re:one based array? by coyul · · Score: 4, Informative

      What kind of programming challenge uses a one-based array?

      Actually, in this case it's a great idea. The game world is bounded by walls, so you can put the walls in the 0 index (and the width+1 index) of your array and not have to explicitly test for the array bounds. Treat them like any other wall.

  7. Fifth Programming Contest by Caractacus+Potts · · Score: 5, Funny


    Man, I've been practicing all year using FORTH. Rats!

  8. Programming Languages by Anonymous Coward · · Score: 5, Funny
    From: http://icfpcontest.cse.ogi.edu/machine.html
    Software
    The following programming language implementations are available on the machine:

    * Assemblers (gas 2.10.91, nasm 0.98.22)
    * C, C++, chill, objective C (gcc 2.96)
    <snip>
    * PostScript (ghostscript-6.52)
    --
    Mad, mad props to the first team to enter a working submission written exclusively in PostScript.

  9. Re:C++ vs. SML for language by joto · · Score: 4, Informative
    Someone recently told me that SML would be a much better programming language

    Yes, people often do that. But what they often neglect to tell you, is that it depends upon the task at hand. Still, SML is a nice language, but I wouldn't use it for everything (neither would I use C++ for everything).

    If you like functional programming, like static checking (there are no ways around SML's typesystem, you are really, really safe), like strictness (as opposed to lazy functional languages), and like to be able to do some imperative hacking for the last bit of performance, then SML may be for you. If you are into compilers, theorem-provers, computer algebra or anything similar, then SML is definitely for you.

    For tasks that are very low-level (i.e. require lot's of bit-fidling), needs to run in small memory-space, needs access to lot's of C or C++ libraries, etc, C++ is definitely more suited.

    though it has no/little support for variables

    Yes, that's the whole point of functional programming. But SML allows you to declare ref-cells which behave just like variables in normal languages. The downside is that using them makes your code incredibly ugly (something most SML'ers think is good, because it encourages good functional programming style).

    A good implementation of SML would run with more or less the same speed as C++, and could also run the same algorithms (since it allows you to use imperative constructs), but it would be better if you used functional algorithms except when you really need to tune for the last clock-cycles. Unfortunately, the "standard" implementation, smlnj, runs more like at half speed of g++. There is another dialect of ML, called Ocaml, which has much more impressive native-code compilers. It is also somewhat more geared towards other programming-styles then the functional one (i.e it supports object-oriented programming really well).

    I just red the contest problems; It seems as though it can be easily done in C++ -- anyone have insight on this?

    Yes, to avoid being blamed for being biased towards functional programming, the ICFP doesn't usually have problems that are much better suited for functional languages. And there has certainly been contestants using C++ before. The main reason C++ may not fare too well in this contest, is probably because (1) usually the biggest C++ gurus are busy doing other things, while the biggest Ocaml, SML, Haskell, etc, gurus are competing, and (2) Functional languages are often more suitable for rapid prototyping than C++, and development speed is certainly an important ingredient in this competition. But it is definitely not impossible that either C++ or Perl comes out a winner some year.

  10. UPS Vs. FedEx by silverhalide · · Score: 4, Funny
    Every package has a unique identifier, a weight and a destination. If a robot dies, its packages are lost.
    Ah, that explains what happened to all those UPS pacakges that seem to randomly disapear.

    I bet UPS is secretely sponsoring this competition so it can replace drivers with robots. The competing robots are FedEx drivers, so UPS robots can push the FedEx drivers into fatal squares. Perfect!

  11. There will be.... by cp4 · · Score: 5, Informative

    From the FAQ:

    Q1: Will a test server be available?
    A: Yes, stay tuned...

  12. Discrimination against Java by Anonymous Coward · · Score: 4, Funny
    A player should use a reasonable amount of resources. Aim for:

    * not use more than 64 MB of memory at any point in a game,
    * not consume more than 1 CPU second per move on average in a game on our 1.5GHz Pentium 4 processor.


    How are the Java folks supposed to write anything more than a "Hello World" program with so few resources?

  13. Re:C++ vs. SML for language by cpeterso · · Score: 4, Insightful


    the ICFP doesn't usually have problems that are much better suited for functional languages.

    That is definitely not true. The tasks are specifically chosen to highlight the unique strengths of functional programming languages, especially compared to imperative languages like C++. This robot problem is a heuristic optimization problem whose solution would require analyzing large trees of possible moves. To do this in C++, you would need to write lots of code that many functional programming languages provide for free. Don't forget Philip Greenspun's Tenth Rule of Programming: "any sufficiently complicated C or Fortran program contains an ad hoc informally-specified bug-ridden slow implementation of half of Common Lisp."