Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The /prog/ game

Name: Anonymous 2009-05-25 14:46

Pussies: Post link to project, doesn't matter if there is no source code. No HTML, faggots.
Average programmers: Post source code. If your program is too long to be posted here, see pussies.
Real men: Write a program from scratch and post source code. DON'T TEST IT.

Name: Anonymous 2009-05-25 14:56

Pussies: Post one of your online handles
Average programmers: Post a link to a project you are part of
Real men: Post your real name

Name: Anonymous 2009-05-25 15:04

printf("I am a real man\n");

Name: Anonymous 2009-05-25 15:05

Pussies: VB, Java, Python
Average programmers: C, C++, C#
Real men: Smalltalk

Name: Anonymous 2009-05-25 15:13

Andrey Evgenyevitcsh Osenenko

Name: Anonymous 2009-05-25 15:16

Pussies: laser mouse
Average programmers: keyboard
Real men: punch tape

Name: Anonymous 2009-05-25 15:18

import IO, Char (toLower)

-- game works like a state machine
main = startRoom ["a copy of SICP"]

startRoom :: IO ()
startRoom inventory = do
    putStrLn "Hello young lambda knight!"
    putStrLn "What do you want to do?"
    choice <- getLine
    case (map toLower choice) of
        exit -> putStrLn "Bye!"
        -- TODO: add more possible inputs
        _ -> putStrLn "Unrecognized command." >> startRoom

-- TODO: add more rooms

Name: Anonymous 2009-05-25 15:21

>>7
12s/exit/"exit"/

Name: Anonymous 2009-05-25 18:21

ONE WORD
FORCE ANNOTATIONS OF TYPES
FAIL

Name: Anonymous 2009-05-25 22:42

Pussies: www.gamedev.net, Ron Penton
Average programmers: www.cplusplus.com, Watts Humphrey
Real men: Secret area of HAX, Daddy Sussman

Name: Anonymous 2009-05-25 23:24


// Copyright (c) 2009 Anonymous
// this program is free software you can redistribute it undwr the terms of
// the gnu pubic license version 2 or at you're option any later version this
// program comes free of warranties INCLUDING MERCHANDIBILITY AND FITNESS FOR
// A PARTICULAR PURPOSE
#import <stdio.h>
var main(argc)

    {
        displayHello_world
      return 0;}
def HelloWorld do
  BEGIN
      printf("hello
/prog/\n\0")
    RESCUE
    return

  end

I have not tested it.

Name: Anonymous 2009-05-26 0:27

>>11
I have not jizzed on it and I feel rather fine about it :|

Name: Anonymous 2009-05-26 0:32

Fixed
// Copyleft 2009 Anonymous
// this program is free software you can redistribute it undwr the terms of
// the MIT INSTITUTE OF TECHNOLOGY LICENSE
import(studio.rb)
def main(argc)        {

        displayHello_world
      return 0;}
  def displayHelloWorld
do
      puts ("hello
/prog/\n")
    return
  end

Name: Anonymous 2009-05-26 1:33

I approve of this thread.

http://www.koders.com/cpp/fid17607BAD54345CC1FC201C64A550A13F5E64AB95.aspx?s=%22over+9000%22

I would post links to my own reputable code project, but I hardly want it tainted by association with /prog/

Name: Anonymous 2009-05-26 3:43

My personal way of writing 1024.


#include <stdio.h>
#include <stdint.h>

int lulz(void)
{
    uint8_t data[] = {0x55, 0x89, 0xe5, 0xb8, 0x00, 0x04, 0x00,
                      0x00, 0xc9, 0xc3, 0x66, 0x90};
    asm("movl %0, %%eax;"
        "call *%%eax;" :
        :
        "r"(data) :
        "%eax"
       );
}

int main(void)
{
    printf("%d\n", lulz());
}

Name: Anonymous 2009-05-26 3:46

>>5 oh, btw, it works only on Linux x86

Name: Anonymous 2009-05-26 12:23

>>15
/thread? WHY DON'T YOU APPROVE MAH HACK??

Name: Anonymous 2009-05-26 12:29

>>16
works on other x86 systems too if you use a different syntax for the assembler.
But what's with the horribly inefficient code ?

55              PUSH EBP
89E5            MOV EBP,ESP
B8 00040000     MOV EAX,400
C9              LEAVE
C3              RETN
66 90           NOP

The prologue/epilogue is completly unneeded: mov eax,400 / retn : B8 00040000 C3 would have been enough.

Name: Anonymous 2009-05-26 13:31

PUSH A
PUSH
POP

Name: Anonymous 2009-05-26 23:54

pantsu crappu

Name: Anonymous 2011-01-31 20:29

<-- check em dubz

Name: Anonymous 2011-02-03 3:04


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List