From: Thiago Jung Bauermann <bauerman@br.ibm.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] Strings and arrays without malloc
Date: Thu, 13 Mar 2008 14:16:00 -0000 [thread overview]
Message-ID: <1205417784.6643.78.camel@localhost.localdomain> (raw)
In-Reply-To: <m38x0n5hfu.fsf@fleche.redhat.com>
On Wed, 2008-03-12 at 23:19 -0600, Tom Tromey wrote:
> my current thinking is that the general approach
> should be to write a thin binding, and then add a nicer OO API in pure
> python. I'm not a python person though, so maybe this is weird.
I see two possible approaches here:
1. Yours: expose a procedural layer to python, and build an OO API on
top of it, using Python itself. This has the advantage of keeping the C
<-> Python glue simple, but you would have to maintain code in two
languages (maybe not a problem).
2. Create new types (using Python's C API) to represent the classes we
want to expose to Python. All of the implementation would be in C, then.
The glue would be more complicated (but maybe not much more
complicated), but then the implementation is all in one language, and in
one place.
Last night I started to experiment creating an OO API for values, using
Volodya's branch. I chose to use approach 2, but I didn't really make my
mind yet. If it turns out that it really isn't much more complicated
than 1, then I think I prefer to have it all in one language.
> Opinions, advice, encouragement, etc ... all welcome. At times I
> suspect that nobody is reading this.
I think there are lots of eyes on this Python support thing, including
mine. :-)
I'm starting to put some hands on it too, FWIW.
--
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center
next prev parent reply other threads:[~2008-03-13 14:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-09 16:14 Daniel Jacobowitz
2008-03-09 22:20 ` Eli Zaretskii
2008-03-11 6:58 ` Tom Tromey
2008-03-13 6:12 ` Tom Tromey
2008-03-13 14:16 ` Thiago Jung Bauermann [this message]
2008-03-13 14:54 ` Tom Tromey
2008-03-13 16:22 ` Thiago Jung Bauermann
2008-03-13 16:59 ` Tom Tromey
2008-03-13 20:47 ` Tom Tromey
2008-03-13 19:22 ` Joel Brobecker
2008-03-21 15:03 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1205417784.6643.78.camel@localhost.localdomain \
--to=bauerman@br.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox