Hello World in Every Language

Hello World in Every Language Featured Image

What originally started as a 100 Days of Code challenge has blossomed into a serious project. Welcome to Hello World in Every Language: a series of Hello World implementations in as many programming languages as possible.

Table of Contents

What is Hello World?

According to WikipediaOpens in a new tab., Hello World is any program that displays “Hello, World!” to the user. In many cases, Hello World is used to demonstrate basic features of a programming language.

The Hello World program supposedly first appeared in 1972 in Brian Kernighan’s book A Tutorial Introduction to the Language B:

main(){
  extrn a,b,c;
  putchar(a); putchar(b); putchar(c); putchar('!*n');
  }

a 'hell';
b 'o, w';
c 'orld';

Today, Hello World has become the standard introduction to just about every programming tutorial. In fact, I even used Hello World in my Java class structure tutorial. Now, I’m trying to implement Hello World in every programming language.

Why Hello World in Every Language?

Now to be fair, I’m not the first person to tackle Hello World in every language. In fact, there are two archives I’m aware of:

  1. The Hello World CollectionOpens in a new tab.
  2. The leachim6 GitHub RepoOpens in a new tab.

Both of these archives simply list the various Hello World implementations without a lot of context. As a result, these archives are much larger than my GitHub collectionOpens in a new tab..

However, if you’re looking for something a bit more interesting, you’re in luck. With each of my implementations, you’ll get a brief breakdown of the solution and the historical background of the language. As a bonus, you’ll get to watch me grow on this journey. Hopefully, that’s a little more fun!

An Alphabetical List of Languages

If you’ve had a chance to browse through any of my Hello World implementations, then you know that there’s really no order in the chaos. In other words, I explore languages almost randomly. While that’s fun for me, I am certain this is frustrating to you.

As a result, I’ve decided to provide a list of all the languages in alphabetical order. Consider this an index:

  1. Hello World in ALGOL 68
  2. Hello World in Bash
  3. Hello World in Befunge
  4. Hello World in Brainfuck
  5. Hello World in C
  6. Hello World in C*
  7. Hello World in C#
  8. Hello World in C++
  9. Hello World in Crystal
  10. Hello World in D
  11. Hello World in Dart
  12. Hello World in Elixir
  13. Hello World in Elm
  14. Hello World in Go
  15. Hello World in Goby
  16. Hello World in Google Apps Script
  17. Hello World in Hack
  18. Hello World in Haskell
  19. Hello World in Java
  20. Hello World in JavaScript
  21. Hello World in Julia
  22. Hello World In Koka
  23. Hello World in Kotlin
  24. Hello World in Lisp
  25. Hello World in Lua
  26. Hello World in MATLAB
  27. Hello World in MoonScript
  28. Hello World in Objective-C
  29. Hello World in Opa
  30. Hello World in Pascal
  31. Hello World in Perl
  32. Hello World in PHP
  33. Hello World in PicoLisp
  34. Hello World in PowerShell
  35. Hello World in Python
  36. Hello World in R
  37. Hello World in Racket
  38. Hello World in Red
  39. Hello World in Ruby
  40. Hello World in Rust
  41. Hello World in Scala
  42. Hello World in Scheme
  43. Hello World in Solidity
  44. Hello World in Swift
  45. Hello World in Visual Basic .NET
  46. Hello World in Wren

As always, thanks for sticking around. If there’s a language missing that you want to see, feel free to drop it down in the comments. I’m always looking to explore new languages.

Sample Programs in Every Language (44 Articles)—Series Navigation

For 100 Days of Code, I’ve decided to implement a few sample programs in as many languages as possible. Each implementation details a brief history of the language and a description of the code.

The plan for the series is to explore the major general-purpose language like Java, Python, C, C++, and C#. From there, we’ll take a look at some sample programs in web development languages like Ruby, PHP, and JavaScript. As we continue, we’ll cover proprietary languages like Swift and Objective-C. Eventually, we’ll start to tackle less popular languages like Rust, x86, and Verilog. Finally, we’ll play around with some of the esoteric languages like Brainf*ck and LOLCODE.

Who knows? Maybe the Sample Programs in Every Language series will become so popular it’ll never end. To help this series grow, consider sharing it on social media with your friends. Or, if you have a language you want to see, drop your suggestion in the comments.

Jeremy Grifski

Jeremy grew up in a small town where he enjoyed playing soccer and video games, practicing taekwondo, and trading Pokémon cards. Once out of the nest, he pursued a Bachelors in Computer Engineering with a minor in Game Design. After college, he spent about two years writing software for a major engineering company. Then, he earned a master's in Computer Science and Engineering. Today, he pursues a PhD in Engineering Education in order to ultimately land a teaching gig. In his spare time, Jeremy enjoys spending time with his wife, playing Overwatch and Phantasy Star Online 2, practicing trombone, watching Penguins hockey, and traveling the world.

Recent Posts