'Hello, World!' in 25 Programming Languages: Proposal, Docs and Links.
I have selected the most used languages in the market with data that can make you study or know better to make your choice.
I have selected the most used languages in the market with data that can make you study or know better to make your choice, whether for the job market or for building personal or business projects:
- A brief description and/or curiosity of each;
- the extent to which each one uses;
- Hello World! ;
- how to run, compile and/or interpret;
- link with example;
Assembly or assembly language is a human readable notation for machine code that a specific computer architecture uses, used to program code understood by computational devices such as microprocessors and microcontrollers.
Must have compiler and linker: ld .
nasm -f elf64 -o hello-world.o hello-world.asm && ld hello-world.o -o hello-world && ./hello-world
C is a general purpose, structured, imperative, procedural compiled programming language, standardized by the International Organization for Standardization (ISO), created in 1972 by Dennis Ritchie at AT&T Bell Labs for Unix operating system development (originally written in Assembly) .
You must have a compiler installed, eg gcc .
gcc hello-world.c -o hello-world.o && ./hello-world.o
vim hello-world.cpp, I
vim hello-world.c++or I
C++ (reads see plus plus) is a compiled multi-paradigm programming language (its support includes imperative, object oriented and generic language) and commonly used.
You must have a compiler installed, eg gcc .
g++ hello-world.cpp -o hello-world.o && ./hello-world.o
Go is a programming language created by Google and released in open source in November 2009. It is a compiled language.
You must have go installed.
go build hello-world.go && ./hello-world
vim hello-world.sh or
Bash is a script language or command interpreter, one of several translators.
bash hello-world.sh ,
sh hello-world.sh ,
source hello-world.sh ,
chmod +x ./hello-world.sh && ./hello-world.sh
The AWK programming language was created in 1977 by scientists Alfred Aho, Peter J. Weinberger and Brian Kernighan in the Bell Labs lab.
There are several variants of Awk: Learn more here .
awk -f hello-world.awk
Vim’s scripting language, known as Vimscript, is a typical dynamic imperative language that offers most common language features.
Must have vim installed.
vim -u hello-world.vim +qall
Vim and VimScript Course: https://terminalroot.com.br/vim
Structured Query Language, or Structured Query Language or SQL, is the standard declarative query language for relational database (relational database).
You must have MySQL for this example: MySQL .
mysql -u root -p < hello-world.sql or directly:
mysql -u root -p -e "SELECT 'Hello, World'"
Lua is a small, reflective, lightweight multiparadigm scripting language designed to expand general applications by being an extensible language (which joins parts of a program made into more than one language), for prototyping, and for software embedding. complex, like games. It resembles Python, Ruby and others.
Must have Lua installed.
lua hello-world.lua or
chmod +x hello-world.lua && ./hello-world.lua
Perl is a family of two multiplatform programming languages, Perl 5 and Perl 6.
Must have Perl installed.
perl hello-world.pl or
chmod +x hello-world.pl && ./hello-world.pl
PHP (a recursive acronym for “PHP: Hypertext Preprocessor”, originally Personal Home Page) is a free interpreted language, originally used only for the development of server-side applications that are capable of generating dynamic content on the World Wide Web.
You must have PHP installed.
php hello-world.php or
chmod +x hello-world.php && ./hello-world.php
Python is a high-level, interpreted, scripted, imperative, object-oriented, functional, dynamic typing, and strong programming language.
You can run Python directly at the prompt:
python hello-world.py or
chmod +x hello-world.py && ./hello-world.py
You must have Nodejs installed.
Java is a programming language developed by engineers at Sun Microsystems. It is an object-oriented language designed to run on multiple platforms without the need to recompile the code on each platform.
- JDK - Java D evelopment K it is required to develop java applications. JRE is smaller than JDK, so it needs less disk space.
OpenJDK is a free and free implementation of the Java platform, Standard Edition.
Must have compiler and linker: JDK .
javac hello-world.java && java OlaMundo , javac creates a file with the class name (inside the same directory where you ran it), in this case HelloMundo with the extension .class (
OlaMundo.class ), but to run does not report the .class .
Rust is a compiled multiparadigm programming language developed by Mozilla Research. It is designed to be “safe, concurrent and practical”, supporting the purely functional, procedural, and object-oriented styles. It has native WebAssembly support.
Must have compiler: rustc .
rustc hello-world.rs && ./hello-world
Swift is a programming language developed by Apple for development on iOS, macOS, watchOS, tvOS and Linux.
Must have swift .
swift build && .build/debug/hello-world , this inside a directory with Sources
Dart (originally called Dash) is a web-based scripting language developed by Google.
Need dependencies .
Must have dependencies .
kotlinc hello-world.kt -include-runtime -d hello-world.jar && java -jar hello-world.jar
R is a computational environment and a programming language that has been progressively specializing in data manipulation, analysis and visualization.
Must have R installed.
Julia is a high-level dynamic programming language designed to meet the requirements of scientific and numerical high performance computing and is also effective for general purpose programming.
To use the compiled form you need the JIT compiler.
Ruby is a powerful, dynamic typing, self-managing multi-paradigm interpreted programming language originally designed and developed in Japan in 1995 by Yukihiro “Matz” Matsumoto for use as a scripting language.
You need to have Ruby installed.
Elixir is a concurrent, general purpose functional programming language that runs on the Erlang virtual machine (BEAM).
You must have Elixir installed.
Vala is an object-oriented programming language.
You must have Vala installed.
valac hello-world.vala -o hello-world](https://wiki.gnome.org/Projects/Vala/ValaForCSharpProgrammers)
C# is a strongly typed, multi-paradigm programming language developed by Microsoft as part of the .NET platform.
Must own Gentoo :
layman dotnet && emerge mono monodevelop.
25. Gambas (Visual Basic for Linux)
Gambas is an integrated development environment (IDE) for Linux an Open Source alternative to Microsoft Basic Visual Basic.
Must have Gambas, eg
sudo apt install gambas3https://www.youtube.com/watch?v=xezNqM2zrbY .
Thanks for reading!