News for hackers. Stuff that matters.
Re:HexLogic – Logic gates in a hexagon grid by klodolph on Sunday October 05, 2014 @04:29PM (#8413345)
How to make an oscillator: Create a triangle out of XOR cells. It will all be white. Put a power cell next to the triangle.

A simpler oscillator consists of an XOR cell in the center, with a power cell below it, and two OR cells: one above, and one above and to the right.

Re:HexLogic – Logic gates in a hexagon grid by JoshTriplett on Sunday October 05, 2014 @05:00PM (#8413436)
Fun to play with, but I haven't yet found how to create a wire that carries a signal around a corner without introducing instability or oscillation. A series of 'or' or 'xor' gates will carry a signal from input to output, but the other two output directions from any of those gates lead to cells that feed into the previous cell, so placing either an 'or' or 'xor' there introduces feedback.

The inability to change the direction of a signal makes it difficult to create non-trivial circuits. I can create an oscillator for use as a clock signal (3-on-3-off that can be disturbed into a 1-on-1-off by placing and removing an adjacent cell). The outputs of those together would produce a two-bit counter (00, 01, 10, 11), and combining those bits with logic gates would produce a 2-on-2-off oscillator or a 1-on-3-off oscillator; however, I haven't yet figured out how to bring two outputs together.

Re:HexLogic – Logic gates in a hexagon grid by FreeFull on Sunday October 05, 2014 @05:24PM (#8413506)
A big hexagon shape made out of xor gates imitates a xor gate, except that the inputs and outputs are nicely separated. You can omit the inputs as you want.
Re:HexLogic – Logic gates in a hexagon grid by JoshTriplett on Sunday October 05, 2014 @05:40PM (#8413547)
Thanks, that works perfectly. Seems to work for 'o' and '+' as well: surround anything with a hexagon of xor gates and it will behave the same on a larger scale, as long as you don't feed it signals too quickly.
Re:HexLogic – Logic gates in a hexagon grid by guipsp on Monday October 06, 2014 @03:51AM (#8414743)
Here's a supersized XOR gate made out of supersized XOR gates.
Re:HexLogic – Logic gates in a hexagon grid by anubiann00b on Sunday October 05, 2014 @05:16PM (#8413478)
You can switch direction. Try putting 4 xor gates in a diamond shape ;)
Re:HexLogic – Logic gates in a hexagon grid by anubiann00b on Sunday October 05, 2014 @05:17PM (#8413484)
Also try a "bone" shape.
Re:HexLogic – Logic gates in a hexagon grid by poseid on Monday October 06, 2014 @11:00AM (#8416205)
was playing with a similar idea for rendering small electronic boards (= Arduino type) last weekend, mainly to help with pinouts of boards: http://pinboardjs.divshot.io/ - what do you think, might this be useful to you?
Re:HexLogic – Logic gates in a hexagon grid by spb on Sunday October 05, 2014 @05:46PM (#8413555)
Interesting, but I prefer the simpler, emergent logic of Wireworld: https://en.wikipedia.org/wiki/Wireworld
Re:HexLogic – Logic gates in a hexagon grid by wolfgke on Monday October 06, 2014 @08:40AM (#8415545)
Re:HexLogic – Logic gates in a hexagon grid by marktangotango on Sunday October 05, 2014 @09:21PM (#8413976)
Re:HexLogic – Logic gates in a hexagon grid by anubiann00b on Sunday October 05, 2014 @09:40PM (#8414005)
Yeah, that's the original. But it's a Java applet, this is a Javascipt Canvas implementation.
Re:HexLogic – Logic gates in a hexagon grid by c2the3rd on Monday October 06, 2014 @02:34AM (#8414540)
Has anyone managed to implement an and gate out of this? {xor, or, true} is a universal logic set, so it it theoretically possible. A not gate is easy, but the positioning of the inputs and outputs makes and gates tricky.

For those who are rusty on boolean algebra or just curious:

not A = A xor true

A and B = ((A xor true) or (B xor true)) xor 1

Re:HexLogic – Logic gates in a hexagon grid by sgentle on Monday October 06, 2014 @03:24AM (#8414668)
Here's my attempt using the "ring of xor" technique posted elsewhere: https://imgur.com/xGHmN9c

It follows the hex structure of the other gates (inputs down and diagonally up, outputs up and diagonally down). It's got a radius 4 (the 5th blocks being the example inputs and outputs) but I think you could probably do better with some judicious bit trickery in the middle.

Edit: Radius 3: https://i.imgur.com/BaI6YLj - I wonder if 2 is possible?

Re:HexLogic – Logic gates in a hexagon grid by z3ugma on Sunday October 05, 2014 @04:03PM (#8413284)
Looks pretty. Are there instructions anywhere? Examples provided?
Re:HexLogic – Logic gates in a hexagon grid by bajsejohannes on Sunday October 05, 2014 @07:52PM (#8413807)
There are instructions on the bottom of the page. The github page also has examples: https://github.com/anubiann00b/HexLogic
Re:HexLogic – Logic gates in a hexagon grid by stormbrew on Sunday October 05, 2014 @04:40PM (#8413382)
Agreed. I have to admit, I'm pretty lost as to what interesting things I can do with this.
Re:HexLogic – Logic gates in a hexagon grid by Ygg2 on Monday October 06, 2014 @12:02AM (#8414251)
It's possible to create hex shapes that flicker without power! Basically a stable loop that acts as a super-conducting loop.
Re:HexLogic – Logic gates in a hexagon grid by anubiann00b on Sunday October 05, 2014 @09:40PM (#8414006)
The only way to figure it out is to mess around with it.
Re:HexLogic – Logic gates in a hexagon grid by kolev on Sunday October 05, 2014 @04:22PM (#8413331)
Pretty although unsure at this point on how practical it is, but definitely a great idea!
Re:HexLogic – Logic gates in a hexagon grid by sand500 on Sunday October 05, 2014 @05:49PM (#8413563)
Didn't not already make this years ago.