Open Zac-HD opened 1 month ago
Oooh. That would be fun. Just starting to look at this stuff. cibuildwheel suggests that pyodide is supported in 3.12, but that PyPI doesn't yet support it. So does "publish" essentially just mean the creation of a correct meta.yaml
file?
Noting that this won't help much until Z3 goes through the same process, we can either do a pyodide in-tree or out-of-tree build (newer docs). micropip.install(url)
works, so I think there's good reason to imitate Numpy and go with out-of-tree.
This is all still pretty experimental still - wasm is a tier two CPython platform though so I do expect things to stabilize eventually.
Z3 now has a wasm wheel (🎊), which I think puts this back in your hands!
I'll take a look today! You'd be ok with any publicly-accessible URL for the wheel I presume?
Made progress today. Looks like I'll need to relax my z3 version constraint and try again, but I'm close.
I suppose if all this works, I should re-do https://crosshair-web.org too.
Once Z3 has a python-wasm build (https://github.com/Z3Prover/z3/issues/7418), the only thing between me and client-side demos of Hypothesis + Crosshair is a little bit of native code in Crosshair itself. (since it's pure-python,
hypothesis-crosshair
already works)Not urgent but it would be very cool to get this demo working 😁