[LV2] [Rust] Anybody interested in Rust?

Stefan Riha hoitaus at gmail.com
Sat Dec 3 20:55:50 PST 2016


> I imagine that in order to make a type safe wrapper you'll have to deal with
connect_port automagically in the wrapper since it inherently requires
casting from untyped buffers...

If you mean related to the buffer size, then I think I know what you mean.
Rust has "slice" types, which are "views" into a block of memory
represented as a pointer and a length. They panic e.g. if an out-of-bound
read occurs. Setting that length may be problem, since it's not supplied
with connect_port().

Regards, Stefan

On Sat, Dec 3, 2016 at 10:07 PM, David Robillard <d at drobilla.net> wrote:

> On Sat, 2016-12-03 at 12:41 +0700, Stefan Riha wrote:
> > I was wondering if this mailing list is open to questions about plugin
> > development in the Rust programming language?
> >
> > See e.g.:
> >
> > http://stackoverflow.com/questions/40944524/safe-rust-
> interface-for-c-plugin-interface
>
> All good, I'd love to see this taken further and find Rust very
> appealing in many ways, but haven't yet gotten any real experience
> working with it so can't be of much help on the idiomatic Rust side of
> things.
>
> I imagine that in order to make a type safe wrapper you'll have to deal
> with connect_port automagically in the wrapper since it inherently
> requires casting from untyped buffers...
>
> --
> dr
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lv2plug.in/pipermail/devel-lv2plug.in/attachments/20161204/55ec925d/attachment.htm>


More information about the Devel mailing list