I built the smallest turing-complete combinator computer

This board is to show, discuss and archive useful combinator- and logic-creations.
Smart triggering, counters and sensors, useful circuitry, switching as an art :), computers.
Please provide if possible always a blueprint of your creation.
321freddy
Fast Inserter
Fast Inserter
Posts: 125
Joined: Fri Sep 23, 2016 10:16 pm
Contact:

I built the smallest turing-complete combinator computer

Post by 321freddy »

I've seen alot of these combinator computers already but I think they all have one issue: they're huge and therefore pretty impractical.
So I started from scratch and built this tiny computer which completely fits inside the range of just one substation :lol:
Tell me what you think of it or if you need further explanation ;)


Image
BLueprint String
Features
  • fully functional and turing-complete
  • base size of 7x11 tiles
  • ~8 powerful instructions
  • up to 15 operations/s with partial parallelization
  • 9 lines of code and 2 built-in registers (both can be easily expanded)
  • breakpoints and code injection for debugging
Example: Fibonacci numbers

Image

It calculates the first few Fibonacci numbers in order, see here for a list: http://www.maths.surrey.ac.uk/hosted-si ... table.html
It automatically resets to prevent an overflow and has an interrupt switch. To start the program rotate the inserter as seen in the gif.
Display by DaveMcW (viewtopic.php?f=193&t=19825&start=40#p150806).
Blueprint String
Layout

Image

The program itself is written inside the constant combinators on the left. Basically every module is connected to one big circuit network.
The instructions in a program consist of multiple signals which are added to the main circuit network when the program clock calls that instruction.
Every register and operation has it's own unique signal. The decoder checks for signals with values larger than 1G/smaller than -1G to determine what to do with the incoming signals.
Instructions
EDIT: How to add more program memory: http://imgur.com/a/X6nqq
EDIT2: Of course it doesn't calcualte all the fibonacci number :lol:
Last edited by 321freddy on Tue Mar 14, 2017 1:58 pm, edited 2 times in total.
User avatar
MrNardKing
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sun Mar 12, 2017 8:05 pm
Contact:

Re: I built the smallest turing-complete combinator computer

Post by MrNardKing »

I got a lot into building redstone computers in Minecraft but I don't know how i can use these circuits in Factorio yet. This post deserves more attention :D, any tips on learning about these? PM me if you want to hear about the redstone computer ;)
Roses are red
Violets are blue
Pollution smells great
321freddy
Fast Inserter
Fast Inserter
Posts: 125
Joined: Fri Sep 23, 2016 10:16 pm
Contact:

Re: I built the smallest turing-complete combinator computer

Post by 321freddy »

I tried building redstone computers myself but I never finished them because they all were in binary and really gigantic so building anything close to usable would just cause too much lag...
If you want some practical examples for combinators you can take a look at the wiki cookbook: https://wiki.factorio.com/Circuit-network_Cookbook
The Circuit network tutorial introduction is also very important if you want to build more advanced circuits: https://wiki.factorio.com/Combinator_Tu ... troduction
User avatar
MrNardKing
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sun Mar 12, 2017 8:05 pm
Contact:

Re: I built the smallest turing-complete combinator computer

Post by MrNardKing »

Thank you! I'll check those out today and see if i can build an ALU for starters :D
Roses are red
Violets are blue
Pollution smells great
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: I built the smallest turing-complete combinator computer

Post by ssilk »

While cleaning up this board I made this temporary sticky.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
User avatar
Gertibrumm
Fast Inserter
Fast Inserter
Posts: 162
Joined: Fri Jun 03, 2016 6:54 pm
Contact:

Re: I built the smallest turing-complete combinator computer

Post by Gertibrumm »

ssilk wrote:While cleaning up this board I made this temporary sticky.
really you should create a subforum "factory controllers" or "factory computer", not sticky, this creation is nice but hardly usable -> I consider it unfinished
there are a couple of creations scattered throughout the forums which would fall into this category.
I would also add ASIC equivalent "factory controllers" into this category which might not be turing complete but execute specific comands.
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: I built the smallest turing-complete combinator computer

Post by ssilk »

Well, I splitted the Show your Creations already in many boards (sometimes I think it's too much, sometimes I think it's just right), so I'll not make another board for such.

And it's temporary, I don't see a problem, cause it want to point to this not for using it but for discussion. But if you insist I can remove it sooner. :)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
UpTide
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Jun 07, 2017 12:15 am
Contact:

