gir2swift icon indicating copy to clipboard operation
gir2swift copied to clipboard

Use dlopen(), dlsym() and dlclose() to launch functions.

Open Dadoum opened this issue 5 years ago • 1 comments

It would be a big refactor, but will permit to not rely on the Swift's messy pkgBuild implementation

Dadoum avatar Sep 30 '20 07:09 Dadoum

We would still need to generated code based on the .gir file if we want to use idiomatic Swift. This is different from weakly typed languages such as Python, that simply use object-introspection at run time. Also, the advantage of letting the compiler do the hard work is that we can achieve similar performance as the underlying C/C++ interface and capture most errors at compile time (rather than run time).

rhx avatar Oct 25 '20 00:10 rhx