lvg
lvg copied to clipboard
scripting issues
tcc: tcc needs heavy modifications for web, needs modifications to sandbox file io, ABI issues.
picoc: picoc do not supports floats (only doubles), function pointers, slow.
Possible alternatives:
- https://github.com/kungfooman/EiC-C-Interpreter
- https://github.com/EarlGray/c4
- https://github.com/jnz/q3vm
Ideally we need script->bytecode translator (reuse AVM1?), so player needs support only bytecode, easy sandbox, normal speed, compiler fixes do not affects already installed players.
Useful links: https://github.com/r-lyeh-archived/scriptorium https://github.com/dbohdan/embedded-scripting-languages