TABI 0.1: a typeful tagged cross-language calling convention
Hello, i've uploaded very preliminary version of TABI to http://tabi.googlecode.com/files/tabi-0.1.tar.gz Shortly speaking, while with cdecl calling convention you pass parameters by position, TABI passes parameters by name and annotates each parameter with its type It may be used in following situations: * providing interoperatbility between C, Haskell and any other languages while avoiding complexity of language-specific FFI descriptions. For example, Lua function may receive all parameters as the table * passing complex datastructures between various languages forth and back, providing faster alternative to serialization approach * implementing APIs that may be extended without losing compatibility - new services and parameters may not be supported by all client and server implementations but everything will work together ... read the rest at http://code.google.com/p/tabi/ issue tracker and SVN repository is also there -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
On Tue, Jul 21, 2009 at 05:51:04PM +0400, Bulat Ziganshin wrote:
* passing complex datastructures between various languages forth and back, providing faster alternative to serialization approach
I've read the code and I don't see how tabi manages to do this. It is serializing as well but it is including the type and name information, so it seems that at best it would have the same overhead as just serializing the data without any metadata. Am I missing something? -- Felipe.
participants (2)
-
Bulat Ziganshin -
Felipe Lessa