-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasm and clvm_tools-js integration #108
Comments
bump (to avoid being labeled as stale) |
'This issue has been flagged as stale as there has been no activity on it in 14 days. If this issue is still affecting you and in need of review, please update it to keep it open.' |
Resetting stale timer... |
'This issue has been flagged as stale as there has been no activity on it in 14 days. If this issue is still affecting you and in need of review, please update it to keep it open.' |
There is now an npm package automatically created whenever we do new releases of |
There is now a |
It's OK. I'll take a look into it soon. |
'This issue has been flagged as stale as there has been no activity on it in 14 days. If this issue is still affecting you and in need of review, please update it to keep it open.' |
'This issue was automatically closed because it has been flagged as stale and subsequently passed 7 days with no further activity.' |
@richardkiss
I've just confirmed that the wasm of clvm_rs can be successfully integrated into clvm_tools-js!
clvm_tools-js#clvm_rs
However, I'm aware that current wasm API is not fully aligned with Python's clvm_rs API.
At wasm,
run_clvm
Rust function is exposed to wasm, which accepts only clvm program and arguments, and returns only program result without value of cost.On the other hand, Python's API accepts additional parameters and also return cost.
At a quick glance, I think arguments
quote_kw
,apply_kw
,opcode_lookup_by_name
indeserialize_and_run_program2
are not necessary for wasm'srun_clvm
because those arguments seem always the same value and no user interference.Question is whether the above assuption is correct or not.
As for
max_cost
andflags
, I'll find the good way/appropriate type to connect to JavaScript. (JavaScript built-in number cannot represent unsigned int 64bit as is. Sou64
of Rust should be represented in uint8array in JavaScript or something)P.S.
In case you are interested, I'll attach the benchmark result among
The text was updated successfully, but these errors were encountered: