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

Pages: 1-

This thread sums up Haskell in one function.

Name: Anonymous 2008-12-23 20:10

haskell = foldr (:) []

Name: Anonymous 2008-12-23 20:24

Scheme in one function:

(loop
    (print
        (eval
            (read))))

Name: Anonymous 2008-12-23 21:17

Python in one function:
def __indent__(self):
    print('\t')

Name: Anonymous 2008-12-23 21:31

Perl in one function:
print pack "C", rand 128 while 1

Name: Anonymous 2008-12-23 21:58

lisp in one function:
(()(()(()(()(()(...))))))

Name: Anonymous 2008-12-23 22:02

C++ in one function:


void sepples() {
    cout << "oh god how did i get here im not good with computar" << endl;
}

Name: Anonymous 2008-12-23 22:02

>>6
i fuckin' lol'd

Name: Anondamouse 2008-12-23 22:04

In notepad, how would you go about inserting the unicode character RLO.

On my new computer you cant right click and it says insert... It would be great to know how.

Name: Anonymous 2008-12-23 22:06

>>8
Alt+<unicode character in decimal>
Example:
Alt+0032 yields a space
(32d = 20h)

Name: Anonymous 2008-12-23 22:07

Alt+8238
‮Left-to-right

Name: Anonymous 2008-12-24 1:23

>>4
b:/> perl -e "print pack q{C}, 32+rand 94 for 1..100"|perl

b:/>


1 out of 10 times runs without any errors.
Great success!

Name: Anonymous 2008-12-24 2:08

public static final void strictfp volatile transient java() {
  while (Boolean.TRUE.booleanValue()) {
    try {
      throw new OutOfMemoryError("Please upgrade your RAM");
    } catch (Throwable t) {
      System.err.println(t.toString());
    }
  }
}

Name: Anonymous 2008-12-24 2:21

>>12
public static final void strictfp volatile transient java()
Java<JavaScript

Name: Anonymous 2008-12-24 2:31

>>13
JavaScript is faster.
Every page with javascript executing seamlessly and in real-time.
Java requires loading its runtimes,garbage collection and checkign for signed applets.Its like 100 times slower then Flash.

Name: Anonymous 2008-12-24 4:30

>>11
>>4-san did say
Perl in one function:

I'd say he was pretty correct.

Name: sage 2008-12-24 7:27

>Boolean.TRUE.booleanValue()

I lol'd at this.

Name: Anonymous 2008-12-24 7:42

Results 1 - 71 of 71 for "Boolean.TRUE.booleanValue()". (0.27 seconds)
its actually (Boolean.TRUE).booleanValue()

Name: Anonymous 2008-12-24 7:48

If programming languages are too tough for you,
Write your own,
Or better yet,build your own hardware and then write them there.

Name: Anonymous 2008-12-24 7:51

If English language is too tough for you,
Write your own,
Or better yet,build your own dictionary and then write them there.

Name: Anonymous 2008-12-24 7:55

Name: Anonymous 2008-12-24 7:56

Lojban (pronounced [ˈloʒban]) is a constructed, syntactically unambiguous human language based on predicate logic. Its predecessor is Loglan, the original logical language by James Cooke Brown.

Development of the language began in 1987 by The Logical Language Group (LLG), who intended to realize Loglan's purposes as well as further complement the language by making it more usable, and freely available (as indicated by its official full English name "Lojban: a realization of Loglan"). After a long initial period of debating and testing, the baseline was completed in 1998 with the publication of The Complete Lojban Language.

The name "Lojban" is a combination of loj and ban, which are short forms of logji (logic) and bangu (language), respectively. Due to its name, Lojban is sometimes misunderstood to be within some exclusive domains such as formal logic or computer programming; however, it is usable for daily conversation. While it is meant to be capable of handling highly logical concepts, it is also highly flexible. To whatever degree the speaker wishes, it can resemble its natural, programming, or other constructed counterparts, and it can be poetic, ambiguous, precise, or neutral.

The principal sources of its basic vocabulary were the six (at the time) most widely spoken languages: Chinese, English, Hindi, Spanish, Russian, and Arabic, chosen to reduce the unfamiliarity or strangeness of the root words to people of diverse linguistic backgrounds. The language has drawn on other constructed languages' components, a notable instance of which is Láadan's set of indicators[1]. Also Toki Pona and Esperanto have mutuality with Lojban to some extent.

In this article, explanations of its grammatical aspects will mostly be based on The Complete Lojban Language; the Latin alphabet mode will be used for the orthography.

Name: Anonymous 2008-12-24 8:01

x86 in one function:

fun:
    push ebp
    mov ebp, esp
    mov eax, 1
    pop ebp
    ret

Name: Anonymous 2008-12-24 8:05

Assembly code size=20*Typical C
Assembly speed=2*Typical C
Assembly usage =1/200 of C

Name: Anonymous 2008-12-24 8:17

PHP in one function:


function set_name(){
    $name=$_GET['name'];
    /*
    if(!$name){
        $name=$_POST['name'];
        if(!$name){
            $name=$_COOKIE['name'];
            if(!$name){
                die("No name found");
            }
        }
    }
    */
    $name=$_REQUEST['name'];
    if(!$name){
        die("<html><META http-equiv=\"refresh\" content=\"5;URL=javascript:back()\"><body><h1>No name found<p>Please enter your name in the field.</body></html>");
    }
    if(get_magic_quotes_gpc()) {
        $name2=stripslashes($name);
    }
    $name3=mysql_real_escape_string($name2);
    $result=mysql_query("INSERT INTO ".$NAME_TABLE." (name) VALUES (".$name3.")"."");
    if(!$result)
        die("<html><body><h1>Invalid query:<h1>".mysql_error()."</p></body></html>");
}

Name: Anonymous 2008-12-24 8:20

>>24
Your code has a bug! How can it be!

Name: Anonymous 2008-12-24 8:21

>>25
It needs to use more @ to leverage standard best practices.

Name: Anonymous 2008-12-24 8:32

>>24
OPTIMIZED:
window.open(base_url+'addname='+hash(document.form.field.value))

Name: Anonymous 2008-12-24 11:18

>>17
Oh fuck, people are actually doing this in ``production'' code.[1]



1. http://lists.jboss.org/pipermail/portal-commits/2007-November/003327.html

Name: Anonymous 2008-12-24 11:29

>>28
What? Too ENTERPRISE QUALITY for you?

Name: Anonymous 2008-12-24 17:29

>>26
Compared to best in class peers, that code leverages surplus @

Name: Anonymous 2013-01-19 0:03

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

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