Share your repls and programming experiences

← Back to all posts
Hello world! Current target: 100 languages!
h
Lost0Soul (91)

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 😅

Commentshotnewtop
DungeonMaster00 (115)

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!"
Lost0Soul (91)

Its getting harder to navigate lol

TheForArkLD (711)

.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
TheForArkLD (711)

Btw, can I help it?

TheForArkLD (711)

@Lost0Soul I want add more langs directly.

Lost0Soul (91)

@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

Codemonkey51 (834)

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

Lost0Soul (91)

@Codemonkey51 Thats a ton of languages!

Codemonkey51 (834)

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

matthewproskils (342)

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

fuzzyastrocat (252)

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!"}
}
fuzzyastrocat (252)

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
Lost0Soul (91)

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

fuzzyastrocat (252)

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

Lost0Soul (91)

@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 👀 👀 👀

Lost0Soul (91)

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

fuzzyastrocat (252)

@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.

maxyang (55)

Lolcode: VISIBLE "HELLO WORLD"

CodeLongAndPros (1254)
‘(Hello world in scheme)

(display “hello world”)
CodeLongAndPros (1254)
// Hello World in D;
import std.stdio: writeln 

int main() {
  writeln(“hello world”);
}
Lost0Soul (91)

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

CodeLongAndPros (1254)

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

Vandesm14 (2321)

The PHP one is missing a closing tag

Lost0Soul (91)

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

Viper2211 (76)

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
Lost0Soul (91)

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

Viper2211 (76)

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