DEV Community

Cover image for "Hello, World!" but in 30 different languages!!!
Muhimen
Muhimen

Posted on Edited on

"Hello, World!" but in 30 different languages!!!

Since the last week, I was scratching my head to figure out what post can I write in dev? I wanted it to be meaningful so that it can be useful for the readers. Then, I thought, if I can't write anything meaningful then I should write something absolutely meaningless. And here I am. Printing "Hello, World!" in 30 different languages(in no particular order). ENJOY!

[Spoiler alert: The last one is special!]

1. C

#include <stdio.h>
int main(void){
    printf("Hello, world!\n");
    return 0;
}
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

2. C++

#include <iostream>
int main(){
 std::cout << "Hello, World!\n";
}
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

3. C'#'

class HelloWorldApp{
 static void Main(){
 System.Console.WriteLine("Hello, world!");
 }
}
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

4. Python

print("Hello, world!")
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

5. Java

public class HelloWorld
   {
        public static void main(String[] args)
        {
             System.out.println("Hello, world!");
        }
   }
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

6. JavaScript

document.writeln('Hello, World!');
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

7. TypeScript

console.log("Hello, World!");
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

8. R

cat("Hello, World!")
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

9. Rust

fn main() {
    println!("Hello, World!");
}

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

10. Go Lang

package main 
func main() { 
    println("Hello, World!") 
} 
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

11. Lua

print("Hello, World")
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

12. Perl

use strict; 
use warnings; 

print("Hello, World!"); 
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

13. Haskell

putStrLn "Hello world"
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

14. Bash

echo 'Hello, world!'
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

15. Kotlin

fun main() {
    println("Hello, World!")
}
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

16. Ruby

puts "Hello, World!"
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

18. Swift

import Swift
print("Hello, World!")
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

19. Julia

println("Hello, World!")
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

20. Dart

void main() {
  print('Hello, World!');
}
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

21. Elixir

IO.puts("Hello, World!")
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

22. Groovy

println "Hello, World!"
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

23. Scala

object dev
{
    // Main Method 
    def main(args: Array[String]) 
    {
        // prints Hello World
        println("Hello, World!") 
    }
}
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

24. Ada

with Ada.Text_IO;
procedure Hello is
begin
   Ada.Text_IO.Put_Line("Hello, world!");
end Hello;
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

25. Bosque

namespace NSMain;  
entrypoint  
function main(): String {  
 return "Hello, world!";  
}  
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

26. BASIC

PRINT "Hello, world!"​
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

27. Cobol

display "Hello, world!".
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

28. D

import std.stdio;
void main()
{
    writeln("Hello, World!");
}
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

29. F'#'

open System
[<EntryPoint>]
let main argv =
    printfn "Hello, World!"
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

30. BrainF*ck

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

Why not add a few more in the comment section?

Top comments (65)

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
roladev profile image
Arol •

What about "Chicken"?
Chicken is an esoteric programming language in which "chicken" is the only valid symbol.

Here is Hello World in chicken and It's true:
`
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken

chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken

chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken
chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken

chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken

chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken

chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
`

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
muhimen123 profile image
Muhimen •

SERIOUSLY?!

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
ziizium profile image
Habdul Hazeez •

I thought the same!

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
joelbonetr profile image
JoelBonetR 🥇 •

And what about Cow, intercal, whitespace, chef, Brainfuck or Malbolge?

It seems that bored people has no limits LoL

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
gypsydave5 profile image
David Wickes •

Thirty languages, and not a single Lisp? For shame. Three off the top of my head:

Scheme

(display "Hello, world")

Common Lisp

(princ "Hello, world")

Clojure

(print "Hello, world")
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
swiknaba profile image
Lud •

What about SmallTalk then^^?

Transcript show: 'Hello, world!'.
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
muhimen123 profile image
Muhimen •

My lord! I beg pardon! 🥺

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
myterminal profile image
Mohammed Ismail Ansari •

That was the first thing I looked and didn't find.

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
metruzanca profile image
Samuele Zanca • • Edited

Heres Hello world in Whitespace:

































source: github.com/rdebath/whitespace

edit: sadly I think dev.to's markdown based posts & commends doesn't like whitespace-lang

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
muhimen123 profile image
Muhimen •

Who said Java is a hard language to learn?

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
metruzanca profile image
Samuele Zanca •

Java is quite easy xD

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
nexwebsites profile image
NexWebSites •

;Don't forget Assembly Language:
section .text
global _start

_start:

mov edx, len

mov ecx, msg

mov ebx, 1

mov eax, 4

int 0x80

mov eax, 1

int 0x80

section .data
msg db 'Hello, world!',0xa
len equ $ - msg

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
jmcp profile image
James McPherson •

For completeness one should mention that this example is x86 assembler (not even amd64!), and for extra credit how about ARMv7, SPARC and POWER versions too? :p

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
nexwebsites profile image
NexWebSites • • Edited

Yes, thought it would be better to start with the basics.

global _start
section .text
_start:
mov rdi,1

mov rsi,hello_world

mov rdx,hello_world_size

mov rax,1

syscall
mov rdi,0

mov rax,60

syscall

hello_world: db "Hello, world!",10
hello_world_size EQU $ - hello_world

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 Thread
 
nexwebsites profile image
NexWebSites • • Edited

How about one for Windows 64?

Window 64 bit Assembly
extrn ExitProcess: PROC
extrn MessageBoxA: PROC

.data
caption db 'Windows 64-bit hello!', 0
message db 'Hello, world!', 0

.code

Start PROC
sub rsp,28h

mov rcx, 0

lea rdx, message
lea r8, caption
mov r9d, 0

call MessageBoxA
mov ecx, eax

call ExitProcess
Start ENDP
End

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
kataras profile image
Gerasimos (Makis) Maropoulos • • Edited

