Owen Shepherd | 👋 Hello, Nice to meet you all! I'm Owen, I write compilers and things, with a focus on compile-time performance. Let me preface this by saying I know there's a feature freeze, and I'm happy if what I'm working on remains a personal project until that changes :) Aaaanyway, I'm working on adding bytecode-interpreter to nix/lix (whichever project(s) want to upstream it). The plan for MVP, is leave everything as-is upto lixexpr, and add a writeBytecode function to Expr. This will write out bytecode as C-abi POD, and then... well there will be a bytecode interpreter :) I'm gonna write that in C, probably, but because it's C POD, there's nothing stopping the interpreter being in rust, or any other language... Bytecode mode will enabled by some kind of command-line flag, or maybe a config value in nix.conf. This might end up being slower than the current tree-walk evaluator, in which case... experiment complete.
Anything else I should keep in mind, assuming I want to maximise my changes of upstreaming this? Any thoughts in general?
| 20:46:50 |