Programmieren/ Liste von Hallo-Welt-Programmen

Aus Wikibooks

Wechseln zu: Navigation, Suche

Dies ist eine Liste von Wikipedia-logo.png Hallo-Welt-Programmen.

Inhaltsverzeichnis

[Bearbeiten] Zeilenorientiert (Konsole)

[Bearbeiten] ABAP

   REPORT Z_HALLO_WELT.
   WRITE 'Hallo Welt!'.

[Bearbeiten] Actionscript

trace('Hallo Welt');

ActionScript 3.0 und unter Benutzung der DocumentClass

package {
    import flash.display.Sprite;
 
    public class Main extends Sprite
    {
        public function Main() {
            trace( "Hallo Welt!" );
        }
    }
}

[Bearbeiten] Ada

with Ada.Text_IO;
procedure Hallo is
begin
    Ada.Text_IO.Put_Line ("Hallo Welt!");
end Hallo;

[Bearbeiten] ALGOL 60

   'BEGIN'
       OUTSTRING(2,'('HALLO WELT')');
   'END'

[Bearbeiten] ALGOL 68

   ( print("Hallo Welt!") )

[Bearbeiten] APL

   'Hallo Welt!'

[Bearbeiten] Assembler

x86-Hauptprozessor|CPU, Disk Operating System|DOS, MASM

.MODEL Small
.STACK 100h
.DATA
  HW      DB      'Hallo Welt!$'
.CODE
 
start:
  MOV AX,@data
  MOV DS,AX
  MOV DX, OFFSET HW
  MOV AH, 09H
  INT 21H
  MOV AH, 4Ch
  INT 21H
end start

32 Bit Windows Assembler, MASM32

.486
.model flat, stdcall 
option casemap :none
 
include \masm32\inc\windows.inc
include \masm32\inc\user32.inc
include \masm32\inc\kernel32.inc
 
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
 
.data
        msgText db "Hallo Welt!",0
        msgCap  db "win32asm",0
 
.code
 
start:
 
invoke MessageBox, 0, addr msgText, addr msgCap, MB_OK
invoke ExitProcess,0
 
end start

x86-Hauptprozessor|CPU, Disk Operating System|DOS, FASM

'''FASM example of writing 16-bit DOS .COM program'''
; Kompilieren: "FASM HELLO.ASM HELLO.COM" 
  org  $100
  use16    
  mov  ah,9
  mov  dx,hello
  int  $21    ; Textausgabe
  mov  ah,$4C
  int  $21    ; Programm beenden
hello db 'Hallo Welt !!!$'

x86-CPU, Linux

  # Kompilieren mit "as -o hallo.o hallo.s; ld -o hallo hallo.o"
   .section .data
  s: .ascii "Hallo Welt!\n"
   .section .text
   .globl _start
  _start:
   movl $4,%eax      # Syscall-ID 4 (= __NR_write) 
   movl $1,%ebx      # Ausgabe-Filedeskriptor STDOUT (= 1)
   movl $s,%ecx      # Adresse des ersten Zeichens der Zeichenkette
   movl $12,%edx     # Länge der Zeichenkette (12 Zeichen)
   int $0x80         # Softwareinterrupt 0x80 um Syscall (write(1,s,12))auszuführen
   movl $1,%eax      # Syscall-ID 1 (= __NR_exit)
   movl $0,%ebx      # Rückgabewert 0 (= alles ok)
   int $0x80         # Softwareinterrupt 0x80 um Syscall (exit(0)) auszuführen

PowerPC-CPU, Linux

  # Kompilieren mit "gcc -nostdlib -s hallo.s"
      .section    .rodata
      .align 2
  .s:
      .string "Hallo Welt!\n"
  
      .section    ".text"
      .align 2
      .globl _start
  _start:
      li 0,4          # SYS_write
      li 3,1          # fd = 1 (stdout)
      lis 4,.s@ha     # buf = .s
      la 4,.s@l(4)
      li 5,12         # len = 12
      sc              # syscall
  
      li 0,1          # SYS_exit
      li 3,0          # returncode = 0
      sc              # syscall

Motorola 68000er-Familie|680x0-CPU, Amiga

          ; Getestet mit ASM-One V1.01
          move.l  4.w,a6
          lea     dosn(pc),a1
          jsr     -408(a6)        ; OldOpenLibrary
  
          move.l  d0,a6
          lea     s(pc),a0
          move.l  a0,d1
          jsr     -948(a6)        ; PutStr
  
          move.l  a6,a1
          move.l  4.w,a6
          jsr     -414(a6)        ; CloseLibrary
          moveq   #0,d0
          rts
  dosn:   dc.b    "dos.library",0
  s:      dc.b    "Hallo Welt!",10,0

PA-RISC-CPU, HP-UX

  ; Kompiliert und getestet mit
  ; "as hallo.s ; ld hallo.o /usr/ccs/lib/crt0"
  ; unter HP-UX 11.0 auf einer HP9000/L2000
          .LEVEL 1.1
          .SPACE $TEXT$
          .SUBSPA $LIT$,ACCESS=0x2c
  s       .STRING "Hallo Welt!\x0a"
  
          .SPACE $TEXT$
          .SUBSPA $CODE$,ACCESS=0x2c,CODE_ONLY
          .EXPORT _start,ENTRY,PRIV_LEV=3
          .EXPORT __errno
          .EXPORT __sys_atexit
  _start
  __errno
  __sys_atexit
          ldil    L'0xC0000000,%r18
          ldi     4,%r22                  ; SYS_write
          ldi     1,%r26                  ; fd = stdout
          ldil    LR's,%r4
          ldo     RR's(%r4),%r25          ; buf = s
          be,l    4(%sr7,%r18)            ; Syscall
          ldi     12,%r24                 ; len = 12 (Branch delay slot)
  
          ldi     1,%r22                  ; SYS_exit
          be,l    4(%sr7,%r18)            ; Syscall
          ldi     0,%r26                  ; returncode = 0 (Branch delay slot)

x86-CPU, FreeBSD, Intel-Syntax

  section .data
    hello_world db 'Hallo Welt!', 0x0a
    hello_world_len equ $ - hello_world
  section .text
    align 4
    sys:
      int 0x80
      ret
    global _start
    _start:
      push hello_world_len
      push hello_world
      push 1
      mov eax, 4
      call sys
      push 0
      mov eax, 1
      call sys

Assemblersprache Jasmin):

; HelloWorld.j

.bytecode 50.0
.source HelloWorld.java
.class public HelloWorld
.super java/lang/Object

.method public <init>()V
  .limit stack 1
  .limit locals 1
  aload_0
  invokespecial java/lang/Object/<init>()V
  return
.end method

