Difference between revisions 84603278 and 87903402 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) 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. An neet example that shows that HQ9+ can be used for writing or doing simple pictures is the following: <pre> Q +++ +++ ++++++++++ +++ +++ ++++++++++ +++ +++ ++++++++++ +++ +++ ++++++++++ +++ +++ +++ +++ +++ +++ +++ +++++++++++ ++++++++++ +++ +++ +++ +++ +++++++++++ ++++++++++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ +++ +++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ +++ +++ ++++++++++ ++++++++++ +++ ++++++++ +++ +++ ++++++++++ ++++++++++ +++ +++++++++ +++ +++ +++ +++ +++ +++ +++ +++ ++ +++ ++ +++ +++ +++ ++++++++++ +++ +++ +++ +++ ++ +++ +++ +++ ++++++++++ +++ +++ +++ +++ ++ +++ +++ +++ +++ +++ +++ +++ ++ +++ ++ +++ ++++++++++ +++ +++ ++++++++++ +++++++++ ++++++++++ ++++++++++ +++ +++ ++++++++++ ++++++++ </pre> ⏎ ⏎ ==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+]] 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=87903402.
![]() ![]() 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.
|