Results 1 to 4 of 4

Thread: Ice like SWIG

  1. #1
    asmirnov is offline Registered User
    Join Date
    May 2006
    Posts
    5

    Ice like SWIG

    Hi

    I am often need to call C/C++ code from python. Definetly ICE doing
    this in very nice manner (no more C++ mapping nightmares .

    But even more often I need to call C/C++ code from python locally, i.e.
    as Python module. SWIG is the way to do it. But I think slice is better
    as IDL.

    Have you guys ever considered having utility to generate Python module
    (C code) from slice file?

    Regards,
    Andrei

  2. #2
    beagles's Avatar
    beagles is offline Registered User
    Name: Brent Eagles
    Organization: Eagles Technologies Inc
    Project: Asterisk SCF
    Join Date
    Feb 2003
    Location
    Newfoundland
    Posts
    111
    Please see this post regarding our support policy (and general information policy) on these forums.

    Cheers
    Brent Eagles
    Digium/Eagles Technologies Inc
    St. John's, NL

    Project(s): Asterisk SCF

  3. #3
    asmirnov is offline Registered User
    Join Date
    May 2006
    Posts
    5
    done with signature.

    To elaborate a bit on original post: minimum of what I need is ability to collocate Python client and C++ server in single process. Ice doc
    mention collocation on
    page 96 but I was unable to find any examples of how this should work.
    If any examples of client-server collocation exists could anybody point me there.

    More elaborate system could generate Python module C code from slice file.
    It should be possible to make it transparent for implementation code. I.e.
    later on implementation could be reused by remote server.

    I would also suggest to have slice to XML representation generator. slice2docbook looks like good start but XML spec should be more
    appropriate for code generation.
    Then it should be simple to generate Python module C code from XML rep.
    Andrei Smirnov,
    private

  4. #4
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    I don't think Ice is suitable for what you need. Ice is distributed object middleware. It is not intended to do something similar to SWIG. Of course, with the source code being open, you can try to write your own Slice compiler that generates such Python module C code.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Swig?
    By panic in forum Comments
    Replies: 12
    Last Post: 10-30-2008, 07:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •