[haiku-development] Re: Lua bindings for the Haiku API - Volunteers?

  • From: "Clemens Zeidler" <clemens.zeidler@xxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 02 Jan 2011 16:42:36 +1300

Am 29.12.2010, 17:36 Uhr, schrieb Ryan Leavengood <leavengood@xxxxxxxxx>:

On 12/29/10, Donn Cave <donn@xxxxxxxxxxx> wrote:

There's more, but I think those are the biggies.  Get that all
coded up in a conveniently parseable format, and any fool could
generate comprehensive bindings for his or her favorite language!
This is an excellent idea! You don't happen to have done some of this
work already have you?
Are there any formats that already exist for this sort of thing, like
something from COM or CORBA or such things with thoroughly specified
interfaces?
Though maybe just coding up something fairly simple is the easiest.
Parsing it is not really the hard part. The h

yes the cleanest way would be to describe the haiku api with an IDL (interface description language) Take a look at android IDL which comes from OpenBinder which is designed by a former Be developer.

This has various advantages e.g.:
- language independent, codebindings could be generated for every IDL interface automatically just the code for the code generation has to be written for every language. - other stuff like IPC (inter process call) classes could also be generated from idl files
- interface introspection
- ...

        Clemens

Other related posts: