Re:PicoC: a very small C interpreter for scripting
by _delirium on Friday September 03, 2010 @05:26AM
(#1659013)
Well, if it's interpreted, the interpreter could sandbox the C code it's running, rather than passing it through directly to its own memory space.
[ Parent
| on HN ]
Re:PicoC: a very small C interpreter for scripting
by arnorhs on Friday September 03, 2010 @05:50AM
(#1659042)
That would kind of defy the whole premise of this thing wouldn't it? The biggest and most sought after "feature" of C is it's speed and direct memory access (and simplicity, I guess).
If you take that away, what's left?
Re:PicoC: a very small C interpreter for scripting
by _delirium on Friday September 03, 2010 @05:57AM
(#1659055)
Depends on the application, but I could see some mixture of: 1) familiarity; 2) simplicity; and 3) minimal memory usage. Browsing the source code briefly, it really does look like it's an interpreter, with C structs representing Variables, Expressions, and so on.