Better HN
topnewbestaskshowjobs
Log inSign up

HeyImAlex

586 karma · joined Sep 25, 2011 (15y ago) · 238 submissions

Hey, I'm Alex. You can learn more about me on my website:

http://heyimalex.com/

Submissions

comment 4mo ago · link · parent

You can AOT typescript types from zod schemas if intellisense is your main complaint. I think it generally makes more sense to transform from more expressive => less expressive, and zod is more expressive than typescript (as evidenced by your need to add doc comment annotations to get similar behavior going the other way).

comment 5mo ago · link · parent

They're talking about window units, not heat pump systems or central air. It's a complete AC that sits in your window. It can't cool a very large space (even in apartments people may have more than one), but it's cheap and easy to install (and equally easy to remove). It might be unsightly on a house, but a lot of that is probably just cultural norms. They're very common in NYC, where a lot of housing was built before central air became the default.

comment 5mo ago · link · parent

Do effect systems actually avoid colored functions? Don’t most typed effect systems require the used effects in the signature?

comment 8mo ago · link · parent

It seems like it would drive down housing prices, but (given limited zoning) drive up land prices?

comment 1y ago · link · parent

In the times of the French Revolution that was enough, but I think technology is obsoleting us there too. If evil oligarch can make a bunker and ten million $100 kill bots, I don’t think the people are rising up unless existence is worse than death, and even then they might not win.

comment 1y ago · link · parent

Here’s my favorite post on the subject https://adam-p.ca/blog/2025/04/string-length/

comment 1y ago · link · parent

Another thing I’ve encountered with tree/structured diffs is a concept of identity. diff([{id:1,name:foo}],[{id:2,name:foo}] should show object w/ id:1 removed and id:2 added, not id changed from 1 to 2. Tough because then your diffing algo needs to be aware of the object structure (imo using convention and saying “no objects can contain this key” is pretty tough when you accept any user generated data).

comment 1y ago · link · parent

I think if this can keep a knife effectively sharper than the equivalent nice steel with less maintenance, then it’s going to find a market.

I’m a nerd, but Ive found that once I’ve mastered a hobby I eventually gravitate towards convenience, optimizing my time over absolute performance. I’ve built five PCs in my life, and now I only own a macbook. I spent loads of time optimizing my hifi setup, and now most of my apartment is sonos. And I have probably 1k worth of nice japanese knives + whetstones, that I would happily replace with a single knife that needs little to no upkeep.

comment 1y ago · link · parent

Reddit’s eventual livelihood would be based on selling ads, so legality is not the line they were aiming for.

comment 1y ago · link · parent

Hasn't the proliferation of streaming services shown that the content is the "drug"? To remain competitive, they had to start producing themselves.

comment 1y ago · link · parent

Check out design within reach. Fancy furniture can be incredibly expensive.

comment 1y ago · link · parent

Thank you for writing this! It’s something I’ve always wanted a comprehensive guide on, now I have something to point to.

comment 1y ago · link · parent

Consensus is that the evidence supporting that is not strong.

comment 1y ago · link · parent

It seems insanely risky to attempt to fill a niche that only opened up because of these tariffs. If they’re removed, congrats you just spent a bunch of capital to make a factory that is suddenly no longer competitive.

comment 1y ago · link · parent

Same deal with other industries with hybrid public/private, like the postal service or insurance. Arithmetic is based on serving some people at a loss but amortizing those losses against the wider public. Private entities come in and eat the winners while leaving the losers. Public option is left with only the clients that were never profitable, and private businesses have no obligation to serve them.

comment 2y ago · link · parent

I feel like immigration is effectively unlimited from the perspective of big cities. There's friction moving states, and some things keep people anchored, but the market is nationwide. If you built enough in NYC to make rent comparable to other major cities, then significantly more people would want to move to NYC.

comment 2y ago · link · parent

I think all metrics can be reconstructed as “wide events” since they’re just a bunch of arbitrary data? Counts, gauges, and histograms at least seem pretty straight forward to me.

It seems like the main motivation for metrics is that sending + storing + querying wide events for everything is cost prohibitive and/or performance intensive. If you can afford it and it works well, wide events is definitely more flexible. A metric is kinda just a pre-aggregation on the event stream.

comment 3y ago · link · parent

This is about a council rule that forbids “derogatory statements or comments about any individual.”

comment 3y ago · link · parent

This is about a different man, Noah Petersen, who was reading a statement mentioning the linked encounter at a council meeting.

comment 3y ago · link · parent

There’s a difference between “approving of” something and thinking it shouldn’t be a crime. What’s your feeling on the first amendment? Do you approve of hate speech?

comment 3y ago · link · parent

Isn’t that kinda what stock options are?

comment 3y ago · link · parent

Maybe discoverability? If you can’t google “major event” to find news, you’ll wind up just going to big-news-site.com and searching there.

comment 3y ago · link · parent

This discussion isn't new[1], and I'm not sure re-hashing it here will be useful unless you think AI generated child porn is significantly different from any other form of fictional child porn. Photoshop has existed for thirty years, pen and paper for even longer.

[1]: https://en.wikipedia.org/wiki/Legal_status_of_fictional_porn...

comment 3y ago · link · parent

I don’t think so? Household Cost = Total Cost / Households, Household Duration = Capacity / (Household Usage * Households), Houshold*2 would half both.

comment 3y ago · link · parent

I grew up in the suburbs and walked out my front door to play with my friends. There were probably 15 kids around my age within 100 yards of my house, 50 in my neighborhood.

comment 3y ago · link · parent

And if it’s not far away, we’ll have many other things to worry about! For me, accepting my total helplessness on world-altering events like this makes the anxiety go away. There could be a zombie apocalypse tomorrow, or a giant meteor could be headed right toward earth, or I could be diagnosed with terminal cancer. I’ll either survive or I won’t.

comment 3y ago · link · parent

The article mentions fentanyl is more deadly but also 5-10 times cheaper than the opiates it replaces. $4 for an oxy clone is wildly accessible. No telling if I would have tried it as a teenager had they been that cheap and available.

comment 4y ago · link · parent

And we kill 80 billion animals a year for food.

comment 4y ago · link · parent

Thanks for the suggestion!
12345
8