Tech Lead/Team Lead. Senior WebDev.
Intermediate Grade on Computer Systems-
High Grade on Web Application Development-
MBA (+Marketing+HHRR).
Studied a bit of law, economics and design
Location
Spain
Education
Higher Level Education Certificate on Web Application Development
I love creating! It started with Lego as a little kid. Later I went on with (dis)assembling my first computer in the early 2000s. Then came the internet... Working remotely for 8 years :-)
Data wrangler, software engineer, systems programmer, cyclist. Unix (mostly Solaris) for aeons. I talk C, Python, SQL, Performance, Java, Kafka and Makefiles.
Location
Brisbane, Australia
Education
BA (Mathematics, Modern History), University of Queensland
For completeness one should mention that this example is x86 assembler (not even amd64!), and for extra credit how about ARMv7, SPARC and POWER versions too? :p
Hello @muhimen123
, in Go(lang) you can reduce the loc. import "fmt" is not required, you could just use the print/println as you do with the rest of the hello-worlds. You can replace the code snippet with:
packagemainfuncmain(){println("Hello, World!")}
Good article though :) It was fun, reminds me old times
Oliver Leaver-Smith, better known as ols, is a distinguished technologist whose topics of expertise include OpenBSD, automation, chaos and resilience engineering, and Nerf warfare.
Location
Sheffield, UK
Work
Senior Platform Engineer at Sky Betting and Gaming
Oliver Leaver-Smith, better known as ols, is a distinguished technologist whose topics of expertise include OpenBSD, automation, chaos and resilience engineering, and Nerf warfare.
Location
Sheffield, UK
Work
Senior Platform Engineer at Sky Betting and Gaming
But remember, according to the documentation print() and println() are built-in functions for bootstrapping and not guaranteed to stay in the language.
Although I love this, my Fibonacci Project that I worked on with several other people to get currently 60 languages, I also made sure for more fair comparisons to keep them roughly the same. 60 was a lot too lol.
Frankly speaking, when I first thought about this post I wanted to write 100 languages. But due to my SUPER procrastinations, I wasn't getting any progress after 30 languages. So I just hit the publish button!
The Infamous Hello World Program.
Romeo, a young man with a remarkable patience.
Juliet, a likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Hamlet, the flatterer of Andersen Insulting A/S.
Act I: Hamlet's insults and flattery.
Scene I: The insulting of Romeo.
[Enter Hamlet and Romeo]
Hamlet:
You lying stupid fatherless big smelly half-witted coward!
You are as stupid as the difference between a handsome rich brave
hero and thyself! Speak your mind!
You are as brave as the sum of your fat little stuffed misused dusty
old rotten codpiece and a beautiful fair warm peaceful sunny summer's
day. You are as healthy as the difference between the sum of the
sweetest reddest rose and my father and yourself! Speak your mind!
You are as cowardly as the sum of yourself and the difference
between a big mighty proud kingdom and a horse. Speak your mind.
Speak your mind!
[Exit Romeo]
Scene II: The praising of Juliet.
[Enter Juliet]
Hamlet:
Thou art as sweet as the sum of the sum of Romeo and his horse and his
black cat! Speak thy mind!
[Exit Juliet]
Scene III: The praising of Ophelia.
[Enter Ophelia]
Hamlet:
Thou art as lovely as the product of a large rural town and my amazing
bottomless embroidered purse. Speak thy mind!
Thou art as loving as the product of the bluest clearest sweetest sky
and the sum of a squirrel and a white horse. Thou art as beautiful as
the difference between Juliet and thyself. Speak thy mind!
[Exeunt Ophelia and Hamlet]
Act II: Behind Hamlet's back.
Scene I: Romeo and Juliet's conversation.
[Enter Romeo and Juliet]
Romeo:
Speak your mind. You are as worried as the sum of yourself and the
difference between my small smooth hamster and my nose. Speak your
mind!
Juliet:
Speak YOUR mind! You are as bad as Hamlet! You are as small as the
difference between the square of the difference between my little pony
and your big hairy hound and the cube of your sorry little
codpiece. Speak your mind!
[Exit Romeo]
Scene II: Juliet and Ophelia's conversation.
[Enter Ophelia]
Juliet:
Thou art as good as the quotient between Romeo and the sum of a small
furry animal and a leech. Speak your mind!
Ophelia:
Thou art as disgusting as the quotient between Romeo and twice the
difference between a mistletoe and an oozing infected blister! Speak
your mind!
[Exeunt]
namespace HelloWorld {
open Microsoft.Quantum.Intrinsic;
open Microsoft.Quantum.Canon;
operation SayHello() : Result {
Message("Hello from quantum world!");
return Zero;
}
}
Y'all please just join and contribute to Rosetta Code.
Rosetta Code currently has 1,017 tasks, 229 draft tasks, and is aware of 785 languages, though we do not (and cannot) have solutions to every task in every language.
Perl doesn't need use strict or use warnings for this trivial example. Why are you making it needlessly verbose? Using the same logic shouldn't we also use set -u and set -e in bash? Btw, fun post. Just trying to be fair.
I thought I was the first person to do this. But you know, there is at least one person on the internet who has done something before you would do.
(But still, I enjoyed it)
Data wrangler, software engineer, systems programmer, cyclist. Unix (mostly Solaris) for aeons. I talk C, Python, SQL, Performance, Java, Kafka and Makefiles.
Location
Brisbane, Australia
Education
BA (Mathematics, Modern History), University of Queensland
My personal objective is to bring outstanding service and technology to any position I can apply it to. I work fast and efficiently to get the job done right, the first time.
Tech Lead/Team Lead. Senior WebDev.
Intermediate Grade on Computer Systems-
High Grade on Web Application Development-
MBA (+Marketing+HHRR).
Studied a bit of law, economics and design
Location
Spain
Education
Higher Level Education Certificate on Web Application Development
LOLCODE is an esoteric programming language inspired by lolspeak, the language expressed in examples of the lolcat Internet meme. The language was created in 2007 by Adam Lindsay, researcher at the Computing Department of Lancaster University.
What about "Chicken"?
Chicken is an esoteric programming language in which "chicken" is the only valid symbol.
Here is Hello World in chicken and It's true:
`
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken
chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
`
SERIOUSLY?!
I thought the same!
And what about Cow, intercal, whitespace, chef, Brainfuck or Malbolge?
It seems that bored people has no limits LoL
Thirty languages, and not a single Lisp? For shame. Three off the top of my head:
Scheme
Common Lisp
Clojure
What about SmallTalk then^^?
My lord! I beg pardon! 🥺
That was the first thing I looked and didn't find.
Heres Hello world in Whitespace:
source: github.com/rdebath/whitespace
edit: sadly I think dev.to's markdown based posts & commends doesn't like whitespace-lang
Who said Java is a hard language to learn?
Java is quite easy xD
;Don't forget Assembly Language:
section .text
global _start
_start:
mov edx, len
mov ecx, msg
mov ebx, 1
mov eax, 4
int 0x80
mov eax, 1
int 0x80
section .data
msg db 'Hello, world!',0xa
len equ $ - msg
For completeness one should mention that this example is x86 assembler (not even amd64!), and for extra credit how about ARMv7, SPARC and POWER versions too? :p
Yes, thought it would be better to start with the basics.
global _start
section .text
_start:
mov rdi,1
mov rsi,hello_world
mov rdx,hello_world_size
mov rax,1
syscall
mov rdi,0
mov rax,60
syscall
hello_world: db "Hello, world!",10
hello_world_size EQU $ - hello_world
How about one for Windows 64?
extrn ExitProcess: PROC
extrn MessageBoxA: PROC
.data
caption db 'Windows 64-bit hello!', 0
message db 'Hello, world!', 0
.code
Start PROC
sub rsp,28h
mov rcx, 0
lea rdx, message
lea r8, caption
mov r9d, 0
call MessageBoxA
mov ecx, eax
call ExitProcess
Start ENDP
End
Hello @muhimen123 , in Go(lang) you can reduce the loc.
import "fmt"is not required, you could just use theprint/printlnas you do with the rest of the hello-worlds. You can replace the code snippet with:Good article though :) It was fun, reminds me old times
Thanks. Changing the code right now!
@muhimen123 you need to change the fmt.Println line to just println, as you are still trying to use fmt, but not importing it any more
Something like this?
Yep, perfect
But remember, according to the documentation print() and println() are built-in functions for bootstrapping and not guaranteed to stay in the language.
Although I love this, my Fibonacci Project that I worked on with several other people to get currently 60 languages, I also made sure for more fair comparisons to keep them roughly the same. 60 was a lot too lol.
Frankly speaking, when I first thought about this post I wanted to write 100 languages. But due to my SUPER procrastinations, I wasn't getting any progress after 30 languages. So I just hit the publish button!
Fair Enough
Shakespeare
Q#:
Y'all please just join and contribute to Rosetta Code.
Hello!
Below, the hfuck version:
$ ./h hhh hhh hhhh hhh hhhh hhhh h hhhhhhh h hhhhhhh hhhh h hh hhh hhh hhh hh hhh hh hhh hh hhh hhhh hhhh hhhh hhhhhhhh hh hhhhhhhh hhhh hhhh hhh hhh hhhhh hhhh h h h h h h hhhhh hhhh hhhh hhh hhhhh hhhhh hhhh hhhh hhhhh hhhh h hhhhh hh hh hhhhh hh hh hhhhh hhhh hhhh hhhh hhhhh h h h hhhhh hh hh hhhhh hh hh hhh hhhhh hhhh hhhh hhhh h hhhhh
Hello, World!
source: github.com/angt/hfuck
PHP
JASS (language used in Warcraft III mods)
Haskell one is wrong
is using the repl. And is not even printing a thing
Haskell would be Main = print "Hello world"
This isn't valid file or repl syntax.
For the repl:
For a
.hsfile:(function definitions are lower case, types and modules are capitalized)
putStrLn would probably be better for this, so it doesn't display the quotes
Bug in the post 🙄. Fixing it right now!
I'm not sure what it used to be, but this update isn't right. Here are two valid definitions: dev.to/spicydonuts/comment/ofod
Perl doesn't need use strict or use warnings for this trivial example. Why are you making it needlessly verbose? Using the same logic shouldn't we also use set -u and set -e in bash? Btw, fun post. Just trying to be fair.
Racket
Beef
30 Languages!! No PHP?? Really??
Check this out
github.com/anuraghazra/Nothing
Didn't see that coming
Yeah because it's "nothing" 😏
But you miss Delphi!
Nim
Prolog
write('Hello world').
Awesome!!!
Heres a project I've done, 16 implements of Conways game of life: github.com/KieranP/Game-Of-Life-Im...
See this repo
(there is nothing wrong with reinventing the wheel... ;-))
I thought I was the first person to do this. But you know, there is at least one person on the internet who has done something before you would do.
(But still, I enjoyed it)
Fortran
PROGRAM hello
PRINT *,"Hello, World!"
END PROGRAM hello
I think I need another coffee, because I thought you were going to be providing human language translations and show use of
dgettext(...)Good article.
Funny
console.log("Hello, World!"); or document.writeln('Hello, World!');should be the same example in 6 and 7 points.No ArnoldC? lhartikk.github.io/ArnoldC/
Love this! :)
Nice, wanted to share the love to all the powershell fans out there
Write-Output "Hello World"
No one:
Absolute no one:
PHP: echo('hello, world');
:D
This. Is. Awesome. Great job!
PHP:
<?php
echo "Hello, World!";
also, I think Swift one is actually Objective-C!!!
Fair enough.
Now, where are the unit tests?
Surprised not to see a Hello World in Erlang.
Good article :) It was fun and interesting going through each of the languages.
I really miss LOLCODE here.
HAI 1.2
CAN HAS STDIO?
VISIBLE "HELLO WORLD!"
KTHXBYE
LOLCODE is an esoteric programming language inspired by lolspeak, the language expressed in examples of the lolcat Internet meme. The language was created in 2007 by Adam Lindsay, researcher at the Computing Department of Lancaster University.
Trying new languages is always fun.
Last year I tried to implement FizzBuzz in 10 different languages 🤣
I tried 10 programming languages and I liked it
Eugene Karataev ・ Jul 5 '19 ・ 4 min read
In 458 languages here: rosettacode.org/wiki/Hello_world/Text
Enjoy 🎇
Forth
." Hello, world!" CR
." is an operator which reads everything up to the next " and prints it to the screen
CR is an operator which output a newline