Note: This is a follow-up post to Writing An Interpreter In Rust Thanks for all your feedback, explainations and pull-requests! I’m pretty …...
Read more »
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 »
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 »
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 »