Hi,

This year I've been working on three new components[0] and I considered
Rust for both.

At the time, when asked people on #rust and #developers, the answer was
that oxidation targets should have very simple APIs, because getting
anything more complex than strings/ints between rust and cpp/js is
non-trivial.

I don't know if that changed, but I'd appreciate any tutorial on how to
write a WebIDL/XPIDL module or transfer JSON between Rust and JS/CPP.

Thanks,
zb.

[0] intl/locale/LocaleService, intl/locale/OSPreferences and
intl/l10n/Localization

On Mon, Jul 10, 2017 at 8:41 AM, Sylvestre Ledru <sylves...@mozilla.com>
wrote:

> I am organizing a second rust training in Paris in September or October
> (amongst others)
> The registration has been sent to the French staff last week. Will be
> shared with the European staff at the end of the week.
>
>
> Le lun. 10 juil. 2017 à 12:30, Nicholas Nethercote <n.netherc...@gmail.com>
> a écrit :
>
>> Hi,
>>
>> Firefox now has multiple Rust components, and it's on track to get a
>> bunch more. See https://wiki.mozilla.org/Oxidation for details.
>>
>> I think this is an excellent trend, and I've been thinking about how to
>> accelerate it. Here's a provocative goal worth considering: "when writing a
>> new compiled-code component, or majorly rewriting an existing one, Rust
>> should be considered / preferred / mandated."
>>
>> What are the obstacles? Here are some that I've heard.
>>
>> - Lack of Rust expertise for both writing and reviewing code. We have
>> some pockets of expertise, but these need to be expanded greatly. I've
>> heard that there has been some Rust training in the Paris and Toronto
>> offices. Would training in other offices (esp. MV and SF, given their size)
>> be a good idea? What about remoties?
>>
>> - ARM/Android is not yet a Tier-1 platform for Rust. See
>> https://forge.rust-lang.org/platform-support.html and
>> https://internals.rust-lang.org/t/arm-android-to-tier-1/5227 for some
>> details.
>>
>> - Interop with existing components can be difficult. IPDL codegen rust
>> bindings could be a big help.
>>
>> - Compile times are high, especially for optimized builds.
>>
>> Anything else?
>>
>> Nick
>> _______________________________________________
>> firefox-dev mailing list
>> firefox-...@mozilla.org
>> https://mail.mozilla.org/listinfo/firefox-dev
>>
>
> _______________________________________________
> firefox-dev mailing list
> firefox-...@mozilla.org
> https://mail.mozilla.org/listinfo/firefox-dev
>
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to