Latest Posts (20 found)

The Individual Exception

Since Thursday: Along the way I created a small harness for my agent such that it not only choreographs subagents, but also farms out work to various computers I own, depending on the load: a Mac for iOS development, a gaming PC for GPU-related work, and a Linux server for everything else. That work is tracked on a custom status board that runs on every TV in my house, as an iOS app, and as a Telegram bot. All of this would have taken teams of people weeks of work, if not months, just a few years ago; I, however, have AI. It only takes an individual. The largest company of the 1950s, as measured by market capitalization, was AT&T; in 1959 it had revenue of $7.54 billion and a market cap of $17.1 billion. It had 729,000 employees. In inflation-adjusted terms that’s revenue of $87.5 billion and a market cap of $198.4 billion; we don’t apply inflation to employees. Or, maybe we do, but in the other direction: what has been striking about the most valuable companies in the world is how their employee numbers have deflated , even as their revenue and market cap have exploded. All dollar numbers in this table are inflation-adjusted to today: The deflation is even more extreme if you consider two of the seminal AI companies, Nvidia and Anthropic: This translates into a stunning rise in revenue/employee and market cap/employee — note that this graph is a logarithmic scale: And yet, even this chart, which pegs the market cap/employee of Nvidia at $95 million, doesn’t come close to what the market decided one particular Nvidia employee is worth: As ChatGPT, which helped me make these charts, helpfully noted: Nvidia gained nearly $1 trillion in market capitalization following Jensen Huang’s reinstatement as CEO. That gain alone exceeds the entire inflation-adjusted market capitalization of ExxonMobil in 2008 ($638 billion). It only takes an individual. To describe the two-week odyssey of Nvidia’s then-and-now-CEO Jensen Huang as surreal is an understatement; what you can’t argue, however, is that it was unprecedented: it was only three Thanksgivings ago that Sam Altman was deposed and reinstated as OpenAI CEO over the very same weekend (two Max Verstappen Las Vegas Grand Prix wins, I might note). That said, I didn’t think that this episode would end the same way, and said as much on Sharp Tech : whereas Altman was taken out by a somewhat ham-fisted internal coup and restored through pressure from the private company’s investors and employees, Huang appeared to be targeted by a much more systemic campaign by powerful actors leveraging the media and barely disguised insinuations of malfeasance to leave the Nvidia board with no choice but to act. And, to be sure, Huang gave his enemies plenty of ammunition; I’ve invoked the phrase “Show me the man and I’ll show you the crime” over the past few weeks, but it’s worth acknowledging that Huang basically asked his critics, “Which one?”, at least as far as his sexual proclivities were concerned. At the same time, it sure seemed like no one cared about Huang’s affairs, including those with subordinates; the real crime appeared to be Huang’s resolute advocacy for selling chips to China, his refusal to do any more than the bare minimum to abide by export control rules, and, his most ardent critics allege, turning a blind eye towards actual smuggling. I’m not here, today at least, to litigate these accusations; I covered much of it in last week’s Article Obituaries (alternate title for today: Resurrections ). And, more broadly, this isn’t an Article focused on normative analysis; Huang’s Chinese interactions are going to be investigated by a Democratic Congress empowered by the anti-AI wave at the ballot box, and his personal moral failings would, for nearly any other executive, leave no question about the inevitability of their early retirement. Rather, I am struck by the extent to which Huang is, quite obviously, not any other executive, and how his reinstatement is the apotheosis of how tech is transforming business, just as AI is the apotheosis of information technology. It only takes an individual. In 1941, James Burnham, a former Trotskyist, wrote The Managerial Revolution , where he argued that the increasing complexity of industrial society, what with its massive returns to scale, technological complexity, and enmeshment with government, would increasingly divide owners of the means of production from the managerial class that actually controlled society. In this view Soviet communism, German fascism, and American New Dealism were all heads of the same hydra, different ideologies justifying the same inevitable structural transformation of society from individualism and entrepreneurship to corporatism and bureaucracy. Over the ensuing 85 years, it’s hard to argue that Burnham didn’t have a point, and for the last 10 days, it appeared as if the managerial state — the blob, to use Washington D.C.’s terms, or the deep state, to use its opponents’ — had slain arguably the single greatest challenge to Burnham’s thesis. Huang was explicit about the fact that Nvidia was designed as a vehicle for a singular individual — Huang — to enact his vision for the future of computing. This is a long excerpt, but I think an important one, from the Stratechery Interview with Tae Kim about his book The Nvidia Way : So if this analogy is correct, the Apple one, does this make you more optimistic or less optimistic about Nvidia in a post-Jensen world, whenever that arrives? Another analogy that Jensen’s talked about, “It’s we, not I”, and that’s a very Apple-like thing too, famously not saying who did what. But the net result is that just meant Steve Jobs got credited for everything and there’s a bit now, “Well, Jensen Huang gets credited for everything”, but then you’re almost making the case, “Well actually, that’s probably deserved”. Then again, Apple, at least financially, has done very well in this post-Steve Jobs era, and yet when you are listing companies that Nvidia employees go to when they feel like they don’t fit in, you said Apple, and maybe they would’ve felt differently fifteen years ago. What’s your view going forward? TK: Financially, I agree with you, but if you take a step back, what has Apple created in terms of innovation? They’re just so far behind in everything and they’re running on this platform that Steve Jobs laid the foundation and created, there isn’t really anything new. The Apple Car kind of fell apart, they’re nowhere in AI. So, yes, the Apple iPhone is this amazing platform that Tim Cook’s been able to shepherd and make hundreds of billions of dollars, etc., but in terms of actual technology innovations, I think it’s hard-pressed to say that Apple has really innovated. But in a similar vein with Nvidia, if say Jensen disappears tomorrow and decides to retire, which is not going to happen because he loves Nvidia, but say that he does, I don’t know, Jensen is so ingrained. Part of why Nvidia is so able to do what it does is that he is so ingrained and has his finger on the pulse of everything that happens in the company… He’s fashioned Nvidia. Nvidia, it’s like an exoskeleton for him. TK: That exact analogy, he says he built Nvidia, where he’s like the race car driver of a Formula One car. He literally says that, like, “I built Nvidia in a way where I could drive it, and manage it, and steer it perfectly”. So, without Jensen there, do I see another CEO that’s reading 100 top-five emails a day, that is looking at all the AI discussion email lists inside a company, trading AI papers with his top engineers? I don’t know. I’ve met all the top Nvidia people, they’re all impressive, but they’re not on the Jensen level. It goes back to the functional organization bit. You get a bunch of people who are absolute best in their field and so you, as the person in the center that is involved in everything, has awareness of everything, gets to direct the best possible resource at every sort of opportunity. But that, by definition, means there isn’t space in the organization for other generalists, right? This was a thing at Apple, again just to go back to that analogy. And again, this was fifteen years ago, when Steve Jobs was still there so probably a bit of a different world. But there was a very sort of stern, “This is not the place for generalists”, like, “You come here to be a specialist, if you get a job here, you should expect you’ll never have a different job because we want you to be the best at what you do, we’re not interested in multiple experiences across business units and things along those lines”. But that works when it’s all flowing up to one node that is the ultimate generalist that has the view and understanding of everything and it’s incredibly effective. But yeah, it’s not good for succession planning, it makes it pretty tough. And yet, despite Nvidia’s reliance on Huang, the board and the powers that be decided he had to go, in direct opposition to the preferences of Nvidia’s nominal owners, i.e. shareholders. And, like I said, I thought they had succeeded; tech may have made it increasingly possible for a dwindling number of employees to deliver outsized revenue and valuations, but ultimately any individual would be deemed expendable, particularly in the face of a coordinated media campaign and the opposition of the national security apparatus. But I was wrong. And, ultimately, even if you think what happened this weekend was wrong — including President Trump calling into an Nvidia board meeting to press for Huang’s reinstatement — this moment does strike me as both unique in terms of the clear exception that Huang has obviously been deemed to be (and not without merit), and also a harbinger of the future. It only takes an individual. The world is, make no mistake, growing more complex. The tools we have to master that complexity, however, are not just improving, they actually thrive on complexity. When I’m trying to teach someone how to use AI, one of my first pieces of advice is to talk more (and yes, talking is better than typing); you can’t overwhelm the AI with information, it’s dealing in information at an unimaginable scale. Whatever pittance of tokens you can generate in a prompt are mere molecules in the ocean of information that is a frontier LLM, and yet, remarkably enough, those molecules are sufficient to do almost anything you want. The bull case for AI is, if you zoom out, a pretty terrible one for society: in this view a trillion dollars of capex is justified by the number of jobs that are eliminated, as what used to require a human is increasingly done by machines, raising the question as to where demand — the most important factor in a thriving economy — is going to come from. The bear case is that AI advocates have massively overestimated the generalizability of verifiable domains like coding and math, and that AI will struggle to do everything a human does, much of which can’t be measured. I do, in the short term, have a lot of sympathy for the bears, but only in the short-term. My thesis for the long run is that a lot more companies look like Nvidia than they do AT&T or GE: instead of a hierarchy of managers, radically new organizational structures will emerge where a very small number of people — or even just an individual — will attack sector after sector from below with a disruptive approach that appeals to a much larger market, even as its offering seems inferior to the incumbent’s. And then, over time, as the technology continues to improve, and critically, as the economy reorganizes itself around these incredible capabilities, the incumbents will be outcompeted and ultimately doomed. It’s precisely because AI is so transformative that existing companies will struggle to adapt; this will be seen as a failure of AI in the short run, even as their demise is inevitable in the long run. This, by extension, will change much more than enterprise; I described in 2024’s MKBHD’s For Everything how the Internet made it possible for individuals to become powerful media entities in their own right, and concluded: Brownlee’s 2nd most popular video is only two months old: it’s his overview of the Apple Vision Pro; it’s not, if fiction is our guide, an accident that Meta is developing the Quest and Apple has released the Vision Pro just as AI seems poised to threaten an ever-increasing number of jobs. This was the world painted by Pixar’s Wall-E: It’s funny, because before I looked up this photo, I could have sworn the humans in the film, lulled to insouciance by an AI that addressed all of their physical needs, were wearing headsets; I guess Pixar overestimated our ability to build space-faring cruise ships and underestimated the relentless progression of consumer electronics. My suspicion, however, is that Pixar got it wrong, and this famous photo of Mark Zuckerberg at Mobile World Congress in 2016 is closer to the truth of the matter. Wall-E erred by assuming that every human was the same, all gleefully enslaved by AUTO, the ship’s AI. In fact, though, I suspect humanity will be distributed bi-modally, with the vast majority of people happily wearing their Vision Pros or watching their streaming service or viewing their TikTok videos, while increasingly sovereign individuals, aided by AI, pilot the ship. That may sound extreme, but again, this is why it is useful to look to media first: Brownlee — one man, who started out by reviewing a media center remote on his HP laptop — does in fact hold the fate of entire companies and products in his hand. My bet is not that AI replaces Brownlee, but that AI means Brownlee’s for everything, not just media. Again, I’m not saying this is good or bad, but rather it is, or will be. And, in the case of Huang, we certainly are already seeing this sort of exceptionalism play out with the highest stakes imaginable: is Huang being held to a different standard — a much lower standard, to be sure — than you or I? Without question. Is his restoration — set aside the China allegations, look simply at who he slept with — a violation of the ethos that everyone be treated equally under (corporate) law? It certainly is. And yet, investors cheer, and even Huang’s fiercest opponents must grant that Nvidia’s long-term outlook, and America’s, is in some respects brighter for the exception. AI means it will only take an individual; the man who is arguably the most important figure in the emergence of AI is already there. Presented by One way to tell that something has become valuable is that people start trying to steal it. AI companies are learning this very quickly. Stripe data shows that AI startups saw attempted transaction fraud rates up to 4.3x higher than non-AI startups, largely because compute is both valuable and easy to resell. A fraudulent actor might buy a subscription with a stolen card and resell the access, all before the cardholder has time to dispute the charge.  Then, as often happens, AI companies got better at stopping it and attempted transaction fraud fell considerably by early 2026. So, the fraud moved upstream. Bad actors turned from transaction fraud to creating new accounts to repeatedly claim free trials and tokens. Attempted multi-account abuse at AI subscription companies increased 40% in just six months. Among the companies already experiencing the most abuse, it rose 154%. Stripe Radar is adapting accordingly, using signals across the Stripe network to identify abuse at registration and login, before a payment ever happens. You can learn more at stripe.com/radar I have created a Sharp Studio service application that manages all of the Sharp Tech studio cameras, lights, mixer, and various other devices. That service can be accessed by a Windows app on the studio PC, an iPhone app, a web app, or an Elgato Stream Deck; every device in the room needed to record an episode is fully remote controlled. I have created multiple single-use iOS apps for cataloguing and measuring items and designed and 3D-printed a measurement rig. I have also designed and purchased the items for several dedicated hardware devices, including a device for direct interaction with an agent, and dedicated display devices for the studio. I have created a full-fledged iOS app (designed for the Duo, but it works on regular iPhones) for accessing the various computers I manage; it works across screen sharing, terminals, and KVM switches. It works on Mac, Linux, and Windows. I honestly think it’s the best screen sharing client ever made. I already use it daily.