.method public static main([Ljava/lang/String;)V
  .limit stack 2
  .limit locals 1
  getstatic java/lang/System/out Ljava/io/PrintStream;
  ldc "Hallo Welt!"
  invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
  return
.end method

|MIPS-32 mit erweitertem Befehlssatz

.data

helloworld: .asciiz "Hallo Welt!"

.text

	la	$a0, helloworld
	li	$v0, 4
	syscall

[Bearbeiten] Autohotkey

Variante 1 - eine klassische MessageBox

   MsgBox Hallo Welt!

Variante 2 startet das Programm Notepad und tippt dort Hallo Welt ein

   Run, "notepad.exe"
   WinWaitActive, ahk_class Notepad
   Send, Hallo Welt{!}

[Bearbeiten] AutoIt

Variante 1: Startet eine normale Message box ohne Titel

MsgBox(0, "", "Hallo Welt!")

Variante 2: Startet den Notepad, wartet bis Aktiv, hält das Fenster während der Ausführung des Send Befehles aktiv und schreibt Hallo Welt! rein.

Run("notepad.exe")
WinWaitActive("[CLASS:Notepad]")
SendKeepActive("[CLASS:Notepad]")
Send("Hallo Welt!",1)

[Bearbeiten] awk

    BEGIN { print "Hallo Welt!" }

[Bearbeiten] B

    main() {
        printf("Hallo Welt!");
    }

[Bearbeiten] BASIC

Traditionelles, unstrukturiertes BASIC:

    10 PRINT "Hallo Welt!"

bzw. im Direktmodus:

   ?"Hallo Welt!"

[Bearbeiten] Unix Shell Batch

@echo Hallo Welt!

[Bearbeiten] BCPL

   GET "LIBHDR"
   
   LET START () BE
   $(
       WRITES ("Hallo Welt!*N")
   $)

[Bearbeiten] BeanShell

    print("Hallo Welt!");

[Bearbeiten] Blitz Basic

Print "Hallo Welt!"

[Bearbeiten] Boo

    print "Hallo Welt!"

[Bearbeiten] Microsoft Navision C/AL

    MESSAGE('Hallo Welt')

[Bearbeiten] C

#include <stdio.h>
 
int main(void)
{
    printf("Hallo Welt!\n");
    return 0;
}

[Bearbeiten] C++

#include <iostream>
 
int main(void) 
{
   std::cout << "Hallo Welt!" << std::endl;
   return 0;
}

[Bearbeiten] C++/CLI

int main()
{
    System::Console::WriteLine("Hallo Welt!");
}

[Bearbeiten] C-Sharp|C#

class MainClass
{
    static void Main()
    {
        System.Console.WriteLine("Hallo Welt!");
    }
}

[Bearbeiten] .NET CIL

 .method public static void Main() cil managed
 {
     .entrypoint
     .maxstack 1
     ldstr "Hallo Welt!"
     call void [mscorlib]System.Console::WriteLine(string)
     ret
 }


[Bearbeiten] Clipper

? "Hallo Welt!"

[Bearbeiten] CLIST

    WRITE HALLO WELT


[Bearbeiten] CLP

PGM
SNDPGMMSG  MSG('Hallo Welt!') MSGTYPE(*COMP)
ENDPGM

[Bearbeiten] COBOL

   000100 IDENTIFICATION DIVISION.
   000200 PROGRAM-ID.     HELLOWORLD.
   000500 ENVIRONMENT DIVISION.
   000700 DATA DIVISION.
   000900 PROCEDURE DIVISION.
   001100 MAIN-LOGIC SECTION.
   001200     DISPLAY "Hallo Welt!".
   001300     STOP RUN.

[Bearbeiten] COMAL

    10 PRINT "Hallo Welt!"

[Bearbeiten] Commodore Basic V2

10 print "Hallo Welt!";

[Bearbeiten] Common Lisp

    (write-line "Hallo Welt!")

[Bearbeiten] Component Pascal

MODULE HalloWelt;

IMPORT Out;

PROCEDURE Output*;
BEGIN
   Out.String ("Hallo Welt!");
   Out.Ln;
END Output;

END HalloWelt.


[Bearbeiten] D

module helloworld;
 
import std.stdio;
 
void main()
{
    writefln("Hallo Welt!");
}

[Bearbeiten] DarkBASIC

   print "Hallo Welt!"
   wait key

[Bearbeiten] dBase/Foxpro

Ausgabe in der nächsten freien Zeile:

   ? "Hallo Welt!"

Zeilen- und spaltengenaue Ausgabe:

   @1,1 say "Hallo Welt!"

Ausgabe in einem Fenster:

   wait window "Hallo Welt!"

[Bearbeiten] Dylan

define method hallo-welt()
    format-out("Hallo Welt!\n");
end method hallo-welt;

hallo-welt();

[Bearbeiten] EASY

in der Variante tdbengine:

   module helloworld
   procedure Main
     cgiclosebuffer
     cgiwriteln("content-type: text/html")
     cgiwriteln("")
     cgiwriteln("Hallo Welt!")
   endproc

[Bearbeiten] Eiffel

class HALLO_WELT
create
    make
feature
    make is
    do
        io.put_string("Hallo Welt!%N")
    end
end

[Bearbeiten] ELAN

    putline ("Hallo Welt!");

[Bearbeiten] Emacs Lisp

   (print "Hallo Welt!")

[Bearbeiten] Erlang

   -module(Hallo).
   -export([Hallo_Welt/0]).
   
   Hallo_Welt() -> io:fwrite("Hallo Welt!\n").

[Bearbeiten] Forth

 : greet ( -- ) ." Hallo Welt!" ;

[Bearbeiten] Fortran

program hallo
write(*,*) "Hallo Welt!"
end program hallo

[Bearbeiten] Fortress

   component HalloWelt
       export Executable
       run(args:String...) = print "Hallo Welt!"
   end

[Bearbeiten] FreeBASIC

print "Hallo Welt!"

[Bearbeiten] GML (Game Maker)

show_message("Hallo Welt!");

oder

draw_text(x,y,"Hallo Welt!");

[Bearbeiten] Groovy

def name='World'; println "Hello $name!"

[Bearbeiten] Haskell

   main :: IO ()
   main = putStrLn "Hallo Welt!"

[Bearbeiten] IDL (RSI)

PRO hallo_welt
    PRINT, "Hallo Welt!"
END

[Bearbeiten] Io

"Hallo Welt!" print

[Bearbeiten] Common Intermediate Language IL (IL Assembler)

   .assembly HalloWelt { }
   .assembly extern mscorlib { }
   
   .method public static void SchreibeHalloWelt()
   {
              .maxstack 1
              .entrypoint
   
              ldstr  "Hallo Welt!"
              call   void [mscorlib]System.Console::WriteLine(string)
              ret
   }


[Bearbeiten] 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

[Bearbeiten] J Sharp / J#

public class HalloWelt
{
    public static void main(String[] args)
    {
        System.Console.WriteLine("Hallo Welt!");
    }
}

[Bearbeiten] JavaScript

document.write("Hallo Welt!");

oder

document.innerHTML="Hallo Welt!";

[Bearbeiten] Java

public class Hallo 
{
  public static void main(String[] args) 
  {
    System.out.println("Hallo Welt!");            
  }
}

[Bearbeiten] Lua

print ("Hallo Welt!")

[Bearbeiten]

   print [Hallo Welt!]

[Bearbeiten] m4

   Hallo Welt!

[Bearbeiten] MATLAB

fprintf('Hallo Welt!');

oder

disp('Hallo Welt!');

oder

disp Hallo_Welt

[Bearbeiten] DOS-COM-Programm auf Intel 80x86)

   BA 0B 01 B4 09 CD 21 B4  4C CD 21 48 61 6C 6C 6F
   2C 20 57 65 6C 74 21 24

