[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] ctypes and c++

Following on from this, I have just discovered SWIG: http://www.swig.org/ , 
which seems to have C++ to OCaml wrapping support. I’ll give this a try and see 
if works.

Otherwise, this seem to be a good suggestion. A good backup plan.

On 13 May 2014, at 12:17, Mortier Richard <pszrmm@xxxxxxxxxxxxxxxxxxxxxxx> 

> On 13 May 2014, at 11:57, Anil Madhavapeddy <anil@xxxxxxxxxx> wrote:
>> The best route right now is probably to write a small C interface layer to
>> the C++ library with the subset of functions you want to call.  Most FFIs
>> generally have issues with robust C++ linking, so this would come in handy
>> with other language interfaces too.
> yup that should work.
> steven-- do you want to give that a go?  i imagine the ocaml side will stay 
> (roughly) the same as and when c++ support gets added to ctypes in the future 
> -- eg., the ctypes generated c++ stubs would obviate the need to expose parts 
> of the c++ library via c.
> -- 
> Cheers,
> R.

This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, copy 
or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system, you 
are advised to perform your own checks. Email communications with the 
University of Nottingham may be monitored as permitted by UK legislation.

MirageOS-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.