An open API service indexing awesome lists of open source software.

https://github.com/gaprogman/hi-n

Code listings for the Esoteric Language Hi\n
https://github.com/gaprogman/hi-n

c cplusplus csharp haskell java javascript php python ruby rust

Last synced: about 1 month ago
JSON representation

Code listings for the Esoteric Language Hi\n

Awesome Lists containing this project

README

          

# Hi-n
Hi\n is an esoteric joke language created and described at https://esolangs.org

For a full description of the language, including it's history and design, see: http://esolangs.org/wiki/Hi%5Cn

# Short Description of Hi\n

Taken from the eslonag entry for Hi\n:

> The program must do the following things in this order to be considered a hi\n interpreter:
* It must instantiate the string "eat pie" exactly 98 times, using a for loop.
* It must set the variable 'x' to a string containing exactly 1,000,000 'a's.
* It must set the variable 'squiggly' to the square root of 5.
* Most importantly, it must print 'hi' with a trailing newline.

# Project
This repo will contain a listing of Hi\n in every language and framework that I am competent enough in to produce it with.

These languages will include (at least, to start with):

* C/C++ (uploaded: hi.cpp)
* C# (uploaded: hi.cs)
* Javascript (uploaded: hi.js)

## Languages included so far

| Language | File | Original Contributor |
| ---------- | --------- |----------------------|
| C | `hi.c` | `MarauderXtreme` |
| C++ | `hi.cpp` | `GaProgMan` |
| C# | `hi.cs` | `GaProgMan` |
| Java | `hi.java` | `MarauderXtreme` |
| Javascript | `hi.js` | `GaProgMan` |
| PHP | `hi.php` | `MarauderXtreme` |
| Rust | `hi.rs` | `Feliix42` |
| Haskell | `hi.hs` | `Lodifice` |

# License
I'm not the original creator of the language, but I am wrapping this repo in a GPL 2 licence. The short version (taken from https://tldrlegal.com/license/gnu-general-public-license-v2) is:

> You may copy, distribute and modify the software as long as you track changes/dates in source files. Any modifications to or software including (via compiler) GPL-licensed code must also be made available under the GPL along with build & install instructions.

A more indepth version of the licence can be found in the licence file in this repo.