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
- Host: GitHub
- URL: https://github.com/gaprogman/hi-n
- Owner: GaProgMan
- License: gpl-2.0
- Created: 2015-08-11T17:56:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-18T12:26:07.000Z (over 9 years ago)
- Last Synced: 2025-03-05T10:14:50.846Z (11 months ago)
- Topics: c, cplusplus, csharp, haskell, java, javascript, php, python, ruby, rust
- Language: JavaScript
- Homepage: http://esolangs.org/wiki/Hi%5Cn
- Size: 20.5 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.