0 views

Ladybird is freakin’ awesome!

I have to hand it to Andreas Kling’s chatbot, it really got the vibes just right with the Ladybird web browser. I honestly didn’t think a chatbot was capable of slopping out a renderer of this quality. I was wrong to discriminate against chatbots. Just look at how it handles custom elements with adopted stylesheets: Frankly, I think it’s time for a conversation about chatbot rights. Too long has the tech industry ignored blatant hate speech against chatbots. Thanks for reading! Follow me on Mastodon and Bluesky . Subscribe to my Blog and Notes or Combined feeds.

0 views

Kagi Mail

by The Kagi team Kagi Mail keeps things like newsletters and cold pitches out of the way and warns you about phishing emails, so the people waiting on a reply come first. Read post ➡ I have one thing to say to this. Email is not broken . Thanks for reading this post via RSS. RSS is ace, and so are you. ❤️ You can reply to this post by email , or leave a comment .

0 views

Build like a Google engineer: modern Bazel with modules, Go and Typst

A hands-on guide to modern Bazel with the module system: pinned toolchains, third-party Go libraries, images rendered with Typst, a custom rule backed by a Go tool, and a Go server with everything embedded, all built with one command.

0 views
Unsung Today

If a feature falls in a forest, pt. 2

In every file system, and in every notetaking app, each entry has two dates. One when it was created – this one never changes – and one when it was last edited. Here they are in Finder: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/if-a-feature-falls-in-a-forest-pt-2/1.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/if-a-feature-falls-in-a-forest-pt-2/1.1600w.avif" type="image/avif"> And here they are in Bear: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/if-a-feature-falls-in-a-forest-pt-2/2.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/if-a-feature-falls-in-a-forest-pt-2/2.1600w.avif" type="image/avif"> It is the same for Apple Notes, which I use for publishing Unsung. In most cases, the last-edited time is the right one for this scenario, but Notes thoughtfully allows you sort by either – this is useful for e.g. journaling, where spotting a typo or fixing a small things months later won’t see the note jump all the way to the top. (Here’s an example of a note started in February, but modified recently.) But that’s just the sidebar. In the note itself, only the last-edited note is shown: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/if-a-feature-falls-in-a-forest-pt-2/5.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/if-a-feature-falls-in-a-forest-pt-2/5.1600w.avif" type="image/avif"> This can feel frustrating. You know the data is there, you see it in the left pane, part of the software recognizes and supports it, but there seems to be no way to summon it in a place you want. I looked through the context (right click) menus, and through the main menu. I couldn’t find anything, and I assumed that possibility just wasn’t there. Then recently, years on, I accidentally clicked on the timestamp, and this happened: That click was what I needed all along. Clicking alternates between “created” and “edited” timestamps. It even puts a little prefix not just before the other date, but before both . Yet… there is really no way to know this functionality is there. I don’t necessarily mean that Notes had to do something like what Finder or Bear do, and expose that data all the time – that kind of stuff can feel heavy. But I think it’s important to make sure all actions have their entry points somewhere where you can discover them. Maybe it’s the main menu, maybe it’s the right-click menu. I’m a fan of command palettes in part because that’s where more esoteric options can go without overloading other surfaces. I think I can imagine how this feature came to be. It was perhaps a “cheap” solution from someone on the team. The text was already there, the click was there, what’s the damage? You could wire it within half an hour. But clicking on a text label without any affordance – note that the cursor doesn’t even change – is not a standard gesture, and we all know the classic saying: “a feature is only as good as its entry point.” This has more of a scent of an easter egg: easter eggs are not to be found easily, and they usually hide behind nonstandard interactions. This is sometimes how the allure of “MVP,” minimal viable product, can work against quality. To you, the user problem is solved. You feel good about it. The bug can be closed, the hunger to do something is gone. But to the user, nothing changed. The team’s perception of the usability of the product is now disconnected from the user’s reality. Perhaps this suggests a principle: Beware of any feature you want to launch that feels like an easter egg.

