News for hackers. Stuff that matters.
Re:Excel Turing Machine by rwg on Friday September 20, 2013 @10:06AM (#6417750)
Having implemented AES and a few other algorithms in "pure formula" Excel, I fully support seeing more things implemented in Excel!

One of the biggest things to wrap your head around is that cells in Excel are write-once, read many. This forces you to unroll all of your loops, and you generally end up with a giant state machine, with each state occupying a row and depending on the state of the previous row.

Re:Excel Turing Machine by zeckalpha on Friday September 20, 2013 @10:10AM (#6417773)
So Excel is a pure functional language?
Re:Excel Turing Machine by rwg on Friday September 20, 2013 @10:34AM (#6417926)
Yep. Additionally, there are no user-defined functions, and the limit on the length of the "code" that makes up a cell is low enough that you occasionally bump into it when trying to "program" in Excel.

Excel also has a tendency to get crashy when you have a very complex cell dependency tree...

Re:Excel Turing Machine by Monkeyget on Saturday September 21, 2013 @05:09AM (#6422421)
I wouldn't call it functional. It's dataflow programming : http://en.wikipedia.org/wiki/Dataflow_programming
Re:Excel Turing Machine by jonahss on Friday September 20, 2013 @11:55AM (#6418505)
Cool. I was working on simulating turing machines in excel last year and got an a^ib^i acceptor working but never finished creating a full universal turing machine. https://github.com/Jonahss/Spreadsheets-Without-Macros

I create a circular dependency and set Microsoft excel to evaluate circular dependencies through one iteration. Every time you tell it to calculate, it steps through another clock cycle. This way I got a cool animated tapehead.

Re:Excel Turing Machine by willvarfar on Friday September 20, 2013 @07:38AM (#6417086)
Somewhat related, my friend's enigma machine in an excel spreadsheet: http://williamedwardscoder.tumblr.com/post/19946053957/enigm...
Re:Excel Turing Machine by gruseom on Friday September 20, 2013 @01:02PM (#6418981)
This is very cool! I've sometimes wondered about doing that.

An obvious question is whether this suffices to show Turing completeness. I think the answer is no: because Excel has a finite number of cells, there are programs that this Turing machine won't have enough cells for. To get around that, you'd have to do something clever with iterative calcs (i.e. circular references) that effectively reuse the same cells behind the scenes. VBA is out of the question, of course. :)

Re:Excel Turing Machine by triplesec on Friday September 20, 2013 @11:23AM (#6418286)
Re:Excel Turing Machine by PLenz on Friday September 20, 2013 @11:22AM (#6418269)
And the bandwidth from HN has killed their server...
Re:Excel Turing Machine by harrytuttle on Friday September 20, 2013 @05:55AM (#6416812)
Just because you can, doesn't mean it's right ;)

Nice work by the way. It's quite amazing the odd things you can do in Excel.

Re:Excel Turing Machine by TuringTest on Friday September 20, 2013 @08:00AM (#6417145)
Since Excel is Turing complete, you can do ''every possible calculation'' on it ;-)