Skip to content

Commit 6788745

Browse files
committed
Merge branch '0_6_3' of https://github.com/rustq/3body-lang into 0_6_3
2 parents 8c9667f + e41e552 commit 6788745

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

README.md

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -227,49 +227,21 @@ Able to use threading to create and handle threads.
227227
```rust
228228
给 cx 以 程心();
229229

230-
给 星环公司 以 法则(name, y, limit) {
231-
给 掩体纪年 以 y;
232-
面壁 (掩体纪年 <= limit) {
233-
冬眠(1000);
234-
广播([name, 掩体纪年]);
235-
掩体纪年 = 掩体纪年 + 1;
236-
}
237-
}
238-
239230
cx.thread(星环公司, ["掩体工程", 0, 11])
240-
冬眠(5000)
241231
cx.thread(星环公司, ["研制曲率飞船", 5, 11])
242-
冬眠(6000)
243-
244-
// > ["掩体工程", 0]
245-
// ...
246-
// > ["研制曲率飞船", 5]
247-
// > ["掩体工程", 5]
248-
// > ["研制曲率飞船", 6]
249-
// > ["掩体工程", 6]
250232
```
251233
252234
#### Threads Await
253235
254236
```rust
255237
给 cx 以 程心();
256238

257-
给 星环公司 以 法则(name, y, limit) {
258-
给 掩体纪年 以 y;
259-
面壁 (掩体纪年 <= limit) {
260-
冬眠(1000);
261-
广播([name, 掩体纪年]);
262-
掩体纪年 = 掩体纪年 + 1;
263-
}
264-
}
265-
266-
给 秘密研究 以 cx.thread(星环公司, ["重启光速飞船的研究", 11, 66])
239+
给 秘密研究 以 cx.thread(星环公司, ["重启光速飞船的研究", 11, 66]);
267240
cx.join(秘密研究)
268-
269-
// > ["重启光速飞船的研究", 11]
270-
// > ["重启光速飞船的研究", 12]
271241
```
272242
243+
⚛️ Example threading of "星环公司" in [runs/11302243115](https://github.com/rustq/3body-lang/actions/runs/11302243115/job/31437809217)
244+
273245
## 🤗 LLM
274246
275247
三体编程语言可以通过 "智子工程" 加载本地大语言模型进行推理。

0 commit comments

Comments
 (0)