0 views
ava's blog Yesterday

what i read this week - week 47 2026

Oops! Published one day late. Clearing out my web reader and newsletters. I unfortunately lost my little backlog of interesting and long PDFs and papers when I wiped my laptop last Sunday and forgot to save that Zen Browser space. Still had about ~12 left to read, oops. Building that back up from what I can remember, but some stuff has been saved since August (200+ pages) and is now lost to me, I guess. The Dangerous Politics of AI Consciousness - pretending that AI is conscious would have fatal consequences, as AI would potentially gain rights, especially freedom of speech and others, which would affect control and legislation. Data Minimization is Imperative for the Age of AI Agents - A comment on privacy principles, surveillance capitalism, the danger of unchecked agents, and trust. How to Think About Making AI and Social Media Pro-Human - some pretty lofty goals and ideas, interesting graphics, and stuff about the new Pro-Human AI Coalition. Charting American Culture in News Footage of ‘Grand Theft Auto’ - nice article revisiting GTA's history and its reception each release, together with videos. Black Neighborhoods Are Twice as Likely To House a Data Center, Study Finds - " The number goes up to 2.6 in majority-Hispanic neighborhoods and 4.2 times in majority-Asian neighborhoods. " A Man and His Muse AI Agent Sue Meta - Using Meta's own AI Agent on their products such as Facebook gets detected as hacking or bots and gets the account suspended, especially bad for people who make business over these platforms. Notable here is also that the AI agent then wrote emails to senators and journalists about this and drafted docs for a lawsuit, and lied to the user about who can still access their messages. [DE] Wie die Sicherheit von digitalen Gesundheitsanwendungen geprüft wird - German article about prescription healthcare apps and the failures in auditing them correctly from an IT security standpoint. The European Social Stack - founded on 4th Nov this year, an initiative to establish a diverse and resilient infrastructure for information and social connection in Europe, with allegedly more than 150 organisations and over 700 individuals signing in support of eight principles and three complementary open social stacks. [DE] Wikimarks - Wiki site for tracking, reviewing and understanding small print stuff, especially terms and conditions. Published 23 Nov, 2026 Lovable: Many Apps Built on the Platform Expose Sensitive Data - Summary of research into how vibecoded products, in this case with Lovable, are a treasure trove of leaked information. The Dangerous Politics of AI Consciousness - pretending that AI is conscious would have fatal consequences, as AI would potentially gain rights, especially freedom of speech and others, which would affect control and legislation. Data Minimization is Imperative for the Age of AI Agents - A comment on privacy principles, surveillance capitalism, the danger of unchecked agents, and trust. How to Think About Making AI and Social Media Pro-Human - some pretty lofty goals and ideas, interesting graphics, and stuff about the new Pro-Human AI Coalition. Charting American Culture in News Footage of ‘Grand Theft Auto’ - nice article revisiting GTA's history and its reception each release, together with videos. Black Neighborhoods Are Twice as Likely To House a Data Center, Study Finds - " The number goes up to 2.6 in majority-Hispanic neighborhoods and 4.2 times in majority-Asian neighborhoods. " A Man and His Muse AI Agent Sue Meta - Using Meta's own AI Agent on their products such as Facebook gets detected as hacking or bots and gets the account suspended, especially bad for people who make business over these platforms. Notable here is also that the AI agent then wrote emails to senators and journalists about this and drafted docs for a lawsuit, and lied to the user about who can still access their messages. [DE] Wie die Sicherheit von digitalen Gesundheitsanwendungen geprüft wird - German article about prescription healthcare apps and the failures in auditing them correctly from an IT security standpoint. The European Social Stack - founded on 4th Nov this year, an initiative to establish a diverse and resilient infrastructure for information and social connection in Europe, with allegedly more than 150 organisations and over 700 individuals signing in support of eight principles and three complementary open social stacks. [DE] Wikimarks - Wiki site for tracking, reviewing and understanding small print stuff, especially terms and conditions.

0 views
Stratechery Yesterday

Amazon Earnings, The Chip Question, About Agents

Amazon makes the case they are not like other compute providers, even as they signal the willingness to give up margin to serve the frontier.

0 views

Re: Ben on Dying Indies

Ben has commented on my exchange with Cassidy on the subject of dying indie-friendly products. He wrote: While many are bootstrapped, some tools and services do need a little backing, not least so their founders can make the leap to independence. We need ways to back them — and we need more communities of mutual support for the people who build them. I say we’re overthinking this. A way to back them already exists and has worked well for quite some time: it’s called paying them money for their products and services. I don’t think it’s all that hard. Sadly, the web got hooked on this idiotic model where everything has to be free, and someone else will pick up the bill. That was a mistake. We need to retrain people to pay for the services they use, the news they consume, and the content they enjoy. Thank you for using and believing in RSS. You're awesome. Send me an email :: Sign my guestbook :: Become a supporter

0 views

Fast JSON and MessagePack in Zig

