Hello world! Current target: 100 languages!
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!
)
Contributons Can't keep up so removed ๐
Its getting harder to navigate lol
.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
Btw, can I help it?
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
@Lost0SoulI got close to almost all that I could actually get running (on a plain polygott repl) i think
@Lost0SoulRuby
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
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!"} }
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
puts {"Hello, world!"}
which would print (literally) "Hello, world!"
not Hello, World!
. To fix, just remove the quotes.Lolcode: VISIBLE "HELLO WORLD"
โ(Hello world in scheme) (display โhello worldโ)
// Hello World in D; import std.stdio: writeln int main() { writeln(โhello worldโ); }
The PHP one is missing a closing tag
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
Np
@Lost0Soul .I'll try to contribute more if I can! :)
Hello World in Powershell (
.ps1
):Hello World in Lua (
.lua
):Hello World in F# (
.fs
):