Dies ist eine Liste von Hallo-Welt-Programmen für grafische Benutzeroberflächen, Web-Technologien, esoterische Programmiersprachen und Textauszeichnungssprachen. Weitere Beispiele für gebräuchliche Programmiersprachen sind unter Liste von Hallo-Welt-Programmen/Höhere Programmiersprachen aufgeführt. Beispiele für Assembler-Programme finden sich unter Liste von Hallo-Welt-Programmen/Assembler.
Grafische Benutzeroberflächen als traditionelle Anwendungen
4th Dimension
Alert("Hallo Welt!")
BCPL
GET "LIBHDR"
LET START () BE $( WRITES ("Hallo Welt!*N") $)
Beta (Programmiersprache) ORIGIN '~beta/basiclib/betaenv'; (* Das klassische Hallo-Welt-Programm in BETA *) --PROGRAM: descriptor-- (# do 'Hallo Welt!' -> Screen.PutLine; #)
Clarion
program
window WINDOW('Hallo Welt'),AT(,,300,200),STATUS,SYSTEM,GRAY,DOUBLE,AUTO END
code
open(window) show(10,10,'Hallo Welt!') accept end close(window)
Clipper ? "Hallo Welt!"
Commodore Basic V2
10 print "Hallo Welt!"
FOCAL mini|Eine Druckausgabe mit Groß‑ und Kleinschreibung benötigt diverse zusätzliche Kommandos.
01 LBL'HALLO 02'HALLO WELT 03 AON 04 RTN
wobei der Apostroph für das HP41-spezifische Anfangszeichen einer Zeichenkette steht.
Fortress
component HalloWelt export Executable run(args:String...) = print "Hallo Welt!" end
hpl (Hewlett-Packard Language um 1975)
wtb 0,"Hallo Welt",13,10 oder wrt 0,"Hallo Welt"
Jass
function test takes nothing returns nothing call BJDebugMsg("Hallo Welt!") endfunction
oder
function test takes nothing returns nothing call DisplayTextToPlayer(Player(0), 0, 0, "Hallo Welt!") // für Spieler 1 endfunction
oder
function test takes nothing returns nothing call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, "Hallo Welt!") // für den lokalen Spieler endfunction
Das ganze jetzt noch für eine bestimmte Zeit:
function test takes nothing returns nothing call DisplayTimedTextToPlayer(Player(0), 0, 0, 10, "Hallo Welt!") // für Spieler 1 und für 10 Sekunden endfunction
oder
function test takes nothing returns nothing call DisplayTimedTextToPlayer(GetLocalPlayer(), 0, 0, 10, "Hallo Welt!") // für den lokalen Spieler und für 10 Sekunden endfunction
LabVIEW
Hallo Welt in LabVIEW
Lingo
In das Message-Fenster:
on startMovie
put "Hallo Welt!"
end startMovie
In ein Dialogfenster:
on startMovie
alert "Hallo Welt!"
end startMovie
In ein gestaltbares Dialogfenster mittels MUI Xtra:
on startMovie
set alertObj = new(xtra "MUI")
set alertInitList = [ \ #buttons : #Ok, \ #default : 1, \ #icon : #note, \ #message : "Hallo Welt!", \ #movable : TRUE, \ #title : ""]
if objectP(alertObj) then
set result = alert(alertObj, alertInitList)
case result of 1 : -- the user clicked OK otherwise : -- the user hit ESC end case
end if
end startMovie
m4
Hallo Welt!
Maschinensprache (DOS-COM-Programm auf Intel 80x86)
BA 0B 01 B4 09 CD 21 B4 4C CD 21 48 61 6C 6C 6F 20 57 65 6C 74 21 0D 0A 24
Eingabe dieses Programmstücks (nur das Fettgedruckte = Mnemotechnischer 1:1-Code) unter DOS - Anfrage C:\Debug -a 0D78:0100 mov dx,10b 0D78:0103 mov ah,9 0D78:0105 int 21 0D78:0107 mov ah,4c 0D78:0109 int 21 0D78:010B db "Hallo Welt!" d a 24 0D78:0118 - Eine Überprüfung des eigentlichen Programmstücks ist möglich durch u[nassemble]: -u 100 109 0D78:0100 BA0b01 MOV DX,010B 0D78:0103 B409 MOV AH,09 0D78:0105 CD21 INT 21 0D78:0107 B44C MOV AH,4C 0D78:0109 CD21 INT 21 - ... und des Text-/Datenstückes durch d[ump] -d 10b 118 ... oder des ganzen Maschinenprogramms, ebenfalls durch d[ump] -d 100 118 0D78:0100 BA 0B 01 B4 09 CD 21 B4-4C-CD 21 48 61 6C 6C 6F ......!.L.!Hallo 0D78:0110 20 57 65 6C 74 21 0D 0A-24 Welt!..$ - Unter DOS-DEBUG lässt man das Programm laufen mit g[o], sofern man es nicht als eigenständige laufendes Program als *.COM-Datei abspeichert -g Hallo Welt! Ein einfachster Assembler übersetzt die in einem Textprogramm eingegebenen mnemotechnischen Codes im Verhältnis 1:1 (EIN Code entspricht EINEM Wort des Maschinenprogramms) in das Maschinenprogramm, mit der Vereinfachung, dass Adressen für Speicherangaben und Programmsprünge symbolisch angegeben werden können.
MIXAL
TERM EQU 18 the MIX console device number ORIG 1000 start address START OUT MSG(TERM) output data at address MSG HLT halt execution MSG ALF MIXAL ALF HALL ALF O WEL ALF T END START end of the programm
Mumps
W "Hallo Welt!",!
Natural
WRITE 'Hallo Welt!'.
Nemerle
class Hello { static Main () : void { System.Console.WriteLine ("Hallo Welt!");
oder:
System.Console.WriteLine("Hallo Welt!");
ObjectPAL (Paradox Application Language)
method run(var eventInfo Event) msginfo("Info", "Hallo Welt!") endMethod
Occam
PROC HelloWorld() []BYTE helloworldstring : SEQ helloworldstring := "Hallo Welt!" screen ! helloworldstring
OPAL
Erzeugung einer denotation (Opal-Zeichenkette):
SIGNATURE HelloWorld
FUN Hello : denotation
IMPLEMENTATION HelloWorld
DEF Hello == "Hallo Welt!\n"
Funktion, die die Bildschirmausgabe erzeugt:
SIGNATURE HelloWorld IMPORT Com COMPLETELY Void COMPLETELY
FUN HelloWorld : com[void]
IMPLEMENTATION HelloWorld IMPORT BasicIO COMPLETELY
DEF HelloWorld == writeLine("Hallo Welt!\n")
OPL
PROC Hallo: PRINT "Hallo Welt!" ENDP
PILOT
T:Hallo Welt!
PL/B
display "Hallo Welt"
POW!
MODULE Helloworld; IMPORT Out; PROCEDURE ProgMain*; BEGIN Out.String("Hallo Welt"); END ProgMain; END Helloworld.
alternativ:
MODULE Helloworld; IMPORT Display; PROCEDURE ProgMain*; BEGIN Display.WriteStr("Hallo Welt"); END ProgMain; END Helloworld.
PowerScript
In einem vorher definierten Fenster mit einem Textfeld:
open(win_zeige_hallowelt) win_zeige_hallowelt.textfeld.text = 'Hallo Welt!'
Als Dialogfenster:
MessageBox('Irgendein Fenstertitel','Hallo Welt!')
Profan² / XProfan
cls print "Hallo Welt!" waitinput
oder
Messagebox("Hallo Welt!","",0)
oder
Print "Hallo Welt!" WaitKey End
oder
shell getenv$("COMSPEC")+" /k @echo Hallo Welt!"
Promela
active proctype HalloWeltProc() { printf("Hallo Welt!");
oder
proctype HalloWeltProc() { printf("Hallo Welt!"); } init { run HalloWeltProc();
Pure Data
Patch als ASCII-art [hello world( | [print]
Patch im Quelltext:
#N canvas 0 0 300 300 10; #X obj 100 100 loadbang; #X msg 100 150 Hallo Welt; #X obj 100 200 print; #X connect 0 0 1 0; #X connect 1 0 2 0.
RapidBatch
rem RapidBatch 5.1 Echo 'Hallo Welt!' End
REBOL
REBOL [ Title: "Hallo Welt in einem Fenster" File: %hello-view.r Date: 12-January-2002 ]
view layout [ text "Hallo Welt!" button "Beenden" [quit] ]
RPG
RPG 3:
C 'Hallo' CAT ' Welt' HALLO 10 C DSPLY HALLO C MOVE '1' *INLR
RPG 4:
C 'Hallo Welt' dsply C return
RPG 4 (Free):
Dsply 'Hallo Welt'; return;
RPL
<< "Hallo Welt!" MSGBOX >>
Sather
class MAIN is main is #OUT + "Hallo Welt\n"; end; end;
sed
iHallo Welt! Q
Self
'Hallo Welt!' print.
SPL (SPL Programming Language) mit Qt
load "qt"; var a = new qt.QApplication(); var l = new qt.QLabel(undef); l.setText("Hallo Welt!"); a.setMainWidget(l); l.show(); a.exec();
SQF (Arma 3 Scripting Language) hint "Hello World";
TECO
iHallo Welt!$ht$$
TI-Basic
TI-Basic auf dem TI-83 Plus oder TI-84 Plus:
:Disp "Hallo Welt!"
oder
:Output(1,1,"Hallo Welt!")
TI-Basic auf dem TI-89, TI-92 und ähnliche:
:test() :Prgm :ClrIO :Disp "Hallo Welt!" :EndPrgm
oder
:test() :Prgm :ClrIO :Output 1,1,"Hallo Welt!" :EndPrgm
TI-Basic auf dem TI-Nspire (mit oder ohne CAS):
Define test()= Prgm Disp "Hallo Welt!" EndPrgm
REALbasic
MsgBox "Hallo Welt!"
Waba / SuperWaba
import waba.ui.*; import waba.fx.*;
public class HelloWorld extends MainWindow
public void onPaint(Graphics g)
g.setColor(0, 0, 0); g.drawText("Hallo Welt!", 0, 0);
X++
static void HelloWorldJob(Args _args)
Box::info("Hallo Welt!");
Web-Technologien
ColdFusion
<cfoutput>Hallo Welt!</cfoutput>
Curl
{curl 5.0 applet} Hallo Welt
JavaServer Pages (JSP)
<% out.print("Hallo Welt!"); %>
oder verkürzt
<%="Hallo Welt!"%>
Phalanger
<? class Programm { static function Main()
echo "Hallo Welt!\n"; return 0;
?>
Microsoft Silverlight
VB.NET:
System.Console.WriteLine("Hallo Welt!")
Oder:
MessageBox.Show("Hallo Welt")
C#:
System.Console.WriteLine("Hallo Welt!");
SNOBOL4
OUTPUT = "Hallo Welt!" END
Xbase++
function main() msgbox( "Hallo Welt!", "Mein erstes Xbase++ Programm" ) return .T.
X++
print "Hallo Welt!\n"; pause;
oder
info("Hallo Welt!\n");
Zonnon
module Main; begin writeln("Hallo Welt!") end Main.
Esoterische Programmiersprachen
ArnoldC
IT'S SHOWTIME TALK TO THE HAND "Hello World" YOU HAVE BEEN TERMINATED
Beatnik
bet you comments secret this file prints "Hello World!". It really does! (said me) Comments allowed See zaaf.nl for the interpreter used. Edit here we have reasons, but whether mouse droppin' are holding up schools, feel if I want letters. Regardless of truth, agents are abandonin' units again. Print between lines are separate works. load sequentially, include users explicitly. Later and evil can me over! (antinormal) Does I says? Dust duchess schools foolings. My, my, is iceleaf over genius imposed. Can Neo have decided systems? But free flips become lines between continued stops. Start gets made standard. Help! Old world skool really stink (really!) Prerent third closest from weird deletion. Interestingly!
Befunge
"!tleW ollaH">,:v ^ _@
Oder:
"!tleW ollaH">:#,_@
Brainfuck
++++++++++ [ >+++++++>++++++++++>+++>+<<<<- ] Schleife zur Vorbereitung der Textausgabe >++. 'H' >---. 'a' +++++++++++. 'l' . 'l' +++. 'o' >++. Leerzeichen <<+++++++++++++++. 'W' ++++++++++++++. 'e' >---. 'l' ++++++++. 't' >+. '!' >. Zeilenvorschub
Brainfuck2D
* *0**************
*9******************* * * *5***************
* **********0* * *
*44**************************** * *
***********0* * 0 * * * 2**11 * * * * * 0 * * * 0 * * * * *****4*3*2*1* * *
0 * * * *221*********
* * * * *0**** * * 0 * * * * * * *****************************BRAINFUCK******************************************
* * * *0*** *
* * * * *8****************
***********0* * * 0*1*1*2*1*1 * * * * *0****** * * 0 * * * * * * 0 * * * * * * * * ** * *4*******
* * *****0* *****************************
* * **2*2*2*2*2*** * **1***** *
* * * * *0** * * * * * * * 0 * * * * ********* * * * **2*2* * * *242 * * * * * 0 *3*3*1**** * * * * *
* * 999991* * * * * * * 0 * * * * ** * 0 * * * * * * 9999* * *****
* *22223
Chef Hallo Welt Souffle.
Ingredients. 72 g haricot beans 97 anchovies 108 g lard 111 cups oil 32 zucchinis 87 ml water 101 eggs 116 g sliced tomatoes 33 potatoes
Method. Put potatoes into the mixing bowl. Put sliced tomatoes into the mixing bowl. Put lard into the mixing bowl. Put eggs 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 anchovies into the mixing bowl. Put haricot beans into the mixing bowl. Liquify contents of the mixing bowl. Pour contents of the mixing bowl into the baking dish.
Serves 1.
FiM++
Dear Princess Celestia: Hello World!
Today I learned something simple. I said "Hallo, Welt!"! That’s all about something simple!
Your faithful student, Twilight Sparkle.
HQ9+
Zweck der Sprache ist unter anderem das einfache Schreiben von Hallo-Welt-Programmen.
H
INTERCAL PLEASE DO ,1 <- #13 DO ,1 SUB #1 <- #238 DO ,1 SUB #2 <- #112 DO ,1 SUB #3 <- #112 DO ,1 SUB #4 <- #0 DO ,1 SUB #5 <- #64 DO ,1 SUB #6 <- #238 DO ,1 SUB #7 <- #26
DO ,1 SUB #8 <- #248 DO ,1 SUB #9 <- #168 DO ,1 SUB #10 <- #24