2 ms·
In the 2003-2005 time frame I worked on a new cellphone project. I had a C++ library of Lisp-like objects which ended up used in a few places, like for inter-pr
by kazinator 3y ago
In the 2003-2005 time frame I worked on a new cellphone project. I had a C++ library of Lisp-like objects which ended up used in a few places, like for inter-process communication between several pieces, like between the mail transport and home screen p lugin. A programmer working on an IMAP4 transport noticed that it used Lisp and my stuff could be applied to it almost directly, including a pattern matching function I had, which turned out to work fine for classifying and validating IMAP4 responses.
It was not ever meant to be a language, but I eventually added function definition and evaluation which gave rise to VoqLisp. I have VoqLisp bindings to various APIs, and documented it; it ended up used by QA for testing.
VoqLisp had dynamic scope ("deep binding"), but with lexical capture. The initial dynamic frames of top-level forms, and of invoked functions, were marked with a lexical contour bit. There was a lambda which captured dynamic frames up to the closest containing lexical contour bit. When a lambda was invoked, the captured, lexically-delimited dynamic environment was inserted around it, after the parameter bindings, before the caller's dynamic environment. This made it possible for tests to use "let over lambda" to customize global parameters, and then run the lambda with the customized parameters in a separate thread.