Hello @muhimen123 , in Go(lang) you can reduce the loc. import "fmt" is not required, you could just use the print/println as you do with the rest of the hello-worlds. You can replace the code snippet with:

package main 
func main() { 
    println("Hello, World!") 
}
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026

Good article though :) It was fun, reminds me old times

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
muhimen123 profile image
Muhimen •

Thanks. Changing the code right now!

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
heyitsols profile image
Oliver Leaver-Smith •

@muhimen123 you need to change the fmt.Println line to just println, as you are still trying to use fmt, but not importing it any more

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 Thread
 
muhimen123 profile image
Muhimen •

Something like this?

package main 
func main() { 
    println("Hello, World!") 
} 
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 Thread
 
heyitsols profile image
Oliver Leaver-Smith •

Yep, perfect

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 Thread
 
petergloor profile image
Peter Gloor •

But remember, according to the documentation print() and println() are built-in functions for bootstrapping and not guaranteed to stay in the language.

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 Thread
 
heyitsols profile image
Oliver Leaver-Smith •

Yes you are correct. If we want to be pedantic I would say the original post, which had import "fmt" in and used fmt.Println is better than println() but this post seems to be an exercise in "Hello, World! Code Golf" so not too fussed about it

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
kailyons profile image
Loralighte •

Although I love this, my Fibonacci Project that I worked on with several other people to get currently 60 languages, I also made sure for more fair comparisons to keep them roughly the same. 60 was a lot too lol.

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
muhimen123 profile image
Muhimen •

Frankly speaking, when I first thought about this post I wanted to write 100 languages. But due to my SUPER procrastinations, I wasn't getting any progress after 30 languages. So I just hit the publish button!

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
kailyons profile image
Loralighte •

Fair Enough

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
fabasoad profile image
Yevhen Fabizhevskyi •

Shakespeare

The Infamous Hello World Program.

Romeo, a young man with a remarkable patience.
Juliet, a likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Hamlet, the flatterer of Andersen Insulting A/S.


                    Act I: Hamlet's insults and flattery.

                    Scene I: The insulting of Romeo.

[Enter Hamlet and Romeo]

Hamlet:
 You lying stupid fatherless big smelly half-witted coward!
 You are as stupid as the difference between a handsome rich brave
 hero and thyself! Speak your mind!

 You are as brave as the sum of your fat little stuffed misused dusty
 old rotten codpiece and a beautiful fair warm peaceful sunny summer's
 day. You are as healthy as the difference between the sum of the
 sweetest reddest rose and my father and yourself! Speak your mind!

 You are as cowardly as the sum of yourself and the difference
 between a big mighty proud kingdom and a horse. Speak your mind.

 Speak your mind!

[Exit Romeo]

                    Scene II: The praising of Juliet.

[Enter Juliet]

Hamlet:
 Thou art as sweet as the sum of the sum of Romeo and his horse and his
 black cat! Speak thy mind!

[Exit Juliet]

                    Scene III: The praising of Ophelia.

[Enter Ophelia]

Hamlet:
 Thou art as lovely as the product of a large rural town and my amazing
 bottomless embroidered purse. Speak thy mind!

 Thou art as loving as the product of the bluest clearest sweetest sky
 and the sum of a squirrel and a white horse. Thou art as beautiful as
 the difference between Juliet and thyself. Speak thy mind!

[Exeunt Ophelia and Hamlet]


                    Act II: Behind Hamlet's back.

                    Scene I: Romeo and Juliet's conversation.

[Enter Romeo and Juliet]

Romeo:
 Speak your mind. You are as worried as the sum of yourself and the
 difference between my small smooth hamster and my nose. Speak your
 mind!

Juliet:
 Speak YOUR mind! You are as bad as Hamlet! You are as small as the
 difference between the square of the difference between my little pony
 and your big hairy hound and the cube of your sorry little
 codpiece. Speak your mind!

[Exit Romeo]

                    Scene II: Juliet and Ophelia's conversation.

[Enter Ophelia]

Juliet:
 Thou art as good as the quotient between Romeo and the sum of a small
 furry animal and a leech. Speak your mind!

Ophelia:
 Thou art as disgusting as the quotient between Romeo and twice the
 difference between a mistletoe and an oozing infected blister! Speak
 your mind!

[Exeunt]
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026 🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
vsymonenko profile image
VSymonenko •

Q#:

namespace HelloWorld {
    open Microsoft.Quantum.Intrinsic;
    open Microsoft.Quantum.Canon;

    operation SayHello() : Result {
        Message("Hello from quantum world!");
        return Zero;
    }
}
🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
louy2 profile image
Yufan Lou •

Y'all please just join and contribute to Rosetta Code.

Rosetta Code currently has 1,017 tasks, 229 draft tasks, and is aware of 785 languages, though we do not (and cannot) have solutions to every task in every language.

🔥 Jadwal & Hasil: muhimen/hello world but in different languages ii - Info Live Streaming 2026
 
angt profile image
Adrien Gallouët • • Edited

Hello!
Below, the hfuck version:

$ ./h hhh hhh hhhh hhh hhhh hhhh h hhhhhhh h hhhhhhh hhhh h hh hhh hhh hhh hh hhh hh hhh hh hhh hhhh hhhh hhhh hhhhhhhh hh hhhhhhhh hhhh hhhh hhh hhh hhhhh hhhh h h h h h h hhhhh hhhh hhhh hhh hhhhh hhhhh hhhh hhhh hhhhh hhhh h hhhhh hh hh hhhhh hh hh hhhhh hhhh hhhh hhhh hhhhh h h h hhhhh hh hh hhhhh hh hh hhh hhhhh hhhh hhhh hhhh h hhhhh
Hello, World!

source: github.com/angt/hfuck