--------------------------------------------------------------------------------
Assembler-Darwin-PPC Back to index
; Hello World in Assembler for the Darwin Power-PC
.data
.cstring
.align 2
msg:
.asciz "Hello world!\n"
len = . - msg
.text
.align 2
.globl _start
_start:
li r0,4
li r3,1
lis r4,ha16(msg)
ori r4,r4,lo16(msg)
li r5,len
sc
li r0,1
li r3,0
sc
--------------------------------------------------------------------------------
Assembler-DG-Nova Back to index
.TITL HELLO
02 ; "HELLO, WORLD" FOR NOVA RUNNING RDOS
03 ; USES PCHAR SYSTEM CALL
04 .NREL
05 .ENT START
06
07 START:
08 00000'022424 DOCHAR: LDA 0,@PMSG ; LOAD AC0 WITH NEXT CHARACTER,
09 00001'101015 MOV# 0,0,SNR ; TEST AC0;
10 00002'000412 JMP DONE ; SKIPPED IF NONZERO
11 00003'006017 .SYSTM
12 00004'010000 .PCHAR ; PRINT FIRST
13 00005'000413 JMP ER ; SKIPPED IF OK
14 00006'101300 MOVS 0,0 ; SWAP BYTES
15 00007'006017 .SYSTM
16 00010'010000 .PCHAR ; PRINT SECOND
17 00011'000407 JMP ER ; SKIPPED IF OK
18 00012'010412 ISZ PMSG ; POINT TO NEXT WORD
19 00013'000765 JMP DOCHAR ; GO AROUND AGAIN
20
21 00014'006017 DONE: .SYSTM ; NORMAL EXIT
22 00015'004400 .RTN
23 00016'000402 JMP ER
24 00017'063077 HALT
25 00020'006017 ER: .SYSTM ; ERROR EXIT
26 00021'006400 .ERTN
27 00022'063077 HALT
28 00023'063077 HALT
29
30 00024'000025'PMSG: .+1 ; ADDRESS OF FIRST WORD OF TEXT
31 ; NOTE BYTES ARE PACKED RIGHT-TO-LEFT BY DEFAULT
32 00025'042510 .TXT /HELLO, WORLD!<15><12>/ ; THAT'S CR LF
33 046114
34 026117
35 053440
36 051117
37 042114
38 006441
39 000012
40 00035'000000 0 ; FLAG WORD TO END STRING
41
42 .END START
--------------------------------------------------------------------------------
Assembler-HLA Back to index
; Hello World for Intel compatible High Level Assembler
program HELLO;
#include( "stdlib.hhf" );
begin HELLO;
stdout.put("Hello World",nl);
end HELLO;
--------------------------------------------------------------------------------
Assembler-IBM-370 Back to index
ITLE 'Hello World for IBM Assembler/370 (VM/CMS)'
HELLO START
BALR 12,0
USING *,12
*
WRTERM 'Hello World!'
*
SR 15,15
BR 14
*
END HELLO
--------------------------------------------------------------------------------
Assembler-Intel Back to index
; Hello World for Intel Assembler (MSDOS)
mov ax,cs
mov ds,ax
mov ah,9
mov dx, offset Hello
int 21h
xor ax,ax
int 21h
Hello:
db "Hello World!",13,10,"$"
--------------------------------------------------------------------------------
Assembler-Itanium Back to index
--------------------------------------------------------------------------------
Assembler-PDP11 Back to index
; Hello World in Assembler for the DEC PDP-11 with the
; RSX-11M-PLUS operating system
;
.title Hello
.ident /V0001A/
.mcall qiow$s, exit$s
.psect $code,ro,i
start: qiow$s #5,#5,,,,<#str, #len, #40>
exit$s
.psect $data,ro,d
str: .ascii / Hello World!/
len=.-str
.end start
--------------------------------------------------------------------------------
Assembler-PDP8 Back to index
/ Hello World in Assembler for the DEC PDP-8
*200
hello, cla cll
tls / tls to set printer flag.
tad charac / set up index register
dca ir1 / for getting characters.
tad m6 / set up counter for
dca count / typing characters.
next, tad i ir1 / get a character.
jms type / type it.
isz count / done yet?
jmp next / no: type another.
hlt
type, 0 / type subroutine
tsf
jmp .-1
tls
cla
jmp i type
charac, . / used as initial value of ir1
310 / H
305 / E
314 / L
314 / L
317 / O
254 / ,
240 /
327 / W
317 / O
322 / R
314 / L
304 / D
241 / !
m6, -15
count, 0
ir1 = 10
$
--------------------------------------------------------------------------------
Assembler-VP Back to index
; Hello World in VP Assembler for intent (Amiga Anywhere)
.include 'tao'
tool 'home/hello',VP,TF_MAIN,8192,0
ent (-:-)
qcall lib/print,(hello_world.p : i~)
ret ()
entend
data
hello_world:
dc.b "Hello World!",ASCII_LF,0
toolend
--------------------------------------------------------------------------------
Assembler-Win32 Back to index
; Hello world in Assembler for the Win32 architecture
--------------------------------------------------------------------------------
Assembler-z390 Back to index
; Hello World for z390 IBM compatible mainframe assembler
HELLO CSECT
USING *,15
WTO 'Hello World'
BR 14
END
--------------------------------------------------------------------------------
Assembler-Z80-Console Back to index
; This is a "Hello World" program for Z80 and TMS9918 / TMS9928 / TMS9929 /
; V9938 or V9958 VDP.
; That means that this should work on SVI, MSX, Colecovision, Memotech,
; and many other Z80 based home computers or game consoles.
;
; Because we don't know what system is used, we don't know where RAM
; is, so we can't use stack in this program.
;
; This version of Hello World was written by Timo "NYYRIKKI" Soilamaa
; 17.10.2001
;
;----------------------------------------------------------------------
; Configure this part:
DATAP: EQU #98 ; VDP Data port #98 works on all MSX models
; (TMS9918/TMS9929/V9938 or V9958)
; #80 works on SVI
; (for other platforms you have to figure this out by your self)
CMDP: EQU #99 ; VDP Command port #99 works on all MSX models
; (TMS9918/TMS9929/V9938 or V9958)
; #81 works on SVI
; (for other platforms you have to figure this out by your self)
;-----------------------------------------------------------------------
; Program starts here:
ORG 0 ; Z80 starts always from here when power is turned on
DI ; We don't know, how interrupts works in this system, so we disable them.
; Let's set VDP write address to #0000
XOR A
OUT (CMDP),A
LD A,#40
OUT (CMDP),A
; Now let's clear first 16Kb of VDP memory
LD B,0
LD HL,#3FFF
LD C,DATAP
CLEAR:
OUT (C),B
DEC HL
LD A,H
OR L
NOP ; Let's wait 8 clock cycles just in case VDP is not quick enough.
NOP
JR NZ,CLEAR
; Now it is time to set up VDP registers:
;----------------------------------------
; Register 0 to #0
;
; Set mode selection bit M3 (maybe also M4 & M5) to zero and
; disable external video & horizontal interrupt
LD C,CMDP
LD E,#80
OUT (C),A
OUT (C),E
;----------------------------------------
; Register 1 to #50
;
; Select 40 column mode, enable screen and disable vertical interrupt
LD A,#50
INC E
OUT (C),A
OUT (C),E
;----------------------------------------
; Register 2 to #0
;
; Set pattern name table to #0000
XOR A
INC E
OUT (C),A
OUT (C),E
;----------------------------------------
; Register 3 is ignored as 40 column mode does not need color table
;
INC E
;----------------------------------------
; Register 4 to #1
; Set pattern generator table to #800
INC A
INC E
OUT (C),A
OUT (C),E
;----------------------------------------
; Registers 5 (Sprite attribute) & 6 (Sprite pattern) are ignored
; as 40 column mode does not have sprites
INC E
INC E
;----------------------------------------
; Register 7 to #F0
; Set colors to white on black
LD A,#F0
INC E
OUT (C),A
OUT (C),E
;----------------------------------------
; Let's set VDP write address to #808 so, that we can write
; character set to memory
; (No need to write SPACE it is clear char already)
LD A,8
OUT (C),A
LD A,#48
OUT (C),A
; Let's copy character set
LD HL,CHARS
LD B, CHARS_END-CHARS
COPYCHARS:
LD A,(HL)
OUT (DATAP),A
INC HL
NOP ; Let's wait 8 clock cycles just in case VDP is not quick enough.
NOP
DJNZ COPYCHARS
; Let's set write address to start of name table
XOR A
OUT (C),A
LD A,#40
OUT (C),A
; Let's put characters to screen
LD HL,ORDER
LD B,ORDER_END-ORDER
COPYORDER:
LD A,(HL)
OUT (DATAP),A
INC HL
JR OVERNMI
NOP
NOP
; Here is address #66, that is entry for NMI
RETN ;Return from NMI
OVERNMI:
DJNZ COPYORDER
; The end
HALT
; Character set:
; --------------
ORDER:
DEFB 1,2,3,3,4,0,5,4,6,3,7
ORDER_END:
--------------------------------------------------------------------------------
C-K+R Back to index
/* Hello World in C, K&R-style */
main()
{
puts("Hello World!");
return 0;
}
--------------------------------------------------------------------------------
C-Objective Back to index
/* Hello World in Objective-C.
** Since the standard implementation is identical to K&R C,
** a version that says hello to a set of people passed on
** the command line is shown here.
*/
#include <stdio.h>
#include <objpak.h>
int main(int argc,char **argv)
{
id set = [Set new];
argv++;while (--argc) [set add:[String str:*argv++]];
[set do:{ :each | printf("hello, %s!\n",[each str]); }];
return 0;
}
--------------------------------------------------------------------------------
C-OpenGL Back to index
/* "Hello World" in C using OGL - Open Graphics Library */
#include <GL/glut.h>
#define font GLUT_BITMAP_HELVETICA_18
#define tx "Hello World!"
--------------------------------------------------------------------------------
Chef Back to index
Hello World Souffle.
This recipe prints the immortal words "Hello world!", in a basically brute force
way. It also makes a lot of food for one person.
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.
--------------------------------------------------------------------------------
Clarion Back to index
!Hello World in Clarion
PROGRAM
MAP
END
CODE
MESSAGE('Hello World!')
RETURN
--------------------------------------------------------------------------------
Clean Back to index
// Hello World in Clean
module hello
Start :: String
Start = "Hello World!\n"
--------------------------------------------------------------------------------
Clipper Back to index
// Hello World in Clipper
? "Hello World"
--------------------------------------------------------------------------------
CLP Back to index
/* Hello World in CLP for the IBM AS/400 */
PGM
SNDPGMMSG MSG('Hello World !') MSGTYPE(*COMP)
ENDPGM
--------------------------------------------------------------------------------
Cobol Back to index
* Hello World in Cobol
*****************************
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO.
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
MAIN SECTION.
DISPLAY "Hello World!"
STOP RUN.
****************************
--------------------------------------------------------------------------------
Cocoa Back to index
// Hello World in Cocoa Obj-C (OS X)
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
--------------------------------------------------------------------------------
FreeBASIC Back to index
'Hello World in FreeBASIC
print "Hello World"
--------------------------------------------------------------------------------
Frink Back to index
// Hello World in Frink
println["Hello World!"]
--------------------------------------------------------------------------------
G-Code Back to index
Hello World in "G Code" for CNC machines.
Click here for a preview.
--------------------------------------------------------------------------------
Informix-4GL Back to index
# Hello World in Informix 4GL
MAIN
DISPLAY "Hello World"
END MAIN
--------------------------------------------------------------------------------
Ingres-ABF Back to index
/* Hello World in Ingres ABF */
procedure hello =
begin
message 'Hello, World' with style=popup;
end
--------------------------------------------------------------------------------
InstallScript Back to index
// Hello World in InstallScript
// (Scripting language of InstallShield, a Windows install generator)
program
MessageBox("Hello World!",INFORMATION);
endprogram
--------------------------------------------------------------------------------
Intercal Back to index
Hello World in Intercal
DO ,1 <- #13
PLEASE DO ,1 SUB #1 <- #234
DO ,1 SUB #2 <- #112
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 <- #214
PLEASE READ OUT ,1
PLEASE GIVE UP
--------------------------------------------------------------------------------
Io Back to index
// Hello World in io programming language
"Hello world!" print
--------------------------------------------------------------------------------
Iptscrae Back to index
; Hello World in Iptscrae.
; 1. from the chat prompt:
/ "Hello World!" SAY
; 2. in a cyborg:
ON OUTCHAT {
{ "Hello World!" SAY
} CHATSTR "say it" == IF
}
; 3. in a room script:
ON SELECT {
"Hello World!" SAY
}
--------------------------------------------------------------------------------
J Back to index
NB. Hello World in J
'Hello World' 1!:2(2)
--------------------------------------------------------------------------------
Jade Back to index
// Hello World in JADE
write "Hello World";
--------------------------------------------------------------------------------
Jako Back to index
# Hello World in Jako
use sys;
sys::print("Hello, world!\n");
--------------------------------------------------------------------------------
Jason Back to index
--------------------------------------------------------------------------------
Logo Back to index
; Hello World in Logo
DRUCKEZEILE [Hello World!]
--------------------------------------------------------------------------------
Logo-graphical Back to index
; Hello World in LOGO, graphical output.
go 20 , left 180,
go 40 , left 180,
go 20 , right 90,
go 20 , left 90 ,
go 20 , left 180,
go 40 , left 90 ,
go 20 , left 90 ,
go 20 , right 90 ,
go 20 , right 90 ,
go 10 , right 90 ,
go 20 , left 90 ,
go 10 , left 90 ,
go 30 , left 90 ,
go 40 , left 180,
go 40 , left 90 ,
go 20 , left 90 ,
go 40 , left 180,
go 40 , left 90 ,
go 40 , left 90 ,
go 20 , left 90 ,
go 20 , left 90 ,
go 20 , left 90 ,
go 60 , left 90 ,
go 40 , left 180,
go 40 , left 90 ,
go 20 , left 90 ,
go 20 , left 180,
go 20 , left 90 ,
go 20 , left 90 ,
go 40 , left 180,
go 40 , left 90 ,
go 40 , left 90 ,
go 20 , left 90 ,
go 20 , left 90 ,
go 20 , left 90 ,
go 40 , left 90 ,
go 20 , right 90,
go 20 , right 90,
go 5 , left 90 ,
go 5 , left 90 ,
go 25 , left 180,
go 40 , left 90 ,
go 40 , left 90 ,
go 20 , left 90 ,
go 20 , left 90 ,
go 20 , left 90 ,
go 20 , left 90 ,
go 40 , left 180,
go 40 ,
--------------------------------------------------------------------------------
LOLCODE Back to index
BTW Hello World in LOLCODE
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
--------------------------------------------------------------------------------
LOTOS Back to index
(* Hello World in LOTOS (Language Of Temporal Ordering Specifications) *)
process HelloWorld [v]: exit :=
v! "Hello World!";
exit
endproc
--------------------------------------------------------------------------------
Lotus-Note-Formula Back to index
REM "Lotus Note Formula Language";
@Prompt([ok];"Hi there";"Hello World");
--------------------------------------------------------------------------------
Lotus-Script Back to index
' Hello World in Lotus Script
Sub Initialize
Msgbox "Hello world", 0, "Hi there!"
End Sub
--------------------------------------------------------------------------------
LS-DYNA Back to index
--------------------------------------------------------------------------------
Omnimark Back to index
; Hello World in Omnimark
process
output "Hello World!%n"
--------------------------------------------------------------------------------
Ook Back to index
Hello World in Ook. No comments possible.
Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook.
Ook! Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook?
Ook! Ook! Ook? Ook! Ook? Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook.
Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook.
Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook.
Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook!
Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook. Ook! Ook? Ook! Ook! Ook? Ook!
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook! Ook.
--------------------------------------------------------------------------------
OpenVMS Back to index
$! Hello World in OpenVMS DCL
$ write sys$output "Hello World"
--------------------------------------------------------------------------------
OPL.dialog Back to index
REM Hello World for OPL (Psion Organizer 3a)
REM More complex version with menues and dialog boxes
PROC HELLO:
LOCAL M%
DO
REM Display menu bar
mINIT
mCARD "Sprache","Deutsch",%d,"English",%e
mCARD "Extras","Beenden",%x,"Info",%i
M%=MENU
REM process choosen function
IF M%=%d
REM Display german dialog box
REM with an ENTER button to continue
dBOX:(" ","Hallo Welt"," ","weiter",13)
ELSEIF M%=%e
REM Display english dialog box
REM with an ENTER button to continue
dBOX:(" ","Hello World"," ","continue",13)
ELSEIF M%=%i
REM Display copyright information ;-)
dBOX:("Info","(C) Klaus Müller 0196","FrankfurtMain, Germany","",13)
ENDIF
UNTIL M%=%x
ENDP
--------------------------------------------------------------------------------
PEARL Back to index
MODULE (HELLO);
/* Hello World in PEARL (Process and Experiment Automation Realtime Language) */
SYSTEM;
TERMINAL:DIS<->SDVLS(2);
PROBLEM;
SPC TERMINAL DATION INOUT
ALPHIC DIM(,) TFU MAX
FORWARD CONTROL (ALL);
MAIN:TASK;
DCL TEXT INV CHAR(30)
INIT('HELLO WORLD!');
OPEN TERMINAL;
PUT TEXT TO TERMINAL;
CLOSE TERMINAL;
END;
MODEND;
--------------------------------------------------------------------------------
PeopleCode Back to index
--------------------------------------------------------------------------------
PostgreSQL Back to index
-- Hello World in PL/pgSQL (PostgreSQL Procedural Language)
-- In old versions replace '$$' by double qoutes
CREATE FUNCTION hello_world() RETURNS text AS $$
BEGIN
RETURN 'Hello World';
END
$$ LANGUAGE plpgsql;
SELECT hello_world();
--------------------------------------------------------------------------------
Postscript Back to index
% Hello World in Postscript
%!PS
/Palatino-Roman findfont
100 scalefont
setfont
100 100 moveto
(Hello World!) show
showpage
--------------------------------------------------------------------------------
POV-Ray Back to index
// Hello World for the Persistence of Vision Raytracer.
// Click here to view the output.
#include "skies.inc"
--------------------------------------------------------------------------------
RPG-IV Back to index
H* Hello World in RPG IV
D msg S 32 inz(*blank)
D cmd S 64
C eval msg = 'Hello World'
C msg dsply
C eval cmd = 'DLYJOB DLY(30)'
C call 'QCMDEXC'
C parm cmd
C parm 64 len 15 5
C eval *inlr = *on
--------------------------------------------------------------------------------
RPL Back to index
Hello World in RPL for the HP-28, HP-48, HP-49 and HP-50 series pocket calculators. No comments possible.
<<
"HELLO WORLD"
1 DISP
60 FREEZE
>>
--------------------------------------------------------------------------------
RSL Back to index
// Hello World in RSL (RS-Bank Language)
[Hello World!];
--------------------------------------------------------------------------------
Ruby Back to index
# Hello World in Ruby
puts "Hello World!"
--------------------------------------------------------------------------------
S-Plus Back to index
# Hello World for S-Plus
cat("Hello world\n")
--------------------------------------------------------------------------------
SAL Back to index
// Hello World in SAL
proc main()
MsgBox("Hello from SAL", "Hello, World!")
end
--------------------------------------------------------------------------------
SApp Back to index
comment: Hello World in SApp
popup "Hello ## World!" ,
--------------------------------------------------------------------------------
SAS Back to index
/* Hello world in SAS */
* Writes as output title;
TITLE “Hello World!”;
* writes to the log;
PUT Hello world!;
--------------------------------------------------------------------------------
Sather Back to index
-- Hello World in Sather
class HELLO is
main is #OUT + "Hello World!\n" end
end
--------------------------------------------------------------------------------
Scala Back to index
// Hello World in Scala
object HelloWorld with Application {
Console.println("Hello world!");
}
--------------------------------------------------------------------------------
Scheme Back to index
; Hello World in Scheme
(display "Hello, world!")
(newline)
--------------------------------------------------------------------------------
Scilab Back to index
// Hello World in SciLab.
disp('Hello World');
--------------------------------------------------------------------------------
Seed7 Back to index
# Hello World in Seed7
$ include "seed7_05.s7i";
const proc: main is func
begin
writeln("Hello World!");
end func;
--------------------------------------------------------------------------------
Self Back to index
(| "Hello World in Self"
hello = (| | 'Hello World!' print)
|)
--------------------------------------------------------------------------------
SenseTalk Back to index
Hello World in SenseTalk.
on run put "Hello World!" end run
--------------------------------------------------------------------------------
Setl2 Back to index
-- Hello World in Setl2
procedure Hello();
print "Hello World!";
end Hello;
--------------------------------------------------------------------------------
Shakespeare Back to index
The Infamous Hello World Program in Shakespeare.
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]
--------------------------------------------------------------------------------
SilverBasic Back to index
//Hello World in SilverBasic
PRINT "Hello World!"
--------------------------------------------------------------------------------
SIMPLE Back to index
[::PROGRAM:Hello World program in SIMPLE
A EQL @0
MSG A
END
]
{::DATA:Data part
@0:T
Hello World$$M
$$@
}
--------------------------------------------------------------------------------
Simula Back to index
! Hello World in Simula;
BEGIN
OutText("Hello World!");
OutImage;
END
--------------------------------------------------------------------------------
SinclairBasic Back to index
10 REM Hello World in Sinclair BASIC
20 PRINT ("Hello World");
--------------------------------------------------------------------------------
Smalltalk MT Back to index
"Hello World in Smalltalk MT
FrameWindow new
title: 'Hello World';
open
--------------------------------------------------------------------------------
Smalltalk.simple Back to index
"Hello World in Smalltalk (simple version)"
Transcript show: 'Hello World!'.
--------------------------------------------------------------------------------
Smalltalk.window Back to index
"Hello World in Smalltalk (in an own window)"
"(to be entered in a special browser)"
--------------------------------------------------------------------------------
T-SQL Back to index
-- Hello World in T-SQL
PRINT 'Hello World'
--------------------------------------------------------------------------------
T9-Mobile Back to index
How to enter Hello World on a standard T9 numeric
keypad of an SMS-enabled mobile phone.
T9 predictive text has to be off.
44 33 555 555 666 0 9 666 777 555 3 11111
--------------------------------------------------------------------------------
TACL Back to index
Comment -- Hello World for TACL (TAndem Command Language)
ECHO Hello World
--------------------------------------------------------------------------------
TAL Back to index
! Hello world in Tandem TAL (Transaction Application Language)
proc Hello^World main;
begin
int .term[0:12] := [ 12 * [ “ “ ] ],
.out [0:19];
string .sout := @out ‘<<’ 1, .sp;
call myterm ( term[1] );
call open ( term[1], term );
if <> then call abend;
sout ‘:=’ “Hello World” -> @sp;
call write ( term, out, @sp’-‘@sout );
if <> then call abend;
end;
--------------------------------------------------------------------------------
Tcl Back to index
#!/usr/local/bin/tclsh
# Hello World in Tcl
puts "Hello World!"
--------------------------------------------------------------------------------
TECO Back to index
!Hello World in TECO
!The $ symbol below wouldn't actually be a printing character -
!it's the [escape] character, \u001b!
FTHello World$
--------------------------------------------------------------------------------
TeX Back to index
% Hello World in plain \TeX
\immediate\write16{Hello World!}
\end
--------------------------------------------------------------------------------
Texinfo Back to index
\input texinfo
@c Hello World for Texinfo
@setfilename hello
@settitle Hello World
@node Top, Hello, (dir), (dir)
@menu
* Hello:: Hello World
@end menu
@node Hello, , Top, Top
Hello World!
@contents
@bye
--------------------------------------------------------------------------------
Thue Back to index
Hello World in Thue. No comments possible.
a::=~Hello World!
::=
a
--------------------------------------------------------------------------------
TI-59 Back to index
Hello World for the TI-59 with PC-100C thermo printer.
No comment character exists.
The TI-59/PC-100C can print up to 20 characters per line (upper case
only). They are coded as 2-digit decimal numbers (see manual for
details) in up to four print registers (of five characters each)
and then printed.
Before entering the program, press LRN to switch into learn mode.
After entering the program, cancel learn mode with LRN, turn on the
printer, and run the program with A.
A pleasant sound, and what a font! Real TRUE-TYPE!
LBL A Start of program: label A
OP 00 Clear the four print registers
23 "H"
OP 02 Write into print register 2
17 "E"
27 "L"
27 "L"
32 "O"
00 " "
OP 03 Write into print register 3
43 "W"
32 "O"
35 "R"
27 "L"
16 "D"
73 "!"
OP 04 Write into print register 4
OP 05 Start printing
ADV Line feed (optional)
R/S End program
--------------------------------------------------------------------------------
TI-8x Back to index
Hello World for TI 8x/9x basic (tested on a TI-83)
:ClrHome
:Disp "HELLO WORLD"
--------------------------------------------------------------------------------
TI-BASIC-Extended Back to index
10 REM Hello World in Extended BASIC
20 REM for the TI99 series computer
100 CALL CLEAR :: DISPLAY AT(10,5):"Hello World" :: ACCEPT AT(20,4):A$
--------------------------------------------------------------------------------
TI-BASIC Back to index
10 REM Hello World in TI BASIC
20 REM for the TI99 series computer
100 CALL CLEAR
110 PRINT "HELLO WORLD"
120 GOTO 120
--------------------------------------------------------------------------------
Tk Back to index
#!/usr/local/bin/wish -f
# Hello World in Tk
label .l -text "Hello World!"
pack .l
--------------------------------------------------------------------------------
Toy Back to index
# Hello World code in Toy Programming Language (generic way)
<< "Hello World";
--------------------------------------------------------------------------------
Trans Back to index
// Hello World in Trans (Transmuter Programming Language)
import Console
Console.write("Hello World!")
--------------------------------------------------------------------------------
troff Back to index
\" "Hello, world!" in troff
Hello, world!
--------------------------------------------------------------------------------
TSO-CLIST Back to index
PROC 0
/* Hello World in TSO CLIST */
write Hello World!
--------------------------------------------------------------------------------
Turing-Machine Back to index
Hello World as a Turing machine.
State Read | Write Step Next state
---------------|---------------------------------
1 empty | H > 2
2 empty | e > 3
3 empty | l > 4
4 empty | l > 5
5 empty | o > 6
6 empty | blank > 7
7 empty | W > 8
8 empty | o > 9
9 empty | r > 10
10 empty | l > 11
11 empty | d > 12
12 empty | ! > STOP
--------------------------------------------------------------------------------
Turing Back to index
% Hello World in Turing
put "Hello World!"
--------------------------------------------------------------------------------
UniComal Back to index
// Hello World in UniComal
PRINT "Hello World"
--------------------------------------------------------------------------------
Unix-Shell Back to index
# Hello World for the Unix shells (sh, ksh, csh, bash, ...)
echo 'Hello World!'
--------------------------------------------------------------------------------
unlambda Back to index
# Hello World in unlambda
`r```````````.H.e.l.l.o. .w.o.r.l.di
--------------------------------------------------------------------------------
UnrealScript Back to index
// Hello World for UnrealScript
class HelloWorldHUD extends HudBase;
simulated function DrawHudPassC (Canvas C)
{
C.SetPos( 0.50*C.ClipX , 0.50*C.ClipY);
C.DrawText("Hello World!");
}
defaultproperties
{
}
--------------------------------------------------------------------------------
Ursala Back to index
# hello world in Ursala
#executable&
f = -[hello world]-!
--------------------------------------------------------------------------------
Vala Back to index
// Hello World in Vala
using GLib;
int main(string[] args) {
stdout.printf("Hello world!\n");
return 0;
}
--------------------------------------------------------------------------------
Vatical Back to index
+ Hello World in Vatical
LITURGY:
PRAY "Hello World!"
AMEN.
--------------------------------------------------------------------------------
VAX-11-Macro Back to index
--------------------------------------------------------------------------------
Xbase++ Back to index
Hello World in Xbase++
func Main()
Qout("Hello World!")
return 1
--------------------------------------------------------------------------------
xblite Back to index
' Hello World in xblite, Windows GUI mode
IMPORT "gdi32"
IMPORT "user32"
DECLARE FUNCTION Entry ()
FUNCTION Entry ()
MessageBoxA (0, &"Hello World!", &"Hello World Window", $$MB_OK)
END FUNCTION
END PROGRAM
--------------------------------------------------------------------------------
XHTML Back to index
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Hello World in XHTML -->
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
Hello World!
</title>
</head>
<body>
<p>
Hello World!
</p>
</body>
</html>
--------------------------------------------------------------------------------
XLogo Back to index
#Hello World in XLogo
to helloworld
resetall
hideturtle
fd 20 left 180
fd 40 left 180
fd 20 right 90
fd 20 left 90
fd 20 left 180
fd 40 left 90
fd 20 left 90
fd 20 right 90
fd 20 right 90
fd 10 right 90
fd 20 left 90
fd 10 left 90
fd 30 left 90
fd 40 left 180
fd 40 left 90
fd 20 left 90
fd 40 left 180
fd 40 left 90
fd 40 left 90
fd 20 left 90
fd 20 left 90
fd 20 left 90
fd 60 left 90
fd 40 left 180
fd 40 left 90
fd 20 left 90
fd 20 left 180
fd 20 left 90
fd 20 left 90
fd 40 left 180
fd 40 left 90
fd 40 left 90
fd 20 left 90
fd 20 left 90
fd 20 left 90
fd 40 left 90
fd 20 right 90
fd 20 right 90
fd 5 left 90
fd 5 left 90
fd 25 left 180
fd 40 left 90
fd 40 left 90
fd 20 left 90
fd 20 left 90
fd 20 left 90
fd 20 left 90
fd 40 left 180
fd 40
end
--------------------------------------------------------------------------------
XML Back to index
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="HelloWorld.xsl" ?>
<!-- Hello World in XML -->
<text><string>Hello, World</string></text>
--------------------------------------------------------------------------------
XPL0 Back to index
\Hello World in XPL0
code Text=12;
Text(0, "Hello World!
")
--------------------------------------------------------------------------------
XQuery Back to index
(: Hello World with XQuery :)
let $i := "Hello World"
return $i
--------------------------------------------------------------------------------
XSL-FO Back to index