[Bearbeiten] mIRC Script

on 1:load:*: { echo Hallo Welt! }

[Bearbeiten] 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 program

[Bearbeiten] MMIX, MMIXAL

string  BYTE  "Hallo Welt!",#a,0  % auszugebende Zeichenkette (#a ist ein Zeilenumbruch,
                                  % 0 schließt die Zeichenkette ab)
Main    GETA  $255,string         % Adresse der Zeichenkette in Register $255 ablegen
        TRAP  0,Fputs,StdOut      % Zeichenkette, auf die mit Register $255
                                  % verwiesen wird, nach StdOut ausgeben (Systemaufruf)
        TRAP  0,Halt,0            % Prozess beenden

[Bearbeiten] MS-DOS Stapelverarbeitung|Batch

@echo Hallo Welt!


[Bearbeiten] Mumps

   W "Hallo Welt!",!

[Bearbeiten] Natural

   WRITE 'Hallo Welt!'.

[Bearbeiten] Nemerle

class Hello {
  static Main () : void {
    System.Console.WriteLine ("Hallo Welt!");
  }
}

oder:

System.Console.WriteLine("Hallo Welt!");

[Bearbeiten] Oberon (Programmiersprache)|Oberon

   MODULE HalloWelt;
   IMPORT Write;
   BEGIN
       Write.Line("Hallo Welt!");
   END HalloWelt.

[Bearbeiten] Objective CAML|OCaml

print_string "Hallo Welt!\n";;

[Bearbeiten] Objective C

#import <stdio.h>
 
int main()
{
  puts("Hallo Welt!");
  return 0;
}

[Bearbeiten] Paradox Application Language)

   method run(var eventInfo Event)
      msginfo("Info", "Hallo Welt!")
   endMethod

[Bearbeiten] Object Pascal (Delphi)

program HalloWelt;
{$APPTYPE CONSOLE}  // Kann wegen Abwärtskompatiblität auch entfallen
 
begin
  writeln('Hallo Welt!');
end.

[Bearbeiten] Octave

fprintf('Hallo Welt!\n')

oder

disp('Hallo Welt!')

oder

disp "Hallo Welt!"

[Bearbeiten] Opal (Programmiersprache)|OPAL

   -- Signatur und Implementation sind eigentlich zwei Dateien
   Signature HelloWorld

   FUN Hello : denotation

   Implementation HelloWorld

   FUN Hello : denotation
   DEF Hello == "Hallo Welt!\n"

[Bearbeiten] Open Programming Language|OPL

   PROC Hallo:
     PRINT "Hallo Welt!"
   ENDP

[Bearbeiten] Oz (Programmiersprache)|Oz/Mozart

   {Show 'Hallo Welt!'}

[Bearbeiten] Pascal (Programmiersprache)|Pascal

program Hallo ( output ); // (output) kann entfallen
begin
  writeln('Hallo Welt!')
end.

[Bearbeiten] Turbo Pascal

program HalloWelt; // es ist auch "program HalloWelt(output);" möglich
 
begin
  WriteLn('Hallo Welt!');
end.

[Bearbeiten] Perl

print "Hallo Welt!\n";

[Bearbeiten] Phalanger (Programmiersprache)|Phalanger

<?

class Program
{
       static function Main()
       {
               echo "Hallo Welt!\n";
               fgets(STDIN);

               return 0;
       }
}

?>

[Bearbeiten] PHP

<?php
    print "Hallo Welt!";
?>

oder:

<?php
    echo "Hallo Welt!";
?>

oder mit "short tags":

<?="Hallo Welt!"?>

[Bearbeiten] Pike

int main() {
    write("Hallo Welt!\n");
    return 0;
}

[Bearbeiten] PILOT

T:Hallo Welt!

[Bearbeiten] PocketC

Konsole:

main() {
  puts("Hallo Welt!");
}

Dialogfenster:

main() {
  alert("Hallo Welt!");
}

In einer Textbox:

main() {
  box=createctl("EDIT","Test",ES_MULTILINE,0x000,30,30,100,30,3000);
  editset(box,"Hallo Welt!");
}

[Bearbeiten] PL/I

   Test: procedure options(main);
      put skip list("Hallo Welt!");
   end Test;

[Bearbeiten] PL/SQL

CREATE OR REPLACE PROCEDURE HelloWorld AS
BEGIN
   DBMS_OUTPUT.PUT_LINE('Hallo Welt!');
END;

Verkürzt:

EXECUTE DBMS_OUTPUT.put_line('Hallo Welt!');

[Bearbeiten] POV-Ray

camera {
 location <0, 0, -5>
 look_at  <0, 0, 0>  
}
light_source {
 <10, 20, -10>
 color rgb 1
}
light_source {
 <-10, 20, -10>
 color rgb 1
}
background {
 color rgb 1
}
text {
 ttf "someFont.ttf"
 "Hallo Welt!", 0.015, 0
 pigment {
   color rgb <0, 0, 1>
 }
 translate -3*x  
}

[Bearbeiten] PowerShell Script

Kommandozeile:

   "Hallo Welt!"

alternativ:

   Write-Host "Hallo Welt!"

oder:

   echo "Hallo Welt!"

oder:

   [System.Console]::WriteLine("Hallo Welt!")

Dialogfenster:

   [System.Windows.Forms.MessageBox]::Show("Hallo Welt!")

[Bearbeiten] Prolog

   ?- write('Hallo Welt!'), nl.

[Bearbeiten] Promela

 active proctype HalloWeltProc() {
   printf("Hallo Welt!");
 }

oder

 proctype HalloWeltProc() {
   printf("Hallo Welt!");
 }
 
 init {
   run HalloWeltProc();
 }

[Bearbeiten] PureBasic

In der Konsole

   OpenConsole()
     Print("Hallo Welt!")
     Input() ;Beendet das Programm beim nächsten Tastendruck
   CloseConsole()

Im Dialogfenster

   MessageRequester("","Hallo Welt!",0)

