GithubHelp home page GithubHelp logo

dpdmancul / hello-world Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 11 KB

An "Hello world!" which works in 17 languages. Mirror of https://gitlab.com/DPDmancul/hello-world

License: MIT License

Python 56.64% Shell 30.37% Makefile 5.47% Nix 7.52%
hello world hello-world challenge

hello-world's Introduction

Hello world!

Davide Peressoni ([email protected])

An "Hello world!" which works in:

  1. (Literate) Agda
  2. C
  3. C++
  4. Objective-c
  5. CoffeeScript
  6. Brainf***
  7. (Literate) Haskell
  8. Julia
  9. Nim
  10. Perl
  11. PHP
  12. Python
  13. Raku
  14. Ruby
  15. Rust
  16. *sh (sh, bash, zsh, ...)
  17. fish

Explanation

See How does it work?

Usage

  1. temp=$(mktemp --directory) && cp hello "$temp/hello.lagda" && cd "$temp" && agda --compile hello.lagda && ./hello
  2. gcc -x c hello && ./a.out
  3. g++ -x c++ hello && ./a.out
  4. clang -x objective-c hello && ./a.out
  5. coffee hello
  6. ./brainf.py hello
  7. temp=$(mktemp --suffix=.lhs) && cp hello "$temp" && runghc "$temp"
  8. julia hello
  9. temp=$(mktemp --suffix=.nim /tmp/tmpXXX) && cp hello "$temp" && nim c -r "$temp"
  10. perl hello
  11. php hello
  12. python3 hello
  13. raku hello
  14. ruby hello
  15. rustc hello -o hello.out && ./hello.out
  16. sh hello, bash hello, zsh hello
  17. fish hello

Automatic test

make test

You can optionally pull all dependencies with

nix-shell --pure --run make

License

Released under MIT license

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.