Skip to content
Sign upLog in
โ† Back to Community
Hello world! Current target: 100 languages!
Profile icon
Lost0Soul

Hey there, according to this site there are over 800 programming languages in the world, and i'm even more sure that they all have a code to say Hello world! as every language does, duh.

So i made this repl, lets see in how many languages we can say Hello world!.

Please share your code on how to do so in the comments, Thanks!

Also, please upvote and share so more people see this and we can reach a huge amount of languages!
image
)

Contributons Can't keep up so removed ๐Ÿ˜…

Voters
Profile icon
ThatGhost
Profile icon
CodingGoose
Profile icon
TheForArkLD
Profile icon
matthewproskils
Profile icon
fuzzyastrocat
Profile icon
FlaminHotValdez
Profile icon
Viper2211
Profile icon
CodeLongAndPros
Profile icon
Vandesm14
Profile icon
Lost0Soul
Comments
hotnewtop
Profile icon
DungeonMaster00

Hello World in Powershell (.ps1):

write-host "Hello World!";

Hello World in Lua (.lua):

print("Hello World!");

Hello World in F# (.fs):

printfn "Hello World!"
Profile icon
Lost0Soul

Its getting harder to navigate lol

Profile icon
TheForArkLD

.oba (Obratnaya (oof it's my pl))

; main.oba #include <stdout.oba> .main: push Hello, world! push msgln call @ ret
#Of course, you need download Obratnaya from github. ./obrya main.oba

.stk (Stekovaya (oof it's my pl too))

REM main.stk STR Hello, world! END MSG
#Of course, you need download Stekovaya from github. mono stkvy.exe main.stk

.f90 (Fortran 90)

! main.f90 program main print *,"Hello, world!" end program main
gfortran -o main main.f90 && ./main && rm main

.lisp (Common Lisp)

(format t "Hello, world!~%")

.apl? (APL)

'Hello, world!'

.cs (C#)

//main.cs using System; class MainClass { public static void Main(string[] args){ Console.WriteLine("Hello, world!"); } }
mcs -out:main.exe main.cs && mono main.exe && rm main.exe
Profile icon
TheForArkLD

Btw, can I help it?

Profile icon
Lost0Soul
Profile icon
TheForArkLD

@Lost0Soul
I want add more langs directly.

Profile icon
Lost0Soul

@TheForArkLD
Ummm, can you message me on discord? Ill give you the invite, Sadashi#5058 i'm also usually chatting in the replit discord so you can find me there too anytime

Profile icon
TheForArkLD
Profile icon
Codemonkey51

Nooo most of my knowledge is use less here, one sec I'll grab a repl, that uses as many lang's as I can (on a polygott repl) to print there name

EDIT: here

@Lost0Soul

Profile icon
Codemonkey51
Profile icon
Lost0Soul

@Codemonkey51
Thats a ton of languages!

Profile icon
Codemonkey51

I got close to almost all that I could actually get running (on a plain polygott repl) i think

@Lost0Soul

Profile icon
matthewproskils

Ruby

puts "hello world"

.rb
Bash

puts "hello world"

.sh
Ada

with Text_IO; use Text_IO; procedure hello is begin Put_Line("Hello world!"); end hello;

Kotlin

fun main() { println("Hello World!") }

.kt
R

print('hello world')

.r

Profile icon
Lost0Soul

@matthewproskils
Added, thanks!

Profile icon
fuzzyastrocat

Haskell, .hs:

main = putStrLn "Hello, world!"

Tcl, .tcl:

puts {Hello, world!}

Ruby, .rb

puts "Hello, world!"

Rust, .rs

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

Curta, .rta (it's my own language, how could I leave it out? :D)

event Init :: () on Init { Serial :begin {baudRate 9600} :println {? "Hello, world!"} }
Profile icon
fuzzyastrocat

Swift, .swift

import Swift print("Hello, World!")

Dart, .dart

void main() { print('Hello, World!'); }

NASM assembly, .asm

global _start section .text _start: mov rax, 1 mov rdi, 1 mov rsi, message mov rdx, 13 syscall mov rax, 60 xor rdi, rdi syscall section .data message: db "Hello, World!", 10
Profile icon
Lost0Soul

@fuzzyastrocat
These are a bunch of languages, added! Also, do you really know asm?!??? Cause thats ๐Ÿ˜ฎ

Profile icon
fuzzyastrocat

@Lost0Soul
Yes. I'm actually better acquainted with AT&T, but I know some asm as well :D

Profile icon
Lost0Soul

@fuzzyastrocat
You know that eye emoji where its like moving as if its staring? I dont what its called, but this comment is that emoji ๐Ÿ‘€ ๐Ÿ‘€ ๐Ÿ‘€

Profile icon
fuzzyastrocat
Profile icon
Lost0Soul

@fuzzyastrocat
๐Ÿค” Got discord?

Profile icon
fuzzyastrocat

@Lost0Soul
No, sorry :P

Profile icon
Lost0Soul

@fuzzyastrocat
UwU I might have a surprise for you then soon, if the Repl.it team "agrees" to it, ๐Ÿค I say no more.

Profile icon
fuzzyastrocat

@Lost0Soul
Just noticed there's a slight inaccuracy in the tcl program: it says puts {"Hello, world!"} which would print (literally) "Hello, world!" not Hello, World!. To fix, just remove the quotes.

Profile icon
FlaminHotValdez

Lolcode: VISIBLE "HELLO WORLD"

Profile icon
Lost0Soul

@maxyang
Added thanks!

Profile icon
CodeLongAndPros
โ€˜(Hello world in scheme) (display โ€œhello worldโ€)
Profile icon
CodeLongAndPros
// Hello World in D; import std.stdio: writeln int main() { writeln(โ€œhello worldโ€); }
Profile icon
Lost0Soul

@CodeLongAndPros
Can you probably share the file extentions too, ill add this code then

Profile icon
CodeLongAndPros

@Lost0Soul
*.d and *.scm for the Scheme code (following 8.3), *.scheme otherwise.

Profile icon
Vandesm14

The PHP one is missing a closing tag

Profile icon
Lost0Soul

@Vandesm14
PHP works without the last closing tag, when it web its the must then

Profile icon
Viper2211

C

/* main.c */ #include <stdio.h> int main(){ printf("Hello world\n"); return 0; }
gcc ./hello.c -o ./hello && ./hello && rm ./hello

C++

/* main.cpp */ #include <iostream> int main(){ std::cout << "Hello world" << "\n"; }
g++ ./hello.cpp -o ./hello && ./hello && rm ./hello

C#

/* main.cs */ using System; namespace HelloWorldApp { class Hello { static void Main(string[] args) { Console.WriteLine("Hello World!"); Console.ReadKey(); } } }
mcs -out:hello.exe hello.cs && mono ./hello.exe && rm ./hello.exe
Profile icon
Lost0Soul

@Viper2211
Thanks very much fir the 3 languages, feel free to contribute more by commenting!

Profile icon
Viper2211

Np

@Lost0Soul
.I'll try to contribute more if I can! :)