HNHacker News
TopNewBestAskShowJobs

thechao

5,801 karma · joined September 23, 2013

submissionscomments
thechao··on US Treasuries Have Become Unappetizing for Foreign Central Banks and Governments
Yeah. The headline is utterly divorced from the reality of the charts?
thechao··on Bend
> curl -fsSL https://bend-lang.com/install.sh | sh

Hmmm... needs `sudo`.

thechao··on Everybody's Lost Their Minds
Absolutely!
thechao··on Monsanto's Cruel, and Dangerous, Monopolization on American Farming (2008)
Only if the cost of monsanto seed + roundup is less than the cost of regular seed per expected harvested bushel? Otherwise, no one would use the monsanto seed + roundup?
thechao··on How big are factorials?
My kids love taking about big numbers. TREE(3) is a family favorite. So, I was going over sequences with them, and I decided to go slow instead. My sequence was: 1 1 1 1 ... 1 ...

They accused me of using just "all 1s" (which is, naturally, cheating). Ai contraire!

The count of the number of digits in the decimal representation of the number of unique primes in the prime factorization of the natural numbers.

The best part is that even pretty young kids can compute this sequence; by the first "2" is at 2*3*5*7*11*13*17*19*23*29!

(Hopefully I got that right; the phone doesn't make it easy to type!)

thechao··on Apple's Dimensional Drawings
I am!
thechao··on Devil's Arrows: Ancient builders hauled 55k-lb stones 11 miles for UK stone row
That's because we measure weight in tonnage.
thechao··on Apple's Dimensional Drawings
If the NTSB claims the car is safe on its interior in terms of certain kinds of crashes, you'd think that geometry & layout of the interior would be part of that claimed specification. That would prevent an A/B problem: the NTSB tests a car with 18" of padding, and the car manufacturer delivers a car with 18mm of padding. Or... whatever. Basically accountability & reproducibility.
thechao··on Apple's Dimensional Drawings
I wish overhead (cut away to passenger layout) and side scale drawings of all cars existed. That way you could directly compare the vehicles. You'd think such information would be needed (in the U.S.) by the NTSB; and, thus, be freely available.
thechao··on Why Bullshit Jobs Are (Finally) Dying [video]
I have friends at companies that used to do BS jobs. Then, AI came in and took over the BS, and now they're doing real, meaningful work. One friend was told her team (3) would be eliminated once AI took over. Now that the AI automated the teams' job, they do proper finance work, and they've expanded the team to 5 people. Turns out the limiting rate was a bottleneck in the paperwork that the AI eliminated, meaning they can do proper forecasting analysis more effectively. Each additional person increases the set of product markets they can effectively forecast for. With effective forecasts they can time the market better, and they've already saved the company significant money — way more than their salaries, combined.
thechao··on What do Visa and Mastercard do? An intro to card networks
> The big difference is that with a debit card, it's your money that is hit by fraud.

I kind of disagree. I think what's happened is the bank would prefer you to believe that. Imagine I kept my money at the bank, and deposited $10000 with the teller. Immediately afterward a robber follows in and steals that $10000 from the teller. Does the bank say "oh no Mr. TheChao! A robber stole your $10000!". I mean, no? The bank got robbed. Just because the bank's digital security is more tied one-to-one to dollars and its easier for a robber to steal from "my till" doesn't mean it was me who was robbed. It's the bank's job to stop that.

thechao··on Mathematics in the age of AI
I hope I'm remembering this right: a mathematician claims to have a proof for the ABC conjecture, but can't conceive any other mathematician it's right — it's "too weird", so the proof is rejected?
thechao··on Show HN: Wyzer Programming Language
> Wyzer supports standard if/else, while, and for loops. Note that loops don't need parentheses around the condition.

But why!? You know what'd be cool? If we started supporting control statements that were a bit more sophisticated!

``` do { } while (c) { if (x) break foo; } else { case foo : ...; default : ...; } ```

thechao··on AI psychosis is the new leadership blind spot
> Models are excellent at code

Models are infinitely willing to code. The code they produce makes me want to pour one out for Knuth.

thechao··on Why Do Fewer Renters Expect to Move?
Housing values skyrocketed due to low interest rates. The prices are sticky and won't correct just because mortgage rates have gone up. That means no one can move. What we need is a large number of small houses (or owner owned multitenants) and a population willing to move into them.
thechao··on Why is everyone trying to build a solid-state battery?
Gasoline has 10x the energy (MJ/Kg) than TNT, but it's not a "bomb". Being a "bomb" is about energy release rate. A battery is still controlled by its chemistry.
thechao··on AI companies are shredding rare books
Which book that was rare was destroyed? I'm interested to know a few titles.
thechao··on Writing by hand is good for your brain
Anathem is the best Stephenson book; The Algebraist is the best Iain Banks. There's enough of us to fill a good sized van!
thechao··on Software rendering in 500 lines of bare C++
Sorry I was so terse! Let's ignore guard band, for now. Our rasterization surface is a rectangle. We don't need to "geometrically clip" a triangle to the rectangle's surface. Instead, we just walk the surface of the rectangle and ask two questions: (1) does the triangle capture this (sub)sample; and, (2) what's the interpolated value of the attributes at this (sub)sample. In practice, for software rasterizers, we're working on tiny subrectangles (the tile), e.g., 4x4 or 2x8, whatever. So, we can be a little "inefficient" with our walking with respect to the edge testing for interiority. (This is roughly how HW works at the 2x2 level, as well.) Because the (sub)sample is "pulling" the attribute, we don't need to geometrically "clip" the triangle to the tile: the tile's (x,y) subsamples do that "for free".

On the flip side, if a triangle is 'really big' we need a guard band to either reject or subdivide triangles. The first one is fairly cheap -- we're throwing away the triangle! -- the second one is a better user experience, but requires synthesizing primitives. (The worst case is that a single triangle becomes 5 triangles, I think.) Each of those triangles needs its Z and 1/Z calculated in fixed precision. The precision of that fixed precision (though) can be clamped to the local tile; so, even though the global precision might need to be 25.25 (or whatever), the tile-local precision is only 4.9 (or whatever), with an intermediate 24.24 that can be handled with a float-float patch-up. The computation should all occur in the triangle's barycentric space: that means you need the inverted barycentric mapping to invert the guard band into the triangle's barycentric space. You do that because it lets you control the fixed point calculations better. (You can leave off the inverted determinant multiplication until the last moment.)

When I say "deferred attribute synthesis" I mean that we don't calculate attributes in the vertex shader. Instead, we calculate the barycentric, Z, and 1/Z values and pass those along. When we fire up the tile walker for the triangle (in general we only need 1-3 tiles), we calculate the attributes "on the fly, as they're used" and then let the compiler do CSE to fold down the replicated constructions.

thechao··on Software rendering in 500 lines of bare C++
You only need to clip triangles is you're worried about attribute interpolation for very large triangles. There's two ways to handle this: (1) discard (fast but not a great user experience); or, (2) primitive synthesis. Just frustum clipping is enabled by point picking in the local tile. Primitive synthesis requires some FP kung fu; but, is easiest done in barycentric space against a reverse transformed clipping rectangle. This lets you carefully control clip rounding error using either doubles or (better) fixed point. Abrash likes to use integer fixed point, but that is historical — modern fixed point can be handled with careful control of the fp unit in the mantissa. The major issue is regenerating the Z and the 1/Z values for the new vertices of the synthesized primitives. Everything else should flow down the pipe naturally, assuming a deferred attribute synthesis rasterizer.

There are examples in the open source version of my rasterizer: OpenSWR.org.

thechao··on Terrence Tao's ChatGPT Conversation about the Jacobian Conjecture Counterexample
I want to be able to take a conversation and ask for subconversations as red pen annotations "on the side". The linear nature of the context tends to frustrate this.
thechao··on Terrence Tao's ChatGPT Conversation about the Jacobian Conjecture Counterexample
I'm no intelligence researcher or philosopher; but, I think LLMs make us confront the (IMO, now clear) distinction between cleverness (intuition), reasoning (rational argument), and consciousness. I suspect that we think of "intelligence" as either of the first two welded to the latter. In that vein, I'd say that consciousness may be just another emotion: happiness, sadness, egoness.
thechao··on What Emily Bender meant by "stochastic parrots"
It's around hour 20 of trying to breath that I start to really think the Goldfish has an edge on me.
thechao··on Flock cameras track more than your license plate, and they're spreading fast
Races are virtually uncompetitive; it means politicians only need to pander to the 40% bloc of the 10–20% of voters that show up in the primary. Once elected, the chance of losing their office is nearly 0. Gerrymandering absolutely reduces effective voting power. That's the whole point.
thechao··on Flock cameras track more than your license plate, and they're spreading fast
This is why gerrymandering should be unconstitutional, and why corporations should have their rights explicitly curtailed: they're not citizens or the people.
thechao··on Flock cameras track more than your license plate, and they're spreading fast
I have strong expectations, in fact; I need the state to respect that.
thechao··on Never Give Them Your Face
I've been able to age restrict websites with my childrens' devices for years? Privately, on the device. The website side is pure moatism.
thechao··on Show HN: Gerrymandle - Daily puzzle game where you redraw electoral districts
I know your threw an "etc" in there; but, all fingers point to my home state: Texas. We need two legislative changes at the federal level: (1) uncap the house from 435 to at least cube-root or (better) max 500k; and, (2) you can't be sworn in unless your district was from an ICRC or statistically equivalent object.
thechao··on Image Compression
I've had a lot of success just LZ4ing a bitmap.
thechao··on Copper transport drug restores memory and clears toxic Alzheimer's proteins
I'm responding to a random comment: I was in molecular biology, but >20 years ago. Your article immediately presents as someone who's acquired reading expertise in a biological/medical subfield. Second, your initial survey presents as a "brittle x": AB is the proximal cause all by itself; but, it can also be the secondary cause from many vectors. Diseases like that are (essentially) impossible to explain to the public. Also, the biological principle function is a standard trope for "good for X in the short run, bad for the person in the long run".
Page 1 of 34Next →