Difference between revisions 92683826 and 93975992 on enwiki'''HQ9+''' is a [[joke programming language]] created by [[Cliff Biffle]] that consists of only four [[command (computing)|commands]], each represented by a single character: H, Q, 9, and +. It is not [[Turing-complete]], but it is highly efficient at certain types of [[computer program|programs]]. * The <code>H</code> command prints out [[Hello world program|"Hello, world!"]] (contracted; show full) HQ9+ [[Interpreter (computing)|interpreters]] are extremely simple to write, so there have been many written. For example, [[Media:Hq9-plus.py|this]] HQ9+ interpreter was written (in [[Python (programming language)|Python]]) in around five minutes and is only 18 lines long. And, [[Media:hq9p.c|this]] HQ9+ [[compiler]] written in [[C programming language|C]] translates source code from HQ9+ to C, and is only about 40 lines long. Since HQ9+ programs do not accept input, it is not possible to write an HQ9+ interpreter or compiler in HQ9+. There is also another joke language called '''HQ9++''', also known as '''HQ9+ with Classes''', an [[object-oriented]] version created by [[David Morgan-Mar]]. This adds a new command, <code>++</code>, which increments the accumulator twice and instantiates an object. Following the principle of [[information hiding]], it is not possible to access this object. ==External links== *[http://www.cliff.biffle.org/esoterica/hq9plus.html HQ9+] *[http://www.dangermouse.net/esoteric/hq9plusplus.html HQ9++] *[http://www.almnet.de/esolang/hq9plus.php online HQ9+ interpreter] *[http://code.eachmapinject.com/esoteric/hq9plus.rb HQ9+ interpreter in] [[Ruby programming language|Ruby]] [[Category:Esoteric programming languages]] [[cs:HQ9+]] [[es:HQ9+]] [[it:HQ9+]] [[ja:HQ9+]] [[ko:HQ9+]] [[pl:HQ9+]] [[ru:HQ9+]] All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://en.wikipedia.org/w/index.php?diff=prev&oldid=93975992.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|