HackerTrans
トップ新着トレンドコメント過去質問紹介求人

vaergawdd

3 カルマ登録 2 か月前

投稿

Show HN: Pico – a small embeddable scripting VM in C

github.com
4 ポイント·投稿者 vaergawdd·3 日前·2 コメント

Show HN: Pico, a small register-based scripting language I wrote in C

github.com
2 ポイント·投稿者 vaergawdd·先月·1 コメント

[untitled]

1 ポイント·投稿者 vaergawdd·2 か月前·0 コメント

コメント

vaergawdd
·3 日前·議論
I posted an earlier version here before as a learning project. Since then I have been moving it toward a more practical direction: v0.2.0 adds a C embedding API and builds the runtime as libpico. A host program can now create a VM, evaluate PiCo code, register native C functions, call PiCo functions from C, capture output/errors, and prevent scripts from terminating the host process.

It is a small toy language. The current public value API is intentionally limited to null, bool, and number.
vaergawdd
·先月·議論
Hi HN, I wrote this PiCo, a small register-based scripting language and virtual machine in C. This is a learning project. In the early stage I read Crafting Interpreters and learned a lot. Then I gradually changed the design toward register-based VM, module system, standard library, GC controls and etc. It is a small toy language, not a production-ready tool. I am making it complete enough that someone can play with it. I’d be happy to hear feedback.