The Alexandrian Moment
For giggles, I put a short story up as an Amazon Kindle offering: The Alexandrian Moment
For giggles, I put a short story up as an Amazon Kindle offering: The Alexandrian Moment
On Ubuntu 26.04 (resolute, which ships gamescope 3.16.20), launching a game
through gamescope with --force-grab-cursor can make the mouse
pointer vanish. Upstream:
https://github.com/ValveSoftware/gamescope/issues/2180
Dropping --force-grab-cursor avoids the bug, but that flag is
what confines the pointer to the game window on a multi-monitor setup, so
removing it is not an acceptable fix here.
Only one thing worked for me: build the older questing gamescope 3.16.15 and run it instead of resolute's 3.16.20.
Everything else raised on #2180 and related threads failed or did not apply:
--hide-cursor-delay 99999 — no effect.WLR_NO_HARDWARE_CURSORS=1 — no effect.Both 3.16.15 and 3.16.20 are 3.16.x, so the regression landed in a commit between those two tags.
Build gamescope 3.16.15-2 from Ubuntu questing sources and
install, self-contained, under ~/Stow/gamescope-questing. No root,
no system changes. resolute dropped wlroots 0.18 (ships 0.19), which 3.16.15
needs — Debian patch 0006 wires gamescope to the system
libwlroots-0.18-dev, and the Debian tarball strips the vendored
subprojects/wlroots — so build wlroots 0.18 from its matching Ubuntu
source into the same prefix.
All from the Ubuntu archive. Confirm each download's checksum against the
Checksums-Sha256 field of its .dsc.
3.16.15-2, pool/multiverse/g/gamescope/0.18.2-3 (source behind questing's
libwlroots-0.18-dev), pool/universe/w/wlroots/Install both packages' Build-Depends (see each .dsc).
gamescope's libwlroots-0.18-dev is supplied by the wlroots build
below; wlroots' libcairo2-dev is needed only for examples, which are
disabled.
Prefix for both: PREFIX="$HOME/Stow/gamescope-questing". Apply
each package's Debian quilt patches before configuring:
while read p; do patch -p1 -i debian/patches/$p; done < debian/patches/series
1. wlroots 0.18.2 -> $PREFIX
meson setup build --prefix="$PREFIX" --libdir=lib --buildtype=release \
-Dexamples=false -Dwerror=false
ninja -C build install
Installs libwlroots-0.18.so, headers under
include/wlroots-0.18, and lib/pkgconfig/wlroots-0.18.pc.
2. gamescope 3.16.15 -> $PREFIX
Two source edits after patching:
src/meson.build: patch 0006 hardcodes
/usr/include/wlroots-0.18 in reshade_include.
Replace with
join_paths(get_option('prefix'), 'include', 'wlroots-0.18').src/meson.build: vcs_tag() has no git tree, so the
--version banner is blank. After
gamescope_version_conf = configuration_data() add
gamescope_version_conf.set('VCS_TAG', '3.16.15').export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:\
/usr/lib/x86_64-linux-gnu/pkgconfig:\
/usr/lib/pkgconfig:\
/usr/share/pkgconfig"
meson setup build --prefix="$PREFIX" --libdir=lib --bindir=bin --buildtype=release \
-Dpipewire=enabled -Denable_openvr_support=false \
-Dcpp_link_args='-Wl,-rpath,$ORIGIN/../lib' \
-Dc_link_args='-Wl,-rpath,$ORIGIN/../lib'
ninja -C build install
Choices, matching the Debian rules except where noted:
-Dpipewire=enabled -Denable_openvr_support=false from Debian
rules.bindir=bin, libdir=lib (Debian uses
/usr/games) so the tree suits a stow package.PKG_CONFIG_PATH puts $PREFIX first so the staged
wlroots-0.18 wins.$ORIGIN/../lib lets gamescope find its
bundled libwlroots-0.18.so both in the raw prefix and after
stowing.readelf -d "$PREFIX/bin/gamescope" | grep RUNPATH # $ORIGIN/../lib
ldd "$PREFIX/bin/gamescope" | grep wlroots # resolves inside $PREFIX
"$PREFIX/bin/gamescope" --version # gamescope version 3.16.15
The Spertilo Live Music Time Machine is a great little device, with a delightful interface. It streams live shows from archive.org and phish.in, especially Grateful Dead for 1966–1995.
I use it frequently but I infrequently need to comb their site/FAQ/etc to find button combinations for some Micro edition features. Here's a quick reference:
Micro model reference only. No Bluetooth. No Experience Mode.
HIDDEN_WIFI and enter the name manually.DEL to erase, Stop to finish.| Knob | Press |
|---|---|
| Month | Dim the screen |
| Day | Jump to next date with a tape |
| Year | Today-in-history for staged year; press again to cycle years with tapes |
Volume: dim the screen (press Month), then Rewind lowers and FFwd raises volume. Turn any knob to wake the screen.
Hold Power until the menu appears. The site says 3 seconds in one place, 5 in another; hold until you see it.
A short Power press stops playback and dims the screen.
Current versions as of April 2024: software 2.1.3, firmware 1.23.0 20240408.
In Ubuntu 25.10, clicking window B (to focus it) can unexpectedly raise a sibling window A above an overlapping window C. This happens because A and B are in the same Tile Group — a spatial grouping the Ubuntu Tiling Assistant forms when windows are snapped/tiled edge-to-edge. The extension's "Raise together" rule raises the entire tile group whenever any member is raised, so raising B drags A upward too. The fix is to disable that group-raise behavior while keeping tiling itself intact:
gsettings set org.gnome.shell.extensions.tiling-assistant enable-raise-tile-group false
To verify it took, run gsettings get org.gnome.shell.extensions.tiling-assistant enable-raise-tile-group — it should print false.
(The following observation, including its linkage to Aristotle, is fun but not novel as noted at the end of the essay. The text/references came from Kagi's Research Assistant)
Compensation has two parts that work like directions on a plane. One direction is money. The other is recognition. Every job pays out along both, but the mix is different for each one. The mix is a two-vector and getting it right matters.
Examples abound. A doctor earns good money and high respect. Both directions are strong. A ballet dancer earns little money but receives great prestige. The recognition direction does almost all the work. A soldier may earn modest pay but gains deep honor, especially in moments of sacrifice. Respect, prestige, and honor are three words for the recognition axis — the one that money cannot buy.
Money and recognition are different goods for different kinds of merit. Paying someone in the wrong way causes problems. A wealthy person does not need more money. A person who cannot buy groceries does not care about awards. The right reward is the two-vector that addresses what the person actually lacks on both axes.
This is an old idea, with concepts going back to at least Aristotle. He saw that honor (not "recognition") and money were separate goods. He tied each to a different kind of contribution. He warned that mixing them up causes political trouble. The passages below trace his argument.
| Concept | Aristotle's Words | Source |
|---|---|---|
| Honor and profit are two distinct currencies of reward. In unequal friendships, each party should receive more — but not more of the same thing: the superior receives the larger share of honor; the needy party receives the larger share of material gain. | "both parties should receive a larger share from the friendship, but not a larger share of the same thing: the superior should receive the larger share of honor, the needy one the larger share of profit; for honor is the due reward of virtue and beneficence, while need obtains the aid it requires in pecuniary gain." | Nicomachean Ethics VIII.14 |
| Honor and property are independent axes of competition. People compete for them separately, and inequality along each axis produces discontent in opposite directions: the masses resent unequal property; the upper classes resent equally distributed honors. | "civil strife is caused not only by inequality of property but also by inequality of honors, though the two motives operate in opposite ways—the masses are discontented if possessions are unequally distributed, the upper classes if honors are equally distributed." | Politics II.7 (1266b) |
| "Merit" is not a single dimension. Different political traditions measure it differently — by free birth, by wealth, or by virtue — so what counts as a fair reward depends on which axis of merit is being applied. | "all men agree that what is just in distribution must be according to merit in some sense, though they do not all specify the same sort of merit, but democrats identify it with the status of freeman, supporters of oligarchy with wealth (or with noble birth), and supporters of aristocracy with excellence." | Nicomachean Ethics V.3 |
| Paying along only one axis gives poor outcomes. Each group is partly right but wrong when it claims the whole. | "All those who dispute about the forms of constitution assert a part of the just principle." | Politics III.9 (1281a) |
This article's two-axes presentation is not original. For example, Nancy Fraser, in her contribution to Redistribution or Recognition? (co-authored with Axel Honneth), proposes a two-dimensional theory of justice in which economic redistribution and cultural recognition are distinct, irreducible axes. Her redistribution and recognition map directly onto the money and recognition axes described here.
(The following observation/structure is mine but the text/references came from Kagi's Research Assistant per this specific prompting.)
Your child's iPhone or iPad locks. They look up at you. "Can I just have a little more time?"
You say yes. Or maybe no. Next time, you say the opposite. It feels like parenting. It isn't. It is one of the most powerful addiction triggers in psychology, and Apple has built it directly into Screen Time.
Psychologists call it intermittent reinforcement. The concept is simple. When a behavior is rewarded sometimes, but not always, that behavior becomes more persistent, not less. The uncertainty is the point. As one introduction to the subject puts it, "unpredictability can create a stronger association between the behavior and the reward, making it more compelling and often more difficult to extinguish." [1] This is why slot machines work. You keep pulling the lever because this time might be the one. The reward doesn't have to come often. It just has to come sometimes.
Apple's Screen Time feature is marketed as a parental control tool. It lets parents set daily limits on how long a child can use an app or a device. When a child hits that limit, the iPhone or iPad locks. Apple describes what happens next on its own child safety page: the child "can ask parents for more time." [2] CNET, reviewing the feature approvingly, puts it plainly: "your child can send a request for more time if more time is needed." [3] The parent then decides. Yes, no, or no answer at all. The child never knows which it will be.
That uncertainty is not a minor flaw. It is the mechanism. The behavior is using the phone until the limit hits, then sending the request. The reward is more screen time. The schedule is unpredictable. That is a textbook variable-ratio reinforcement schedule. It is the same structure that makes gambling compulsive. [1] The child is not being taught that the phone has limits. The child is being taught that the phone has a lever. Pull it enough times and it pays out. The parent, intending to set a boundary, has instead become the slot machine.
The fix is not complicated. Set the limit. Hold it. Every time. No exceptions. A limit that bends is not a limit. It is a reward on a variable schedule. The parent who always says no to extension requests is not being cruel. They are being consistent. And consistency is the one thing that intermittent reinforcement cannot survive. [1] Your child does not need more time on their phone. They need a parent who means what they say. Do not use time extensions.
Over the past year I've dusted off several projects hosted at https://github.com/RhysU/:
Thirteen years ago, while working on the dissertation, I put together a 3D pencil transform library atop FFTW MPI called underling. It looked great in isolation. It never integrated correctly with my dissertation code. I eventually ran away because spending time on it wasn't time spend graduating
In the last couple of days I learned that there was no problem with the library from a correctness perspective. Instead, the mysterious problem was MKL exposes an incomplete FFTW implementation that simply returns NULL for a lot of methods. After some linking tinkering in my dissertation's primary codebase, my little pencil decomposition library snapped right into place.
This is both immensely satisfying (it worked after all!) and frustratingly painful (would have loved to benchmark/publish during the grad school days!). Alas.
Written back in August 2020
I have two different sons. However, at the West End Suprette each one chose the same Häagen-Dazs ice cream bar. Something with dark chocolate. I chose a Nestle Crunch ice cream bar from another part of the freezer. I paid while they continuously touched things that I asked them not to touch.
We three walked a block south to a tiny park, Septuagesimo Uno, and plunked ourselves on some benches. I handed the Häagen-Dazs bars, which came boxed-then-wrapped, to the boys. They tore open the boxes but the wrappers stymied them. I chuckled and wondered if, sufficiently motivated, they'd get the packaging open by themselves. They endeavored.
I opened my Crunch bar, lifted it by the popsicle stick, caught half a bite, and the whole bar fell away from the stick and onto the nasty city ground. Evidently the Crunch bar had passed its days in a warmer freezer spot. The old Eddie Murphy ice cream man skit, where a kid loses a whole cone, ran through my head while I debated if anything could be salvaged. My wife would rightly kill me if she heard I taught the kids that food could be eaten off the nasty city ground. And the kids would certainly tell her. I sighed, shook my head, and then looked up into two pairs of wide eyes.
Each boy gazed into my disappointed face while still ineffectively fumbling with a wrapper. I got out “Too bad” before twice “Dad, would you please help me open this?” arrived. I held out my hand, the little one handed me his package, I opened it, and I handed back an unmelted ice cream bar. A pause, then into the mouth. I held out my hand, the bigger one handed me his package, I opened it without looking, and I passed back a second bar. Turning down again, I couldn't resist a tiny bit of the chocolate coating. Perhaps, adequately distracted, the kids wouldn't report me to their mother.
“Dad, would you like some of mine?” spoken softly startled me. A dark chocolate Häagen-Dazs bar floated into my gaze attached to a popsicle stick attached to an outstretched arm attached to my nine-year-old son. He had offered me his very first bite. I choked up briefly, politely declined, told him how kind that was, and hugged the boy. He blinked, stepped back, and then launched into his bar.
Fortunately, neither kid made so much of a mess that their not-yet-broken tendency to wipe their mouths on their shirts didn't solve said mess. I collected then threw away the two boxes, three wrappers, and three sticks. Starting home, I hugged the big one again. He ran ahead maybe twenty feet.
The six-year-old generally lags behind me on the street. Now, however, he kept pace as we walked in silence. Halfway home he says “Dad, I would have offered you mine but I knew you wouldn't eat it so I didn't offer it.” And I tell him thank you and I hug him too. Quickly thereafter, we enter our building lobby and call the elevator.
Inspired by "Tribute" by Tenacious D and another meta-bench skit. Arrived at through prompting and re-prompting Claude until it cried...
A Campfire Skit for 5 Scouts (~2 minutes)
No props. None. That’s the whole joke. Play it big. The crowd should get the ending long before the characters do.
(The FOUR SCOUTS stand in a row, in order 1–2–3–4. The DIRECTOR storms in.)
DIRECTOR: Scouts! I need a skit tonight. A GREAT one. Or it’s latrine duty till you can vote!
SCOUT 1: Director… we will perform THE skit. The greatest skit this camp has ever seen. We did it once. The Scoutmaster wept.
SCOUT 2: The whole crowd was on their feet! They wouldn’t stop cheering!
SCOUT 3: (quietly) A raccoon stood up and clapped.
DIRECTOR: (arms folded) Then do it.
SCOUT 4: Positions!
(All four strike a dramatic pose. They hold it. Their faces slowly fall.)
SCOUT 3: (through his teeth) …What was it?
SCOUT 2: I thought YOU remembered.
SCOUT 1: I remember it was GREAT. I don’t remember what it was.
SCOUT 2: (flat) There were no props. That was the whole thing. We had nothing. (pregnant silence)
DIRECTOR: (throwing up his arms) Nothing?! You’re telling me the greatest skit ever was a bunch of Scouts with NOTHING?! (throws up his hands) I give up. (walks behind the row of Scouts and lowers himself into a seated position at bench height — knees bent, arms crossed, sulking, perched on nothing)
SCOUT 3: (brightening) We just… sat down.
SCOUT 2: On what?
SCOUT 3: On the bench.
SCOUT 2: WHAT bench?
SCOUTS 1, 3 & 4: (slow, together) …Exactly.
(On the word, the DIRECTOR topples backward off the invisible bench and crashes to the ground. Hold. Bow. Everyone runs off.)
I have been hacking on https://github.com/rhysu/jobserver for a long time. Today I put the jobserver package up on PyPi: https://pypi.org/project/jobserver/.
My initial motivation was improving robustness over the process-pooling approaches that I was using back in August 2019. I needed something where my worker tasks could SIGSEGV or SIGPIPE without my entire pool crashing. I also needed extension hooks for a few specific applications, like advisory flocking when a worker was active and being mindful of RAM limits.
It's stayed fun to intermittently hack on. From the tag messages, you can tell I began using LLMs with this project after tag v1.12. Some features, like JobserverExecutor, were simply beyond my personal bandwidth before employing coding agents. I've tried to keep the technical quality at least as high as if I'd been hand-coding.
The timeline's been...
when_done callbacks along with grammar and type-annotation improvements.env and preexec_fn support, and adopted black/flake8/mypy tooling.sleep_fn.__getstate__/__setstate__ are now handled explicitly.reclaim_resources on the public API.MinimalQueue and improved test robustness.JobserverExecutor (a concurrent.futures.Executor wrapper), Jobserver.map(), and signal-based cancellation via Future.done(..., signal=...). Also hoisted submit defaults, named worker processes, fixed re-entrant CallbackRaised double-wrapping, and shipped nine worked examples.MinimalQueue and Jobserver, rewrote reclaim_resources() as O(k) using wait(), and added repr(). Fixed a Future.wait() sentinel/waitpid race and added Future.done() as a wait(timeout=0) shorthand.py.typed marker, a fixed queue-timeout overrun, and event-driven dispatcher polling. Replaced asserts at public boundaries with explicit TypeError/ValueError.JobserverExecutor can now own a default-constructed Jobserver automatically, making it drop-in, and slot acquisition became O(k) via a persistent selector. Also let preexec_fn return a context manager, added resource/callback warnings, and generalized nesting examples across all start methods.Future.result() via __cause__, escaping BaseExceptions became diagnosable, and concurrent.futures.Future.cancel() was wired through the executor. Many hardening fixes followed for map() slot reclamation, submit/shutdown races, MinimalQueue, validation, and the public API surface.env type signature, and added a stdlib-only benchmark harness under draft/.Jobserver became a thin handle over a shared, reference-counted Resources object, submission controls moved off submit()/map() into sibling handles (revise_env(), replace_preexec(), replace_sleep()), and SubmissionDied was renamed LostResult. Added a __version__, eager timeout validation, a redesigned queue hierarchy, suppressed worker traceback noise, hardened deserialization, and modernized packaging, docs, tests, and examples.I chased down this quote by Robert H. Goddard via The Goddard Papers Database . The original context of the letter, often omitted when using the quote, makes Goddard's words all the more delightful:
R. H. Goddard to F. T.*, Jeffersonville, Indiana
Roswell, February 5, 1942
It is not a simple matter to differentiate unsuccessful from successful experiments, since most work that is finally successful is the result of a series of unsuccessful tests in which difficulties are gradually eliminated...
*This was in response to a young experimenter who complained that many of his tests had been unsuccessful
SOURCE: Goddard, Robert H. The Papers of Robert H. Goddard. Edited by Esther C. Goddard and G. Edward Pendray. Vol. 3, 1941–1945: JATO and Variable Thrust for the Military. New York: McGraw-Hill, 1970, page 1453.
A first person temporal tragedy to the tune of "Let It Be"...
[Verse 1]
When I call during time troubles
You won't answer though I plea
Call shows "Scam Likely"
Scam Likely
And in my hour of darkness
Past you won't pick up for me
Phone shows "Scam Likely"
Scam Likely
[Chorus]
Scam Likely, Scam Likely
Scam Likely, Scam Likely
Need to change history
Scam Likely
[Verse 2]
And when my parents never meeting
Means I'll cease to ever be
Still phones show "Scam Likely"
Scam Likely
For historic missed connection fears
Haunt me that no one will ever see
Past the words "Scam Likely"
Scam Likely
[Chorus]
Scam Likely, Scam Likely
Scam Likely, Scam Likely
Nah, please Lord make them answer
Scam Likely
Can't I be?! Scam Likely
Scam Likely, Scam Likely
Insert myself in history
Scam Likely
[Instrumental Break]
[Guitar Solo]
[Chorus]
Scam Likely, Scam Likely
Scam Likely, yeah, Scam Likely
Need to change history
Scam Likely
[Verse 3]
And when the timeline's getting cloudy
There's hope shining yet in future me
Light more digits tomorrow
Scam Likely
Frantically dial numbers
Every phone rejects my plea
All show "Scam Likely"
Scam Likely, yeah
[Outro]
Scam Likely, Scam Likely
Scam Likely, nah, Scam Likely
Oh, there must be an answer
Scam Likely
Can't I be?! Scam Likely
Scam Likely, yeah, Scam Likely
Oh, there must be an answer
Scam Likely
Might not be? Scam Likely
Scam Likely, nah, Scam Likely
Insert myself in history
Scam Likely
Just quotes, etc. where I frequently want the original source…
“Invert, always, invert”
Jacobi originally but popularized by Munger : “...it is in the nature of things that many hard problems are best solved when they are addressed backward”
Algorithm for inversion:
Define the problem - what is it that you're trying to achieve?
Invert it - what would guarantee the failure to achieve this outcome?
Finally, consider solutions to avoid this failure
“[Not naming software tools] is actually a lesson that originates from the early days of Call of Duty at IW. From what I’m told, IW never named their engine, because any time you name something it becomes a bit more of a thing, and you start working for it. And they were a studio making games, the game is the thing. Nothing else.” [source]
“You have to do basic science on your libraries to see how they work…” [Sussman as reported by Wingo]
“A pointer is an integer with a shiv” [source]
Optimal stopping problems are solved with the odds algorithm, e.g. the classical secretary problem.
“The Statistics of Sharpe Ratios” by Andrew Lo [paper]
“You are in a drawdown. When should you start worrying?” [paper]
NIST has several excellent references:
Dictionary of Algorithms and Data Structures (DADS), a dictionary of algorithms, algorithmic techniques, data structures, archetypal problems, etc
Engineering Statistics Handbook with chapters Explore, Measure, Characterize, Model, Improve, Monitor, Compare, and Reliability
“If you have a procedure with 10 parameters, you probably missed some.” [source]
Driscoll Kraay Standard Errors are robust to both cross-sectional and temporal dependence.
The Python Graph Gallery is a visual reference over many graphs along with the source code to produce them.
Total least squares minimizes errors on both dependent and independent variables.
Dennis Ritchie: “Our habit of trying to document bugs and limitations visibly was enormously useful to the system. As we put out each edition, the presence of these sections shamed us into fixing innumerable things rather than exhibiting them in public. I remember clearly adding or editing many of these sections, then saying to myself 'I can't write this,' and fixing the code instead.” [source]
A bestiary of regression variants , including:
Linear Regression
Polynomial Regression
Logistic Regression
Quantile Regression
Ridge Regression
Lasso Regression
Elastic Net Regression
Principal Components Regression (PCR)
Partial Least Squares (PLS) Regression
Support Vector Regression
Ordinal Regression
Poisson Regression
Negative Binomial Regression
Quasi Poisson Regression
Cox Regression
Tobit Regression
A Bestiary of Functions for Systems Designers is a nice visual guide
Karpathy blogged A Recipe for Training Neural Networks :
Become one with the data
Set up the end-to-end training/evaluation skeleton + get dumb baselines
Overfit, recalling deep double descent
Regularize
Tune
Squeeze out the juice
Agustin Lebron’s The Laws of Trading :
Know why you are doing a trade before you trade.
You're never happy with the amount you traded.
Take only the risks you're being paid to take. Hedge the others.
Put on a risk using the most liquid instrument for that risk.
If you can't explain your edge in five minutes, you don't have a very good one.
The long-term profitability of an edge is inversely proportional to how long it takes to explain it.
The model expresses the edge.
If you think your costs are negligible relative to your edge, you're wrong about at least one of them.
Just because something has never happened doesn't mean it can't.
Corollary: Enough people relying on something being true makes it false.
Working to align everyone's interests is time well spent.
If you don't master technology and data, you're losing to someone who does.
If you're not getting better, you're getting worse.
Shellhaters.org has a great POSIX Shell and Utilities Quick Reference
Practical SQL for Data Analysis: What you can do without Pandas [source]
Taguchi methods are statistical methods, sometimes called robust design methods, developed by Genichi Taguchi to improve the quality of manufactured goods, and more recently also applied to engineering…. See also orthogonal arrays , optimal experimental link, and notice Sandia’s Dakota implements many of these ideas.
Prefer to change the code rather than write a workaround [source]
By nature, bugs are found in places that you didn’t think to look [source]
A cold path is a path through the code or situation that rarely happens.
By contrast, hot paths happen frequently. You don’t find bugs in hot paths.
Bugs are always in cold paths — every bug is found in a path colder than all the paths you tested.
Don’t have cold paths and avoid fallbacks
Your Makefiles are wrong is an opinionated approach to GNU Make:
Don’t use tabs with .RECIPEPREFIX
Always use (a recent) bash in strict mode
Change some Make defaults, with a nice TLDR pre-amble
Mike Acton’s Expectations of Professional Software Engineers [summary]
Scalability! But at what COST? says “Big data systems may scale well, but this can often be just because they introduce a lot of overhead” and is often referred to as “The COST Paper”
strace Wow Much Syscall by Brendan Gregg includes useful strace one-liners
Richard Sutton’s The Bitter Lesson starts “The biggest lesson that can be read from 70 years of AI research is that general methods that leverage computation are ultimately the most effective, and by a large margin….” and begins to conclude “One thing that should be learned from the bitter lesson is the great power of general purpose methods, of methods that continue to scale with increased computation even as the available computation becomes very great. The two methods that seem to scale arbitrarily in this way are search and learning.”
Syntax across languages is a gigantic survey of language design, e.g. operators/functions/etc. The survey can often inform what some collection of users will find natural or unnatural based on their existing skills.
Nick Higham’s “What Is” article series gives brief descriptions of concepts in numerical analysis for upper-level undergraduates with mathematical inclinations
Long names are long observes “identifiers that are too damn long.”
Omit words that are obvious given a variable’s or parameter’s type
Omit words that don’t disambiguate the name
Omit words that are known from the surrounding context
Omit words that don’t mean much of anything
(e.g. data, state, amount, value, manager, engine, object, entity, and instance)
Ends with a humorous application to waffles.
How to help someone use a computer : “Computer people are fine human beings, but they do a lot of harm in the ways they "help" other people with their computer problems….”
Common statistical tests are linear models:
Hoeffding’s test for dependence was proposed by Wassily Hoeffding (1948) as a test of correlation for two variables with continuous distribution functions (wikipedia, random blog, post). Hoeffding’s D is a nonparametric measure of the distance between the joint distribution F(x, y) and the product of marginal distributions F1(x)F2(y). The advantage of this statistic lies in the fact that it has more power to detect non-monotonic dependency structures compared to other more common measures (Pearson, Kendall, Spearman)
Data systems often fall into one of schema-on-write or schema-on-read:
Traditional databases are schema-on-write: “we can't upload data until the table is created and we can't create tables until we understand the schema of the data that will be in this table.”
Newer systems, e.g. “Big Data” is often schema-on-read, requiring all code that handles the data to understand it’s implicit schema. Still “some level of schema design is inevitable”.
Martin Kleppmann’s book Designing Data-Intensive Applications often comes up.
Simple sabotage for software , taking CIA sabotage manuals for inspiration, enumerates many horrid, insidious ways to sabotage a software organization. To do better as an organization, work to prevent even accidental sabotage.
A narrow waist is concept, interface, or protocol that solves an interoperability problem.
Picture an hourglass with M things on one side, N on the other, and an important concept in the middle.
It avoids O(M × N) code explosions, letting us write O(M + N) amounts of code instead.
Byte streams and text are essential narrow waists in software, particularly in distributed-systems like the Internet.
On achieving high-level goals [source pp 138-9]:
Write down your five biggest goals for the year.
Pick the one that will make the biggest difference in your life. Tackle that one first.
Write your chosen goal in the past tense as though it's already happened. This will not only tell you whether you truly want it by how you feel as you look back at it from the future, it will also help you identify (in imagined hindsight) all the critical steps it will take to get there. Outline as many critical steps as come to mind.
Write out twenty different things you could do right now to make it happen. Really stretch your thinking in new directions to get all twenty. Now pick the one goal that will have the greatest impact on the achievement of that goal. Try to knock one off your list each day, or week (depending on the goal). Keep going with twenty more, and twenty more, until the goal is achieved. Focus on only one goal at a time, putting all your energy in that one direction. (Trying to work on them all at once can be overwhelming and diffuses your effectiveness and focus).
Thompson sampling is commonly used as a multi-armed bandit algorithm. I have personally used it for an older side project.
There’s a CLAUDE.md containing Karpathy-inspired Claude Code guidelines.
Every layer of review makes you 10x slower by he of apenwarr/redo fame.