Commit 3046d02
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 is 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 3046d02
12 files changed
Lines changed: 1547 additions & 4665 deletions
File tree
- runtime
- src
- src
- wit
Some 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