Difference between revisions 102211364 and 102211419 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 allows highly efficient programs, as long as they need do nothing except increment their accumulator, print "Hello, world", display their source, or output the lyrics 99 Bottles of Beer.

(contracted; show full)

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++''',<ref>{{cite web|url=http://www.cliff.biffle.org/esoterica/hq9plus.html|title=HQ9++|work=DM's Esoteric Programming Languages|date=[[2007-01-12]]|
accessdate=2007-01-21|first=David|laste=Morgan-Mar}}</ref> 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.
==References==
<references />
==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+]]
[[ko:HQ9+]]
[[it:HQ9+]]
[[ja:HQ9+]]
[[pl:HQ9+]]
[[ru:HQ9+]]