ssanderson.bsky.social's Avatar

ssanderson.bsky.social

@ssanderson.bsky.social

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

25 Followers  |  47 Following  |  5 Posts  |  Joined: 04.02.2024  |  1.4488

Latest posts by ssanderson.bsky.social on Bluesky

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

@ssanderson is following 20 prominent accounts