Im Fenster

  If OpenWindow (1,0,0,300,50,"Hallo Welt!",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)  ; Öffnet ein zentriertes Fenster
    If CreateGadgetList(WindowID(1))                                                         ; Erstellt eine Gadgetliste
     TextGadget(1,10,10,280,20,"Hallo Welt!",#PB_Text_Border)                              ; Erstellt ein Textfeld "Hallo Welt!"
    EndIf
    Repeat
      delay(0)                                                                               ; 0 ms warten (Prozessor entlasten)
      event.l = WaitWindowEvent()                                                            ; Arbeitet die Windowsevents ab
    Until event.l = #PB_Event_CloseWindow                                                    ; solange bis X gedrückt wird
    End
  EndIf

[Bearbeiten] Pure Data

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;

[Bearbeiten] Python

print ("Hallo Welt!")  # ab Version 3
print "Hallo Welt!"  # bis Version 2.x

[Bearbeiten] QBASIC

PRINT "Hallo Welt!"

[Bearbeiten] GNU R

Gibt folgendes aus: [1] "Hallo Welt!"

    print ("Hallo Welt!")

oder

    cat ("Hallo Welt!\n")


[Bearbeiten] REXX

    say "Hallo Welt!"

[Bearbeiten] RPG

RPG 3

   C                     MOVE *BLANKS   HALLO  10
   C                     MOVEL'HALLO'   HALLO    
   C                     MOVE 'WELT'    HALLO    
   C                     DSPLY          HALLO    
   C                     MOVE '1'       *INLR    

RPG 4

   D HALLO           S             10A                   
   C                   EVAL      HALLO = 'Hallo Welt'    
   C                   DSPLY                   HALLO     
   C                   EVAL      *INLR = *ON

RPG 4 (Free)

   D HALLO           S             10A                   
    /FREE
        HALLO = 'Hallo Welt';    
        DSPLY HALLO;     
        *INLR = *ON;
    /END-FREE

[Bearbeiten] Reverse Polish LISP (RPL)

   << "Hallo Welt!" 1 DISP>>

[Bearbeiten] Ruby

puts 'Hallo Welt!'

[Bearbeiten] SAS

data _null_;
   put "Hallo Welt!";
run;

oder

%put Hallo Welt!;

[Bearbeiten] Scala

   object HalloWelt extends Application {
     println("Hallo Welt!")
   }

[Bearbeiten] Scheme

(display "Hallo Welt!")
(newline)

[Bearbeiten] sed

   iHallo Welt!
   Q

[Bearbeiten] Seed7

$ include "seed7_05.s7i";

 const proc: main is func
   begin
     writeln("Hallo Welt!");
   end func;

[Bearbeiten] Self

'Hallo Welt!' print.

[Bearbeiten] Smalltalk

Mit Enfin Smalltalk:

'Hallo Welt!' out.

Mit VisualWorks:

Transcript show: 'Hallo Welt!'.

[Bearbeiten] SNOBOL4

       OUTPUT = "Hallo Welt!"
   END


[Bearbeiten] Spec-Sharp / Spec#

using System;

public class Program
{
    public static void Main(string![]! args)        
    requires forall{int i in (0:args.Length); args[i] != null};
    {
        Console.WriteLine("Hallo Welt!");
    }
}

[Bearbeiten] Standard ML

    print "Hallo Welt!\n"

[Bearbeiten] SPL Programming Language (SPL)

    debug "Hallo Welt!";

[Bearbeiten] SQL

SELECT 'Hallo Welt!' AS  message;

Für Oracle-Datenbanken

SELECT 'Hallo Welt!' FROM dual;

Für IBM-DB2

SELECT 'Hallo Welt!' FROM sysibm.sysdummy1;

Für MSSQL

SELECT 'Hallo Welt!'

Fuer SQLite in Firefox Extension SQLite Manager

SELECT "Hallo Welt!"

[Bearbeiten] StarOffice Basic

   sub main
   print "Hallo Welt!"
   end sub

[Bearbeiten] Tcl

puts "Hallo Welt!"

[Bearbeiten] Teco

   iHallo Welt!$ht$$

[Bearbeiten] TI-Basic

TI-Basic auf dem TI-83 Plus.

   :Disp "Hallo Welt!"

oder

   :Output(1,1,"Hallo Welt!")

oder

   :Text(1,1,"Hallo Welt!")

[Bearbeiten] Turing

    put "Hallo Welt!"

[Bearbeiten] Unix-Shell

echo 'Hallo Welt!'

[Bearbeiten] Verilog

   module hallo_welt;
   initial begin
    $display ("Hallo Welt!");
    #10 $finish;
   end
   endmodule

[Bearbeiten] Very High Speed Integrated Circuit Hardware Description Language (VHDL)

entity HelloWorld is
end entity HelloWorld;
architecture Bhv of HelloWorld is
begin
  HelloWorldProc: process is
  begin
    report "Hallo Welt!";
    wait;
  end process HelloWorldProc;
end architecture Bhv;

[Bearbeiten] X++

   print "Hallo Welt!\n";
   pause;

oder

   info("Hallo Welt!\n");

[Bearbeiten] Zonnon

   module Main;
   begin
       writeln("Hallo Welt!")
   end Main.

[Bearbeiten] Grafische Benutzeroberflächen – als traditionelle Anwendungen

[Bearbeiten] 4th Dimension

Alert("Hallo Welt")

[Bearbeiten] AppleScript

display dialog "Hallo Welt!"

[Bearbeiten] Autohotkey

gui, font, s20 
Gui, Add, Text,cgreen center, Hallo Welt! 
Gui, Add, Button, x65 default, OK  
Gui, Show,W200 H150, Hallo Welt Beispiel 
return  
GuiClose:
ButtonOK:
ExitApp

[Bearbeiten] AutoIt

;AutoIt 3.X
MsgBox(0, "", "Hallo Welt!")

[Bearbeiten] BlitzBasic

Nur mit BlitzPlus möglich!

window=CreateWindow("Hallo Welt! Fenster", 0, 0, 100, 80, 0, 1)
label=CreateLabel("Hallo Welt!", 5, 5, 80, 20, window)
Repeat
Until WaitEvent(1)=$803

[Bearbeiten] C mit GIMP-Toolkit (GTK)

/*
 * Kompilieren mit "gcc hello_world.c -o hello_world `pkg-config --cflags --libs gtk+-2.0`".
 * (Falls die Datei unter dem Namen "hello_world.c" gespeichert wurde.)
 */
#include <gtk/gtk.h>
 
gboolean delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) {
  return FALSE;
}
 
void destroy(GtkWidget *widget, gpointer data) {
  gtk_main_quit();
}
 
void clicked(GtkWidget *widget, gpointer data) {
  g_print("Hallo Welt!\n");
}
 