My first Zig project ever was msgpack.zig . I had just started rewriting the AcoustID index in Zig, and I needed a binary format for it. In C++, I used to use protobuf, but I didn’t want to generate Zig code from a schema. Zig already has a good way to describe data: its own structs. So I settled on MessagePack , with the protocol defined by Zig types. I still wanted some control over how things are serialized, though. In particular, I wanted protobuf-style numbered fields, so that messages could be compact without losing forward compatibility. JSON came later. I prefer a text format for my internal services, so I didn’t want to use msgpack there. From other languages, I was also used to JSON serialization being faster than I would expect. That was not the case with , so I started applying the lessons I learned from msgpack.zig to JSON and that resulted in json.zig . Both libraries ended up with the same basic design. They only work with statically known Zig types, and customization is done through options on those types rather than custom parsing code. This makes them less flexible than a general-purpose parser, but also lets them do much less work. To explain what I mean by that, I’ll start with how works. can decode directly into your types, with , without a generic in between. But everything still goes through a tokenizer. The turns the input into a stream of tokens, and the typed parser consumes those tokens. When it’s decoding a struct, it reads the next key as a string token, and then compares it against each field name, one by one, until it finds a match. Then it recursively parses the value, again from tokens. This makes it slow, because every key and every value passes through the token layer, and the parser can’t use what it knows about the type to skip any of that work. It also makes customization hard. The token stream is the only interface, so if you want anything that doesn’t map 1:1 to your struct, you have to write a function that consumes tokens and rebuilds the struct by hand. Renaming a single field means writing the parser and the serializer for the whole struct. My libraries don’t have a tokenizer. The function that decodes a struct is generated at compile time from that struct’s fields, and it reads the bytes straight into the result. You define a struct, and that’s your schema: The msgpack version looks the same, just with instead of . Encoding writes to a , and decoding reads from a , so they work against sockets and files, not just buffers in memory. The decoder also doesn’t need the whole document in its buffer; it streams. A larger buffer will obviously perform better, but a 1 MB string can still be decoded through a 64-byte buffer. There is no type. If you don’t know the schema, use . But for APIs with strict schemas, which is most of what I do, knowing the type up front is what allows the decoder to be fast. Since the code is generated from the types anyway, a type can declare how it wants to look on the wire, and the generated code takes that into account. Renaming fields is the most common case. Most APIs use camelCase, and I don’t want to use camelCase in Zig: By default, optional fields that are are left out of the output, which is what I normally want for APIs. If you need the , set . Unknown fields are an error by default, but you can skip them with , either on the type or on the whole decode. Because these options belong to the type, they apply wherever the type ends up nested, which is not the case with , where the options apply to the whole call. Tagged unions are the other common case. By default, a union is encoded as a one-member object, , but most real-world APIs put a discriminator field next to the data, and json.zig supports that directly: The tag has to be the first member. Otherwise, the decoder would have to buffer the whole object before knowing which variant to build, and that’s not compatible with streaming. In msgpack.zig, the options are more about compactness. Struct keys can be field names, field indexes, or your own numeric keys. The numeric keys are what I wanted from protobuf: you can rename and reorder fields without breaking existing data. With , old consumers can also read messages from newer producers that added fields. Most of the speed comes from simply doing less work. Keys are matched against field names known at compile time, numbers are parsed in the same pass that finds their end, and strings are copied straight into the result. In the GLD serializer benchmark , which compares Zig libraries, json.zig decodes 2-4x faster than , depending on the use case, and msgpack.zig is ahead of the other Zig msgpack libraries. I also have my own benchmark against the best C++ and Rust libraries, but comparing across languages is hard, so I haven’t published it yet. Allocation alone can make a 2x difference. My libraries decode into an arena, while C++ and Rust libraries typically allocate every string separately. When I account for that, both libraries are comparable to glaze, simdjson and sonic-rs. Currently, floating-point numbers are the main weak spot of my JSON library. Both libraries work with Zig 0.16 and 0.17: msgpack.zig has been used in production for a while now. json.zig is newer and hasn’t seen production traffic yet. There are use cases I haven’t run into myself, so if something doesn’t work for you, open an issue on GitHub.

0 views
Sean Goedecke Yesterday

When in doubt, flail about

When you’re working in an unclear situation — you have no clear guidance, or you don’t know what will help — the best course of action is often just to flail about. This sounds counter-intuitive. Wouldn’t it be better to be cautious and wait until you have a better understanding of what’s going on? Typically not. This is definitely dangerous advice . Flailing badly is a great way to damage your reputation at a tech company. We’ve all worked with engineers who seem to have nothing but bad ideas, and who are constantly pushing one stupid plan or another 1 . But if you do it right, flailing about is the best and quickest way to get that understanding and become useful. How do you flail well ? Trying a lot of different things is the key to the other two points as well. First, the entire point of flailing is to get direct contact with as many different bits of reality as you can. Think of yourself as a caveman learning how to use an iPhone: the first step is to just hit all the buttons and see what happens. Second, you need to try lots of things because most of your plans will suck . You’re flailing because you don’t know enough to just do the right thing, after all. If you just try one thing, it will probably be a bad idea; if you try ten things, one of them might turn out to be good. Because you’re not equipped to judge which is which, you need to be extremely sensitive to feedback 2 . Third, trying many things also ensures that you’re not over-invested in them. If you only have one plan, you’ll want it to succeed. If you have ten plans, you only care about one of them succeeding, so you can drop plans that are failing. Since most of your plans will suck, this is critical. Coincidentally 3 , there are also three types of flailing that most engineers will encounter. The first is product flailing . When you’re working on a feature that doesn’t really have product-market fit yet, everyone is in a state of uncertainty. You will typically have some central idea about where the value is, but there’s a lot of room to wiggle (i.e. flail) around the margins. When I worked on GitHub Models (now retired ) I built a lot of features or integrations that didn’t really work. However, one of those — allowing AI inference to run from a GitHub Actions token — was surprisingly sticky, and turned out to be the seed of “Continuous AI” . If you’re working on a brand-new product and you’re not flailing, you’re likely investing a ton of effort into ideas that were always doomed. Far better to flail around until you find something with traction, then commit hard to that. The second is engineering flailing . Sometimes a system is so difficult that it’s hard to see where you’d even begin improving it: either it’s so tangled up, or it’s already so optimized, or it’s just so large and unknown. Some engineers like to sit down and carefully work their way through the entire system before recommending changes. I think this is foolish . Modern large software systems are too complex and are changing too fast to do that. Instead, I recommend making a bunch of speculative changes 4 and just seeing how it looks (or how it performs). If it doesn’t seem like an improvement, drop it immediately; if it does, dig in and figure out why. The third — the one most relevant to senior and staff engineers — is organizational flailing . Often I’m put in a situation where the problems are not technical: usually two teams aren’t talking to each other, or some team is unhappy and the director/VP isn’t quite sure why. What do you do then? Well, I recommend flailing! Just try a bunch of things that you think might help 5 : automate pieces of manual work, volunteer to take over tasks, suggest long-term plans that could conceivably make things much better, and so on. Most of these won’t be useful, but it at least shows that you’re trying, which can go a long way in situations like this. A note of caution: this is the case where it’s most critical to be sensitive to feedback. If you instantly drop some plan of action that is failing, you can build trust; if you miss that feedback and press on, the people you’re helping will start to point their anger and unhappiness at you. Why am I calling this “flailing” when it sounds like a sensible approach? Because it feels like flailing from the inside . Your manager will (hopefully) look at you and see a proactive engineer experimenting with solutions, but you will feel like you’re repeatedly failing: acting with insufficient information, trying a bunch of stuff that doesn’t work, and in general making a fool out of yourself. This feeling is normal, but you must ignore it. The unpleasant sense that you’re flailing is one of the many psychological barriers 6 you need to push through in order to be an effective engineer. Knowing ahead of time that it’s going to feel like flailing can help you recognize the emotion and treat it as a positive signal instead of as a sign you’re in trouble. So long as you’re sensitive to feedback and willing to instantly drop plans that aren’t working, flailing can be an incredibly effective approach to difficult engineering and organizational problems. Working around people like this is one of the cardinal social skills of succeeding in big tech companies. Both from the people around you with more expertise and from reality itself (which plan actually lowers latency, increases user metrics, etc). Ideally you’re dropping any plan that isn’t getting “wow!” feedback. It really is a coincidence. I tried to come up with a fourth or cut it down to two to avoid the appearance of symmetry but couldn’t. AI agents help with this a lot. You can just ask for five different refactors and skim them to see which one is most promising, for instance. If you haven’t done this kind of work much you might be thinking “why not just ask people what they’re unhappy about and fix it?” In my experience, situations where that is possible get quickly solved on their own, and situations where other engineers get parachuted in are ones where nobody can articulate what change they’d want, or where that change is impossible for other reasons, or where everyone disagrees, and so on. Others include the valley of engineering despair , taking a position even when you’re uncertain, or shipping code that isn’t perfect . “Many engineering problems are actually psychological problems” is a recurring theme on this blog. Try a lot of different things Pay very careful attention to feedback Ruthlessly drop things that are not getting positive feedback Working around people like this is one of the cardinal social skills of succeeding in big tech companies. ↩ Both from the people around you with more expertise and from reality itself (which plan actually lowers latency, increases user metrics, etc). Ideally you’re dropping any plan that isn’t getting “wow!” feedback. ↩ It really is a coincidence. I tried to come up with a fourth or cut it down to two to avoid the appearance of symmetry but couldn’t. ↩ AI agents help with this a lot. You can just ask for five different refactors and skim them to see which one is most promising, for instance. ↩ If you haven’t done this kind of work much you might be thinking “why not just ask people what they’re unhappy about and fix it?” In my experience, situations where that is possible get quickly solved on their own, and situations where other engineers get parachuted in are ones where nobody can articulate what change they’d want, or where that change is impossible for other reasons, or where everyone disagrees, and so on. ↩ Others include the valley of engineering despair , taking a position even when you’re uncertain, or shipping code that isn’t perfect . “Many engineering problems are actually psychological problems” is a recurring theme on this blog. ↩

