Physicists now report that arranging two layers of atom-thick graphene so that the pattern of their carbon atoms is offset by an angle of 1.1º makes the material a superconductor.
When in C you take a &foo and keep the pointer for later use, you are responsible for foo's lifetime.
Rust requires you to explicitly annotate the lifetime wherever you keep the reference. This makes it harder to write the code, but probably makes it easier to refactor later.
Refactoring that C code without being aware of the lifetime at all times may leave you with dangling pointers; in Rust the compiler won't let that happen.
Don't mind me, I'm just refactoring code and getting ideas.
For the first time in quite a while, I wrote a non-conference-talk-transcript blog post! I wanted to share a little about the text editor I’ve been using, and gather a few things together that I wish I’d known when I picked it up.
Getting Started with Spacemacs: https://interblah.net/getting-started-with-spacemacs
Always an app idea, never an app? Come to my webinar and find out why
Linux (!) just joined Apple, Microsoft, and Google in adopting the code of conduct I created, Contributor Covenant.
A Mastodon instance for Rubyists & friends