int main (int argc, char *argv[]) {
  gtk_init(&argc, &argv);
 
  GtkWidget *window;
  GtkWidget *button;
 
  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width(GTK_CONTAINER(window), 10);
  g_signal_connect(G_OBJECT(window), "delete-event", G_CALLBACK(delete_event), NULL);
  g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(destroy), NULL);
 
  button = gtk_button_new_with_label("Hallo Welt!");
  g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(clicked), NULL);
  gtk_widget_show(button);
 
  gtk_container_add(GTK_CONTAINER(window), button);
  gtk_widget_show(window);
 
  gtk_main();
  return 0;
}

[Bearbeiten] C-Sharp / C#

using System;
using System.Drawing;
using System.Windows.Forms;
 
class HelloWorldForm : Form 
{
    public static void Main()
    {
        Application.Run(new HelloWorldForm());
    }
 
    public HelloWorldForm()
    {
       Label label = new Label();
       label.Text = "Hallo Welt!";
       label.Location = new Point(40, 30);
       Controls.Add(label);
       Button button = new Button();
       button.Text = "OK";
       button.Location = new Point(50, 55);
       Controls.Add(button);
       button.Click += new EventHandler(OnButtonOk);
    }
 
    void OnButtonOk(Object sender, EventArgs e)
    {
        this.Close();
    }
}

oder mit Hilfe der statischen Klasse MessageBox:

public class HelloWorld
{
    static void Main()
    {
        System.Windows.Forms.MessageBox.Show("Hallo Welt!");
    }
}

[Bearbeiten] C++ mit gtkmm

// Kompilieren mit g++ hello_world.cpp -o hello_world `pkg-config --cflags --libs gtkmm-2.4`
// (Falls die Datei unter dem Namen "hello_world.cpp" gespeichert wurde.)
 
#include <gtkmm/main.h>
#include <gtkmm/button.h>
#include <gtkmm/window.h>
 
int main (int argc, char* argv[])
{
    Gtk::Main m_main(argc, argv);
    Gtk::Window m_window;
    Gtk::Button m_button("Hallo Welt!");
 
    m_window.add(m_button);
    m_button.show();
 
    Gtk::Main::run(m_window);
 
    return 0;
}

[Bearbeiten] C++ mit Qt

// Kompilieren mit g++ hello_world.cpp -o hello_world `pkg-config --cflags --libs QtGui`
// (Falls die Datei unter dem Namen "hello_world.cpp" gespeichert wurde.)
 
#include <QLabel>
#include <QApplication>
 
int main(int argc, char* argv[])
{
    QApplication app(argc, argv);
 
    QLabel label("Hallo Welt!");
    label.show();
 
    return app.exec();
}

[Bearbeiten] 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)

[Bearbeiten] Delphi

program HalloWelt;
 
uses Dialogs;
 
begin
  ShowMessage('Hallo Welt!'); // Dialogfenster!
end.

[Bearbeiten] EASY

in der Variante VDP:

   module helloworld
   procedure Main
     Message("Hallo Welt!")
   endproc

[Bearbeiten] Gambas

   PUBLIC SUB Form_Enter()
   PRINT "Hallo Welt!"
   END

[Bearbeiten] J Sharp / J#

   import System.Windows.Forms.MessageBox;
   
   public class HalloWelt
   {
       public static void main(String[] args)
       {
           MessageBox.Show("Hallo Welt!");
       }
   }

oder

   import System.Drawing.*;
   import System.Windows.Forms.*;
   
   public class HalloWelt
   {
       public static void main(String[] args)
       {
           Application.Run( new HalloWeltFenster() );
       }
   }
   
   public class HalloWeltFenster extends Form
   {
       public HalloWeltFenster()
       {
           this.set_ClientSize( new Size(144, 40) );
           this.set_Text("Hallo Welt!");
   
           Button Button_HelloWorld = new Button();
           Button_HelloWorld.set_Name("Button_HelloWorld");
           Button_HelloWorld.set_Location(new Point(8, 8));
           Button_HelloWorld.set_Size(new Size(128, 24));
           Button_HelloWorld.set_Text("\"Hallo Welt!\"");
           Button_HelloWorld.add_Click(new System.EventHandler(this.Button_HelloWorld_Click));
   
           this.get_Controls().Add(Button_HelloWorld);
       }
   
       private void Button_HelloWorld_Click(Object sender, System.EventArgs e)
       {
           MessageBox.Show("Hallo Welt!");
       }
   }

[Bearbeiten] Java

  • AWT:
import java.awt.Frame;
import java.awt.Label;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
 
public class HalloWeltFenster extends Frame {
 
    public HalloWeltFenster() {
        super("Hallo Welt!");
        Label halloWeltLabel = new Label("Hallo Welt!");
        add(halloWeltLabel);
 
        addWindowListener(new WindowAdapter()) {
             public void windowClosing(WindowEvent e) {
                 System.exit(0);
             }
        });
 
        setResizable(false);
        setLocation(350, 320);
        setSize(160, 60);
        setVisible(true);
    }
 
    public static void main(String[] args) {
        new HalloWeltFenster();
    }
}
  • Swing (Java)|Swing (Message-PopUp):
import javax.swing.JOptionPane;
 
public class HelloWorld {
 
	public static void main(String[] args) {
		JOptionPane.showMessageDialog(null, "Hallo Welt!");
	}
}
  • Swing (Java)|Swing mit eigens konstruiertem Fenster:
import javax.swing.JFrame;
import javax.swing.JLabel;
 
public class HelloWorld extends JFrame {
 
    JLabel halloWeltLabel;
    public HelloWorld() {
        setTitle("Hallo Welt!");
        setLocation(350, 320);
        setSize(160, 60);
        halloWeltLabel = new JLabel("Hallo Welt!");
        getContentPane().add(halloWeltLabel);
 
        setDefaultCloseOperation(EXIT_ON_CLOSE);
 
        setResizable(false);
        setVisible(true);
    }
 
    public static void main(String[] args) {
        new HelloWorld();
    }
}
  • Standard Widget Toolkit|SWT:
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
 
public class HelloWorld {
 
    public static void main(String[] args) {
        Display display = new Display();
        Shell shell = new Shell(display);
 
        shell.open();
        shell.setText("Hallo Welt!");
 
        while (!shell.isDisposed()) {
            if (!display.readAndDispatch()) {
                display.sleep();
            }
        }
 
        display.dispose();
    }
}

[Bearbeiten] LabVIEW

Bild:LabVIEW_HalloWelt.png

[Bearbeiten] 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

[Bearbeiten] LISP

(alert "Hallo Welt!")


[Bearbeiten] Objective-C mit Cocoa

#import <Cocoa/Cocoa.h>
 
@interface Controller : NSObject
{
	NSWindow *window;
	NSTextField *textField;
}
 
@end
 
