feat(foreign): persistent Python/Node kernels and state bridge
F3/F3.5: session_open/eval/close/list, session_set/get/names, Python and Node bootstraps, strict serial protocol, per-session timeout, crash isolation, drop cleanup, and node/bash gold tests (python conditional).
This commit is contained in:
1 parent
7859170aec
commit
050d71927f
12 files changed
+1122
-8
No files matched your search
@@ -0,0 +1,18 @@
|
||||
---
|
||||
title: foreign python session
|
||||
import foreign:lib/foreign.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
**会话 = > foreign.session_open lang="python"**
|
||||
**设值 = > foreign.session_eval id=`会话` source="x = 41"**
|
||||
**求值 = > foreign.session_eval id=`会话` source="x + 1"**
|
||||
|
||||
> print text=[result](`求值`)
|
||||
|
||||
**> foreign.session_set id=`会话` name="y" value=5**
|
||||
**取值 = > foreign.session_get id=`会话` name="y"**
|
||||
|
||||
> print text=`取值`
|
||||
**> foreign.session_close id=`会话`**
|
||||
Reference in new issue
Block a user