Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 05-09-2006
asmirnov 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
Reply With Quote
  #2 (permalink)  
Old 05-10-2006
beagles's Avatar
beagles beagles is offline
ZeroC Staff
 
Name: Brent Eagles
Organization: ZeroC, Inc
Project: Ice Developer
 
Join Date: Feb 2003
Location: Newfoundland
Posts: 110
Please see this post regarding our support policy (and general information policy) on these forums.

Cheers
Reply With Quote
  #3 (permalink)  
Old 05-10-2006
asmirnov 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
Reply With Quote
  #4 (permalink)  
Old 05-10-2006
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Swig? panic Comments 12 3 Weeks Ago 08:28 AM


All times are GMT -4. The time now is 07:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.