Jump to content

I thought it would be pretty rad to try and get a thread with the classic 'Hello, World!" program written in as many languages as possible.

 

So Just write the program in every language you know. I am particularly interested in the really niche languages that I have no idea how to use. (Don't use Google to do it, just use the languages you know)

 

I will start

Python:

print "Hello, World!"

Java

public class HelloWorld {     public static void main(String[] args) {     System.out.println("Hello, world!");   }}

JavaScript

document.write('Hello, world!');

Ruby

puts "Hello, world!"

 

Case Bitfenix Shinobi | CPU - i5 3570K @ 4.2Ghz | Motherboard -  Asus P8Z77 | GPU - 7870 | PSU - Corsair CXM 600w | 
Harddrive - Seagate Barracuda 1Tb x 2 | SSD - Samsung 840 256Gb | Cooling - Custom 2x Dual 120mm Radiator, Watercooling Loop |

Ultimate Programming Resources Thread ||| CompSci Masters Degree Student and Professional Java and C# Programmer

Link to comment
https://linustechtips.com/topic/23174-hello-world/
Share on other sites

Link to post
Share on other sites

I only know python! Guess i'll write it anyway..

 

print "Hello, World!"

 

could you also get away with..

 

 

let Adam = "Hello, World"

print Adam

 

in my early days lol, i only started learning a few weeks ago o.O

CPU: i5 3570k                                 PSU: CX650 Corsair                 SSD: 128GB Samsung 840

RAM: 16GB Corsair Vengeance     Case: Zalman Z11                    HDD: 500Gb Toshiba & 1TB Western Digital

MOBO: ASrock Extreme 4 Z77        GPU: GTX 770

Link to comment
https://linustechtips.com/topic/23174-hello-world/#findComment-293283
Share on other sites

Link to post
Share on other sites

C#

#using System;

#using System.Collections.Generic;

#using System.Linq;

 

namespace Hello_World

{

class Program

{

static void Main(string[] args)

{

Console.WriteLine("Hello World");

}

}

}

 

 

 

 

Do you want to know what grinds my gears?
The old forum.

Link to comment
https://linustechtips.com/topic/23174-hello-world/#findComment-293292
Share on other sites

Link to post
Share on other sites

Life is pain. Anyone who says any different is either selling something or the government.

 

----CPU: FX-6300 @ 4.2ghz----COOLER: Hyper 212 EVO----MOBO: MSI 970A-G46----PSU: OCZ 600watt----CASE: Black Corsair C70----GPU: Sapphire 7870 dual fan ghz edtion----2 random HDD'S----A couple fans here and there. Mouse: Gigabyte M6900-------Keyboard: Logitech G105-----Mousepad: Steel series something something.

Link to comment
https://linustechtips.com/topic/23174-hello-world/#findComment-293345
Share on other sites

Link to post
Share on other sites

C++

 

#include <iostream>

 

int main ()

 

{

cout << "Hello World";

}

That's not entirely correct correct. That snippet won't compile.

 

C++:

#include <iostream> using namespace std; int main(){    cout << "Hello world!" << endl;    return 0;}

 

PHP:

<?phpecho "Hello world!";
Link to comment
https://linustechtips.com/topic/23174-hello-world/#findComment-293931
Share on other sites

Link to post
Share on other sites

 

JavaScript

document.write('Hello, world!');

That is not JavaScript only.

 

JS-only would be:

 

alert("Hello World!");

:)

MB: MSI Z77A-GD55 | CPU: Intel i5-2500k @ 4.5 GHz | RAM: 8GB Kingston DDR3 @1333MHz | GPU: Asus GTX 770 DirectCU II 

Monitor: 22" Samsung SyncMaster B2230H @60Hz | Audio: Creative Aurvana Live! | PSU: SuperFlower 80+ Gold 550 Watt 

OS: ArchLinux + KDE / Windows 8 Pro 64bit | Smartphone: Nexus 4 16GB - CM11

 

Link to comment
https://linustechtips.com/topic/23174-hello-world/#findComment-294229
Share on other sites

Link to post
Share on other sites

>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++. [-]>++++++++[<++++>-]<.>+++++++++++[<+++++>-]<. >++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[<++++>-]<+. [-]++++++++++. >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++. [-]>++++++++[<++++>-]<.#>+++++++++++[<+++++>-]<. >++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[<++++>-]<+. [-]++++++++++.

 

:lol:

 

It's a language called Brainf*ck - excuse the filter evasion. And no, I have no idea how to program using it. :>

Interested in Linux, SteamOS and Open-source applications? Go here

Gaming Rig - CPU: i5 3570k @ Stock | GPU: EVGA Geforce 560Ti 448 Core Classified Ultra | RAM: Mushkin Enhanced Blackline 8GB DDR3 1600 | SSD: Crucial M4 128GB | HDD: 3TB Seagate Barracuda, 1TB WD Caviar Black, 1TB Seagate Barracuda | Case: Antec Lanboy Air | KB: Corsair Vengeance K70 Cherry MX Blue | Mouse: Corsair Vengeance M95 | Headset: Steelseries Siberia V2

 

 

Link to comment
https://linustechtips.com/topic/23174-hello-world/#findComment-294244
Share on other sites

Link to post
Share on other sites

>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++. [-]>++++++++[<++++>-]<.>+++++++++++[<+++++>-]<. >++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[<++++>-]<+. [-]++++++++++. >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++. [-]>++++++++[<++++>-]<.#>+++++++++++[<+++++>-]<. >++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[<++++>-]<+. [-]++++++++++.

:lol:

 

It's a language called Brainf*ck - excuse the filter evasion. And no, I have no idea how to program using it. :>

 

 

That actually prints

Hello World!

Rovvy World!

 

It's easy to make a translator from it to C, but there is no practical use for that language!

 

Here are my 2 cents:

Lisp (and family members):

(format t "Hello World!")

or

(print "Hello World!")

Prolog:

helloworld :- writeln('Hello World!').helloworld.

Bash:

echo 'Hello World!'
Link to comment
https://linustechtips.com/topic/23174-hello-world/#findComment-295285
Share on other sites

Link to post
Share on other sites

 

That actually prints

Hello World!

Rovvy World!

 

It's easy to make a translator from it to C, but there is no practical use for that language!

 

Here are my 2 cents:

Lisp (and family members):

(format t "Hello World!")

or

(print "Hello World!")

Prolog:

helloworld :- writeln('Hello World!').helloworld.

Bash:

echo 'Hello World!'

 

Nice to see some Prolog, haha.

Link to comment
https://linustechtips.com/topic/23174-hello-world/#findComment-303763
Share on other sites

Link to post
Share on other sites

LOLCODE:

<code>

HAI

CAN HAS STDIO?

VISIBLE "HAI WORLD!"

KTHXBYE

</code>

Not funny...

CPU: i7 4770k | GPU: Sapphire 290 Tri-X OC | RAM: Corsair Vengeance LP 2x8GB | MTB: GA-Z87X-UD5HCOOLER: Noctua NH-D14 | PSU: Corsair 760i | CASE: Corsair 550D | DISPLAY:  BenQ XL2420TE


Firestrike scores - Graphics: 10781 Physics: 9448 Combined: 4289


"Nvidia, Fuck you" - Linus Torvald

Link to comment
https://linustechtips.com/topic/23174-hello-world/#findComment-303914
Share on other sites

Link to post
Share on other sites

C:

#include <stdio.h>int main(int argc, char **argv){printf("Hello World");return 0;}

C++:

#include <stdio.h>using namespace std;int main(){printf("Hello World");return 0;}

or 

#include <iostream>using namespace std;int main(){cout << "Hello World";return 0;}

Objective-C:

NSLog(@"Hello World);

Java:

public class Hello {     public static void main(String[] args) {     System.out.println("Hello world!");   }}

PHP:

<?phpecho "Hello World";?>

Javascript:

console.log("Hello World");

or

alert("Hello World");

Python:

print "Hello World"

Python 3:

print("Hello World"); 

Ruby:

puts "Hello World"
Link to comment
https://linustechtips.com/topic/23174-hello-world/#findComment-313648
Share on other sites

Link to post
Share on other sites

Do people seriously think to themselves "Lets invent the most impractical language ever"? :lol:

Interested in Linux, SteamOS and Open-source applications? Go here

Gaming Rig - CPU: i5 3570k @ Stock | GPU: EVGA Geforce 560Ti 448 Core Classified Ultra | RAM: Mushkin Enhanced Blackline 8GB DDR3 1600 | SSD: Crucial M4 128GB | HDD: 3TB Seagate Barracuda, 1TB WD Caviar Black, 1TB Seagate Barracuda | Case: Antec Lanboy Air | KB: Corsair Vengeance K70 Cherry MX Blue | Mouse: Corsair Vengeance M95 | Headset: Steelseries Siberia V2

 

 

Link to comment
https://linustechtips.com/topic/23174-hello-world/#findComment-318772
Share on other sites

Link to post
Share on other sites

Do people seriously think to themselves "Lets invent the most impractical language ever"? :lol:

We all know everyone loves esoteric programming languages! 

Arch Linux on Samsung 840 EVO 120GB: Startup finished in 1.334s (kernel) + 224ms (userspace) = 1.559s | U mad windoze..?

Link to comment
https://linustechtips.com/topic/23174-hello-world/#findComment-319013
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×