You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "tisonkun (via GitHub)" <gi...@apache.org> on 2023/06/07 08:20:14 UTC

[GitHub] [incubator-opendal] tisonkun opened a new issue, #2428: OpenDAL C# bindings

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

   (no comment)


-- 
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] tisonkun commented on issue #2428: OpenDAL C# bindings

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

   For build script inetgration - 
   
   * https://github.com/KodrAus/rust-csharp-ffi/blob/master/dotnet/Native.targets


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


Re: [I] OpenDAL C# bindings [opendal]

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

   @Fatorin Feel free to open a PR for review.


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


Re: [I] OpenDAL C# bindings [opendal]

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

   I reviewed Cysharp/csbindgen and completed the implementation on my own branch with the help of AI.
   
   This is my first time working with Rust and C# FFI, so some parts may not follow best practices.
   
   The `README.md` and `Behavior Test Binging C#` are not yet completed.
   
   Branch: https://github.com/Fatorin/opendal/tree/bindings-dotnet-implement
   
   I would like to confirm that this approach is correct before proceeding.


-- 
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] tisonkun commented on issue #2428: OpenDAL C# bindings

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

   Release assignment. I may not have too much time on this direction recently.


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


Re: [I] OpenDAL C# bindings [opendal]

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

   About distribution - https://learn.microsoft.com/en-us/nuget/create-packages/supporting-multiple-target-frameworks#architecture-specific-folders


-- 
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] tisonkun commented on issue #2428: OpenDAL C# bindings

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

   Blocking -
   
   We shall not need to use any binding libraries but simply P/Invoke + `extern "C"`. The binding code can be a bit different to the C bindings for better P/Invoke marshaling. Maybe we can _just_ use the C bindings if later it's figured out not so much difference.
   
   Async -
   
   Using `TaskCompletionSource` may help. Also, use `delegate` to callback set up the `TaskCompletionSource`. But we can postpone this part.
   
   Overall, I still need some time to understand how a dotnet project is organized and loading the native lib.


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


Re: [I] OpenDAL C# bindings [opendal]

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun closed issue #2428: OpenDAL C# bindings
URL: https://github.com/apache/opendal/issues/2428


-- 
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] tisonkun commented on issue #2428: OpenDAL C# bindings

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

   TODO - properly distribute
   
   Perhaps refer to librdkafka.redist -
   
   - https://github.com/confluentinc/librdkafka/wiki/librdkafka.redist
   - https://github.com/confluentinc/librdkafka/blob/master/packaging/nuget/templates/librdkafka.redist.props
   
   _Originally posted by @tisonkun in https://github.com/apache/incubator-opendal/pull/2485#discussion_r1233235301_
               


-- 
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] tisonkun commented on issue #2428: OpenDAL C# bindings

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

   For handling memory releasing, take a look at `System.Runtime.InteropServices`'s `SafeHandle`.
   
   I think we can reimplement the whole confluent-kafka-dotnet solution for bindings.


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