|
Post by Clockwork on Jan 15, 2012 21:43:37 GMT
Just for the hell of it, I thought I should make a database of Hello World Scripts to show off different languages. Qbasic Print "Hello, world!" C++ #include <IOSTREAM> using namespace std; int main(){
cout << "Hello, World!"<<endl;
return 0; } That's all I know, you're welcome to contribute some more!
|
|
|
Post by Fringe Pioneer on Jan 15, 2012 22:13:51 GMT
CPython and Jython
print "Saluton, Mondo!" CPython Interactive mode only
import __hello__
Java
public class SalutonMondo {
public void static main(String[] arguments) { System.out.println("Saluton, Mondo!"); } }
|
|
|
Post by Qwerty on Jan 16, 2012 22:36:05 GMT
Might as well add TIBasic to this.
Disp "HELLO WORLD!"
|
|
|
Post by nmagain on Jan 17, 2012 14:57:38 GMT
Flash:
_rootAttachMovieClip("helloworld","helloworld")
|
|
|
Post by Qwerty on Feb 21, 2012 3:41:31 GMT
Lolcode: HAI CAN HAS STDIO? VISIBLE “HAI WORLD!” KTHXBYE Befunge: 0"!dlroW ,olleH">:#,_@ BF: ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>. Chef: Hello World Souffle. Ingredients. 72 g haricot beans 101 eggs 108 g lard 111 cups oil 32 zucchinis 119 ml water 114 g red salmon 100 g dijon mustard 33 potatoes Method. Put potatoes into the mixing bowl. Put dijon mustard into the mixing bowl. Put lard into the mixing bowl. Put red salmon into the mixing bowl. Put oil into the mixing bowl. Put water into the mixing bowl. Put zucchinis into the mixing bowl. Put oil into the mixing bowl. Put lard into the mixing bowl. Put lard into the mixing bowl. Put eggs into the mixing bowl. Put haricot beans into the mixing bowl. Liquefy contents of the mixing bowl. Pour contents of the mixing bowl into the baking dish. Serves 1. BIT: LINENUMBERZEROCODEPRINTZEROGOTOONELINENUMBERONECODEPRINTONEGOTOONEZEROLINENUMBE RONEZEROCODEPRINTZEROGOTOONEONELINENUMBERONEONECODEPRINTZEROGOTOONEZEROZEROLINE NUMBERONEZEROZEROCODEPRINTONEGOTOONEZEROONELINENUMBERONEZEROONECODEPRINTZEROGOT OONEONEZEROLINENUMBERONEONEZEROCODEPRINTZEROGOTOONEONEONELINENUMBERONEONEONECOD EPRINTZEROGOTOONEZEROZEROZEROLINENUMBERONEZEROZEROZEROCODEPRINTZEROGOTOONEZEROZ EROONELINENUMBERONEZEROZEROONECODEPRINTONEGOTOONEZEROONEZEROLINENUMBERONEZEROON EZEROCODEPRINTONEGOTOONEZEROONEONELINENUMBERONEZEROONEONECODEPRINTZEROGOTOONEON EZEROZEROLINENUMBERONEONEZEROZEROCODEPRINTZEROGOTOONEONEZEROONELINENUMBERONEONE ZEROONECODEPRINTONEGOTOONEONEONEZEROLINENUMBERONEONEONEZEROCODEPRINTZEROGOTOONE ONEONEONELINENUMBERONEONEONEONECODEPRINTONEGOTOONEZEROZEROZEROZEROLINENUMBERONE ZEROZEROZEROZEROCODEPRINTZEROGOTOONEZEROZEROZEROONELINENUMBERONEZEROZEROZEROONE CODEPRINTONEGOTOONEZEROZEROONEZEROLINENUMBERONEZEROZEROONEZEROCODEPRINTONEGOTOO Intercal: DO ,1 <- #13 PLEASE DO ,1 SUB #1 <- #238 DO ,1 SUB #2 <- #108 DO ,1 SUB #3 <- #112 DO ,1 SUB #4 <- #0 DO ,1 SUB #5 <- #64 DO ,1 SUB #6 <- #194 DO ,1 SUB #7 <- #48 PLEASE DO ,1 SUB #8 <- #22 DO ,1 SUB #9 <- #248 DO ,1 SUB #10 <- #168 DO ,1 SUB #11 <- #24 DO ,1 SUB #12 <- #16 DO ,1 SUB #13 <- #162 PLEASE READ OUT ,1 PLEASE GIVE UP Say hello.
Malbolge: ('&%:9]!~}|z2Vxwv-,POqponl$Hjig%eB@@>}=<M:9wv6WsU2T|nm-,jcL(I&%$#" `CB]V?Tx<uVtT`Rpo3NlF.Jh++FdbCBA@?]!~|4XzyTT43Qsqq(Lnmkj"Fhg${z@> Shakespeare: The Infamous Hello World Program.
Romeo, a young man with a remarkable patience. Juliet, a likewise young woman of remarkable grace. Ophelia, a remarkable woman much in dispute with Hamlet. Hamlet, the flatterer of Andersen Insulting A/S.
Act I: Hamlet's insults and flattery.
Scene I: The insulting of Romeo.
[Enter Hamlet and Romeo]
Hamlet: You lying stupid fatherless big smelly half-witted coward! You are as stupid as the difference between a handsome rich brave hero and thyself! Speak your mind!
You are as brave as the sum of your fat little stuffed misused dusty old rotten codpiece and a beautiful fair warm peaceful sunny summer's day. You are as healthy as the difference between the sum of the sweetest reddest rose and my father and yourself! Speak your mind!
You are as cowardly as the sum of yourself and the difference between a big mighty proud kingdom and a horse. Speak your mind.
Speak your mind!
[Exit Romeo]
Scene II: The praising of Juliet.
[Enter Juliet]
Hamlet: Thou art as sweet as the sum of the sum of Romeo and his horse and his black cat! Speak thy mind!
[Exit Juliet]
Scene III: The praising of Ophelia.
[Enter Ophelia]
Hamlet: Thou art as lovely as the product of a large rural town and my amazing bottomless embroidered purse. Speak thy mind!
Thou art as loving as the product of the bluest clearest sweetest sky and the sum of a squirrel and a white horse. Thou art as beautiful as the difference between Juliet and thyself. Speak thy mind!
[Exeunt Ophelia and Hamlet]
Act II: Behind Hamlet's back.
Scene I: Romeo and Juliet's conversation.
[Enter Romeo and Juliet]
Romeo: Speak your mind. You are as worried as the sum of yourself and the difference between my small smooth hamster and my nose. Speak your mind!
Juliet: Speak YOUR mind! You are as bad as Hamlet! You are as small as the difference between the square of the difference between my little pony and your big hairy hound and the cube of your sorry little codpiece. Speak your mind!
[Exit Romeo]
Scene II: Juliet and Ophelia's conversation.
[Enter Ophelia]
Juliet: Thou art as good as the quotient between Romeo and the sum of a small furry animal and a leech. Speak your mind!
Ophelia: Thou art as disgusting as the quotient between Romeo and twice the difference between a mistletoe and an oozing infected blister! Speak your mind!
[Exeunt] Assembler - Linux ;; Hello World for the nasm Assembler (Linux) SECTION .data
msg db "Hello, world!",0xa ; len equ $ - msg
SECTION .text global main
main: mov eax,4 ; write system call mov ebx,1 ; file (stdou) mov ecx,msg ; string mov edx,len ; strlen int 0x80 ; call kernel
mov eax,1 ; exit system call mov ebx,0 int 0x80 ; call kernel HQ9+: H Piet: A lot more
|
|
|
Post by Elmach on Feb 21, 2012 5:23:32 GMT
Befunge: "dlroW olleH">:v ^,_@ That code... doesn't work. Here it is, fixed. "dlroW elleH">:v >>>>>>>>>>>>>^,_@
EDIT: ... Yay for [ code] tags that hate whitespace. I "fixed" the code such that it would work, although, strictly speaking, you could remove the first column. EDITx2: ... Fix didn't work still. I don't like you, [ code] tag. This new fix will work, though. EDITx3: Yep, it did. You can replace all those ">"'s with spaces, or indeed, any character, and it will work.
|
|
|
Post by Nullspeaker on Dec 19, 2012 13:11:36 GMT
Brainfuck:
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
|
|
|
Post by Nullspeaker on Dec 19, 2012 13:13:13 GMT
Wait, brainfuck was already there. Fuck. ...Haskell!
main = putStrLn "Hello, World!"
|
|
|
Post by ~Memzak~ on Jan 10, 2013 13:11:09 GMT
Just found this thread now... utterly brilliant. You all deserve three millions cookies each.
|
|
|
Post by Rabidbadger on May 30, 2013 21:03:29 GMT
Just found this thread now... utterly brilliant. You all deserve three millions cookies each. from foodstuffs import cookie cookies = [] numberOfCookies = 3000000 while numberOfCookies > 0: _cookies.append(cookie) _numberOfCookies -= 1 print(numberOfCookies + "given, Memzak!")
|
|