List Info

Thread: using swig to generate bindings: was Re: Re: freeglut and opengl bindings




using swig to generate bindings: was Re: Re: freeglut and opengl bindings
user name
2006-11-26 18:19:00
Here's a thought: leverage the excellent work already done
for the swig clisp bindings: the output produced by swig
-clisp -c++ somefiletobind.i  looks like it wouldn't be too
difficult to munge into gst code either with gst itself or
maybe with emacs elisp ....

Brad Watson

----- Original Message ----
From: Paolo Bonzini <paolo.bonzinilu.unisi.ch>
To: Krishna <v.krishnakrishnagmail.com>
Cc: help-smalltalkgnu.org
Sent: Monday, November 20, 2006 12:37:15 AM
Subject: Re: [Help-smalltalk] Re: freeglut and opengl
bindings

>> I have no idea of the complexity of this task.  It
seems relatively
>> similar to JNI, which SWIG supports, in terms of
complexity...
> 
> Oh!, I thought it is closer to the CLISP FFI (which
SWIG supports too).

Might be.  As far as I could see, the biggest design choice
is whether 
the C function gets the argument count and an argument
vector, or rather 
the arguments already converted to C data types and placed
into 
different arguments.  Python for example is the former, Java
is the latter.

Paolo


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk





 
____________________________________________________________
________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk
using swig to generate bindings: was Re: Re: freeglut and opengl bindings
user name
2006-11-27 15:03:35
Brad Watson wrote:
> Here's a thought: leverage the excellent work already
done for the swig clisp bindings:

The idea overall is good.  The problem is that CLISP's C
binding is way 
more powerful.  In particular, GNU Smalltalk has no support
for enums 
and variables.

Also, more work (or a wrapper layer, that SWIG is very good
at emitting) 
would be necessary to support things such as passing
structures by value.

Paolo


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )