跳转到内容
查看源码

publish自动生成

分类:创作协议 · Session

编译、校验、准备一个 Kernel,然后整体原子替换;只改变运行中的世界,不改文件。

Compiles, validates and prepares a Kernel, then swaps it in whole; answered once it stands. The running world changes, not a file: the document it came from is left as it is.

{"id": 1, "op": "publish", "source": "kernel demo.x@1 { … }"}
名称 类型 必需 说明
source string 是 a document with one Kernel
expect "absent" | "any" | integer 否 absent for a new Kernel, a generation kernels answered, or any; any when not given

id, generation; and when it computes a <~ port’s initial source, keeps (those node.ports, which keep what they committed) and reset (the requests that start them from the new law)