As far as I know, there’s two ways to link native libraries in a Rust package:| rufflewind.com
// Constructing leaf futures| rufflewind.com
Note: This article is somewhat biased toward Linux-like environments.| rufflewind.com
Git submodules are useful, but their UX is a bit intrusive for users who aren’t even interacting with the submodules. Here’s a list of the two common ones I often run into. (Let me know if there’s anything else that folks often run into!)| rufflewind.com
In this post, I’ll walk through the mathematical formalism of reverse-mode automatic differentiation (AD) and try to explain some simple implementation strategies for reverse-mode AD. Demo programs in Python and Rust are included.| rufflewind.com
In the process of writing a math-heavy blog post, I ran into several problems with the existing Jekyll configuration. I had set up Jekyll to use Redcarpet as the Markdown renderer, but it simply does not play well with MathJax: it will screw up \ and & inside the MathJax code.| rufflewind.com
Today’s shower thought is: Is there a way to interpret double negation elimination as a program?| rufflewind.com
A friend once asked me a question like this:| rufflewind.com
Most sorting algorithms rely on the correct implementation of a comparison function that returns the ordering between two elements – that is, a function that takes two elements and returns whether the first is less than, equal to, or greater than the second:| rufflewind.com
Below is a graphical depiction of moving, copying, and borrowing in the Rust language. Most of these concepts are fairly specific to Rust and are therefore a common stumbling block for many learners.| rufflewind.com