Search:

Found 992 videos

Async/await server pt.4 - timeouts by Dodgy Coding
07:30

Async/await server pt.4 - timeouts

Dodgy Coding   |   8 views   |   2020-03-21

A gentle exploration of building a identd for Linux using async/await and tokio 0.2. This part demonstrates halting an await after a configurable time limit, both using tokio's timeout() helper and with the select! macro from the futures crate.

Async and its alternatives by Dodgy Coding
14:23

Async and its alternatives

Dodgy Coding   |   7 views   |   2019-10-19

Rust libraries come in a variety of API styles and futures are just one option. In this video we compare and contrast four styles from three crates: 1. Synchronous blocking functions (websocket) 2. Single thread reactor (ws-rs) 3. Non-blockin...

Cancelling Tokio Intervals by Dodgy Coding
12:03

Cancelling Tokio Intervals

Dodgy Coding   |   11 views   |   2019-09-21

A discussion of how futures are given to an async executor and later dropped. Examples of cancelling an Interval stream by erroring out of for_each, and by selecting against another future.

Type erasure in Rust/C FFI — structs, generics, trait objects by Dodgy Coding
21:20

Type erasure in Rust/C FFI — structs, generics, trait objects

Dodgy Coding   |   22 views   |   2019-08-18

Exploring how to create data structures that are owned by C and pass pointers back to Rust to operate on them. This is easy for a basic struct but when you introduce generics or traits, things get interesting. Content warning: inadvisable C code.

Tokio I/O futures by Dodgy Coding
11:33

Tokio I/O futures

Dodgy Coding   |   12 views   |   2019-07-07

Experiments with tokio’s lines() function, fold(), and a custom multi-stage future with inner futures and the try_ready macro. With this episode, we are now up to four sub-optimal ways to count the number of lines in a file.

Making a leaf future for tokio by Dodgy Coding
14:55

Making a leaf future for tokio

Dodgy Coding   |   16 views   |   2019-06-30

I play around with a standalone future to see how the tokio executor’s polling works in practice. I then adapt a callback-based API to work with futures, including a full implementation of a leaf future that transitions from NotReady to Ready.

Rust Autocomplete and Debugging in VS Code by Dodgy Coding
07:28

Rust Autocomplete and Debugging in VS Code

Dodgy Coding   |   113 views   |   2019-06-23

Visual Studio Code is a convenient cross-platform environment for writing Rust code. By installing and configuring a few extra plugins—Better TOML, RLS and CodeLLDB—it can quickly become a full-fledged IDE. Nightly components status Mac: https...

Soft robot bipedal gait by Main s1512783 channel
00:51

Soft robot bipedal gait

Main s1512783 channel   |   89 views   |   2019-04-06

Two-legged gait developed by a model-based reinforcement learning controller after ~30 min of training.

Soft robot undulating gait by Main s1512783 channel
00:53

Soft robot undulating gait

Main s1512783 channel   |   34 views   |   2019-04-06

Undulating gait pattern developed by a model-based reinforcement learning algorithm after 30-50 minutes of training.

Python – Lists by Python Programming
05:26

Python – Lists

Python Programming   |   141 views   |   2019-04-02