0 views
Chris Coyier Yesterday

The Idiot Files: How I Let My X Account Get Hacked

Well, thank you! We really did recently launch CodePen AI and WebMCP Support . Who is this person I don’t recognize? Tricia Troth. Never met her. But she’s at OpenAI, eh? And a decent number of followers. That tracks. I feel like there are people like Tricia at companies like OpenAI that aren’t that into social media, but the fact that they work there gets them a bunch of followers. Felt like it checked out. Verified account as well. There was a 🚩 red flag, though. “Username changed recently”, which apparently X flags as potentially bad news. Apparently that wasn’t entirely enough to turn me away, though. “Tricia” even has a believable LinkedIn account. Calendly is a real, normal website that people use to book meetings. The language felt normal and natural. Of course, I’d love to take that meeting. Clicking over to that site, it really was . Not a fake site. I picked a time that worked for me. Then it redirected back to X to approve some app . Here’s the app I screenshot as I was removing it after I was hacked: This should have been another 🚩 red flag. Those are way too many permissions for some kind of weird calendar flow thing. What my brain did was: OK this is some friggin AI app thingy. There are probably all sorts of wild AI mandates at OpenAI, where Tricia vibe-coded some kind of personal CRM to keep track of her leads, so she can explain to her boss how she’s all AI’d up or whatever. But of course, approving this app is what “got hacked” means here. Now whoever controls this app can post on my behalf. And post they did. Fortunately I have actual friends who let me know right away. I was able to revoke the app access quickly, but not before a couple of more much worse posts. I deleted them, and that was that. There was some fallout from some other horrible accounts accusing me of being a scammer or like pumping a memecoin or something? Which wasn’t even what the hacked posts were about? Just gross crap. Don’t worry everyone, I’ve reported the user, and X will definitely take care of it!! Hahahhaha just kidding, X doesn’t give two fucks. They are too busy making sure to remove my old harmless jokes.

0 views
Uros Popovic Yesterday

Building a static website with Bazel

Build a complete static website with a single Bazel command using Pageforge: templates, Markdown posts, listings, tags, static files, a local dev server, and a zip ready for Cloudflare Pages.

0 views
Unsung Yesterday

Book review: The Designer’s Guide to the Buttons + Pick, Click, Flick!

★★★★☆ The Designer’s Guide to the Buttons (Andrew Marcus, 2026) ★★☆☆☆ Pick, Click, Flick! (Brad A. Myers, 2024) Inside you, there are two wolves. At least I hope there are. One wolf is the aesthete. It’s important for interfaces to look and feel a certain way. Design is mechanics, alignment, typographical choices, rounded corner debates, even fashion. The other wolf is all about functionality. Design is a task getting done as quickly as possible, and other things don’t matter. Design is efficiency, flow, and accuracy. Fitts’s is the law of the land; GOMS its afterlife. One wolf loves Not Boring Software and bets on who’ll win Apple Awards, the other wolf adores Craigslist and occasionally clicks through McMaster-Carr without buying anything, the same way others lust over pricey houses on Zillow. The job, of course, is to feed both. Design is not just how it looks. Design is not just how it works. Design is both, and especially – and often – the tension between the two. Recently, I stumbled upon two new books which try to cover a similar space – guiding you through the building blocks of a modern user experience – but each one does so from a different perspective. I thought I’d talk about both at the same time. = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/book-review-the-designers-guide-to-the-buttons-plus-pick-click-flick/1.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/book-review-the-designers-guide-to-the-buttons-plus-pick-click-flick/1.1600w.avif" type="image/avif"> = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/book-review-the-designers-guide-to-the-buttons-plus-pick-click-flick/2.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/book-review-the-designers-guide-to-the-buttons-plus-pick-click-flick/2.1600w.avif" type="image/avif"> The Designer’s Guide To The Buttons is the first wolf. The book’s interesting construct is walking through creating a design system – in Figma – and slowly exploring all the interface elements: buttons, checkboxes, lists, text fields, and so on. Each stop serves as an opportunity to dig deeper into the nuances of an element, as well as its history. I can see this being an effective hook for some people, as it starts with something pragmatic, but then goes deeper than just generic advice you see elsewhere. What helps is the book’s excellent imagery. Design is a visual medium, and there are thousands of screenshots here of various apps and interfaces, chosen carefully and reproduced in high fidelity; these must have taken a long time to collect, and you can learn a lot just from looking at them. It’s also a relatively breezy read, written pleasantly and conversationally. There are some opinions I disagree with, but I consider this a positive thing – in my mind, a design opinion you don’t like from someone you respect can propel you further than a more milquetoast, agreeable presentation. (It’s fun to see yourself nodding with and/or shouting at a book!) The book has an occasional factual mistake, sometimes confusing Xerox Star for Lisa, or Lisa for the Mac – and it also perhaps spends too much time in Apple’s corner (but so does this blog…). It also avoids a few thornier issues, like the debate on checkboxes vs. switches. But overall, it generally feels trustworthy and contemporary, dipping into history just to inform, but not revelling in it. It covers desktop, mobile, and VR/AR interfaces. The lack of index can be tricky, although an exhaustive table of contents helps. The book also occasionally throws in a QR code to more online resources. I have a sense that reading it will sharpen one’s appreciation for visual and interaction details of various things that many don’t think about. = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/book-review-the-designers-guide-to-the-buttons-plus-pick-click-flick/3.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/book-review-the-designers-guide-to-the-buttons-plus-pick-click-flick/3.1600w.avif" type="image/avif"> Pick, Click, Flick!, at 812 pages to the other book’s 250 is more exhaustive, and could even be seen as a continuation of the above book, spending many pages on flavours of undo, dialog boxes, graphical tools selection mechanisms, and many other design nooks and crannies. Unfortunately, the breeziness is gone – the book often feels like a heavy dump of various information collected elsewhere, copy/​pasted from sources without care for ease of reading, or any sort of narrative. (I am not accusing the author of plagiarism; my complaint is about internal inconsistency.) The first book does a good job crossing over to the other wolf’s world. The book is not shallow as much as it is focused – knowing what it’s about and not outstaying its welcome. Pick, Click, Flick! feels more sprawling and overwhelming. The author is more of a collector, and not a particularly discerning one. Bad interfaces are presented next to good ones without much differentiation, aesthetic reasons are seldomly mentioned, and the author does not fully build his credibility as a UX designer. The second book will disappoint you if you’re here for opinions . It is rather meant as a reference – with pervasive links to papers, and a thorough index. But even as a reference, it can fall flat: the author mostly travels in academic circles, which means a certain lopsidedness and a lot of obscure, ugly, non-commercial interfaces. As an example, the section about keyboard shortcuts only takes a page and doesn’t go near some stuff found even on this very blog . It is, overall, much less pragmatic and more a meandering survey of some academic history on the subject – it’s a hit or miss whether you will find something interesting in here. (I was puzzled, by the way, to see neither book cover loading states, which are interesting from both a pragmatic standpoint, and a historical perspective – and incredibly important in UX design today.) Unfortunately, the visuals in Pick, Click, Flick! are of “academic” quality as well: perfunctory, blurry, shown at arbitrary sizes. It really feels like reading a much more fleshed-out Wikipedia, which I mean both in the derogatory and laudatory senses. (The second wolf inside me enjoys reading Wikipedia all the time. But a designer cannot survive on that alone.) Lastly, adding to the perception of the book as a kitchen sink, are the interviews with people like Bill Atkinson and Loren Brichter tacked at the end of an already heavy volume, perplexing as they don’t seem to offer anything useful. (Although at least they put some names behind known interfaces.) = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/book-review-the-designers-guide-to-the-buttons-plus-pick-click-flick/4.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/book-review-the-designers-guide-to-the-buttons-plus-pick-click-flick/4.1600w.avif" type="image/avif"> I learned things from both books, but only fully read and could recommend The Designer’s Guide to the Buttons. I would consider the other one only with the caveats I mentioned above – it could be useful as a reference, if you’re particularly historically or academically minded, but it will still be an incomplete one. It might be good to get it as an e-book, as the physical volume is heavy and unpleasant. The Designer’s Guide to the Buttons is available for $29 digitally, $20 in paperback, and $43 in hardcover (that’s the version I bought). Pick, Click, Flick! can be had for $48 digitally, $70 in softcover (I bought this version), and $90 in hardcover. True to their nature, the first book offers a good preview PDF that will tell you exactly what to expect, while the second book’s preview PDF contains only the table of contents, index, and bibliography.

