|
|
|
HQ9~, or HQ9Tilde, is a half-joke language with 14 instructions. |
|
HQ9~, or HQ9Tilde, is a half-joke language with 14 instructions. |
|
|
|
|
|
Although the language has a little of serious interest by itself, it can be useful to implement HQ9~ in a new esoteric programming language, since doing so proves that all the tasks above, except the quine, are possible. (Implementing Q proves instead that a cat program is possible.) HQ9~ was created in 2024 by somebody who wants to stay as "Aquafish" here. |
|
Although the language has a little of serious interest by itself, it can be useful to implement HQ9~ in a new esoteric programming language, since doing so proves that all the tasks above. HQ9~ was created in 2024 by somebody who wants to stay as "Aquafish" here. |
|
|
|
|
|
HQ9~ is case-sensitive, so "Q" will not work the same as "q". |
|
HQ9~ is case-sensitive, so "Q" will not work the same as "q". |
|
|
|
|
|
This is the source code of HQ9~: |
|
This is the source code of HQ9~, written on Python: |
|
|
|
|
|
<pre> |
|
<pre> |
|
|
|
import os |
|
import os |
|
import random |
|
import random |
|
|
import requests # type: ignore |
|
|
|
|
|
response = requests.get('https://api.ipify.org') |
|
|
public_ip = response.text |
|
|
|
|
|
os.system('cls') |
|
os.system('cls') |
|
print("HQ9~ (or HQ9Tilde) - The Ultimate Dumbest Programming Language Ever Based Off HQ9+") |
|
print("HQ9~ (or HQ9Tilde) - WHAT THE SKULL IS THIS CONINESS") |
|
print("Also use \"help\" for very useful information") |
|
print("Also use \"help\" for very useful information") |
|
time.sleep(4) |
|
time.sleep(4) |
|
|
ipgrabber = input("Warning: This command might print out your IP address (it cannot use it, as it is an offline program). Do you want to enable safe mode? (Default option: no. Say 'yes' to enable it) ") |
|
|
hi = None |
|
|
if ipgrabber == "yes": |
|
|
hi = True |
|
|
else: |
|
|
hi = False |
|
|
|
|
os.system('cls') |
|
os.system('cls') |
|
|
|
|
|
|
|
|
|
|
|
dumbjokes = [ |
|
dumbjokes = [ |
|
|
"existing is bonish", |
|
"Every 60 seconds in Africa, a minute passes. Together, we can stop this!", |
|
|
|
"Know what? I'm confused.", |
|
"What do you call a really stupid fish? A dumb bass", |
|
|
|
"did you know this on battle with air", |
|
"A guy was in high school for 10 years. He must have been really stupid, but not as stupid as the guy who was there 20 years. The longer you go to high school, the dumber you are. Thats why I never went.", |
|
|
|
"max skullish bro thought this was a joke" |
|
"Arguing with strangers online is like wrestling sharks. Even if you win, it was a really stupid thing to do.", |
|
|
"Why can’t politicians do algebra? They can’t solve the inequalities." |
|
|
] |
|
] |
|
|
|
|
|
|
|
elif user == "q": |
|
elif user == "q": |
|
# the q stands for "Q". isn't that obvious |
|
# the q stands for "Q". isn't that obvious |
|
print("Q") |
|
_='_=%r;print (_%%_)';print (_%_) |
|
elif user == "9": |
|
elif user == "9": |
|
# the 9 stands for "99" |
|
# the 9 stands for "99" |
|
|
|
# the p stands for "porcupine" |
|
# the p stands for "porcupine" |
|
print("Porcupine on your head") |
|
print("Porcupine on your head") |
⚫ |
|
|
|
# the d stands for "dragon" |
|
|
print("dragon appears out of thin air") |
|
|
elif user == "c": |
|
elif user == "c": |
|
# the c stands for "cat" |
|
# the c stands for "cat" |
|
|
|
elif user == "b": |
|
elif user == "b": |
|
# the b stands for "binary" |
|
# the b stands for "binary" |
|
|
print("01101101 01100001 01111000 00100000 01110011 01101011 01110101 01101100 01101100 01101001 01110011 01101000") |
|
print("1000111 1100101 1110100 100000 1000010 1101001 1101110 1100001 1110010 1111001 100000 1000010 1100001 1101110 1100001 1101110 1100001 100111 1100100 100001") |
|
|
elif user == "s": |
|
elif user == "s": |
|
# the s stands for "system" |
|
# the s stands for "system" |
|
raise Exception("Lil bro thought that they could exploit the system? Nuh uh!") |
|
raise Exception("Bruddyo ain't smart bruh") |
|
elif user == "r": |
|
elif user == "r": |
|
# the r stands for "random" |
|
# the r stands for "random" |
|
|
|
print(values[variables.index(user)]) |
|
print(values[variables.index(user)]) |
|
else: |
|
else: |
|
print("lil bro first assign the variable dumbass") |
|
print("bruddyo first assign the variable :wiltedroseemoji:") |
|
elif user[0] == "y": |
|
elif user[0] == "y": |
|
# the y stands for "your" |
|
# the y stands for "your" |
|
|
|
elif user == "help": |
|
elif user == "help": |
|
print("h helps you to write your first program!", |
|
print("h helps you to write your first program!", |
|
"q prints out itself!", |
|
"q is obvious", |
|
"9 sings a pretty good song!", |
|
"9 decelerates!", |
|
"+ accelerates!", |
|
"+ accelerates!", |
|
"p tells you what is on your head!", |
|
"p tells you a secret", |
|
"d summons a dragon!", |
|
"c summons cats", |
|
"c prints out the cutest ASCII art ever!", |
|
"b prints out uhhhhhhh tf is this?", |
|
"b prints out something you would like to decipher!", |
|
"s updates hq9~", |
|
"s releases HQ9+++ into the internet!", |
|
"r tells you a joke", |
|
"r tells you the funniest joke ever!", |
|
"v [variable] = [value] makes you be able to create things", |
|
"v [variable] = [value] makes you a god!", |
|
"o [variables] gives you a list of what youve made", |
|
"o [variables] makes you a god publicly!", |
|
"y [value] makes you (un)funny", |
|
"y [value] makes you the funniest person ever!", |
|
"help is very helpful") |
|
"help helps you!") |
|
|
else: |
|
else: |
|
⚫ |
|
|
print("Who do you think you are, little bro? Get out while you still can, your IP is 111.222.333.444!") |
|
|
|
print("bro can't even read help, anyway your ip used to be here") |
|
|
else: |
|
|
print(f"bro can't even read help, anyway your ip is {public_ip}") |
|
except Exception as e: |
|
except Exception as e: |
|
print(f"lil bro is so dumb they just casually caused an error in the interpreter dude btw the error is some {e} thingy idk what it is") |
|
print(f"how to fuck did you cause an error in the fucking interpreter btw the error is some shit like {e}") |
|
</pre> |
|
</pre> |
|
|
|
|
|
==Functions== |
|
==Functions== |
|
|
|
|
|
There are 14 functions in HQ9~, out of which 12 are joke and 2 are not. |
|
There are 13 functions in HQ9~. |
|
|
|
|
|
h - Outputs "Hello World!" |
|
h - Outputs "Hello World!" |
|
|
|
q - Outputs "Q" |
|
q - Outputs "Q" |
|
|
|
|
|
9 - Outputs "99 bottles of beer on the wall" |
|
9 - Outputs the "99 bottles of beer on the wall" song |
|
|
|
|
|
+ - Accelerates a number by 1. Example - first 1, then 2, then 3, and it goes on. |
|
+ - Accelerates a number by 1. Example - first 1, then 2, then 3, and it goes on. |
|
|
|
|
|
p - Outputs "Porcupine on your head" |
|
p - Outputs "Porcupine on your head" |
|
|
|
⚫ |
d - Outputs "dragon appears out of thin air" |
|
|
|
|
|
|
c - Outputs a cat ASCII art. |
|
c - Outputs a cat ASCII art. |
|
|
|
|
|
b - Outputs "1000111 1100101 1110100 100000 1000010 1101001 1101110 1100001 1110010 1111001 100000 1000010 1100001 1101110 1100001 1101110 1100001 100111 1100100 100001", which is "Get Binary |
|
b - Outputs "01101101 01100001 01111000 00100000 01110011 01101011 01110101 01101100 01101100 01101001 01110011 01101000", which is "max skullish" in Binary. |
|
Banana'd!" in Binary. |
|
|
|
|
|
|
s - Raises a Python error, which is "Lil bro thought that they could exploit the system? Nuh uh!" |
|
s - Raises a Python error, which is "Bruddyo ain't smart bruh" |
|
|
|
|
|
r - Outputs a random joke. |
|
r - Outputs a random "joke". |
|
|
|
|
|
v [name] = [value] - Does a variable. The 1 serious function. |
|
v [name] = [value] - Creates a variable. |
|
|
|
|
|
o [name] - Outputs a variable. The 2 serious function. |
|
o [name] - Outputs a variable. |
|
|
|
|
|
y [value] - Appends another random joke to the random joke list. |
|
y [value] - Appends another random joke to the random joke list. |
|
|
|
|
|
help - Outputs instructions with the functions, sometimes wrong, sometimes half-right, sometimes right. |
|
help - Outputs instructions of the functions, usually wrong. |
|
|
|
|
|
===Default Jokes=== |
|
===OG Functions=== |
|
|
|
|
|
|
In the first release of HQ9~ there used to be the function: |
|
Every 60 seconds in Africa, a minute passes. Together, we can stop this! |
|
|
|
|
|
⚫ |
d - Outputs "dragon appears out of thin air" . Reason for removal was "was unreasonable". |
|
|
|
|
|
===Default Jokes=== |
|
|
|
|
|
|
existing is bonish |
|
What do you call a really stupid fish? A dumb bass |
|
|
|
|
|
|
|
Know what? I'm confused. |
|
A guy was in high school for 10 years. He must have been really stupid, but not as stupid as the guy who was there 20 years. The longer you go to high school, the dumber you are. Thats why I never went. |
|
|
|
|
|
|
|
did you know this on battle with air |
|
Arguing with strangers online is like wrestling sharks. Even if you win, it was a really stupid thing to do. |
|
|
|
|
|
|
|
max skullish bro thought this was a joke |
|
Why can’t politicians do algebra? They can’t solve the inequalities. |
|
|
|
|
|
|
[[Category:Languages]] |
|
[[Category:Languages]] |
|
|
|
[[Category:Implemented]] |
|
[[Category:Implemented]] |
|
[[Category:Total]] |
|
[[Category:Total]] |
|
[[Category:Output only]] |
|
|
[[Category:Unusable for programming]] |
|