Skip to content

Commit d3394ff

Browse files
committed
update readme
1 parent dfee1eb commit d3394ff

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

app/terminal/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,20 @@ EditorComponent コンポーネントを提供します。
124124
125125
## 各言語の実装
126126
127-
### Pyodide (Python)
127+
### Worker
128128
129-
Pyodide を web worker で動かしています。worker側のスクリプトは /public/python.worker.js にあります。
129+
web worker でコードを実行する実装です。worker側のスクリプトは /public にあります。
130+
workerとの通信部分は言語によらず共通なので、それをworker/runtime.tsxで定義しています。
131+
Contextは言語ごとに分けて(worker/pyodide.ts などで)定義しています。
130132
131-
### Wandbox (C++)
133+
Pythonの実行環境にはPyodideを使用しています。
134+
PyodideにはKeyboardInterruptを送信する機能があるのでinterrupt()でそれを利用しています。
135+
136+
Rubyの実行環境にはruby.wasmを使用しています。
137+
138+
JavaScriptはeval()を使用しています。runFiles()のAPIだけ実装していません。
139+
140+
### Wandbox
132141
133142
wandbox.org のAPIを利用してC++コードを実行しています。C++以外にもいろいろな言語に対応しています。
134143

0 commit comments

Comments
 (0)