Tinkering
Come for the Foo, stay for the Bar
-
Using Python's asyncio with serial devices
After learning about async/await in Python I wondered how I could apply it to software in my lab. Much of that involves talking to equipment via serial ports. Libraries for talking to serial ports exist, but I found the documentation for doing so via async/await sparse. Here's an example of how to use PySerial asynchronously.
-
Introduction to Procedural Macros in Rust
One of the really nice things about Rust is its macro system. It makes it really easy to generate boilerplate code that would otherwise be really tedious to write by hand. In this post you'll learn how to write your own macros that will put Nicolas Cage quotes in the error messages generated by your IDE.