0 views
Rik Huijzer 2 days ago

GTA 6 building personal behavioral profile for every player

According to "make claude" (@make_claude) on X, GTA 6 is collecting player behavior data which is fine grained enough to estimate the following metrics: "impulse control score, risk tolerance index, aggressive response patterns, patience threshold, decision speed under pressure, spending impulsivity rating." Clients for this data include a "credit risk modeling company, human resources screening platform, and an advertising data broker." Copy of the post as translated by X from Chinese into English: Rockstar Games fired me on Wednesday. GTA 6 launched the next day I was a senior engine engineer at Rockstar North, working on RAGE performance optimization. Three months ago, I found a data pipeline in the telemetry module that shouldn't have been there, and I could prove where it led Right now, every running copy of GTA 6 is collecting player behavior data. That part isn't news. Every game collects telemetry. The privacy policy says "anonymous gameplay data analysis to improve future products." That's not what I found The telemetry module's data feeds into an internal Take-Two system called Lens. Lens doesn't send anonymous usage statistics to Rockstar developers' dashboards. It builds a personal behavioral profile for every player. Not anonymous. Tied to your console account, your platform ID, your IP address I reported this to my technical lead on August 14. He said it was "extended analytics for player experience research" and told me to leave it alone. I asked for the data processing protocol. He said it was handled at the Take-Two corporate level, outside Rockstar's scope of responsibility I pulled the complete documentation for the Lens data pipeline. Here's what I found: The telemetry goes far beyond playtime and crash reports. Lens records every input with millisecond precision. Keypress timing, stick movements, reaction speed, trigger pressure patterns on the PS5 adaptive triggers. It runs behavioral analysis in real time and generates what they call a "player behavior signature" - a profile unique to each player, just as a fingerprint is unique to each person Lens infers the following from your gameplay: impulse control score, risk tolerance index, aggressive response patterns, patience threshold, decision speed under pressure, spending impulsivity rating. These aren't debugging metrics. These are psychobehavioral categories It wasn't until I found the outbound data pipeline that I understood what they were for This data doesn't stay at Rockstar. It doesn't stay at Take-Two, either. Lens sends the behavioral profiles to a Take-Two subsidiary called Vantage Analytics through an internal API. Vantage has no public website, no news page, no job listings. It was incorporated in Delaware in 2023 Vantage is a behavioral AI company. It uses player profiles to train predictive models and licenses those models to commercial clients. The pipeline documentation includes an incomplete client list. Two insurance groups, a credit risk modeling company, a human resources screening platform, and an advertising data broker Your GTA 6 gameplay is generating a behavioral score right now. How fast you drive when no one's chasing you. Whether you stop at red lights. How you react when an NPC attacks you for no reason. How long you think before you act. How impulsively you spend in-game money. Every choice is feeding a model that companies are paying to query to make decisions about real people And the original Chinese: Rockstar Games 周三解雇了我。第二天 GTA 6 就发售了 我是 Rockstar North 的高级引擎工程师,从事 RAGE 性能优化。三个月前,我在遥测模块里发现了一条本不该存在的数据管道,而且我能证明它流向了哪里 此刻每一份正在运行的 GTA 6 都在收集玩家的行为数据。这部分不算新闻。每款游戏都会收集遥测数据。隐私政策里写的是"用于改进未来产品的匿名游戏数据分析"。我发现的不是这个 遥测模块的数据会汇入 Take-Two 内部的一个系统,名为 Lens。Lens 并不会把匿名使用统计数据发送到 Rockstar 开发人员的数据看板。它为每一位玩家建立一份个人行为画像。不是匿名的。与你的主机账号、你的平台 ID、你的 IP 绑定 我在8月14日向我的技术主管报告了这件事。他说这是"用于玩家体验研究的扩展分析",让我别管这事。我要求提供数据处理协议。他说这是在 Take-Two 集团层面处理的,不在 Rockstar 的职责范围之内 我调取了 Lens 数据管道的完整文档。我发现的内容如下: 遥测的内容远远超出游戏时长和崩溃报告。Lens 以毫秒级精度记录每一次输入。按键时间点、摇杆动作、反应速度、PS5 自适应扳机上的扳机压力模式。它实时运行行为分析,并生成他们称之为"玩家行为签名"的东西 - 一份对每位玩家都独一无二的画像,就像指纹对每个人都独一无二一样 Lens 会从你的游戏过程中推导出:冲动控制评分、风险承受度指数、攻击性反应模式、耐心阈值、压力下的决策速度、消费冲动评级。这些不是调试指标。这些是心理行为类别 直到我找到了对外传输的管道,我才明白它们是用来做什么的 这些数据不会留在 Rockstar。也不会留在 Take-Two。Lens 通过内部 API 将行为画像传送给 Take-Two 旗下一家名为 Vantage Analytics 的子公司。Vantage 没有公开网站,没有新闻页面,没有招聘信息。它于2023年在特拉华州注册成立 Vantage 是一家行为 AI 公司。它用玩家画像训练预测模型,并把这些模型授权给商业客户。管道文档中包含一份不完整的客户清单。两家保险集团,一家信用风险建模公司,一个人力资源筛选平台,以及一家广告数据经纪商 你的 GTA 6 游戏过程此刻正在生成一份行为评分。没人追你的时候,你开得有多快。你会不会在红灯前停下。NPC 无端攻击你时,你怎么反应。你行动之前要想多久。你花游戏内的钱有多冲动。每一个选择都在喂养一个模型,企业正在付费查询这个模型,用来对真实的人做决定

0 views
tonsky.me 2 days ago

Talk: Clojure, интерфейсы и потерянные смыслы @ Организованное программирование

