hackeryarn

9 posts tagged: Discussion

Fast Python with Rust: a data-oriented approach

By applying data-oriented design patterns in Rust, we can build a use case specific Python library that outperforms even NumPy. This article lays out the bottlenecks and architectural shifts needed to achieve this level of performance.

· 11 minutes

You don't need a map for that

One of the most misused data structures is the humble map; hashmap, dictionary, hash table, etc. It's a great data structure for quick storage and access of key value pairs. Unfortunately, because of its ease and availability, it becomes pervasive at jobs it has no business doing. The problem grows most visible in dynamically typed languages that make the map a first class citizen (Python, Ruby, Clojure, etc.), but it can creep up in any language.

· 3 minutes

When DRY goes wrong

DRY has become a mantra throughout the industry. Any time repetitive code shows up, DRY gets applied as a cure all. If you even start to question DRYing up a piece of code, you are viewed as a heretic to the entire industry.

· 14 minutes

Picking a Linux Distro

I recently started a new job that gave me the chance to run whatever Linux distribution would make me the most productive. In the face of complete freedom, I decided to re-evaluate my daily driver and see if there was a distribution that would give me the most up-to-date software while maintaining a stable system. The results of my search surprised even me.

· 6 minutes

Embrace your constraints

Engineers want to measure the quality and effectiveness of their work. They turn to code coverage, burn down charts, and yearly goals, with the best intention.

· 8 minutes

The Right Abstraction for Lambdas

Serverless functions are a great alternative for many light tasks that would traditionally required a server. They allow you to split up work across mutiple small functions, and you only pay for what you use. On top of that, they require less maintenance than managing your own server or Kubernetes cluster.

· 5 minutes