Home Comments

C mapping

coldingcolding Member
Hi,

Any plans on providing a C mapping as well to "complete" the range of supported languages? I am thinking about a C mapping because it will be a lot easier to use Ice in most Linux environments (notably Gnome) if there is a C mapping directly available.

I have searched the forums but I can't see this subject discussed anywhere...

Thanks,
jules

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    We don't have any plans for a C mapping. It is very difficult to map an object-oriented language such as Slice to C. We did this in the past with CORBA IDL, and it was a mess.
  • coldingcolding Member
    marc wrote:
    We don't have any plans for a C mapping. It is very difficult to map an object-oriented language such as Slice to C. We did this in the past with CORBA IDL, and it was a mess.

    I suspected something like that to be the obvious reason.. Well, I was just hoping that, since Ice seems to be CORBA done right, it would actually be feasible to do a C mapping.

    Thank you for the answer,
    jules
  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    In this particular case, the problem (for once ;) ) isn't with CORBA, but in the nature of the beast. It is possible to create a C mapping, but the resulting APIs are so ugly and difficult to use that you are better off without one.

    Cheers,

    Michi.
  • DeepDiverDeepDiver Member Thomas MuellerOrganization: Freelance Software DeveloperProject: Project depend on Customers ✭✭✭
    Possible Solution

    since you can link c and cpp files within one process/lib,
    you can use the cpp mapping and build a c-wrapper around the resulting sources.

    not nice and a hell of work - but a solution if you require a c-interface
    to your middleware.

    regards

    tom
Sign In or Register to comment.