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

In this thread, we Hello World

Name: Anonymous 2006-06-20 20:56

c:
#include <stdio.h>
main() { printf("hey worldz\n"); }

Name: Anonymous 2006-06-20 21:35

10 PRINT "HELLO WORLD"

Name: Anonymous 2006-06-20 22:02

#include <stdlib.h>
int main() { return system("echo hello world"); }

Name: Anonymous 2006-06-20 22:11

6502 ASM on Commodore 64:
frekzp = $FB
chrout = $FFD2
.org $c000
lda #<msgtxt
sta frekzp
lda #>msgtxt
sta frekzp+1
ldy #$00
sta 53280
sta 53281
loop: lda (frekzp),y
beq exit
sty frekzp+2
jsr chrout
ldy frekzp
jmp loop
rts
msgtxt .db 147,5
.asc "HELLO, WORLD"
.db 0

Name: Anonymous 2006-06-21 8:32

#include <iostream>
#include <string.h>

using namespace std;

class wryy
{
 protected:
       char dokidoki;
 public:
       wryy(char nyu)
       {  strcpy(dokidoki, nyu); }
       za_warudo()
       {  cout << this.dokidoki; }
}

main()
{
 wryy dio;

 dio = new wryy("Hello World");
 dio.za_warudo();

 exit 0
}  

Name: Anonymous 2006-06-21 8:46

print "hello world"

Name: Anonymous 2006-06-21 11:10

?"Hello world"

Name: Anonymous 2006-06-21 11:28

10 PRINT"this is very annoying"
20 GOTO 10
30 END

Name: Anonymous 2006-06-21 15:05

print "".join(list("Hello world"))

Name: Anonymous 2006-06-21 15:21

#include <iostream>
using namespace std;

class Hello
{
    string hello;
public:
    Hello(const string &world = "Hello, world!"): hello(world) { }
    friend ostream &operator<<(ostream &stream, const Hello &hello) {
        stream << hello.hello;
        return stream;
    }
};

int main()
{
    Hello world;
    cout << world << endl;
    return 0;
}

Name: Anonymous 2006-06-21 16:49

>>10
Lol OO

Name: Anonymous 2006-06-21 17:08

>>10
Not Ready For The Enterprise, you'll have to use XML for that.

Name: Anonymous 2006-06-21 22:05

The Enterprise Strikes Back

Name: Anonymous 2006-06-22 3:03

echo 'Hello, world!'

Name: Anonymous 2006-06-22 3:18

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

Name: Anonymous 2006-06-22 4:07

writeln 'Hello world'; (*IIRC*)

Name: Anonymous 2006-06-22 4:44

document.write('Hello World')

Name: Anonymous 2006-06-22 5:09

msgbox "Hello World"

Name: Anonymous 2006-06-22 6:21

document.getElementsByTagName("BODY")[0].innerHTML = "Hello World"

Name: Anonymous 2006-06-22 9:33

>>15
wins thread

Name: Anonymous 2006-06-22 9:41

Brainfuck fucks with my brain.
I hate it.

Name: Anonymous 2006-06-22 11:05

    .class public HelloWorld
    .super java/lang/Object

    ;
    ; standard initializer (calls java.lang.Object's initializer)
    ;
    .method public <init>()V
       aload_0
       invokenonvirtual java/lang/Object/<init>()V
       return
    .end method

    ;
    ; main() - prints out Hello World
    ;
    .method public static main([Ljava/lang/String;)V
       .limit stack 2   ; up to two items can be pushed

       ; push System.out onto the stack
       getstatic java/lang/System/out Ljava/io/PrintStream;

       ; push a string onto the stack
       ldc "Hello World!"

       ; call the PrintStream.println() method.
       invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V

       ; done
       return
    .end method

Name: Anonymous 2006-06-22 12:34

>>22
seriously.
GTFO

Name: Anonymous 2006-06-22 12:56

>>22
Is this what object oriented programming looks like?

Name: Anonymous 2006-06-22 12:57

>>22
haha oh wow

Name: Anonymous 2006-06-22 12:57

No that's what Java looks like and I think my eyes are irreparably damaged.

Name: Anonymous 2006-06-22 13:48

i actually like java lol

Name: Anonymous 2006-06-22 20:27

Java is evil.

Name: DoubleAW 2006-06-22 20:35

echo"Hello World!";

Name: Anonymous 2006-06-22 23:00

print_endline "Hello World!";;

Name: Anonymous 2006-06-23 0:44

>>22 is some sort of JVM assembly.
#!/usr/bin/perl
# prints "Hello World"
use SuperPython;

Name: Anonymous 2006-06-23 5:06

(lambda () '(hello world))

Name: Anonymous 2006-06-23 5:14

Name: Anonymous 2006-06-23 14:10

IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO WORLD.
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
MAIN SECTION.
DISPLAY "Hello World!"
STOP RUN.

Name: Anonymous 2006-06-23 14:13

0x680x650x6c0x6c0x6f0xa00x770x6f0x720x6c0x64

all ready for some hexdump utility.

Name: Anonymous 2006-06-23 15:56

>>5

shouldn't the public class function za_warudo() be called as

dio::za_warudo()

as opposed to

dio.za_warudo()

If not, tell me why not so i can further my knowledge :)

Name: Anonymous 2006-06-23 18:08

in SMATINY (http://esolangs.org/wiki/SMATINY):
1. Swap 42 with 72.
2. Swap 2 with 71.
33. Swap 32 with 87.
34. Swap 111 with 255.
35. Swap 253 with 102.
36. Swap 254 with 34.
41. Swap 41 with 86.
42. Output this block's position.
73. Swap 73 with 99.
88. Swap 87 with 111.
89. Swap 95 with 112.
90. Swap 96 with 115.
91. Swap 97 with 109.
92. Swap 98 with 101.
93. Swap 251 with 117.
94. Swap 94 with 110.
95. Swap 111 with 114.
96. Swap 114 with 108.
97. Swap 108 with 100.
98. Swap 100 with 33.
105. Swap 72 with 101.
110. Swap 105 with 150.
117. Swap 117 with 99.
118. Swap 250 with 109.
120. Swap 120 with 107.
121. Swap 108 with 111
150. Swap 101 with 108.
160. Swap 108 with 32.
161. Swap 161 with 31.
250. Swap 108 with 111.
251. Swap 117 with 107.
252. Swap 110 with 99.
253. Swap 102 with 32
254. Swap 34 with 260
255. Swap 252 with 110

Name: Anonymous 2006-06-23 23:31

>>36
Isn't that used to differentiate namespaces?

Name: Anonymous 2006-06-23 23:40

>>36
:: operator is only used for static member functions and namespaces.
For the record, it should be dio->warudo(), since dio (should be) is a pointer to a wryy object.

Name: Anonymous 2006-06-24 1:32

>>22
It's funny that the assembly language version of Hello World (>>2) is shorter than the Java version

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