You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "Eric-Song-Nop (via GitHub)" <gi...@apache.org> on 2026/08/20 03:36:58 UTC

[I] OpenDal Moonbit binding [opendal]

Eric-Song-Nop opened a new issue, #8116:
URL: https://github.com/apache/opendal/issues/8116

   We might need a native/wasm binding library for moonbit instead of just using extern C. Moonbit has its platform dependent async implementation, which works on native C backend, native wasm backend and browser js backend. It might worth some work to make it run on native C and browser environment.
   
   Refrences:
   - <https://github.com/apache/opendal/discussions/8092>
   - [An playground opendal moonbit binding implementation that works on mooncake.io](https://github.com/Eric-Song-Nop/opendal-mbt)
   
   Materials:
   - <https://www.moonbitlang.com/pearls/moonbit-cffi>
   - <https://github.com/moonbitlang/skills/blob/master/skills/make-moonbit-c-bindings/>
   - <https://docs.moonbitlang.com/en/stable/toolchain/wasm/component-model-tutorial.html>
   - <https://www.moonbitlang.com/pearls/moonbit-jsffi>
   - <https://mooncakes.io/docs/moonbitlang/async>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] OpenDal Moonbit binding [opendal]

Posted by "Xuanwo (via GitHub) via commits" <co...@opendal.apache.org>.
Xuanwo commented on issue #8116:
URL: https://github.com/apache/opendal/issues/8116#issuecomment-7209092652

   *(AI-generated note)*
   
   Thanks @Eric-Song-Nop for the published [`Eric-Song-Nop/opendal`](https://mooncakes.io/docs/Eric-Song-Nop/opendal) package and for landing the initial native scaffold in [#8118](https://github.com/apache/opendal/pull/8118).
   
   Sharing a quick snapshot of tested usage:
   
   - **Apache OpenDAL C 0.47.8 (Linux x86-64):** A C adapter built against the matching released C 0.47.8 header and library passed native binary `Memory` write, read, and delete round trips. Calling the blocking C ABI directly occupies the calling thread until C returns.
   - **Separate Mooncakes package (`Eric-Song-Nop/opendal@0.2.0`, Linux x86-64):** Passed both native synchronous `Memory` and `AsyncOperator` binary write/read tests. Its native async implementation runs operations on a Tokio task and signals completion back to MoonBit through a completion pipe.
   - **Browser (JS target):** We did not run a local MoonBit browser test, though the package's separate JS-target Promise + Chrome CI job passed ([`Promise bridge and Chrome canary`](https://github.com/Eric-Song-Nop/opendal-mbt/actions/runs/31866334885/job/94967922632)).
   
   In line with the staged, PR-by-PR contribution path invited in [#8092](https://github.com/apache/opendal/discussions/8092) and started in [#8118](https://github.com/apache/opendal/pull/8118), could you or an adopter share one concrete next operation or target platform needed beyond these available paths? That will help scope the next incremental upstream step.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org