extism / python-pdk

Write Extism plugins in Python
https://extism.org
BSD 3-Clause "New" or "Revised" License
12 stars 1 forks source link

Choosing a path b/w RustPython and CPython #1

Closed bhelx closed 1 year ago

bhelx commented 1 year ago

Here is where we can have discussion on where to go with this repo

There are two paths I'm exploring:

ubiquitous-dev commented 1 year ago

Fermyon is using the python-wasi build. I think there are some core differences in their approach vs Extism though:

Their runtime has no need to have a native understanding of the context it's running in, like it does with Extism, because their plugins are just making env var or stdin/stdout/fs calls (and relying on python-wasi converting those into wasi commands for wasmtime to interpret).

This does mean that they're severely limited, in that they can't provide additional functionality like Host Functions, dynamic configuration, http, or logging, that Extism currently provides.

I think some key attributes of deciding which runtime to use are:

atifsyedali commented 1 year ago

Any updates?

bhelx commented 1 year ago

I haven't looked at it. I'm still getting the same problem with rust-python, and i still feel like that project is not the best way forward regardless.

There has been quite of bit of progress with cpython with regards to wasm so I was going to look at this again before 1.0: https://github.com/extism/extism/issues/420

bhelx commented 1 year ago

FWIW, to follow up here. I've made some good progress with cpython and I feel like that's a more sustainable solution. I'm going to close this issue in favor of #2 . I'll be adding updates there and in our #python-pdk channel in Discord.