⚛️Revertron · @Revertron
666 followers · 22615 posts · Server zhub.link

Я, как старый разработчик, обычно в расте использовал только стандартные примитивы синхронизации - Mutex, RwLock, Atomic* и т.п.

Но недавно попробовал , и изумился насколько просто сделать распараллеливание обработки данных.
Просто запускаешь параллельный итератор по коллекции, и собираешь результат в другую коллекцию.

Но есть и подводные - нельзя просто в замыкание закинуть коллекцию для результатов, например.

#rustlang #Rust #rayon

Last updated 1 year ago

Kai mit der Kiste · @olifantenbaer
97 followers · 274 posts · Server nrw.social

@Kuchenschwarte
Madeira
Das Viskosegarn....
Ehrlich: Mit meinem Laienhaften Auge sehe ich absolut keinen Unterschied zum oder
Für mich ist der Glanz annähernd identisch. Im Gegensatz zu Polyestergarn auch hier wieder bis 95°C waschbar, bei *** bügelbar.
Zur Haltbarkeit auf dem Stoff, während man es im Alltag gebraucht, kann ich natürlich nix sagen.
Wenn sich das Zeug bewährt, flieg Polysheen bei mir raus.

#rayon #polysheen #polyneon #stickgarn #maschinenstickgarn

Last updated 2 years ago

Kai mit der Kiste · @olifantenbaer
97 followers · 274 posts · Server nrw.social

@Kuchenschwarte
Madeira
Das Viskosegarn....
Ehrlich: Mit meinem Laienhaften Auge sehe ich absolut keinen Unterschied zum oder
Für mich ist der Glanz annähernd identisch. Im Gegensatz zu Polyestergarn auch hier wieder bis 95°C waschbar, bei *** bügelbar.
Zur Haltbarkeit auf dem Stoff, während man es im Alltag gebraucht, kann ich natürlich nix sagen.
Wenn sich das Zeug bewährt, flieg Polysheen bei mir raus.

#rayon #polysheen #polyneon #stickgarn #maschinenstickgarn

Last updated 2 years ago

Mo :ferris: :tux: · @mo8it
39 followers · 288 posts · Server fosstodon.org

@ryguw With Rust, you have fearless parallelism! No data races! (It can not prevent dead lock though, but this is a logic error). The crate is awesome for easy, safe and load balanced multithreading.

#rayon

Last updated 2 years ago

Mo :tux: :ferris: · @mo8it
18 followers · 198 posts · Server fosstodon.org

@smranaldi Update after 50 days:

I did my first big project with scientific computations in . I did use which fits perfectly for simulations with live plots.

is a must for load balanced multithreading. Multithreading in general is fearless with the type system with Arc, Mutex, atomics, channels etc. (unless you produce a deadlock).

I loved for threadsafe progressbars for my long simulations. 100% CPU usage with fancy progressbars, I love it!

1/4

#rustlang #egui #rayon #indicatif

Last updated 2 years ago

CloneWeb · @cloneweb
155 followers · 809 posts · Server mastodon.social

😯
---
RT @centaurclub
La planche 01 de la la suite du mythique de

Scénario : Jean
dessins : Christian & Etienne
Couleurs : Bruno

La 2eme planche est visible sur le forum :
centaurclub.com/forum/viewtopi
twitter.com/centaurclub/status

#flecheardente #rayon #epjacobs #VanHamme #cailleaux #schreder #tatti

Last updated 2 years ago

Vlad · @vladimirvl
5 followers · 23 posts · Server mstdn.social

Grupo de liberación electrónica... Suena interesante.


#cowboybebop #rayon

Last updated 2 years ago

Vlad · @vladimirvl
4 followers · 28 posts · Server mstdn.social

Grupo de liberación electrónica... Suena interesante.


#cowboybebop #rayon

Last updated 2 years ago

Michael A. Murphy :system76: · @mmstick
621 followers · 347 posts · Server fosstodon.org

@TimoBetcke If you do decide to use , you can get access to the context from a rayon thread by passing a tokio handle into the rayon task.

let handle = tokio::Handle::current();

rayon::spawn(move || {
handle.block_on(async move {
// Async code here
});
});

This'll work for std::thread::spawn too.

#rayon #tokio

Last updated 2 years ago

Guillemette Silvand · @guillemettesilvand
701 followers · 4950 posts · Server framapiaf.org
Guillemette Silvand · @guillemettesilvand
701 followers · 4950 posts · Server framapiaf.org
Michael Connor Buchan · @TheFake_VIP
533 followers · 1783 posts · Server linuxrocks.online

might be a newer, younger language, with fewer idiomatic libraries available (backed up by literally 0 evidence), but the libraries and existing code is just ... so cool! From , to , to , to many, many more, (ok I've been reading too much fasterthanli.me), it's just all so ... surprisingly easy. I particularly like how crates can add additional functionality to parts of the Standard Library, or even some of the core data structures and types of the language.

#rayon #Indicatif #serde #rust

Last updated 4 years ago

Lup Yuen Lee 李立源 · @lupyuen
1241 followers · 14414 posts · Server qoto.org
gee Ⓐ⚑ · @gee
4147 followers · 2444 posts · Server framapiaf.org

[Nouvel article] Le rayon d'un atome

Parce que les sciences physiques et la géographie ne sont pas incompatibles…

grisebouille.net/le-rayon-dun-

#bd #humour #science #atome #rayon

Last updated 5 years ago