int main(int argc, const char *argv[])
{
	NSAutoreleasePool *pool = NSAutoreleasePool alloc] init];
	NSApp = [NSApplication sharedApplication];
	Controller *controller = Controller alloc] init];
	[NSApp run];
	[controller release];
	[NSApp release];
	[pool release];
 
	return EXIT_SUCCESS;
}
 
@implementation Controller
 
- (id)init
{
	if ((self = [super init]) != nil) {
		textField = NSTextField alloc] initWithFrame:NSMakeRect(10.0, 10.0, 85.0, 20.0)];
		[textField setEditable:NO];
		[textField setStringValue:@"Hallo Welt!"];
 
		window = NSWindow alloc] initWithContentRect:NSMakeRect(100.0, 350.0, 200.0, 40.0)
											 styleMask:NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask
											   backing:NSBackingStoreBuffered
												 defer:YES];
		[window setDelegate:self];
		[window setTitle:@"Hallo Welt!"];
		window contentView] addSubview:textField];
		[window makeKeyAndOrderFront:nil];
	}
 
	return self;
}
 
- (void)windowWillClose:(NSNotification *)notification
{
	[NSApp terminate:self];
}
 
@end

[Bearbeiten] Perl mit Tk

use Tk;
 
$init_win = new MainWindow;
 
$label = $init_win -> Label(
                            -text => "Hallo Welt!"
                            ) -> pack(
                                      -side => top
                                      );
$button = $init_win -> Button(
                              -text    => "Ok",
                              -command => sub {exit}
                              ) -> pack(
                                        -side => top
                                        );
 
MainLoop;

[Bearbeiten] Profan² / XProfan

   Messagebox("Hallo Welt!","",0)

oder

   Print "Hallo Welt!"
   WaitKey
   End

oder

   shell getenv$("COMSPEC")+" /k @echo Hallo Welt!"

[Bearbeiten] PureBasic

   MessageRequester("","Hallo Welt!")

[Bearbeiten] Pure Data

Patch als ASCII-art

[hello world(
|
[print]

[Bearbeiten] Python mit Tkinter

from Tkinter import *
from sys import exit
 
fenster = Tk()
Label(fenster, text="Hallo Welt!").pack()
Button(fenster, text="Beenden", command=exit).pack()
fenster.mainloop()

[Bearbeiten] RapidBatch

rem RapidBatch 5.1
Echo 'Hallo Welt!'
End

[Bearbeiten] REBOL

REBOL [
  Title: "Hallo Welt in einem Fenster"
  File: %hello-view.r
  Date: 12-January-2002
]
view layout [
   text "Hallo Welt!" 
   button "Beenden" [quit]
]

[Bearbeiten] Ruby mit GTK+

require "gtk2"
 
Gtk::Window.new("Hallo Welt!").show_all.signal_connect(:delete_event){Gtk.main_quit}
Gtk.main

[Bearbeiten] Ruby mit Tk

require "tk"
 
TkRoot.new{ title "Hallo Welt!" }
Tk.mainloop

[Bearbeiten] Spec#

using System;
using System.Windows.Forms;
 
public class Program
{
    static void Main(string![]! args)
    requires forall{int i in (0:args.Length); args[i] != null};
    {
        MessageBox.Show("Hallo Welt!");
    }
}

[Bearbeiten] SPL (SPL Programming Language) mit QT

  load "qt";
  var a = new qt.QApplication();
  var l = new qt.QLabel(undef);
  l.setText("Hallo Welt!");
  function click_callback(e) {
  debug "Click: ${e.x()} / ${e.y()}";
  return 1;
  }
  qt_event_callback(l, click_callback, qt.QEvent.MouseButtonPress());
  a.setMainWidget(l);
  l.show();
  a.exec();

[Bearbeiten] TclTk

   label .label1 -text "Hallo Welt!"
   pack .label1

oder kürzer (unter Ausnutzung, dass das Label-Kommando den Namen zurückgibt):

   pack [label .label1 -text "Hallo Welt!"]

[Bearbeiten] REALBasic

   MsgBox "Hallo Welt!"

[Bearbeiten] Visual Basic

Public Sub Main()
    MsgBox "Hallo Welt!"
End Sub

[Bearbeiten] 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);
     }
   }

[Bearbeiten] Windows API (in C)

#include <windows.h>
 
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
  MessageBox(0, "Hallo Welt!", "Mein erstes Programm", MB_OK);
  return 0;
}

Oder mit eigenem Fenster und Eventhandler

#include <windows.h>
 
LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM);
 
char szClassName[] = "MainWnd";
HINSTANCE hInstance;
 
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
  HWND hwnd;
  MSG msg;
  WNDCLASSEX wincl;
 
  hInstance = hInst;
 
  wincl.cbSize = sizeof(WNDCLASSEX);
  wincl.cbClsExtra = 0;
  wincl.cbWndExtra = 0;
  wincl.style = 0;
  wincl.hInstance = hInstance;
  wincl.lpszClassName = szClassName;
  wincl.lpszMenuName = NULL; //No menu
  wincl.lpfnWndProc = WindowProcedure;
  wincl.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); //Color of the window
  wincl.hIcon = LoadIcon(NULL, IDI_APPLICATION); //EXE icon
  wincl.hIconSm = LoadIcon(NULL, IDI_APPLICATION); //Small program icon
  wincl.hCursor = LoadCursor(NULL, IDC_ARROW); //Cursor
 
  if (!RegisterClassEx(&wincl))
        return 0;
 
  hwnd = CreateWindowEx(0, //No extended window styles
        szClassName, //Class name
        "", //Window caption
        WS_OVERLAPPEDWINDOW & ~WS_MAXIMIZEBOX,
        CW_USEDEFAULT, CW_USEDEFAULT, //Let Windows decide the left and top positions of the window
        120, 50, //Width and height of the window,
        NULL, NULL, hInstance, NULL);
 
  //Make the window visible on the screen
  ShowWindow(hwnd, nCmdShow);
 
  //Run the message loop
  while (GetMessage(&msg, NULL, 0, 0))
  {
        TranslateMessage(&msg);
        DispatchMessage(&msg);
  }
  return msg.wParam;
}
 
LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
  PAINTSTRUCT ps;
  HDC hdc;
  switch (message)
  {
  case WM_PAINT:
        hdc = BeginPaint(hwnd, &ps);
        TextOut(hdc, 15, 3, "Hallo Welt!", 13);
        EndPaint(hwnd, &ps);
        break;
  case WM_DESTROY:
        PostQuitMessage(0);
        break;
  default:
        return DefWindowProc(hwnd, message, wParam, lParam);
  }
  return 0;
}

[Bearbeiten] Xbase++

   function main() 
   msgbox( "Hallo Welt!", "Mein erstes Xbase++ Programm" )
   return .T.

[Bearbeiten] Web-Technologien

