6 ms·
The simplest computer has only one instruction: https://en.wikipedia.org/wiki/One-instruction_set_computer https://en.wikipedia.org/wiki/One-instruction_set_co
by jacquesm 4y ago
The simplest computer has only one instruction:
https://en.wikipedia.org/wiki/One-instruction_set_computer https://en.wikipedia.org/wiki/One-instruction_set_computer
There is even ZISC:
https://en.wikipedia.org/wiki/No_instruction_set_computing https://en.wikipedia.org/wiki/No_instruction_set_computing
Check out brainfuck if you are into stuff like this.
- rahimnathwani 4y agoHaha these are really interesting. It seems to program with such a reduced instruction set requires one to be either a genius or a computer (i.e. generated code). I'm neither :(
- jacquesm 4y agoEither that, or a compiler with such an instruction set as the target. For instance: https://github.com/arthaud/c2bf https://github.com/arthaud/c2bf It seems like this is a frivolous subject, but it is actually quite enlightening to realize just how little is required to get something that computes, it changes how you view the whole concept of computation.
- pkaye 4y agoSomeone wrote a C compiler that generates code using only x86 MOV instructs. https://github.com/xoreaxeaxeax/movfuscator https://github.com/xoreaxeaxeax/movfuscator
- codedokode 4y agoVery interesting, never heard of this. I love Hacker News for being able to learn something new from comments. Although I cannot agree with labeling "horizontally nanocoded CPU" as "No instruction set". There are instructions, they are just low-level. I wonder, can Turing machine count as "Zero Insturction Set"? Technically there is no sequence of instructions.
- jacquesm 4y agoThat's a fair criticism. I think this article describes it better than I could and I get why they chose that name: https://www.lsmarketing.com/LSMFiles/9809-ai1.htm https://www.lsmarketing.com/LSMFiles/9809-ai1.htm