HNHacker News
TopNewBestAskShowJobs

HeyImAlex

586 karma · joined September 25, 2011

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

http://heyimalex.com/

submissionscomments
HeyImAlex··on Parse, Don't Validate – In a Language That Doesn't Want You To
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).
HeyImAlex··on Extreme Heat conference cancelled due to extreme heat warning
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.
HeyImAlex··on Algebraic Effects for the Rest of Us
Do effect systems actually avoid colored functions? Don’t most typed effect systems require the used effects in the signature?
HeyImAlex··on Austin’s surge of new housing construction drove down rents
It seems like it would drive down housing prices, but (given limited zoning) drive up land prices?
HeyImAlex··on Life After Work
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.
HeyImAlex··on Go subtleties
Here’s my favorite post on the subject https://adam-p.ca/blog/2025/04/string-length/
HeyImAlex··on Diff Algorithms
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).
HeyImAlex··on Ultrasonic Chef's Knife
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.

HeyImAlex··on Imgur's community was in revolt
Reddit’s eventual livelihood would be based on selling ads, so legality is not the line they were aiming for.
HeyImAlex··on Claude is the drug, Cursor is the dealer
Hasn't the proliferation of streaming services shown that the content is the "drug"? To remain competitive, they had to start producing themselves.
HeyImAlex··on When flat rate movers won't answer your calls
Check out design within reach. Fancy furniture can be incredibly expensive.
HeyImAlex··on The best – but not good – way to limit string length
Thank you for writing this! It’s something I’ve always wanted a comprehensive guide on, now I have something to point to.
HeyImAlex··on How the U.S. became a science superpower
Consensus is that the evidence supporting that is not strong.
HeyImAlex··on US Administration announces 34% tariffs on China, 20% on EU
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.
HeyImAlex··on The Movement to Redirect Billions of Taxpayer Dollars to Private Schools
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.
HeyImAlex··on The economy is going great, except for the housing market
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.
HeyImAlex··on All you need is Wide Events, not "Metrics, Logs and Traces"
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.

HeyImAlex··on Iowa man files lawsuit after being arrested twice for criticizing the police
This is about a council rule that forbids “derogatory statements or comments about any individual.”
HeyImAlex··on Iowa man files lawsuit after being arrested twice for criticizing the police
This is about a different man, Noah Petersen, who was reading a statement mentioning the linked encounter at a council meeting.
HeyImAlex··on South Korea has jailed a man for using AI to create sexual images of children
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?
HeyImAlex··on Inflation Bites U.S. Engineering Salaries
Isn’t that kinda what stock options are?
HeyImAlex··on Govt of Canada proposes a 4% Link Tax
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.
HeyImAlex··on Opendream: A layer-based UI for Stable Diffusion
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...

HeyImAlex··on Developers are building communities that act as their own miniature power grids
I don’t think so? Household Cost = Total Cost / Households, Household Duration = Capacity / (Household Usage * Households), Houshold*2 would half both.
HeyImAlex··on Remote work turns America into Suburban nation
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.
HeyImAlex··on Ask HN: Given AI advancements, is a master’s degree in CS worthless?
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.
HeyImAlex··on Washington faltered as fentanyl gripped America
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.
HeyImAlex··on Laika, the space dog, and her one-way trip into orbit (2018)
And we kill 80 billion animals a year for food.
HeyImAlex··on Understanding UseMemo and UseCallback
Thanks for the suggestion!
HeyImAlex··on JavaScript hydration is a workaround, not a solution
Ah can’t wait to finally build a cross platform app without complex JS tooling once I take my time machine back to 2005 and change the course of cross platform GUI development forever.
Page 1 of 8Next →