Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/codex-parallel-translate/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/
.mooncakes/
9 changes: 9 additions & 0 deletions tools/codex-parallel-translate/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Parallel Batch Example

Run:

```bash
moon run .
```

Adjust `parallelism` in `main.mbt` to control concurrency.
99 changes: 99 additions & 0 deletions tools/codex-parallel-translate/main.mbt

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions tools/codex-parallel-translate/moon.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "codex_parallel_batch",
"version": "0.1.0",
"deps": {
"peter-jerry-ye/codex": "0.47.2",
"moonbitlang/async": "0.14.3",
"moonbitlang/x": "0.4.38"
},
"preferred-target": "native"
}
10 changes: 10 additions & 0 deletions tools/codex-parallel-translate/moon.pkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"is-main": true,
"import": [
"peter-jerry-ye/codex",
"moonbitlang/async",
"moonbitlang/async/semaphore",
"moonbitlang/async/stdio",
"moonbitlang/x/sys"
]
}
Loading