semioverse / play

https://semiover.se
Other
8 stars 1 forks source link

Weaving Logic Gates/Circuits as Oxel Graphs #20

Open mondano opened 1 year ago

mondano commented 1 year ago

Each node would represent a logic gate, would take inputs from some nodes and pass their outputs to other nodes. Screenshot from 2023-07-18 11-53-53

true (1) : can be thought of as propagating a true value through the graph false (0) : can be thought of as propogating false to the nodes it is connected to.

The advantage of this is that you can make cycles: false [0] -> not -> [0/1 alternating between the two] -> not Thus we can create a makeshift register. Screenshot from 2023-07-18 11-54-12 Screenshot from 2023-07-18 11-54-18

The value (0/1) between two nodes doesn't change until something around them changes, in other words this is a propagator network. So we can keep some values as memory and modify them over time: Screenshot from 2023-07-18 11-54-52 Screenshot from 2023-07-18 11-55-29

Now we only need to take one boolean input, use that to modify register values and only then accept another input. This allows us to simulate memory using lofic gates, and control flow can be done by abusing the updating mechanic. Screenshot from 2023-07-18 11-55-54 Screenshot from 2023-07-18 11-56-05

Image

Image

Source for wonderful introduction to the concept and images: https://youtu.be/Fg5En6pbsDA

mondano commented 1 year ago

https://medium.com/@stanleydukor/neural-representation-of-and-or-not-xor-and-xnor-logic-gates-perceptron-algorithm-b0275375fea1