7,302 karma · joined Jul 22, 2012 (14y ago) · 2,714 submissions
comment 1d ago · link · parent
A group of armed government officers comes to your door. The captain says, "Give us your GPU, or we will break into your house, take it by force, capture you and put you in jail."
From your point of view, does it matter if those armed officers are enforcing a law or an executive order?
comment 3d ago · link · parent
This is right for software, but not right for chip design.
In software, you pay someone $100k / year to work for 2 years. Cut that down to paying AI $1k / month to work for 2 months and you cut your $200k bill to $2k, that is a 10000% reduction -- a real game changer.
In chip design, you need to pay ~$1 million for the mask. So your $1200k bill is now $1002k. That's less than 20%. Worth pursuing I suppose, but hardly revolutionary.
It depends on the balance of cost of design vs. cost of manufacturing. My gut sense is that design cost is less than 20% of total cost due to those high manufacturing costs. If my gut is right about this, then 20% would be an upper bound on how much custom chips can save.
Note this only applies to custom chips where manufacturing has very high fixed costs. When manufacturing is cheaper (e.g. custom circuit boards instead of custom chips) AI is still potentially revolutionary.
comment 1w ago · link · parent
Did he know she was a spy?
Did he give her any secrets?
Did he break up with her after finding out she's a spy?
Was she trained as a spy and sent to entrap him specifically? Or did she form a relationship with him, then get told by the Chinese Communist Party "Xi wants you to steal him some secrets from your boyfriend. This is an offer you can't refuse; spy for us or your family in China will be beaten, jailed or worse"?
Is he a victim or an asset? Is she a willing patriotic spy for China, or a victim of blackmail from the Chinese Communist Party? Has she been arrested as a spy, or did she make it to the Chinese embassy before the story broke?
My feeling is he shouldn't be ousted if he took the honey but didn't fall for the trap. OTOH if he passed her company secrets, that's presumably a fireable offense for anyone lower on the totem pole; it's only fair for a CEO to get fired for the same.
comment 2w ago · link · parent
I actually found it quite informative about how formalization can go bad -- assuming memory allocation always succeeds, memory allocation will never reuse the same address, the user won't subclass exceptions, etc.
comment 3w ago · link · parent
If you or your retirement is a shareholder in one of these companies, you'd rather they return $100 billion to you with boring buybacks or dividends than put it in an exciting AI investment that returns $1-$10 billion. Even though it didn't end up completely worthless, it's still a bad investment.
> If AI blows up in Microsoft or Google’s face they’re just going to write it off and spend a decade paying zero income tax
As a shareholder, you'd also rather they return $100 billion to you than put it in a bad investment that returns $0 -- even if that bad investment lets them write off $20 billion in taxes over the next 10 years you'd still be $80 billion better off.
> how much it’s actually going to matter. If AI blows up in Microsoft or Google’s face
An AI winter shouldn't be an existential threat to these companies -- but "the share price is 10% - 20% lower than the counterfactual where they didn't make these questionable investments" still represents a lot of lost wealth for shareholders -- billions (or trillions for the industry as a whole). A lot of that wealth is the hands of ordinary people, often through retirement investments in index funds.
comment 1mo ago · link · parent
Good. Apple can't say "I don't like your app because [vague reasons], it's not allowed on the App Store so nobody can use it".
> "...provided those iOS apps have undergone an automated scan for genuine security and/or privacy reasons and been notarised by Apple or a suitably qualified third party (Alternative Distribution Channels)..."
Seems bad, can't Apple say "I refuse to notarise your app for 'security' [vague reasons]"?
Or does the cryptographic signatures Apple presumably gives an app uploaded to the App Store count as "notarised"? I'm picturing the following situation:
- January: Alice uploads to App Store, Apple produces a signature S of H(app), Alice downloads the bytes of S
- February: Apple says "Alice we're kicking your app out of the App Store for [vague reasons]"
- March: Alice says "Fine, then I'll put it on Bob's Alternate Appstore." Apple says "I refuse to 'notarise' your app for 'security' [vague reasons]". Alice then uploads her app to Bob's Alternate Appstore along with Apple's cryptographic signature S that Bob authenticates against a known Apple public key.
Now there are two contradictory narratives about whether Alice is notarised.
- (a) Apple says "I refuse to notarise Alice, therefore she's not notarised."
- (b) Alice says "S exists, here are its bytes, the hash and signature validate, therefore I'm notarised."
Presumably if (a) wins, Apple would be within its legal rights to block Bob's Alternate Appstore because it allowed Alice to upload an un-notarised app. This would make the whole ruling effectively toothless, because Apple still gets a veto, the veto is just renamed to "notarisation."
If (b) wins, it provides clarity for developers. In this world signing an app is effectively a no-takesies-backsies moment: Once S is published, Alice knows for sure she's notarised forever. Apple won't later be able to block Alice on a whim by hiding behind a vague "security" excuse.
Which narrative wins?
If (b) wins it seems like there's an opportunity here to create tooling for Alice to pull the S for her app on the app store as soon as it's approved. Maybe someone should spin up an observatory to constantly download S for every app as it's uploaded to the app store -- the observatory would be able to rescue Alice if she didn't have the foresight to download S herself before Apple banned her app.
(Lines starting with > are quotes from OP PDF)
comment 1mo ago · link · parent
If you have $1 billion and you're going to get taxed $50 million in California, why not spend $1 million to buy a house in some other state and move there on paper before the tax goes into effect?
comment 1mo ago · link · parent
Normally Eve's attempts fail because Alice requires a message to be signed with the private key matching the public key in a certificate for bob.example.com signed by a legitimate CA.
Unfortunately Bob bought his CA from Mal's Domains, and Mal is working with Eve for some reason (for example, Mal has been bribed, hacked, intimidated, legally pressured, etc.)
So in addition to Bob's regular on-the-books cert, Mal issues a second off-the-books cert for bob.example.com and gives it to Eve.
With CT, Alice's browser doesn't just require the cert's pubkey, it requires the server to provide a Merkle proof it was included in a CT log.
The CT log puts Eve and Mal on the horns of a dilemma: If they keep their new cert out of the CT logs, Alice's browser won't accept it. If they put it in the CT logs, Bob can read the log himself (it's public) and Bob can say "Hold it! I didn't order this!"
Bob will switch away from Mal as a TLS provider and complain "Hey everybody, Mal issued this cert I didn't order, customers should stop using him and the people who create CA lists for browsers and OS's should closely investigate whether Mal's CA activities are legitimate." Mal can't deny issuing the questionable certificate, the evidence is in public append-only CT logs for everyone to see.
comment 1mo ago · link · parent
This expectation seems...poorly calibrated.
Pakistan didn't arrest Osama bin Laden, the terrorist mastermind behind an attack that killed thousands of innocent people and significantly altered the trajectory of world history. In what universe do you think they would deport a humble counterfeiter of stamps?
comment 1mo ago · link · parent
"Feed it to SAT solver" is a super useful technique every seasoned programmer should have in their toolbelt.
If you want to improve your programming skill, I suggest implementing your own version of these two interesting, satisfying algorithms:
- DPLL, the classic general-purpose SAT solving algorithm [3].
- Algorithm X (aka Dancing Links), Knuth's super elegant search algorithm for solving exact cover problems [4] [5].
You're not going to build something that beats CaDiCaL [6] in an afternoon, but writing your own implementation of these algorithms will teach you a lot, and a reasonable time investment will get you to a pretty satisfying endpoint of having a practical solver for your favorite application (Sudoku, polyomino packing, etc.)
[1] Reinventing wheels is not a bad way to spend your days at a retreat focusing on one's personal growth as a programmer. "I think I'll learn a lot and get some good practice at programming and algorithmic thinking" is an easy bar to meet.
In a professional context, telling your company or client they should commit scarce, expensive engineering resources (e.g. your time) to creating and maintaining their own wheel design requires justification [2].
[2] "Don't reinvent wheels" is good general advice for junior developers. Senior developers know that sometimes there are specific situations where this general advice doesn't apply. For example, if no existing wheels meet your application's requirements, or if you have ideas for proprietary features that give you a competitive advantage. Even in a professional setting, reinventing the wheel isn't always a bad idea; you just need to meet a much higher bar to justify the commitment of resources.
[3] https://en.wikipedia.org/wiki/DPLL_algorithm
[4] https://arxiv.org/abs/cs/0011047
comment 1mo ago · link · parent
A lot of artists are passionate about art [citation needed]. So the average individual with enough skill to make a career in an artistic field, faced with a choice between art and some other career -- accounting, say -- will almost always choose art if the salaries are equal; the joy and fulfillment tips the scale. But the scales balance over time; if artists are paid as well as accountants, there will be too many artists for economic demand and not enough accountants.
The pay for artists will go down and the pay for accountants will go up, until the average artist's joy and fulfillment gets balanced out by the lower pay.
This assumes art is fungible; the argument applies more to people working as artists for hire, and less to artists who cultivate a style, brand and unique audience.
IMO the best way to escape the "starving artist" trap is to embrace your individuality. There are a lot of ways for artists to connect directly to fans. Kickstarter. Patreon. Self-publishing with fulfillment-on-demand. Etsy. Anime conventions (if you're working in that art style).
For example, one artistic niche with very interesting economics is designing 3D printed miniatures for tabletop gaming [1].
As a consumer, be aware of the economics of the art you consume. Try to support artists directly instead of giving your entertainment dollars to giant megacorps.
[1] https://www.bitsaboutmoney.com/archive/payments-and-plastic-...
comment 2mo ago · link · parent
The code in that section is clear in its purpose and broad outline: "Give me a function and data; if the data is bare apply the function to it; if the data is a container apply the function to each item inside it."
You can absolutely do that with immutable data structures in Zig. You just have to pass an allocator to the function (i.e. instead of calling data.flat_map(f), you call data.flat_map(a, f) where a is your allocator).
That the Zig version of the code does mutation is a matter of programmer choice, not something imposed by the language.
(Also, what do monads have to do with it?)
comment 2mo ago · link · parent
If a government is willing to go after the property of its own citizens without due process, foreign investors have to think: "What's to stop the same from happening to me?" Even if that foreign investor's a central bank.
[1] https://www.bitsaboutmoney.com/archive/debanking-and-debunki...
[2] Maybe the truckers' protest went too far; they were blocking roads. The point isn't whether they deserved to be punished; the point is that their accounts were frozen without going through the laws and court system.
[3] This was in 2022, so it has nothing to do with the current US administration.
comment 2mo ago · link · parent
Does someone who works for A/I have to drive to Italy and pick up a briefcase full of cash? Or does the money stay in the bank, inaccessible to A/I, until A/I proves they aren't terrorists? Which could be...forever, since it's basically impossible to improve you're not a terrorist once you're formally included on The Big List Of Terrorists? How do you hire a lawyer to argue your case if the money you would use to pay them has already been taken away?
comment 3mo ago · link · parent
In 2026, you can ask an LLM to fill out the application, reducing the expensive proof-of-human-work to a free or cheap machine proof-of-work.
I can immediately think of three different user stories for LLM-generated applications for, without loss of generality, government benefits:
- Alice is honest and likely eligible but didn't apply because the application process was too time-consuming / complex. With LLM assistance, Alice can now complete the process.
- Bob is honest and likely ineligible but didn't apply because he realized he's probably not eligible. With LLM assistance, Bob can now apply anyway -- "Throw spaghetti at the wall and see what sticks."
- Eve is dishonest and ineligible. Eve wants to make money by lying on her application to defraud the government into paying her benefits. With LLM assistance, Eve can more easily make more convincing applications to more agencies.
An interesting question that doesn't seem to be addressed by the paper is how much of the cost is driven by Alice vs. Bob vs. Eve. We can tell very different stories depending on which is the case:
- Mostly Alice: Our current taxes / budget / etc. can only pay for half of what it would cost to pay everyone entitled to benefits under the law. We quietly disenfranchise citizens of their legal right to receive benefits with a bureaucratic process that half of eligible applicants can't complete, but whoops! now a lot more people can complete it with LLM assistance and we're approving most of them because they're legitimately completing the application process and legitimately entitled to benefits. Financially it's killing us to pay what the government promised to all those people to whom it was promised.
- Mostly Bob: A lot more people are applying because LLM's make it super easy for anyone to apply. We don't approve many more applications than we did before -- but each year has about 1,000,000 more applications and 990,000 more denials than the previous year for three years running. Financially it's killing us to pay the processing costs for all those unsuccessful applications.
- Mostly Eve: We're seeing an uptick in applications that are immediately denied, or approved but later revoked, because of fraud. LLM's are making it easier for criminals to defraud the government. Financially it's killing us because we pay those fraudulent benefits before we know they're fraudulent; recovery of funds is slow and uncertain once the fraud is discovered; and fraud imposes additional costs of investigation, prosecution, and punishment.
comment 3mo ago · link · parent
MMU: The memory management unit, part of the CPU designed to allow an OS kernel to flexibly control how memory addresses used by a program map to physical RAM.
Page: A 4k region of memory addresses.
Anonymous: The page is just regular old memory used by a single process for general purposes, it's not part of e.g. a memory-mapped file.
Backing: The memory corresponding to a page. The kernel can direct the MMU to map any page to any part of RAM, or delete the mapping entirely.
Zero page: The kernel keeps a single 4 KB page filled with zeros (the "zero page").
Page fault: An error that occurs when you try to write a page that's not present, or write to a read-only page. Some page faults are normal and expected by the kernel, they support features like swapping, memory-mapped files, etc. Such "expected" page faults are invisible to your program. (On the other hand, an unexpected page fault occurs when your program just straight-up accesses an address it's not supposed to, which will end your program with a SIGSEGV signal -- an all-too-familiar experience for a C programmer.)
When you allocate say 4 MB of memory, the kernel simply sets it to 1k read-only copies of the 4 KB zero page. Then when your program tries to write to a page, it faults. The kernel handles this expected fault by assigning that page an individualized memory region. If a program allocates a lot of memory, it's only assigned memory for what it actually uses, when it first uses it. This is an optimization: Every program that allocates more memory than it needs is wasteful, but the kernel can recover that waste by not backing the allocation with memory -- the program has to prove each page is needed by writing to it.
Store to a freshly-faulted anonymous page: The program stored data to its own memory, which caused an expected page fault.
> becomes invisible to that same thread's reload ~10 instructions later
The thread fairly quickly tried to read the data from the same place in memory it had just written to. It doesn't get the same data back. This is a major problem that causes the program to malfunction and crash.
> A pagemap read at the instant of the fault shows the backing is the kernel's zero page
The expected fault occurred because the program tried to write to an address that was mapped to the zero page, probably because it's the first write to freshly allocated memory. (This rules out other reasons it might be faulted, e.g. the page had been swapped to disk.)
> concurrent munmap's TLB shootdown
The page table is big and slow so the CPU caches parts of it in an area called the TLB (translation lookaside buffer). munmap is a kernel function that removes the backing for an address region. Since munmap changes the mapping, it has to inform the MMU the relevant part of the TLB is no longer valid.
> per-VMA-lock anonymous-fault fast path
This is what the kernel does when the program first writes to a zero page. Saying it's the "fast path" implies there's some (slow) special case handling in the kernel code, but the bug doesn't trigger any of the special cases, we're in the most common case, which the kernel code tries to handle as quickly as possible because it has measurable impact on performance. I would guess per-VMA-lock has to do with how the kernel synchronizes this code (a "lock" is a basic synchronization primitive, you should be familiar with it if you do any kind of multithreaded programming).
> The mechanism localizes to the interaction between the per-VMA-lock anonymous-fault fast path and a concurrent munmap's TLB shootdown. A source-level review of Linux 7.0.12 identifies a specific race in that interaction
The mechanism: What's actually happening to cause the program not to be able to load data it just stored in memory.
Localizes: The cause of a problem like this is a needle in a haystack -- it could be caused by the program, the kernel or the hardware. The analysis has narrowed down the haystack to a specific part of the kernel code.
Race in that interaction: Two parts of the kernel code, (1) The kernel code for munmap and (2) the kernel code to handle a program's first write to the read-only zero page for a fresh allocation. These two parts work fine individually but the problem occurs when they both try to change the page tables / TLB at exactly the same time. This is quite a small, specific haystack compared to "somewhere in the program, kernel or hardware" we started with.
comment 3mo ago · link · parent
Take a corpus of problems you know the answers to, but the AI sometimes gets wrong [1]. Have the AI try to solve each problem and give you a 1-5 integer confidence score. The known proportion of correct answers in each bucket gives you a mapping from scores to probabilities [2].
[1] One possible corpus creation strategy might be math problems that you really need to run a program to solve. You can run the program to generate the correct answer key, but disallow tool calling for the AI.
[2] I'm pretty sure there's some stats wizardry that will let you put error bars on each bucket's probability based on the number of problems that end up in each bucket.
25.
Microsoft's 90s Weapon That Made Windows Fast [video](youtube.com ↗)
3 points · by csense · 4mo ago · 2 comments
comment 5mo ago · link · parent
If "we need to store solar energy from summer to winter" is indeed a significant issue, maybe you could use the extra power in summertime to make natural gas [1] and then store the gas until you need it in the winter.
[1] https://www.terraformindustries.com/ is a startup working on turning solar power into natural gas
comment 5mo ago · link · parent
Anthropic addresses this head-on in the final section of the paper titled "What should we do?" If you convince the US government to slow AI development, you have to convince China too, otherwise you're not stopping self-improving AI at all, you're just throwing away the lead to China. If you convince China too, China or the US or both might go back on their word and build self-improving AI secretly, for greed of the benefits it could bring or fear the other will go back on their word.
What you really need is a non-proliferation regime like the one for nuclear weapons, where every country makes potentially dangerous AI illegal and lets foreign or international inspectors monitor to check that nobody's building illegal AI in secret. But monitoring seems hard; it's general-purpose computation. How do you check whether a given datacenter is training an illegal AI and not just serving websites, running detailed protein folding simulations, or mining crypto? For that matter, how do you know that a nondescript industrial facility hasn't been repurposed into a hidden datacenter for training illegal AI?