Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>This is the magic of graph coloring and enables me to solve multiple contact constraints simultaneously without a race condition.

<TANGENT> This hits me, like a ton of bricks, as one of the most elegant ways to describe why I add 2 phases of clocking ("like colors on a chessboard" is the phrase I've been using) to my BitGrid[1] hobby project.

I wonder what other classes of problems this could solve. This feels oddly parallel, like a mapping of the Langlands program into computer science.[2]

[1] https://esolangs.org/wiki/Bitgrid

[2] https://en.wikipedia.org/wiki/Langlands_program



That looks cool. I want to raise some nits, though:

- If they're sending and receiving along diagonals, aren't those actually bishop-neighbors, not rook-neighbors?

- Think you meant Crypt of the Necro _dancer_

- The grid in the background makes it hard to discern whether they also send to rook-neighbors

- Secret 4th nit - Wait, are the cells just rotated 45 in the diagram and not in the prose?


> aren’t those actually bishop-neighbors, not rook-neighbors?

There are 2 grids, so it depends on your frame of reference. The node connections are oriented 90 degrees to the shape of the node in the picture, which means rook neighbors is accurate relative to the nodes. The background is off by 45 degrees, so node connections relative to the background grid are diagonal, or bishop, moves.


I didn't write it up at Esolang, someone else did. I wouldn't have rotated it 45 degrees.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: