r/linux • u/rastermon • Aug 16 '14
Yet another C object model
https://phab.enlightenment.org/phame/live/1//post/yet_another_c_object_model_but_better/
50
Upvotes
r/linux • u/rastermon • Aug 16 '14
View all comments
Show parent comment
1
u/LvS Aug 17 '14
Yes and no. You don't aim for a generic IDL to solve that problem, no matter if you generate the source from the IDL or vice versa. A generic IDL doesn't solve a problem.
What you do is pick 1 language or 2 and support only those but support them properly. And then you tell everybody else to use those languages or find another project.
Take a look at gobject-introspection: It's totally the open source way and allows easy bindings to every language. But in the end you write introspection-like code and not code in your language.
And if you want examples: Look at all the successful platforms. Windows is C++/.NET, Android is C++/Java, Apples i Objective-C, the web is JS. None of them was stupid enough to go via IDL and try to support all the languages.