Тёмный

Shachar Langbeheim - async & FFI - not exactly a love story - Rust Linz 

Rust
Подписаться 63 тыс.
Просмотров 2,8 тыс.
50% 1

Async programming in Rust isn't a simple affair when running a pure-rust application. Unsurprisingly, when trying to combine Rust with another language, and expose async interfaces that cross the language barrier, there are plenty of potential mistakes to make. In this talk we'll discuss some of the pitfalls awaiting those who try to cross the language barrier.

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@zohnannor
@zohnannor 8 месяцев назад
Fascinating talk with a surprising conclusion. Thank you!
@Roibarkan
@Roibarkan 8 месяцев назад
Great talk. On episode 160 of the ADSP podcast Sean Parent mentioned the Adobe concurrency library and work being done to make it use the “operating system native thread pool” and to have it support rust concurrently with C++. Perhaps people who found this talk interesting would be interested in that as well
@Vagelis_Prokopiou
@Vagelis_Prokopiou 8 месяцев назад
Excellent talk. A lot of useful information. Thanks a lot.
@ericchu6633
@ericchu6633 7 месяцев назад
So according to the description in the video, the desired functionality is to have some asynchronous task on the Java side that is rewritten using Rust to improve performance? In such a scenario, there must be an executor and a reactor on the Java side (terms from Rust), and at the same time, there must be an executor and a reactor on the Rust side to execute the rewritten task. Hmmm... If that's the implementation, then there's a basis for better performance of UDS, since it's not fundamentally different from a multi-process program. I think a better approach would be to implement a language-independent runtime, which would reduce the cost of async&ffi. However, I'm a bit skeptical that the "other-lang-async-ffi-rust" pattern will lead to performance gains, in general, asynchronous code is not compute-bound.
@avinashthakur80
@avinashthakur80 7 месяцев назад
Great talk. But not entirely convinced that async FFI is faster than socket implementation. Are we sure that the FFI implementation wasn't the issue ? Maybe there could be a better implementation that solves this ? Or, we need an FFI for message passing than task passing ? That would be different from socket because OS won't be involved.
@asontehunsthanshhl
@asontehunsthanshhl 7 месяцев назад
Yeah I was thinking the same thing. I don't doubt sockets might be better sometimes. But I've never found FFI to be too slow for my use. FFI is also cross platform
@Roibarkan
@Roibarkan 8 месяцев назад
8:05 [slide 6] Shachar’s talk about FFI from CoreCpp: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-43Tmqn-sFsk.html
@linkernick5379
@linkernick5379 8 месяцев назад
Good reference (count! 😊), thanks
@TheInspctrcat
@TheInspctrcat 8 месяцев назад
Kind of intuitive, bout still cool, thx
Далее
Rainer Stropek - Memory Management in Rust
59:48
Просмотров 12 тыс.
#慧慧很努力#家庭搞笑#生活#亲子#记录
00:11
V16 из БЕНЗОПИЛ - ПЕРВЫЙ ЗАПУСК
13:57
Async Rust Is The Bane Of My Existence | Prime Reacts
35:36
Rust Linz, Interlude - A Love Letter To Rust
47:10
Просмотров 4,7 тыс.
Introduction to Async in Rust
46:02
Просмотров 6 тыс.
RustConf 2018 - Embedding Rust in C/C++ by Katharina
31:20
The Value of Source Code
17:46
Просмотров 51 тыс.