[Bearbeiten] ASP (Active Server Pages)

<%
  Response.Write("Hallo Welt!")
%>

oder verkürzt

<%="Hallo Welt!"%>

[Bearbeiten] Coldfusion

    <cfoutput>Hallo Welt!</cfoutput>

[Bearbeiten] Curl

   {curl 5.0 applet}
   Hallo Welt

[Bearbeiten] haXe

class Test {
    static function main() {
        trace(„Hallo Welt!);
    }
}

Die daraus compilierten SWF- oder Neko-Bytecodes sind allein lauffähig. Zur Verwendung von compiliertem Javascript zusätzlich nötig:

<html><body>
<div id=“haxe:trace“></div>
<script type=text/javascript“ src=“hallo_welt_haxe.js“></script>
</body></html>

[Bearbeiten] Java-Applet

Java-Applets funktionieren in Verbindung mit HTML.

Die Java-Datei:

import java.applet.*;
import java.awt.*;
 
public class HalloWelt extends Applet {
  public void paint(Graphics g) {
    g.drawString("Hallo Welt!", 100, 50);
  }
}

Nachfolgend der Code zum Einbau in eine HTML-Seite.

Vom World Wide Web Consortium (W3C) empfohlen:

<object classid="java:HalloWelt.class"
        codetype="application/java-vm"
        width="600" height="100">
</object>

Für Kompatibilität zu sehr alten Browsern (nicht empfohlen):

<applet code="HalloWelt.class"
        width="600" height="100">
</applet>

[Bearbeiten] JavaScript

JavaScript ist eine Skriptsprache, die insbesondere in HTML-Dateien verwendet wird. Der nachfolgende Code kann in HTML-Quelltext eingebaut werden:

   <script type="text/javascript">
      alert("Hallo Welt!");
   </script>

Oder als direkte Ausgabe:

   <script type="text/javascript">
      document.write("Hallo Welt!");
   </script>

[Bearbeiten] JSP (Java Server Pages)

   <%
     out.print("Hallo Welt!");
   %>

oder verkürzt

   <%="Hallo Welt!"%>

[Bearbeiten] OpenLaszlo

<canvas>
   <text>Hella Welt!</text>
</canvas>

[Bearbeiten] PHP

<?php
    echo "Hallo Welt!";
    // oder auch print 'Hallo Welt!';
    // oder auch print_r('Hallo Welt!');
    // oder auch var_dump('Hallo Welt!');
    // oder auch var_export('Hallo Welt!');
?>

oder, verkürzt:

<?="Hallo Welt!"?>

[Bearbeiten] Silverlight

VB.NET:

       System.Console.WriteLine("Hallo Welt!")

Oder:

       Dim Textbox As New System.Windows.Controls.TextBlock
       Textbox.Text = "Hallo Welt!"
       Me.Children.Add(Textbox)

C#:

       System.Console.WriteLine("Hallo Welt!");

[Bearbeiten] VBScript

   MsgBox "Hallo Welt!"

[Bearbeiten] Visual Basic .NET

   Module Main
       Sub Main()
           System.Console.WriteLine("Hallo Welt!")
       End Sub
   End Module

[Bearbeiten] XML User Interface Language (XUL)

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<label value="Hallo Welt!"/>
</window>

[Bearbeiten] XAML

<?Mapping ClrNamespace="System" Assembly="mscorlib"
         xmlNamespace="http://www.gotdotnet.com/team/dbox/mscorlib/System" ?>
