evmole icon indicating copy to clipboard operation
evmole copied to clipboard

Implementation on pure go

Open kalloc opened this issue 1 year ago • 4 comments

kalloc avatar Jul 11 '24 08:07 kalloc

A first implementation could be to compile the rust version to WASM, and use a WASM interpreter in a go library

ngotchac avatar Aug 01 '24 13:08 ngotchac

Why use WASM if we can compile Rust to a .so library and just call it using CGo (by writing a minimal Go wrapper library for users)?

cdump avatar Aug 01 '24 13:08 cdump

Wouldn't that be platform-dependent? Requiring to compile it to all supported platforms.

ngotchac avatar Aug 01 '24 13:08 ngotchac

Yes, but I think it can be solved somehow (like in Python packages - prebuilt for popular platforms + compilation on install for others), and probably it would be easier than living with WASM limitations in Rust code. Anyway, I'm open to all solutions and will probably do some R&D before deciding on the best option.

cdump avatar Aug 01 '24 13:08 cdump