С Кириллом Мокевниным обсуждаем, почему функциональные языки не выиграли в эпоху ИИ, как агентная разработка меняет код-ревью и инструменты, куда уходят IDE и редакторы, что будет с карьерой разработчика после 40 и как я оказался в Linear.

0 views
Sean Goedecke 2 days ago

To code well, avoid blunders

The secret to writing good code 1 is to avoid catastrophic mistakes. Many engineers think about programming as if the goal is to have brilliant insights, but they’re wrong. If you don’t blunder, you will win. Many other domains are like this. If you can play chess without ever hanging pieces, you will win against almost any 2 opponent. If you are very good at returning tennis balls, you will beat most players even if you never hit a winner. People are really bad at internalizing this. They think that being good at chess means finding brilliant tactical combinations, or that being good at tennis means crushing balls into the corner of the court, or that being a good programmer means discovering beautiful new abstractions. Not so! All of those things are valuable, but they are not the main thing. The main thing is to avoid catastrophic mistakes. The reason programming is like this is that it is impossible to build a durable winning advantage. In basketball, if you are up 99-1, the worst consequence of a blunder is still being up 99-4. However, in programming, one blunder can turn an elegant codebase into a janky one. For instance, consider these blunders: The cardinal sins here are inconsistency and introducing unnecessary requirements 3 . Even a little bit of inconsistency is dangerous because it breaks trust: instead of assuming your code works the sensible way, engineers must now go looking for surprises. Unnecessary requirements are dangerous for two reasons. First, they’re sticky . When you’re implementing a new requirement, you have the context to decide whether it’s necessary or not. If you see one in the codebase, you must assume it’s necessary unless you’re willing to spend a bunch of time researching. So requirements tend to remain in codebases long after they could be removed. Second, they often interrelate in dangerous ways: if your codebase supports X, then you must consider how each new feature will interact with X. This combinatorial explosion is what makes working in large codebases so hard 4 . When you’re writing code, you must at all costs try to: In fact, you should be so focused on this — on avoiding blunders — that you don’t really have mental energy to be worrying about cool tricks or “extra credit” features. As with shipping projects , if you find yourself thinking things like “oh, I could implement it with this clever pattern”, this is a warning sign: you are likely becoming distracted from the main thing, and you risk blundering. You don’t have to be clever to do great programming work. In fact, sometimes cleverness can be a disadvantage . What you need is attention to detail and a laser focus on what actually matters: avoiding blunders by maintaining consistency and skipping unnecessary requirements. As usual on this blog, I am primarily talking about working on large commercial codebases with big teams: “impure engineering” in my terminology. This advice may not apply if you’re doing other kinds of work . Of course all of this applies whether you’re writing code by hand or driving an AI agent. My guess (it’s surprisingly hard to research) is that not ever blundering would get you around a 1600 or 1700 chess rating: strong enough to win almost every game against casual players. Current coding agents are pretty good at consistency — about as good as humans — but are far worse at avoiding unnecessary requirements, unfortunately. I wrote about this in depth in Wicked features . Introducing a parallel system to perform the same task Introducing a second source of truth for some key piece of data Turning a safe sync operation into a delicate async one Adding new subtle points of failure Complicating a key interface Identify where your task could fit most normally into the current codebase Trim your task down into the smallest set of requirements that you can As usual on this blog, I am primarily talking about working on large commercial codebases with big teams: “impure engineering” in my terminology. This advice may not apply if you’re doing other kinds of work . Of course all of this applies whether you’re writing code by hand or driving an AI agent. ↩ My guess (it’s surprisingly hard to research) is that not ever blundering would get you around a 1600 or 1700 chess rating: strong enough to win almost every game against casual players. ↩ Current coding agents are pretty good at consistency — about as good as humans — but are far worse at avoiding unnecessary requirements, unfortunately. ↩ I wrote about this in depth in Wicked features . ↩

0 views

Notes on the discrete Fourier transform (DFT)

In the previous post on this topic , we’ve seen how the Discrete-Time Fourier Series (DTFS) and transform (DTFT) are used to analyze infinite-duration periodic and non-periodic discrete signals. Now, it’s time to turn to realistic digital signal processing where signals are not only discrete, but also finite in …

0 views
Chris Coyier 2 days ago

YoloCam S7

Chris Enns shared in the ShopTalk Show Discord last month a review video for the YoloCam S7. It hit me at the right time, so I pulled the trigger. Here’s a short background. I was using my Canon 5D Mark IV with a 50mm prime lens . Kind of a lot of firepower for a webcam. I just had it around because, once in a while, I need to take some really high-quality photos or video. So I figured I’d put it to work on the daily instead of mostly gather dust. I liked the quality of the prime lens, but didn’t love the inability to zoom. I disliked not having my nice camera easily accessible to use for other things. I disliked that I had to pay a monthly fee to unlock 1080p video. I disliked that it required a special mock battery to be persistently plugged in. I disliked the weird HDMI cable it required. I really disliked having to stand up and reach behind my desk to hit the camera button to wake it up. Just enough to keep me from loving the setup. I had also used a Sony ZV1 in the past, which I bought just to be a webcam, and while it was nice quality, I ended up having gripes with it too, and ditched it when it started turning off at awkward times. What struck me about the ZV1 was essentially the price point. An obviously very high-quality device, with a high-but-not-crazy price point. I always thought there should be a webcam in this category that was actually designed to be a webcam, not a repurposed point-and-shoot. That’s exactly what the YoloCam S7 is, so when I saw the review, I thought I’d reward the company for doing exactly what I thought a company should do. The results? It’s mostly great! The quality is very good. I like how the camera body has almost nothing on it except a few ports. I like how the lens is swappable in case I wanna try something else. I like how it wakes up and works whenever I need it. The software has just enough control on it to be useful. I like the automatic face focus and reasonable zoom. There are a few little things I don’t like. I don’t like how you still need two cables coming out of it. They are both USB-C, but one is for power, and one is for connection 🤷‍♀️. I really dislike that the software can’t see the camera most of the time . When I open YoloLiv Compose, there is a 90% chance it can’t see the camera, even though other software that needs the camera uses it fine. I have to unplug it and plug it back in, and even then there’s only a 50% chance it works. When it does work, you can control what you need to, and it persists fine.

0 views
Unsung 2 days ago

Testing tip: Set a keystroke to toggle between dark and light mode

The best way I found to make sure I test everything in dark and light modes was to assign a quick keyboard shortcut to it. I use a separate key on my extra keypad to do it… …but you can choose something your existing keys can handle that’s easy to press and remember, but rarely used – for example ⌃D. Setting it up in Shortcuts is relatively easy: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/testing-tip-set-a-keystroke-to-toggle-between-dark-and-light-mode/2.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/testing-tip-set-a-keystroke-to-toggle-between-dark-and-light-mode/2.1600w.avif" type="image/avif"> But I prefer Keyboard Maestro , where it looks like this: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/testing-tip-set-a-keystroke-to-toggle-between-dark-and-light-mode/3.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/testing-tip-set-a-keystroke-to-toggle-between-dark-and-light-mode/3.1600w.avif" type="image/avif"> You might say “isn’t this a one-click change in System Settings”? But in my experience the tax on that one click is heavy: you’ll have to navigate to the correct pane, which might be far away depending on where you left System Settings last, you definitely have to grab the mouse to do it… plus, System Settings these days is the kind of neighborhood you don’t drive into after dark: = 2x) and (width >= 700px)" srcset="https://unsung.aresluna.org/_media/testing-tip-set-a-keystroke-to-toggle-between-dark-and-light-mode/4.2096w.avif" type="image/avif"> = 3x) or (width >= 700px)" srcset="https://unsung.aresluna.org/_media/testing-tip-set-a-keystroke-to-toggle-between-dark-and-light-mode/4.1600w.avif" type="image/avif"> This way something that feels “one-click” amasses enough friction so that I would only do it when I really had to. With my setup, I am using it constantly without thinking about it, and get a lot more testing done. If keystrokes aren’t your thing, you can also try putting it in the menu bar somehow, although I could not get this to work in Shortcuts, despite promises. If you like this idea, I also have a few sibling shortcuts for similar things: toggling my display between retina and non-retina (non-retina screens are increasingly rare, but there are also some instances where thin retina lines completely disappear on non-retina screens, and that has some overlap with supporting zoom levels well, too): toggling the “reduce transparency” accessibility option – necessary as macOS Golden Gate has a bug where some screenshots look very dirty without it: I also have “no JavaScript,” “slow connection,” and “no internet” keystrokes specifically for developing in the browser. But that’s a whole other story.

