Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

https://dis.4chan.org/read/prog/1389479925

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.

Name: Anonymous 2014-01-12 13:06

I just read https://github.com/saniv/tsql_lisp/blob/master/lisp.sql

It's terrible and wonderful. I bet mark and sweep gc can be written as a sql query.

Don't do >>1. It's shit. The type taged cells with literal values for ints and strings are better since they can be read from sql. I think a step function for eval is possible. See picolisp for an interpreter that bootstraps pretty well on top of nothing but cons.

Name: Anonymous 2014-01-12 17:34

This is programming related.

Name: Anonymous 2014-04-05 19:44

https://dis.4chan.org/read/prog/1396649202

There are many things to find and learn in life. It's natural to want to do things other than programming alone, so go out and do them.

Name: Anonymous 2014-04-05 19:47


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List