6 ms·
Very cool ! Can't wait to test it ! Why exactly no C++ support ?
by madlag 14y ago
Very cool ! Can't wait to test it !
Why exactly no C++ support ?
- koenigdavidmj 14y agoIt would be hard in the presence of parametric polymorphism (multiple functions having the same name but different numbers and types of parameters), as well as the difference between C++'s and Python's method resolution semantics (in Python, for instance, everything is virtual). Also, templates. Also, a bunch of other things.
- madlag 14y agoThanks for the reply. I just spent the last 3-4 days hacking around osgswig, having a good (and simple) binding solution for C++ / python is still an open problem ...
- mamcx 14y agoAnd obj-c? Also hard?
- kennywinker 14y agoYou'd have to shoehorn the obj-c runtime in there somehow. Almost definitely not worth the effort. What would you want to run in this way?
- emillon 14y agoThat's not parametric polymorphism, that's function overloading. The former makes it possible to use the same function implementation on different types, whereas the latter is about using the same name for different functions.
- eliben 14y agoWhile the mapping between C and LLVM IR is rather straightforward, things are more complex with C++. C++ constructs get dismantled to be compiled to IR, and the binding generator would have to restore all the C++-ish information from metadata and type info, which isn't easy.