Davide Peressoni (davide.peressoni@tuta.io)
An "Hello world!" which works in:
- (Literate) Agda
- C
- C++
- Objective-c
- CoffeeScript
- Brainf***
- (Literate) Haskell
- Julia
- Nim
- Perl
- PHP
- Python
- Raku
- Ruby
- Rust
- *sh (sh, bash, zsh, ...)
- fish
temp=$(mktemp --directory) && cp hello "$temp/hello.lagda" && cd "$temp" && agda --compile hello.lagda && ./hello
gcc -x c hello && ./a.out
g++ -x c++ hello && ./a.out
clang -x objective-c hello && ./a.out
coffee hello
./brainf.py hello
temp=$(mktemp --suffix=.lhs) && cp hello "$temp" && runghc "$temp"
julia hello
temp=$(mktemp --suffix=.nim /tmp/tmpXXX) && cp hello "$temp" && nim c -r "$temp"
perl hello
php hello
python3 hello
raku hello
ruby hello
rustc hello -o hello.out && ./hello.out
sh hello
,bash hello
,zsh hello
fish hello
make test
You can optionally pull all dependencies with
nix-shell --pure --run make
Released under MIT license