On 08/12/14 21:54, Adriano dos Santos Fernandes wrote:
On 12/08/2014 14:37, Mark Rotteveel wrote:On 12-8-2014 18:48, Tom Coleman wrote:One bias of mine that I will confess to is that I hate C++. Every time I am forced to use it it turns out to be a horrible PITA. The last project I wrestled with was an interface from our proprietary language to ApacheMQ, and the only interface available was C++. I develop for several platforms and it always seems to be an endless battle of gcc versions, library compatibility issues and missing dependencies.Totally off topic, but if you are talking about Apache ActiveMQ: there are also C clients available according to: http://activemq.apache.org/cross-language-clients.htmlFocus of ApacheMQ is (AFAIK) on the transport layer, not about interprocess communication. In few hours (since yesterday), I created an IDL compiler and C++ generator. Later I'll improve it for C and FPC
Will it be Delphi-compatible?
and put in my github. If I cannot convince Firebird it's good or Firebird wants to adopt a bad/bloated solution, it may be useful for others projects.
As for me I definitely support an idea of having IDL compiler and generating include files for various languages from single IDL definition. I've seen 3 main arguments against them here: 1. Complicate development by having additional utility. But looks like we spent more time discussing how much it complicates compared with time needed to create that utility. 2. There will be anyway found a language which does not support pointers to functions and/or arrays/structures of them. But using new tool it's pretty easy to auto-generate code which builds something acceptable for such language - provided it can work with foreign function calls at all. Or even emulate it's native calls on assembler if access from such super-language is really needed.
3. It's "home brewed". Yes, but is it really too bad?As a small exercise in Pascal (I've used to write programs on it >25 years ago) I attach here version 6 of our sample, which accesses C++ implemented interfaces from FPC program (tested on linux x64) with the absolutely same program logic & result as from C++.
fbinterface-6.tar
Description: Unix tar archive
------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel