[lldb-dev] Alternative bindings for the SB* API

Zachary Turner zturner at google.com
Tue Feb 17 17:53:27 PST 2015


What languages are they painful for?  (Just curious).

Assuming this gets upstreamed, which probably needs more consensus although
I personally support it, it seems like that would be a good time to kill
off the shell scripts.  There's no sense maintaining two sets of scripts to
generate the bindings, and unfortunately we cannot rely on a bash or any
other kind of shell environment on windows.  So it makes sense to do all
new development in the python scripts.  Until now we've been updating both
sets as necessary, but if we're going to contribute something substantial,
it would be a good time to kill the shell scripts and do everything in
Python.

The only that doesn't yet use the Python scripts is the Xcode build.  It
shouldn't be hard to tweak a line somewhere and have it switch over to the
python stuff, just nobody's done it yet.

On Tue Feb 17 2015 at 5:38:27 PM Bruce Mitchener <bruce.mitchener at gmail.com>
wrote:

> On Wed, Feb 18, 2015 at 8:29 AM, Zachary Turner <zturner at google.com>
> wrote:
>
>> Maybe we can add support for Python3 too.  I know that moving off of
>> Python 2 is a non-starter because of legacy code, but if it's ever going to
>> happen in the future, then starting earlier is better than starting later,
>> and this would be a good starting point.
>>
>> For what it's worth, the python-based swig generation script has support
>> for other languages.  There's a top level script which recurses into each
>> language-specific subdirectory and runs a script in that directory to shell
>> out to swig for the final creation.  So that part should be extensible.
>>
>
> That's what I do for my JS bindings already, although I am still using the
> old shell script code in that tree. I did have to move the *.i files though
> and modify them to only conditionally include some stuff that is Python
> specific.
>
> But the SWIG approach is rather painful for some other languages, so I'd
> like to hear if others might want a more straight forward (in terms of
> bindings) C API.
>
>  - Bruce
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150218/f7052c15/attachment.html>


More information about the lldb-dev mailing list