Trending
ssanderson.bsky.social's Avatar

ssanderson.bsky.social

@ssanderson

Polyglot software engineer. Recovering math/philosophy enthusiast. https://www.partiallyapplied.com/

25
Followers
49
Following
5
Posts
04.02.2024
Joined
Posts Following

Latest posts by ssanderson.bsky.social @ssanderson

I’ve found this to be a useful general technique any time I’m implementing code that that involves tricky optimizations.

Often a good testing strategy is: does my fancy optimized implementation match the obviously correct, too-slow-for-production-but-fine-for-tests implementation.

07.05.2025 21:56 👍 1 🔁 0 💬 0 📌 0
Preview
6. Expressions This chapter explains the meaning of the elements of expressions in Python. Syntax Notes: In this and the following chapters, extended BNF notation will be used to describe syntax, not lexical anal...

Grammar-wise, this logic applies to anything in docs.python.org/3/reference/..., which also includes `in` and `not in`.

13.01.2025 15:37 👍 0 🔁 0 💬 0 📌 0
A Python repl showing the following text:

In [3]: x = 5

In [4]: x is not None
Out[4]: True

In [5]: x is not None == True
Out[5]: False

A Python repl showing the following text: In [3]: x = 5 In [4]: x is not None Out[4]: True In [5]: x is not None == True Out[5]: False

Even more surprising: `is` and `is not` is this same chaining logic, so you can chain them with other comparisons in non-obvious ways:

13.01.2025 15:32 👍 4 🔁 0 💬 1 📌 0
Preview
SKITTLES POP’d Crunch the Rainbow, Taste the Rainbow with freeze-dried SKITTLES POP’d. Explore iconic Original and Sour flavors with a new crispy texture.

Skittles popd implies the existence of skittles pushd. www.skittles.com/popd

14.12.2024 03:17 👍 2 🔁 0 💬 0 📌 0
Post image

Last year’s rust survey showed VSCode being most used by a healthy margin: blog.rust-lang.org/images/2024-...

05.12.2024 12:40 👍 2 🔁 0 💬 0 📌 0
Ferrocene 24.11.0 — Ferrocene Release Notes

Huge congrats to the @ferroussystems.bsky.social team for Ferrocene (a safety critical Rust distribution) now being qualified for use in medical devices (IEC 62304)!

And for maintaining a 3-month release cycle, which is *unusually* fast for that ecosystem!

public-docs.ferrocene.dev/main/release...

27.11.2024 16:22 👍 142 🔁 29 💬 2 📌 2