<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.comp.programming.swig">
    <title>gmane.comp.programming.swig</title>
    <link>http://blog.gmane.org/gmane.comp.programming.swig</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13227"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13226"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13223"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13216"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13215"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13213"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13212"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13211"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13207"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13205"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13203"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13202"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13200"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13193"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13192"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13188"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13186"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13182"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13174"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.programming.swig/13164"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13227">
    <title>JNI crashing with callbacks to Java</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13227</link>
    <description>Hi wizards,

I'm currently working on a project that uses Swig as interop between
Java (CDC) and C++ libraries.
There is this issue with JNI though that is killing me...

Whenever I make a call to C++ method that make a (synchronous)
callback to Java -- in the same flow/thread -- the virtual machine
crashes. In other words, if the called C++ method happens to make
another JNI call back to Java the virtual machine gets a bit confused
and crashes immediately after JNI wrapper returns.

Before providing any further information like examples of code and
back traces of the crash -- that would be extensive (since I'd have to
re-write lots of things) -- I'd like to know if this is a common
problem.

I hope I've made myself clear enough to at least give some directions.

thanks a lot in advance everyone, I really appreciate any help.

best regards,

</description>
    <dc:creator>Savio</dc:creator>
    <dc:date>2008-07-24T16:24:22</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13226">
    <title>String array transcoding coding issues</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13226</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>Damien DALY</dc:creator>
    <dc:date>2008-07-24T14:10:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13223">
    <title>wrapping Fortran</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13223</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>Tamas Papp</dc:creator>
    <dc:date>2008-07-23T12:29:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13216">
    <title>SWIG generated C++ file is huge and compiler fails tocompile</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13216</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>sunil kumar</dc:creator>
    <dc:date>2008-07-22T22:22:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13215">
    <title>Swigging boost::shared_ptr</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13215</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>amit.x.goswami&lt; at &gt;us.hsbc.com</dc:creator>
    <dc:date>2008-07-22T19:38:42</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13213">
    <title>SWIG generated file C++ is huge and compiler fails tocompile</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13213</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>sunil kumar</dc:creator>
    <dc:date>2008-07-22T18:43:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13212">
    <title>Problems with container of pointer-to-const</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13212</link>
    <description>With SWIG 1.3.36, I can't get the C++ code that it generates to compile 
from this wrapper code:

%module constptrvec
%include "std_vector.i"

namespace std {
  %template(IntVec) vector&lt;int const*&gt;;
}

Compiling on Redhat AS 4 with g++ 3.4 gives a C++ compiler error like this:

constptrvec_wrap.cxx:2975: error: `type_name' is not a member of 
`swig::traits&lt;int&gt;'

(complete error listing included below). The same problem does *not* 
occur when using a pointer to (non-const) int:

%module ptrvec
%include "std_vector.i"

namespace std {
  %template(IntVec) vector&lt;int*&gt;;
}

The main difference between the generated C++ code seems to be that the 
&lt;int const*&gt; version produces only this:

  namespace swig {
    template &lt;&gt;  struct traits&lt;int const * &gt; {
      typedef pointer_category category;
      static const char* type_name() { return"int const *"; }
    };
  }

Whereas the &lt;int *&gt; version has more code in the same place, including 
the functions SWIG_AsVal_int, SWIG_From_int and the following:

namespace swig</description>
    <dc:creator>Raoul Gough</dc:creator>
    <dc:date>2008-07-22T17:21:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13211">
    <title>&lt; at &gt;SuppressWarnings</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13211</link>
    <description>SWIGgers-
I am generating some JNI using SWIG.  In the enums generated by SWIG 
(i.e. enum SWIGTYPE) it seems to always put the annotation 
&lt; at &gt;SuppressWarnings("unused").  Is there anyway to get SWIG to NOT put 
that annotation in there?  Thanks.

</description>
    <dc:creator>Justin Bradley</dc:creator>
    <dc:date>2008-07-22T14:56:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13207">
    <title>Macros</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13207</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>Jedd Haberstro</dc:creator>
    <dc:date>2008-07-21T20:34:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13205">
    <title>simple question about interfacing c and python</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13205</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>Chris Tanner</dc:creator>
    <dc:date>2008-07-21T18:09:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13203">
    <title>DLLto TCL wrapper variables are not converted properly</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13203</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>Mocanu Liviu</dc:creator>
    <dc:date>2008-07-21T16:05:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13202">
    <title>Problems sending variables</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13202</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>James Leffler</dc:creator>
    <dc:date>2008-07-21T11:56:22</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13200">
    <title>Problem with temporary objects</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13200</link>
    <description>Hi,

