News for hackers. Stuff that matters.

HeyImAlex

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).
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.
Re:Algebraic Effects for the Rest of Us on Saturday May 30, 2026 @03:07AM (#48333497)
Do effect systems actually avoid colored functions? Don’t most typed effect systems require the used effects in the signature?
It seems like it would drive down housing prices, but (given limited zoning) drive up land prices?
Re:Life After Work on Wednesday October 29, 2025 @11:53AM (#45748550)
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.
Re:Go Subtleties You May Not Know on Wednesday October 22, 2025 @11:30AM (#45670657)
Here’s my favorite post on the subject https://adam-p.ca/blog/2025/04/string-length/
Re:Diff Algorithms on Tuesday September 30, 2025 @07:29PM (#45432566)
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).
Re:Seattle Ultrasonics: Ultrasonic Chef's Knife on Sunday September 21, 2025 @12:17AM (#45320023)
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.

Re:Imgur's Community Is in Full Revolt Against Its Owner on Tuesday September 02, 2025 @11:53AM (#45104733)
Reddit’s eventual livelihood would be based on selling ads, so legality is not the line they were aiming for.
Re:Claude Is the Drug, Cursor Is the Dealer on Monday August 11, 2025 @05:20PM (#44869596)
Hasn't the proliferation of streaming services shown that the content is the "drug"? To remain competitive, they had to start producing themselves.
Re:When Flat Rate Movers Won't Answer Your Calls on Sunday May 04, 2025 @06:52AM (#43885968)
Check out design within reach. Fancy furniture can be incredibly expensive.
Re:The best – but not good – way to limit string length on Wednesday April 30, 2025 @07:44PM (#43851987)
Thank you for writing this! It’s something I’ve always wanted a comprehensive guide on, now I have something to point to.
Re:How the U.S. Became a Science Superpower on Tuesday April 15, 2025 @07:00PM (#43699422)
Consensus is that the evidence supporting that is not strong.
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.
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.
Re:The Economy Is Going Great, Except for the Housing Market on Thursday October 31, 2024 @09:40PM (#42013287)
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.
Re:All you need is Wide Events, not "Metrics, Logs and Traces" on Tuesday February 27, 2024 @05:43PM (#39531194)
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.

This is about a council rule that forbids “derogatory statements or comments about any individual.”
This is about a different man, Noah Petersen, who was reading a statement mentioning the linked encounter at a council meeting.
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?
Re:Inflation Bites U.S. Engineering Salaries on Wednesday September 27, 2023 @07:25PM (#37682887)
Isn’t that kinda what stock options are?
Re:Govt of Canada proposes a 4% Link Tax on Friday September 01, 2023 @03:11PM (#37354978)
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.
Re:Opendream: A Non-Destructive UI for Stable Diffusion on Tuesday August 15, 2023 @10:56PM (#37142356)
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...

Re:Microgrids Are Giving Power to the People on Thursday August 10, 2023 @08:52PM (#37083756)
I don’t think so? Household Cost = Total Cost / Households, Household Duration = Capacity / (Household Usage * Households), Houshold*2 would half both.
Re:Remote work turns America into Suburban nation on Saturday May 06, 2023 @11:11AM (#35842120)
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.
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.
Re:Washington faltered as fentanyl gripped America on Tuesday December 13, 2022 @09:18AM (#33969164)
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.
And we kill 80 billion animals a year for food.
Re:Understanding UseMemo and UseCallback on Thursday September 01, 2022 @01:41PM (#32680096)
Thanks for the suggestion!
Re:JavaScript hydration is a workaround, not a solution on Thursday September 01, 2022 @01:34PM (#32679979)
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.

Older »