Re:Making a virtual machine in Google Sheets
by grenoire on Wednesday July 05, 2017 @10:12AM
(#14702510)
I am 99% sure you cannot do that. Cross-referencing cell loops are detected and prohibited, so you cannot even make a tape reader. Also, I'm not sure if you can set cell formulas with formulas either.
[ Parent
| on HN ]
Re:Making a virtual machine in Google Sheets
by SonOfLilit on Wednesday July 05, 2017 @10:21AM
(#14702586)
Well, I already have parentheses parsing working, which is the biggest challenge. The rest should be really easy.
Of course I'm working on Brainfk, both because of how cool it is and how simple for a Turing Complete VM. Also, because I have a lot of practice implementing it (https://www.slideshare.net/AurSaraf/virtual-machines-and-bra...)
https://docs.google.com/spreadsheets/d/1g3-FZBnkDuLqFYOmk457...
Stay tuned.
Re:Making a virtual machine in Google Sheets
by briansteffens on Wednesday July 05, 2017 @11:20AM
(#14703081)
Awesome! I originally wanted to use only cell formulas to do this but couldn't figure out how to modify cell contents from other cells. Can't wait to see what you put together.
Re:Making a virtual machine in Google Sheets
by SonOfLilit on Wednesday July 05, 2017 @11:46AM
(#14703351)
I'd love to hear your thoughts. It's done! https://news.ycombinator.com/item?id=14703098