Name: Anonymous 2014-01-12 12:52
Interesting idea saniv. You can certainly represent the state of the heap as a database. In fact, if you use the ``everything is a cons cell'' implementation, you could just use a single table full of cells, where car and cdr are ids of other cells, or nil.
The hard part is expressing the read-eval-print loop. I don't think you can do indefinite iteration in sql, but maybe I'm wrong. If not, you could probably create a sql statement where you call once and it performs one step of execution. And then you can repeatedly execute this until it returns a halt value.
The hard part is expressing the read-eval-print loop. I don't think you can do indefinite iteration in sql, but maybe I'm wrong. If not, you could probably create a sql statement where you call once and it performs one step of execution. And then you can repeatedly execute this until it returns a halt value.