N
N
nevro2015-10-04 10:18:52
Python
nevro, 2015-10-04 10:18:52

Bindings (bindings): how do they work and how to learn to write them?

For example, SDL and bindings to it in python and C#.
1. How to write bindings, what are they? Any simple examples, articles?
2. I wrote an application, now you need to compile it for the platform. What's happening? The SDL code is compiled into the machine code of the platform, if there is a compiler for this platform - what about the binding add-on? Is the virtual machine running for C#, or the interpreter for python? Or is their code translated into c++ code (it turns out that the SDL application is written in C++) and then compiled (there is no trace of the bindings)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
beduin01, 2015-10-04
@beduin01

Look at the source https://github.com/jacob-carlborg/dstep in the translator directory, there may be something to help. In fact, there is a translation of types.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question