fizzy icon indicating copy to clipboard operation
fizzy copied to clipboard

JavaScript binding

Open vaultec81 opened this issue 5 months ago • 0 comments

This might start off as a bit outlandish and redundant considering there is a native webassembly runtime in nearly all Javscript runtimes. Let me explain. To my knowledge, the default webassembly runtime in Javascript does not support metering, a critical function in running deterministic/safe webassembly code. This is a pretty critical limitation of the native webassembly runtime. And in my use case in particular it's a major issue.

What's stopping fizzy from being compiled into a binding for JS and act as a rough drop in replacement for the native Webassembly runtime? I'd imagine it would still require a considerable amount of work to get everything working, but is there anything that would completely prevent such a thing from being developed?

I'm open to any alternative approaches to doing metering of WASM within a JS context as well.

vaultec81 avatar Jan 15 '24 07:01 vaultec81