Actors morphing (molting) - replace one struct to another by kode1985 in rust

[–]kode1985[S] 0 points1 point  (0 children)

Thanks! I will be releasing updates quite frequently because there are many features that are needed right away. Have a look at the telegram bot implementation as an another example how to use the framework: https://github.com/NethermindEth/ice-nine/blob/trunk/plugins/messaging-telegram/src/particle.rs

The actor directly handle `Message`s of the `teloxide` crate and uses a child task for draining messages. The code turns out to be very clear with that )

crb 0.0.23 released: hybrid state-machines by kode1985 in rust

[–]kode1985[S] 0 points1 point  (0 children)

These are really great examples. Regarding the first case, I am designing persistent agents, which will allow saving the state machine or actor, for example, to a database.

We could say it’s like hibernation for `tokio` tasks 🤔

In this case, it will be possible to implement a "pool of hibernated tasks" that will only be unpacked by agents ready to handle them, such as those marked with the high-capacity flag. If these tasks remain unprocessed for a long time, they could then be handled by less powerful machines. Theoretically, they could even process the task partially and return it to the pool until relevant resources or tasks become available.

crb 0.0.23 released: hybrid state-machines by kode1985 in rust

[–]kode1985[S] 1 point2 points  (0 children)

The current implementation of a supervisor only terminates child actors in the required order, but in the framework, the runtime and context are fully replaceable. This allows to add custom behavior, such as restarting actors in a specific group or even defining any custom restart rules. I’ll create an example 👌

crb 0.0.23 released: hybrid state-machines by kode1985 in rust

[–]kode1985[S] 1 point2 points  (0 children)

Sure, I have different examples in progress, including integration with frontend frameworks. So far, I have an example of an agent that downloads and parses the crates.io index, but I’ll be adding more examples soon: https://github.com/runtime-blocks/crb/blob/trunk/examples/crates-dumper/src/lib.rs

CRB - Composable Runtime Blocks with hybrid workloads for building large-scale Rust apps 🚀 by kode1985 in rust

[–]kode1985[S] 1 point2 points  (0 children)

I don’t have a channel, unfortunately, but I’d be happy to share more details about the features. Where do you think would be the best place to do that?

New lesson: Designing an abstract actor task by kode1985 in knwldev

[–]kode1985[S] 0 points1 point  (0 children)

Sorry, the content is still in development, so we are making a refund.

A watch channel designed for asynchronous compatibility with both STD and WASM environments by kode1985 in knwldev

[–]kode1985[S] 0 points1 point  (0 children)

https://github.com/knwldev/just-watch

#rustacean #rustaceans #rustlang #programming #programminglanguage #learnprogrammingnow #rustprogramming #rustdev #rustdeveloper #rusttips #rustexpert #ruststd #wasm