I have a strange problem in a swig wrapped library.

x=a.b.c() ...fails
but,
temp1=a.b
temp2=temp1.c()...works

any ideas why this might happen

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>anirudh vij</dc:creator>
    <dc:date>2008-07-20T12:11:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13193">
    <title>Performance improvement by using Python buffer interface</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13193</link>
    <description>Hello,

Python &gt;=2.6 introduced new bytearray data type - a mutable byte array.
I have implemented prototype typemaps for utilizing it in SWIG. Let me
show you some example of it. (I did it under Python 2.6)

The pybuf.i:

%module pybuf

%include&lt;pybuffer.i&gt;
%include&lt;cstring.i&gt;
%pybuffer_mutable_string(char *str1);
%cstring_mutable(char *str2);

%inline %{
void upper1(char *str1) {
     while(*str1) {
         *str1 = toupper(*str1);
         str1++;
     }
}
void upper2(char *str2) {
     while(*str2) {
         *str2 = toupper(*str2);
         str2++;
     }
}
%}

And the pybuf_runme.py:

import pybuf
import time
k=1000000

t=time.time()
a = bytearray(b'hello world')
for i in range(k):
   pybuf.title1(a)
print "Time used by bytearray:",time.time()-t

t=time.time()
b = 'hello world'
for i in range(k):
   pybuf.title2(b)
print "Time used by string:",time.time()-t

Finally, the result is:

Time used by bytearray: 1.14466691017
Time used by string: 1.58078503609


The bytearray interface got about 30% performa</description>
    <dc:creator>Haoyu Bai</dc:creator>
    <dc:date>2008-07-19T11:56:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13192">
    <title>Problem with JNI interface using a cpp library.</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13192</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>Jürgen Iko</dc:creator>
    <dc:date>2008-07-19T11:54:14</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13188">
    <title>Unable to find 'std_set.i'</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13188</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>amit.x.goswami&lt; at &gt;us.hsbc.com</dc:creator>
    <dc:date>2008-07-18T14:45:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13186">
    <title>Wanted: Doxygen commented SWIG interface files</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13186</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>Cheryl</dc:creator>
    <dc:date>2008-07-18T05:05:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13182">
    <title>how modular is the support for the various languages?</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13182</link>
    <description>I know that swig can be built without any of the supported languages  
installed. What happens if I install swig without any of the languages  
present and then install some number of the supported languages?

I tried building swig both with and without languages present and then  
looked at the resulting install, but I couldn't tell for sure that  
there weren't minor changes to the core files.

My main interest here is a packaging issue that has arisen in fink for  
OS X. If all the languages that both swig and fink support are enabled  
for swig 1.3.35, then several packages in fink that require swig end  
up dragging in octave (and having to compile gcc43 for octave). It's  
pretty annoying to spend 6 hours compiling a compiler to support a  
language one doesn't use just to get swig support for a language that  
one does use. Granted, this problem is as much fink's policy of  
"everything should build the same for every user" as anything else.  
But it would be nice to know/learn how to overlay language</description>
    <dc:creator>David Reiser</dc:creator>
    <dc:date>2008-07-17T15:45:32</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13174">
    <title>How to access C/C++ objects from Python</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13174</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>Gregory Propf</dc:creator>
    <dc:date>2008-07-15T07:14:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13164">
    <title>Downcasting in Python wrappers?</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13164</link>
    <description>I'm using SWIG to generate Python wrappers and have run into the
following issue.

I have a C++ base class and derived from that several other classes,
each with its own distinct set of methods. Another class stores
instances of the derived classes and has a method get_base() that
returns a specific instance.

Now, on Python side, I am getting a base instance by calling
get_base(), but would like to use it to invoke methods of derived_a.
However, I see now way to cast the base instance into a derived_a
instance.

What I did as a workaround is adding the following to my interface file:

%extend xyz {
    derived_a* get_derived_a (const std::string &amp; name)
    {
        return dynamic_cast&lt;derived_a*&gt; (self-&gt;get_base (name));
    }
};

However, I would have to do that for every derived_&lt;x&gt; which is not
very elegant.

Does SWIG provide a better way to handle something like this?

Kai

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards:</description>
    <dc:creator>Kai Sterker</dc:creator>
    <dc:date>2008-07-12T11:44:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.programming.swig/13161">
    <title>suppressing half of a getter and setter</title>
    <link>http://comments.gmane.org/gmane.comp.programming.swig/13161</link>
    <description>-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08_______________________________________________
Swig-user mailing list
Swig-user&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
</description>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2008-07-11T20:15:33</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.programming.swig">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.programming.swig</link>
  </textinput>
</rdf:RDF>
