Better HN
topnewbestaskshowjobs
Log inSign up

khuey

8,815 karma · joined Mar 6, 2011 (15y ago) · 1,958 submissions

blog.kylehuey.com

Email is username at kylehuey.com.

Submissions

comment 1w ago · link · parent

The major target retirement date funds are just "funds of funds" that are distributed across stock and bond index funds in an age appropriate allocation. e.g. https://investor.vanguard.com/investment-products/mutual-fun... They're generally not actively managed funds chasing bubbles.

comment 2w ago · link · parent

Yes, any decent size business is paying API rates.

comment 1mo ago · link · parent

A major problem with decoupling property taxes on owner-occupied housing from market prices is that it removes the biggest incentive for a homeowner to vote for policies that keep the local real estate market in check. An owner occupied house in a desirable area where there is no disincentive to politically engineering a supply shortage becomes a financial investment. Any increase in housing value becomes profit for the owner (or their descendants). This leads to supply restrictions and escalating prices and an increasingly unhealthy society as the young and the poorer are pushed out of the city, county, or even state.

This is essentially what has happened in coastal California over the last 60 years.

comment 1mo ago · link · parent

Use the split-debuginfo setting in your Cargo.toml to have the DWARF bypass the linker (on Linux, YMMV on other platforms).

comment 1mo ago · link · parent

Rebuild civilization while avoiding the mind worms.

comment 2mo ago · link · parent

If you don't _need_ subnormals MXCSR.DAZ/FTZ (which you can get gcc to set via -mdaz-ftz) will let you ignore all of this.

comment 2mo ago · link · parent

If the folks at OpenAI aren't qualified to be operating these systems who would be?

comment 3mo ago · link · parent

One obvious reason to have an LLM output a high level language even if you are never going to read the code is because it will require fewer output tokens and therefore be cheaper.

comment 3mo ago · link · parent

Yes, it's management with little concern for human factors because you can abuse or and even fire your reports and summon new ones of equal competence at will.

comment 3mo ago · link · parent

Governments are famously tolerant of other actors seeking to rival or usurp their power.

comment 3mo ago · link · parent

You should try writing it out. Doing it without introducing another unpredictable branch is harder than it looks.

I discussed this with a coworker earlier this week and the best they were able to come up with was

    for &x in input {
        out.push(x);
        n += (x > threshold) as usize;
        out.truncate(n);
    }
which works but is ugly af imo.

comment 3mo ago · link · parent

Worth noting that as written the "trick" results in memory usage proportional to the size of the input rather than the output. If the filter rejects most of the input the difference could be quite noticeable.

comment 3mo ago · link · parent

Yes, diversification results in lower returns than investing in just the best performing asset class.

comment 3mo ago · link · parent

Many people don't have a "rest of their portfolio".

comment 3mo ago · link · parent

Generally the default fund in a decent 401(k) (employer managed but largely employee funded retirement plan) will be a "target date retirement fund" that contains a mix of equities and bonds according to the expected risk tolerance of someone at that age, and generally the equity component is also split between US and foreign equities.

e.g. Fidelity's fund for people planning to retire around 2050 https://fundresearch.fidelity.com/mutual-funds/summary/31579...

comment 4mo ago · link · parent

Unless you've checked it for accuracy why would I read your AI-generated documentation when I can ask my AI (which in a month or two will be a newer, better model than what you used to generate that documentation) to read the code and summarize it for me?

If you did check it for accuracy then I don't understand how you compressed months of work into minutes.

comment 4mo ago · link · parent

My memory is a bit fuzzy but I think you're correct.

comment 4mo ago · link · parent

We've seen b before. React was controversially released with a similar clause and ultimately Facebook dropped it and used a standard open source license. Their lawyers really love this idea for some reason.

comment 4mo ago · link · parent

Painfully slow tok/s though.

comment 4mo ago · link · parent

If you show up at a US port of entry without any sort of anything the default decision is to deny entry (exceptions for Canadian citizens and citizens of a few small islands). If you show up at a US port of entry with an ESTA/visa you will most likely be allowed entry. Refusals are relatively rare.

Commercial carriers such as airlines are also not allowed to transport people who need ESTAs/visas and do not have them to the US, so in practice it's relatively difficult to even get to the port of entry without a visa.

comment 4mo ago · link · parent

That already happens. Witness all the random "bans" and "pauses" Trump has instituted against various nationalities and groups of people at the border.

comment 4mo ago · link · parent

As someone who doesn't follow databases that closely, how is this different from Amazon Aurora (other than being open source)?

comment 4mo ago · link · parent

IMO the threat model is more letting the agent loose on issues/PRs in a public Github repo and it getting tricked into running a malicious payload.

comment 4mo ago · link · parent

If Unity had 2.5 users anyone had heard of before the switch you can see where the motivation might (at least emotionally) come from.

comment 4mo ago · link · parent

I have bad news for you about where ClickHouse comes from then.

comment 4mo ago · link · parent

In the one statement case, clang emits LLVM IR where the last operation in each branch is the store. In the two statement case, clang emits LLVM IR where the last operation in each branch is the [pointer math](https://llvm.org/docs/GetElementPtr.html).

The SimplifyCFG pass in LLVM pulls the identical-in-all-but-one-operand store IR instructions into a successor block with a [select instruction](https://llvm.org/docs/LangRef.html#select-instruction) that will ultimately become a conditional move. But the pointer math differs by two operands (because there are two different pointers and one is being decremented and one is being incremented) so SimplifyCFG stops immediately and never reaches the stores.

This sort of brittle behavior where semantically identical code produces different optimization results is common in optimizing compilers unfortunately.

comment 4mo ago · link · parent

I'm not sure it's a "technique" but the general insight worth taking away from this is that compiler authors often write optimizers to recognize specific patterns so writing your code in a more idiomatic form increases the odds an optimizer will be able to optimize it.

In this specific instance, at the hardware level it helps to understand how the branch predictor works and why quicksort in particular is essentially the worst case for the branch predictor, and then you'll understand why the cmov/csel optimization is such a big win.

comment 4mo ago · link · parent

> And how many years of being passed over for promotions, I wonder.

He was Vice President of Product Design when he left Apple. How many more promotions could there be?

12345
66