Rust, Zero to Production #3.5: HTML Forms, Databases, Integration Tests

A personal blog focused on software, Machine Learning and other passing fads. Read more

Similar

Type Erasure in Rust

Rust traits have the neat property where you can use them either as generic bounds or as dynamic dispatch, with the &dyn MyTrait syntax. The latter is necessary in heterogeneous scenarios, where you want to use multiple concrete types together that al... (more…)

Read more »

Boxes and Trees – Smart Pointers in Rust

Recently, I tried to implement a binary tree data structure in Rust.Each binary tree has a root value, a left, and a right subtree.I started from this Python implementation, which is quite straightforward.class Tree: def __init__(self, val, left=None, ri... (more…)

Read more »

Rust – I used unsafe. It was unsafe

For context, I was writing an smtp server. Not necessarily a good smtp server, but the kind of smtp server you'd write in two days to see what happens. As such, any conclusions from this experiment are invalid.giftAt the heart of the problem, and core to ... (more…)

Read more »