Code Monkey home page Code Monkey logo

Comments (2)

dtolnay avatar dtolnay commented on July 28, 2024 6

I agree. For the next couple weeks at least, I think I am going to have to focus mostly on C++, but I absolutely intend to come back to C support.

For now the most helpful would be if someone were to fork and get something simple working with C. That would give an understanding of the magnitude of differences needed and a head start on some of the design work.

Some of the known work I can call out up front:

  • Currently for C++ we translate Rust references like &T into C++ references const T&. For C presumably we would want those same signatures to be emitted using pointers.

  • What to do about owned indirect values. I anticipate our opaque types concept will continue to play an important role in C as in C++, and currently the way we pass ownership of those across the FFI is restricted to Box and unique_ptr. It's possible we may be able to lift this restriction and pass inline by value, or we may need a C-idiomatic binding that matches Box's abi.

I don't expect these to be figured out here in the thread but they would be some of the first things to focus on in a fork.

from cxx.

BartMassey avatar BartMassey commented on July 28, 2024

Apologies. It is becoming clear to me that I wont have time to work on this anytime soon. I am excited to see it done, and hope someone will pick it up.

from cxx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.