libera/#sicl - IRC Chatlog
Search
19:04:20
ecraven
hm.. a question about parsing.. how do you deal with comments? how do you put them into the syntax tree?
19:33:22
yitzi
ecraven: Eclector can capture comments with "skipped" input. See make-skipped-input-result in the manual.
19:47:22
yitzi
You'll have to use eclector.concrete-syntax-tree or roll your own syntax representation.
19:49:35
yitzi
via declaring your own client. There is an example of me rolling my own syntax here: https://github.com/yitzchak/common-lisp-jupyter/blob/master/src/cl-jupyter/parser.lisp
21:28:39
Bike
the bytecode VM can run code in a sandbox now. i give the compiler (lambda (x) (+ x 7)). the compiler uses a clostrum cell. at runtime the VM loads from the cell. so i can do (setf (clostrum:fdefinition client *evaluation-environment* '+) #'-), do (funcall that-lambda 3), and get -4
21:28:57
Bike
i think i need a trucler client for clostrum to make it work correctly all the way through, though
22:21:34
scymtym
ecraven: the state machines in the Eclector manual are rendered with https://plantuml.com/state-diagram
3:20:14
Bike
maybe i should look for applications that could actually use a sandboxed evaluator, if there are any around already
3:21:00
beach
Many people have asked for such things in the past, but I fear they all want slightly different things.
3:24:15
Bike
yeah, i've seen them around #commonlisp a couple times, but i don't remember details. i would think it would be for a "scripting" type thing like in a game or web interface, but i don't know any concrete examples
3:24:33
Bike
i don't really need a sandbox at all - i'm working on this for cross compilation - but sandboxing is probably easier to show off