Rfcs: Native C++ FFI in the same manner as D

Created on 21 Jan 2015  路  7Comments  路  Source: rust-lang/rfcs

Issue by bstrie
_Friday Apr 12, 2013 at 14:04 GMT_

_For earlier discussion, see https://github.com/rust-lang/rust/issues/5853_

_This issue was labelled with: A-an-interesting-project, A-ffi, E-hard, I-wishlist, P-low in the Rust repository_


@sanxiyn and @jdm have expressed interest in doing this, possibly in the 0.8 cycle.

http://www.reddit.com/r/rust/comments/1c3clf/c_ffi/c9codm1

T-lang

Most helpful comment

Hi, what's the current status on this? 馃寶

All 7 comments

Are there any news on this?

I'd be interested in using Rust with Qt which will probably require this.

Wouldn't it be better if we made a class ffi syntax, allowing other object-oriented language ffi packages (like grust) to interface with it? This should prevent multiple class syntaxes from arising making ffi not needlessly complex, wile at the same time easing the implementation of ffi packages.

There's a more up to date discussion on C++ interop over on Rust Internals:

https://internals.rust-lang.org/t/better-c-interoperability/2650?u=erlend_sh

Hi, what's the current status on this? 馃寶

Just fyi @shmerl there is an effort to make QtQuick bindings : https://github.com/cyndis/qmlrs

@burdges I don't know whether @shmerl has similar concerns but, for me, QtQuick is completely unsuitable because its support for native widgets is immature and, by its very nature, it runs counter to my "maximal compile-time verification" goal since QML would be code I'd have to get right, which Rust can't check at compile time.

(Most of my projects are firmly I/O-bound and my whole reason for wanting to replace Python with Rust is that, to approximately quote the title of a YouTube video I saw in the sidebar, "a type is worth a thousand tests".)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

clarfonthey picture clarfonthey  路  3Comments

torkleyy picture torkleyy  路  3Comments

rust-highfive picture rust-highfive  路  4Comments

mahkoh picture mahkoh  路  3Comments

burdges picture burdges  路  3Comments