|
|
|
|
|
by emfle
6722 days ago
|
|
The theory says that for any two programming languages there is a constant c such that any given program can be translated from one to the other with only a c difference in size. That's just an elaborate way of saying that you can write an interpreter (of size c) for one language in another. Nevertheless, I have a hard time believing that viaweb could not be written in C short of writing a Lisp interpreter. For that to be true, the runtime compilation of s-expressions would have to be essential to the application; there would have to be no other way to write it. |
|
We had a page description language called RTML that was Lisp underneath. Users created templates in it, which we then executed to generate their pages. It is these page templates that are still stored on disk as s-expressions in the C++ version.