You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "Xuanwo (via GitHub)" <gi...@apache.org> on 2023/03/23 13:38:01 UTC

[GitHub] [incubator-opendal] Xuanwo opened a new issue, #1741: research: How to support async API for C binding?

Xuanwo opened a new issue, #1741:
URL: https://github.com/apache/incubator-opendal/issues/1741

   So far, I have no idea on how to support async API in C, we need some research and help from community.
   
   https://en.cppreference.com/w/cpp/thread/async
   https://www.boost.org/doc/libs/1_76_0/doc/html/boost_asio.html


-- 
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


[GitHub] [incubator-opendal] nasen23 commented on issue #1741: research: How to support async API for C binding?

Posted by "nasen23 (via GitHub)" <gi...@apache.org>.
nasen23 commented on issue #1741:
URL: https://github.com/apache/incubator-opendal/issues/1741#issuecomment-1493320364

   Is c binding being worked on? I think I could get my hands on some harder work. Please assign this to me if no one else is working on it. It might take quite some time though.


-- 
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


[GitHub] [incubator-opendal] Ji-Xinyou commented on issue #1741: research: How to support async API for C binding?

Posted by "Ji-Xinyou (via GitHub)" <gi...@apache.org>.
Ji-Xinyou commented on issue #1741:
URL: https://github.com/apache/incubator-opendal/issues/1741#issuecomment-1500881435

   It seems `hyper` let async task returns a Future, and used `push_executors` to push them to the executors, which further poll the task until completion.
   
   Looks like a minimal async runtime in C 🤣 🤣 🤣 , anyone interested could check [this](https://github.com/hyperium/hyper/blob/89558f13a8aed5f0e8c94e04d398e207067d0336/src/ffi/task.rs) for more details.
   
   I think now maybe the C binding could be developed in the following order, and we still have plenty of time to think about our implementation of async operation.
   
   1. Focus on the `memory` operator first, making it full-fledged.
   2. Support other services, but only for blocking services.
   3. Support the async operations.
   
   Any ideas?


-- 
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


[GitHub] [incubator-opendal] Xuanwo commented on issue #1741: research: How to support async API for C binding?

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #1741:
URL: https://github.com/apache/incubator-opendal/issues/1741#issuecomment-1493347877

   Go ahead and have fun!


-- 
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


[GitHub] [incubator-opendal] messense commented on issue #1741: research: How to support async API for C binding?

Posted by "messense (via GitHub)" <gi...@apache.org>.
messense commented on issue #1741:
URL: https://github.com/apache/incubator-opendal/issues/1741#issuecomment-1482115452

   We can probably learn from `hyper`: https://github.com/hyperium/hyper/tree/master/src/ffi


-- 
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