Commit 13e6f17
committed
adopt
This removes the built-in Wasm code generator in favor of `wit-dylib`, which is
designed to be reused by interpreters for various languages. It avoids
redundant effort and leaves us with less code to maintain overall.
This isn't particularly optimized, yet. Given how `wit-dylib[-ffi]` works, we
have to acquire and release the CPython GIL a lot more frequently (e.g. for
every parameter and result of every import and export call). I haven't measured
the overhead in practice, so I don't know if it's significant; if it is, we can
make changes to `wit-dylib` to reduce the overhead. Also, `wit-dylib` currently
embeds a data section with a lot of metadata that we don't use, so we could slim
that down if needed.
Otherwise, this should not affect the developer experience in any noticeable
way.
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
update deps
Signed-off-by: Joel Dice <joel.dice@fermyon.com>wit-dylib
1 parent 2efafb6 commit 13e6f17
File tree
12 files changed
+1547
-4665
lines changed- runtime
- src
- src
- wit
12 files changed
+1547
-4665
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | | - | |
84 | | - | |
| 84 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| 16 | + | |
| 17 | + | |
0 commit comments