@SuperJedi224 sounds fun, but I'd rather do something else within Minecraft, such as making a Brainfuck interpreter in regular redstone, or making a CPU. Maybe I'm not creative enough to play Minecraft :P
I accidentally printed out the contents of an exe file (using args[0] instead of args[1]) and it kept printing out those characters that make noises, so my computer kept beeping super loud and I couldn't get the program to stop. My mom came and said "is that some type of alarm" and I was like "It's an alarm that I'm an idiot.".
#define TRUE 0 // dumbass
The person who did this explained himself some years later - most (if not all) C library functions return 0 as an indication that everything went well. So, he wanted to be able to write code like:
if (memcpy(buffer, packet, BUFFER_SIZE) == TRUE) {
; // rape that packe...
Factorial? Without using the soon-to-be-implemented factorial function, then I think this is the shortest: nd2-[i1+*]. Plus some more chars at the beginning to handle inputs of 0 and 1.
SIGINT Quine
quinecode-golf
Quining has a long history - if you haven't heard of it, click the tag and read up a little on it.
Your Task
Output an infinite series of 1s UNTIL SIGINT is called. When it is called, output the program source.
Rules
It must be a valid quine:
No reading source...
^ Can I have some love mild hatred eventually leading to a good challenge in the form of reviews?
> Despite my occasionally incorrect spelling or grammar, once upon a time I wanted to be a book editor. EMPHASIS ON THIS >>(THIS WAS A LONG TIME AGO.)<<
Making a VM: If someone tries to get a value from a register that doesn't exist, should I create the register on the fly or make them declare the register beforehand?