<Object xmlns="http://www.gotdotnet.com/team/dbox/mscorlib/System" 
         xmlns:def="Definition" def:Class="MyApp.Hello">
    <def:Code>
    <![CDATA[
     Shared Sub Main()
     '{
         System.Console.WriteLine("Hallo Welt!")' ;
     '}
     End Sub
    >
    </def:Code>
</Object>

[Bearbeiten] Exotische Programmiersprachen

(auch esoterisch genannt)

[Bearbeiten] Befunge

"!tleW ollaH">,:v
             ^  _@

Oder:

"!tleW ollaH">:#,_@

[Bearbeiten] Brainfuck

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

[Bearbeiten] 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
                                             *      *
                                            *      *
                                           *      *
                                          *      *
                                         ********

[Bearbeiten] |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.

[Bearbeiten] HQ9+

Zweck der Sprache ist vor allem das einfache Schreiben von Hallo-Welt-Programmen.

   H

[Bearbeiten] 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
   DO ,1 SUB #11 <- #16
   DO ,1 SUB #12 <- #158
   DO ,1 SUB #13 <- #52
   PLEASE READ OUT ,1
   PLEASE GIVE UP

[Bearbeiten] Java2K

Da es sich bei Java2K um eine wahrscheinlichkeitstheoretische Sprache handelt, lässt sich auch nur zu einer gewissen Wahrscheinlichkeit ein "Hello World" schreiben.

  1 1 /125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2
  /*/_\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2
  /*/_\/_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/
  _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/
  _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/
  _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/
  _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/
  _\/_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\
  \\\\\\\/*\1 1 /125 /119 /11 6/*/_\/13 2/*/_\\/
  125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\
  /125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_
  \/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_
  \/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_
  \/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_
  \/_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\
  \\\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\
  \\\\\\\/*\1 1 /125 /131 /119 /125 /11 6/*/_\/_\
  /125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/
  125 /13 2/*/_\/_\\\/125 /131 /119 /125 /11 6/*/
  _\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/
  _\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\
  /125 /13 2/*/_\/_\\\\/125 /131 /119 /125 /11 6/
  */_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/
  */_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/
  */_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/
  */_\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/
  _\/125 /13 2/*/_\/_\\\\\\/131 /119 /125 /11 6/*
  /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*
  /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*
  /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*
  /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*
  /_\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_
  \/125 /13 2/*/_\/_\\\\\\\\\\/*\1 1 /125 /131 /
  119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 /
  125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\/125 /
  131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/
  131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/
  119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\\/
  125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\
  \\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\\
  \\\\\\/*\1 1 /125 /119 /11 6/*/_\/13 2/*/_\\/
  125 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/
  125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\
  /125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_
  \/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_
  \/_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\
  \\/125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*
  /_\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*
  /_\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*
  /_\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*
  /_\/_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_
  \\\\\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/
  _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/
  _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/
  _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/
  _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/
  _\/_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\
  \\\\\\\\\\\/*\1 1 /125 /131 /119 /125 /11 6/*/_
  \/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/
  125 /13 2/*/_\/_\\\/125 /131 /119 /125 /11 6/*/
  _\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/
  _\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\
  /125 /13 2/*/_\/_\\\\/131 /119 /125 /11 6/*/_\/
  _\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\/
  _\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\/
  _\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\/
  _\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/
  125 /13 2/*/_\/_\\\\\\\\/*\1 1 /131 /119 /125 /
  11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /
  11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /
  11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /
  11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/
  */_\/_\/125 /13 2/*/_\/_\\\\\\/*\1 1 /125 /
  119 /11 6/*/_\/13 2/*/_\\/125 /119 /125 /11 6/*
  /_\/_\/125 /13 2/*/_\/_\\/125 /131 /119 /125 /
  11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/
  */_\/_\/125 /13 2/*/_\/_\\\/125 /131 /119 /
  125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 /
  125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 /
  125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 /125 /
  11 6/*/_\/_\/125 /13 2/*/_\/_\\\\\/131 /119 /
  125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 /
  125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 /
  125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 /
  125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 /
  125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 /125 /
  11 6/*/_\/_\/125 /13 2/*/_\/_\\\\\\\\\\\/*\
  1 1 /125 /119 /11 6/*/_\/13 2/*/_\\/125 /119 /
  125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/125 /131 /
  119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 /
  125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\/125 /
  131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/
  131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/
  119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\\/
  125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\
  \\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\\
  \\\\\\\\/*\1 1 /125 /119 /125 /11 6/*/_\/_\/
  125 /13 2/*/_\/_\\/125 /131 /119 /125 /11 6/*/_
  \/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_
  \/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_
  \/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/
  125 /13 2/*/_\/_\\\\\/125 /131 /119 /125 /11 6/
  */_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/
  */_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/
  */_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/
  */_\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/
  _\/125 /13 2/*/_\/_\\\\\\/131 /119 /125 /11 6/*
  /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*
  /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*
  /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*
  /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*
  /_\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_
  \/125 /13 2/*/_\/_\\\\\\\\\\/*\1 1 /125 /131 /
  119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 /
  125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\/125 /
  131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/
  131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/
  119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\\/
  125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\
  /_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\
  \\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/
  _\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\\
  \\\\\\/*\1 1 /125 /131 /119 /125 /11 6/*/_\/_\/
  125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/125 /
  13 2/*/_\/_\\\/125 /131 /119 /125 /11 6/*/_\/_\
  /125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\/_\
  /125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\/_\
  /125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\/_\
  /125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/
  125 /13 2/*/_\/_\\\\\\/131 /119 /125 /11 6/*/_\
  /_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\
  /_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\
  /_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\
  /_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\
  /_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/
  125 /13 2/*/_\/_\\\\\\\\\/*\342//3427/*_/\_

[Bearbeiten] LOLCODE

  HAI
  CAN HAS STDIO?
  VISIBLE "HAI WORLD!"
  KTHXBYE

[Bearbeiten] Malbolge

   (=<`:9876Z4321UT.-Q+*)M'&%$H"!~}|Bzy?=|{z]KwZY44Eq0/{mlk**hKs_dG5
   [m_BA{?-Y;;Vb'rR5431M}/.zHGwEDCBA@98\6543W10/.R,+O<

[Bearbeiten] Ook!

   Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
   Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
   Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook.
   Ook! Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
   Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook?
   Ook! Ook! Ook? Ook! Ook? Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
   Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook. Ook. Ook. Ook. Ook.
   Ook. Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook.
   Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
   Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook.
   Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
   Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
   Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
   Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook.
   Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
   Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook.
   Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook!
   Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook.

[Bearbeiten] Piet

Piet Program Hello World(1).gif

Bei Piet ist der Quelltext eine Bilddatei im GIF-Format.

[Bearbeiten] Unlambda

```s``sii`ki
 ``s``s`ks
     ``s``s`ks``s`k`s`kr
               ``s`k`si``s`k`s`k
                               `d````````````.H.e.l.l.o.,. .w.o.r.l.d.!
                        k
      k
  `k``s``s`ksk`k.*

[1]

[Bearbeiten] Whitespace

   
   	  	   
		    	
   		  	 	
		    	 
   		 		  
		    		
   		 		  
		    
	  
   		 				
		    	 	
   	 		  
		    		 
   	     
		    			
   			 			
		  
  	   
   		 				
		    	  	
   			  	 
		    	 	 
   		 		  
		    	 		
   		  
	  
		    		  
   	    	
		    		 	
   		 	
		    			 
   	 	 
		    				
    
	
	     

    	
 
 			 
 
	  	 
	
     	
	   
 
  	

   	 





[Bearbeiten] Zombie

HelloWorld is a zombie
    summon
        task SayHello
            say "Hallo Welt!"
        animate
    animate

[Bearbeiten] Textauszeichnungssprachen

Die folgenden Sprachen sind keine Programmiersprachen, sondern Textauszeichnungssprachen, also Sprachen, mit denen man einen im Computer gespeicherten Text für die Ausgabe auf dem Bildschirm oder mit dem Drucker formatieren kann. Analog zum Hallo-Welt-Programm ist ein Hallo-Welt-Dokument in einer dieser Sprachen ein Beispieldokument, das nur den Text "Hallo Welt!" enthält.

[Bearbeiten] Graphviz

   digraph G {Hello->World}

[Bearbeiten] Groff

   \f(CW 
   Hallo Welt

[Bearbeiten] HTML

[Bearbeiten] Ohne Tag-Auslassung

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>Hallo Welt!</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hallo Welt!</p>
  </body>
</html>

[Bearbeiten] Mit Tag-Auslassung

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<title>Hallo Welt!</title>
<p>Hallo Welt!</p>

Die Auslassung bestimmter Tags (hier: <html>…</html>, <head>…</head>, <body>…</body>) ist bei HTML formal zulässig, wird jedoch selten benutzt. Bei XHTML ist dies aufgrund der XML-Konventionen nicht mehr möglich.

[Bearbeiten] Extensible Hypertext Markup Language (XHTML)

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Hallo Welt!</title>
</head>
<body>
    <p>Hallo Welt!</p>
</body>
</html>

[Bearbeiten] LaTeX

\documentclass{article}
\begin{document}
Hallo Welt!
\end{document}

Alternativ (gibt Hallo Welt auf STDOUT aus, anstatt ein DVI-File damit zu erstellen):

\documentclass{article}
\begin{document}
\typeout{Hallo Welt!}
\end{document}

[Bearbeiten] PostScript

   /Courier findfont
   24 scalefont
   setfont
   100 100 moveto
   (Hallo Welt!) show
   showpage

[Bearbeiten] Rich Text Format

   {\rtf1\ansi\deff0
   {\fonttbl {\f0 Courier New;}}
   \f0\fs20 Hallo Welt!
   }

[Bearbeiten] TeX

\leftline{Hallo Welt!}
\bye

[Bearbeiten] Wiki

   Hallo Welt!


[Bearbeiten] Weblinks

Commons: Screenshots und Grafiken zu Hello World – Bilder, Videos und/oder Audiodateien

[Bearbeiten] Einzelnachweise

  1. http://www.madore.org/~david/programs/unlambda/
Persönliche Werkzeuge
In anderen Sprachen