Re: Ruby stable API design

2012-09-14 Thread Darryl L. Pierce
On Thu, Sep 13, 2012 at 05:27:14PM -0400, Rajith Attapattu wrote: > >> Darryl, you could use %typemap(freearg) to ensure the respective free > >> function is called to cleanup. > >> How it gets called is also automatically handled by swig based on the > >> host language. > >> > > > > Maybe I'm miss

Re: Ruby stable API design

2012-09-13 Thread Rafael Schloming
On Thu, Sep 13, 2012 at 5:27 PM, Rajith Attapattu wrote: > On Thu, Sep 13, 2012 at 5:05 PM, Rafael Schloming > wrote: > > On Thu, Sep 13, 2012 at 4:46 PM, Rajith Attapattu >wrote: > > > >> On Mon, Sep 10, 2012 at 1:36 PM, Rafael Schloming > >> wrote: > >> > On Mon, Sep 10, 2012 at 9:26 AM, Darr

Re: Ruby stable API design

2012-09-13 Thread Rajith Attapattu
On Thu, Sep 13, 2012 at 5:05 PM, Rafael Schloming wrote: > On Thu, Sep 13, 2012 at 4:46 PM, Rajith Attapattu wrote: > >> On Mon, Sep 10, 2012 at 1:36 PM, Rafael Schloming >> wrote: >> > On Mon, Sep 10, 2012 at 9:26 AM, Darryl L. Pierce > >wrote: >> > methods on Messenger and Message objects and b

Re: Ruby stable API design

2012-09-13 Thread Rafael Schloming
On Thu, Sep 13, 2012 at 4:46 PM, Rajith Attapattu wrote: > On Mon, Sep 10, 2012 at 1:36 PM, Rafael Schloming > wrote: > > On Mon, Sep 10, 2012 at 9:26 AM, Darryl L. Pierce >wrote: > > methods on Messenger and Message objects and by tying pn_messenger_free > and > > pn_message_free into the respe

Re: Ruby stable API design

2012-09-13 Thread Darryl L. Pierce
On Thu, Sep 13, 2012 at 04:46:00PM -0400, Rajith Attapattu wrote: > On Mon, Sep 10, 2012 at 1:36 PM, Rafael Schloming wrote: > > On Mon, Sep 10, 2012 at 9:26 AM, Darryl L. Pierce wrote: > > methods on Messenger and Message objects and by tying pn_messenger_free and > > pn_message_free into the res

Re: Ruby stable API design

2012-09-13 Thread Rajith Attapattu
On Mon, Sep 10, 2012 at 1:36 PM, Rafael Schloming wrote: > On Mon, Sep 10, 2012 at 9:26 AM, Darryl L. Pierce wrote: > methods on Messenger and Message objects and by tying pn_messenger_free and > pn_message_free into the respective destructors, we could make things a > whole lot safer, e.g. avoid

Re: Ruby stable API design

2012-09-10 Thread Rafael Schloming
On Mon, Sep 10, 2012 at 2:04 PM, Darryl L. Pierce wrote: > On Mon, Sep 10, 2012 at 01:36:35PM -0400, Rafael Schloming wrote: > > So my general thought is that we should focus on the messenger stuff > first > > for high level languages like Ruby. The main reason being that the lower > > level inter

Re: Ruby stable API design

2012-09-10 Thread Darryl L. Pierce
On Mon, Sep 10, 2012 at 01:36:35PM -0400, Rafael Schloming wrote: > So my general thought is that we should focus on the messenger stuff first > for high level languages like Ruby. The main reason being that the lower > level interfaces might want to get tweaked a bit more for performance > reasons

Re: Ruby stable API design

2012-09-10 Thread Rafael Schloming
On Mon, Sep 10, 2012 at 9:26 AM, Darryl L. Pierce wrote: > I've been working the past few weeks on providing a stable API layer in > Ruby on top of the swig bindings. I've made a few decisions in the > design and want to now float them out here to get feedback. > > You can take a look at the WIP i

Ruby stable API design

2012-09-10 Thread Darryl L. Pierce
I've been working the past few weeks on providing a stable API layer in Ruby on top of the swig bindings. I've made a few decisions in the design and want to now float them out here to get feedback. You can take a look at the WIP in my Github repo [1]. NAMESPACES == The APIs all live with