GithubHelp home page GithubHelp logo

Comments (5)

simplexidev avatar simplexidev commented on September 28, 2024 1

The public API will be managed, minus theSafeHandles to store the void* pointer for handles. Everything unmanaged and unsafe will be private, allowing for minimal confusion.

I am also leveraging the new CodeGenerators in C# to allow for a DllImport-like attribute to auto-generate the unmanaged delegates and managed wrappers for each method.

from sdevlibs.

Shadowblitz16 avatar Shadowblitz16 commented on September 28, 2024

Consider separating the unmanaged api from the managed one.
A lot of people go the unmanaged route because its more optimized,
but then its more difficult to use and requires compiling with unsafe.

from sdevlibs.

simplexidev avatar simplexidev commented on September 28, 2024

I am also leveraging the new CodeGenerators in C# to allow for a DllImport-like attribute to auto-generate the unmanaged delegates and managed wrappers for each method.

I'd like to pooint out that this part is not going to be imediate, as I already have enough of a headache at the moment. Everything unmanaged will remain private for the most part, though.

from sdevlibs.

simplexidev avatar simplexidev commented on September 28, 2024

Eventually, as a note to self, I need to look more into nuint and related structures.

from sdevlibs.

simplexidev avatar simplexidev commented on September 28, 2024

Now, while it will build, there is no UI functionallity, just the base classes and a few of the raw bindings. If you look at Libui.cs in the feature branch, you can see what the real difference the code generator will make in the future. Right now, the bindings are confusing to write,and read.

from sdevlibs.

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.