Re: I built the smallest turing-complete combinator computer

Post by UpTide »

Amazing! Mostly impressed by your miniature decimal display!!!
TimTravel
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Oct 09, 2017 7:49 pm
Contact:

Re: I built the smallest turing-complete combinator computer

Post by TimTravel »

Looks really cool! Is there an updated version for 0.15?
321freddy
Fast Inserter
Fast Inserter
Posts: 125
Joined: Fri Sep 23, 2016 10:16 pm
Contact:

Re: I built the smallest turing-complete combinator computer

Post by 321freddy »

TimTravel wrote:Looks really cool! Is there an updated version for 0.15?
Combinators haven't changed so it should still work the same. You can import the bluepint strings to 0.15 using the foreman mod.
judos
Filter Inserter
Filter Inserter
Posts: 267
Joined: Mon Dec 08, 2014 11:17 am
Contact:

Re: I built the smallest turing-complete combinator computer

Post by judos »

Short update. I migrated the blueprint to 0.17 (also the blueprint string was actually inofficially from the foreman mod. So now this string is importable into 0.17 and probably most future versions:

Code: Select all

0eNrtXW1vG8cR/i/8mIrO7uy7kAaw3SKw0X5JEyBBEQiUdLYPJSmBpIIYhv57j3oluTfcmdXpSGrVD0EtiXvHeZ/ZmWe+DU7HV9XlrJ4uBsffBvXZxXQ+OP7vt8G8/jwdjZc/W3y9rAbHg3pRTQZHg+losvzXeXVWn1ez4dnF5LSejhYXs8H10aCenld/DY7l9VHygNGsXnyZVIv6rP0MuP7jaFBNF/Wirm7f6OYfX0+mV5PTatY85OGo0/rzsBpXZ4tZc9jlxbhqnnJ5MW8+eTFdPr85bejfmKPB1+b/uDemeUjzNafNB+qbb/ttIJf/mVXnq8+pz5cvcbT2b9V8sp6dXdWLu1//cX298if3rwacV5Mu69XkxquBW383ibybSnAgJp2E29cz96+3mF2MT06rL6M/6+YDzV89nnTS/Pq8fnj5T/VsvjiJJOHPera4an7y8Cq3fzGUS/7Pq+UZy4Pmi9FSKsXR4OKymo1u32nwt+ZjF1eLyyvGwUsZHyzJQaaub2H10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ql8qy46ceKw4FbcdmvFWcaFE01KDrToJhXg5J9VyVTd1VALgYrlcwlZMqgANWgPKG0aAopLf6DW1oEw87gj9K1RlZxMn6k6cwH2XyRsb2KzMcckfmwKTLfZYjMe3Y1mluDVMAWoc0Qh1qDVC4f/NH2Cv74gQXLmQMB+YGF/wiai7CnfCowdVQ19flcM694qud3gs9TSmqNTz3W+D6N5othPZ1Xsyb2xiES7W47mx+/1+TivDq5+HSywpCVzplZNTo/+TK6ZeOi+drz21iq4e5idPa/k/uvcBNm0bn3n8H185TF9GNxcVKd11eTYTVuHjFrVOXyYlyhsICm/TTJ1rm7BM29MdfPq2XvnwsV93euWmnFAbKlF1J0BoL0ferj98Pi7QKkGLQl1zp0KurQqZ49bZkeUZPZn9sD5fq7Kv0lJyL9tZO0932H2a6mN162sW87v6ldMTq3j8n3V+bI4vcv+1vmSKu3ptsSvAGHJnMEy9IuOCZTcFx/gvPxABvgVKqq0WI2tnKcekOscxuuerQEv3ZjCXLY/WtukwxFDSHL9LeeTHb0uT1R7sXsdfnY5V1Yqj9Os4uRrTWKZbPIsgnoeHA6vqouZ3VDlSYXHZ1W45vrrEnz9jcZcGOd5jcMckrIYEEqZ6+v/w8KwZVF
nepp95
Long Handed Inserter
Long Handed Inserter
Posts: 64
Joined: Wed Apr 16, 2014 6:48 pm
Contact:

Re: I built the smallest turing-complete combinator computer

Post by nepp95 »

321freddy wrote: Mon Mar 13, 2017 11:30 pmEDIT2: Of course it doesn't calcualte all the fibonacci number :lol:
oh my I hear a challenge.
Post Reply

Return to “Combinator Creations”