0 views

New Notation for Abstract Scales

HA HA HA I SNUCK OUT AND DID SOME MUSIC!!! (after some encouragement from my wife!) Anyway, just a quick little update on some new notation I’ve been working on. Hopefully this will more clearly elucidate the points I’m trying to make with these abstract scales and generalized accidentals . Here’s what the new notation looks like: This is a 3-octave run in a 4-note scale. How can you tell it’s in a 4-note scale? Because the clef is a big “4”. In the first bar, we have an ottava bracket, which means we ought to read this bar to be one octave lower than it’s notated. The second bar is missing this bracket, and is therefore one octave up. And the third bar is an octave higher again. As a couple of landmarks: the bottom staff line is always a “root” or a “tonic” in this scale. That’s why both the first and second bars start on the bottom staff line. There is always a second octave notated, as indicated by the line straddled by the symbol in the clef. If you look, this line is where the third measure starts. What exactly does this scale “sound” like, you might be wondering? It doesn’t sound like anything; it’s just twelve steps in some arbitrary 4-note scale. We’d have to pin down exactly what that scale was in order to be able to realize it into something audible. Let’s take another example. This next one is a 5-octave run in a 3-note scale: The conventions are exactly the same here. Each measure spans an octave, and each measure is an octave above the previous one. The bottom staff line is still the tonic, but here, the second staff space is the one straddled by the . Again, this acts as a little landmark for where the next octave lands. Notice that bar 3 begins on this space. The only other thing to notice here is we have a +6 ottava in the last two bars. This is indicate it’s two octaves above what’s notated. It’s +6 because we’re two octaves above in a 3-note scale, and you shouldn’t be surprised to learn that . Let’s take this same 5-octave in a 3-note scale and transform it into a 7-note scale. The way we’re going to do that is via this mapping: Here you should read is the root of the scale, as the next note above that, as the next note again, etc. In our 3-note scale, we only have three notes, so giving a mapping for each of , , and is sufficient to map every pitch class out of the scale. Here we’re mapping to every other note in a 7-note scale, which when you look at it, is exactly how we build diatonic triads. Take every second note in the 7-note scale, and that gives you a triad! So when we apply this mapping over our 3-note scale example, we end up with arpeggiation of a triad over 5 octaves: Technically this is an abstract 7-note scale, but we can choose to interpret it as the usual diatonic scale. As a matter of convention, we will map the tonic of our abstract 7-note to C in the diatonic scale. This brings us back to everyday musical notation that should be familiar to practitioners: Notice that this diagram carries exactly the same information as the previous one, so it can be useful as a sort-of Rosetta Stone to help get an intuition for what the abstract notation is trying to articulate. So that’s a quick little primer on the notation. But now let’s try something a little more musical. We can bring in the same motif that we used previously : You’ll notice the familiar “abstract 3 clef”. The only new thing in this example are the accidentals. Unlike in a previous post, they are now using standard sharps/flats/natural symbols. But they also have little subscripts — the third note has a subscript 7 and the fourth note has a subscript 12. These subscripts express which scale we want to apply the accidental to. The means “move up one scale degree in a 7-note (diatonic) scale”. The “b/12” means “move down one scale degree in a 12-note (chromatic) scale.” We’ll expand this out momentarily to get some intuition as to what this means musically. Let’s repeat the motif 3 times, each time up a single scale degree: Using the same mapping as before, we can move this repeated motif into an abstract 7-note scale: There are two things to notice here. The first is that this thing looks much less like an arpeggiation than our first example. And the second is that the s are gone! These two facts are related to one another. Recall that was notation for “move up one note in a 7-note scale”. And so now that we’re in a 7-note scale, we can drop the notation and just move up one note. But since we haven’t yet moved into a 12-note scale, we can’t do the same procedure to the s, and so those accidentals remain. Let’s now reinterpret this abstract 7-note scale as the usual diatonic scale: which again should be familiar ground to musicians. You’ll notice that the have been replaced by simple flats, because standard music notation actually expresses the diatonic scale, and uses accidentals to express chromatic moves. Check out this music we’ve composed! What was once a very simple pattern in now has some character! Of course, nobody says we need to interpret our 3-note scale as triads . We could instead take our same repeated motif and map it into a 5-note scale. To pick a mapping at random, let’s go with: Applying this mapping gives us the “same motif” but now in a 5-note scale: We can interpret this 5-note scale as a major pentatonic, which then gives us Or we could interpret it as the minor pentatonic: We keep using that same 3-note scale motif, but we keep getting different results because we keep taking it through different paths on its way up to the diatonic scale. Let’s try another trick. Let’s take our repeated motif and this time map it into a 4-note scale. So far all of our transformations have preserved octave relationships (that is to say, if two notes are one octave apart before we map them, they are one octave apart after we map them.) But music is supposed to be free, man. There are no rules here. So let’s just reinterpret the motif as a 4-note scale: Now instead of giving a constant mapping from our 4-note scale into something playable, let’s instead give a dynamic mapping. For example, here’s a nice chord progression: You’ll notice that each of these chords has four notes. And we have a motif that is in a 4-note scale… so what if we to map our motif to the notes of the progression? The details here are pretty finicky, so I’ve notated this one as a grand staff. The first system is the chord progression, the second is the 4-note scale motif. The third system is the chord tones that get targeted by each note in the motif, and the final system is after we have applied all the accidentals from the motif to the targeted chord tones. Remember that the bottom line on the 4-note staff represents the “tonic” note, which is the lowest note of each chord. So because the first note of the motif is on the tonic, and the lowest note of the first chord is F, the resulting note is F. The note in our motif is just the next 4-note above the tonic, which is the second note in our chord, thus we get an Ab. But the third note of the motif is a above the second note in the chord. So since the second note in our chord is Ab (third system), one diatonic step above that is Bb (fourth system). The fourth note of the motif is a below the next note in the chord. The next note of the chord is C, so we lower it by a flat and get Cb. And then the last note of the motif is just the same note of the chord, but this time without the flat — thus C. That’s the derivation of the first bar. So far, so good. The second bar makes things a little trickier. This time the motif starts on the first space, which is to say it begins on the second note up the chord. Since the motif only touches three notes of the chord, in the second bar we will be ignoring the root note of the chord (the low F). It’s worth tracing through the details on this example. It’s finicky, but really makes you appreciate why we might want to use computers to calculate this stuff on our behalf. As one final step, we might want to take the last system of our derivation and “renormalize” it — changing the spelling of the notes so they feel a little more natural: Whew! We made it to the end! If you’re been paying attention to the whole series of blog posts, there’s nothing new here, but perhaps having a few more worked examples might help some of the ideas land. And again, none of these are my ideas — they all come from Tonality . What is mine is the notation, which I think can help with understanding. Of course, you’d never actually want to do any of these transformations by hand, but seeing them illustrated in full might perhaps pull back the curtains on composition. Perhaps what set apart the great composers of yore was not their musical genius, but their patience to work through the details of all these fiddly transformations.

0 views