Better HN
topnewbestaskshowjobs
Log inSign up

array_key_first

2,281 karma · joined Sep 23, 2025 (1y ago) · 1,791 submissions

Submissions

comment 10mo ago · link · parent

You just deploy all the services at once, A B style. Just flip to the new services once they're all deployed and make the old ones inactive, in one go. Yes you'll probably need a somewhat central router, maybe you do this per-client or per-user or whatever makes sense.

comment 10mo ago · link · parent

They do, it's just instead of it being a library call it's a network call usually, which is even worse. Makes it nigh impossible to refactor your codebase in any meaningful way.

comment 10mo ago · link · parent

This is why you have active/passive setup and you don't run half-deployed code in production. Using API contracts is a weak solution, because eventually you will write a bug. It's simpler to just say "everything is running the same version" and make that happen.

comment 10mo ago · link · parent

If you have a monolith you get atomic deployment, too.

comment 10mo ago · link · parent

Pretty much all the lower price cards are a bad buy. Nvidia is only competitive on performance at the absolute top end, where they have no competitors. In every other price bracket they lose to AMD and Intel.

comment 10mo ago · link · parent

I mean, define now. Windows has been progressively getting more buggy for a long time, before windows 11 or even 10. Windows 11 is pretty bad but it's been bad. Since day 1 the taskbar crashes for me a few times a day, file explorer crashes, and random things have stupid amounts of lag.

comment 10mo ago · link · parent

No those are all significantly worse products, or at least were for a long time. I don't think OpenAI has anything close to a moat. They don't even have a short fence.

comment 10mo ago · link · parent

Yes I'm sure that when we start pumping out 10 movies/minute the quality will only increase.

As it currently stands, most things are crap. The speed is not the bottleneck.

comment 10mo ago · link · parent

I had to turn on developer mode just to reduce blur in Android 16. It's incredible that's locked behind a developer mode setting.

comment 10mo ago · link · parent

Python is really not faster or easier to write than perl. It might be if you don't know perl, but if you do know perl, you basically can't get more expressive and terse than that.

The main problem with python is getting it on systems is the biggest pain in the ass imaginable. Even deploying C++ is simpler.

If you're making the script for yourself then sure, fine. As soon as you're distributing to systems you don't 100% control, drop python. It's just annoying and it's not worth it. That 150 like python script could've been a 100 line perl script, or a 150 line one if you want. And then, you can just plop the file on basically any unix-like and run it.

comment 10mo ago · link · parent

Handling on basically all EVs except maybe what porsche is doing is terrible. And American cars are all plastic and flimsy, and this includes Tesla. But they're also much more expensive.

comment 10mo ago · link · parent

The main problem with python for system scripts is that's even in that domain it's not a very good choice.

Perl is right there, requires no installation, and is on practically every unix-like under the sun. Sure it's not a good language, or performant, or easy to extend, but neither is python, so who cares. And, if anything, it's a bit more expressive and compact than python, maybe to a fault.

comment 10mo ago · link · parent

It's not bogus at all. We've had access to 100,000x more information than we know what to do with for a while now. Right now, you can go online and learn disciplines you've never even heard of before.

So why arent you a master of, I don't know, reupholstery? Because the barrier isn't information, it's you. You're the bottle neck, we all are, because we're humans.

And AI really just does not help here. It's the same problem with professor Google, I can just turn off the computer, and I will. This is how it is for the vast majority of people.

Most people who claim to be self taught aren't even self taught. They did a course or multiple courses. Sure, it's not traditional college, but thats not self taught.

comment 10mo ago · link · parent

IMO programs are 90% data or information, and modern software vastly underutilizes that concept.

If you know what data you need, who needs it, and where it needs to go, you have most of your system designed. If you just raw dog it then stuff is all over the place and you need hacks on hacks on hacks to perform business functions, and then you have spaghetti code. And no, I don't think domain modeling solves it. It often doesn't acknowledge the real system need but rather views the data in an obtuse way.

comment 10mo ago · link · parent

If anything I'd say speakers have only gotten shittier as screens have thinned out. And it used to be fairly common for people to have dedicated speakers, but not anymore.

Just anecdotally, I can tell speaker tech has progressed slowly. Stepping in a car from 20 years ago sound... pretty good, actually.

comment 10mo ago · link · parent

Yes, it's often more frustrating to see a product with high potential fall flat than a shitty product be shitty.

comment 10mo ago · link · parent

Self-teaching pretty much doesn't work. For many decades now, the barrier has not been access to information, it's been the "self" part. Turns out most people need regimen, accountablity, strictness, which AI just doesn't solve because it's yes-men.

comment 10mo ago · link · parent

But both of those statements are true, and for the same reason. A calculator isn't a human brain capable of doing math, and writing isn't the same thing as a computer. They're different things.

I can give a 5th grader a calculator and he's not passing college calculus. I can even give him a whole ass PC and he still isn't.

As for writing, again, it's its own thing with its own benefits.

I still write all my notes, because it helps me remember. There's something specifically about using my hands on paper that makes things stick better in my brain. It's less convenient than computer notes, and much harder to organize. But they accomplish different goals. They're not for reference, no, I usually don't ever read my notes again.

comment 10mo ago · link · parent

You don't need to go balls to the wall and allocate 100% upfront. The typical split we see is either "allocate all the things" or "allocate every object, even if it's 16 bytes and lives for 100 microseconds".

Most programs have logical splits where you can allocate. A spreadsheet might allocate every page when it's created, or a browser every tab. Or a game every level. We can even go a level deeper if we want. Maybe we allocate every sheet in a spreadsheet, but in 128x128 cell chunks. Like Minecraft.

comment 10mo ago · link · parent

I think most software is like this if you sit and reason about the domain model long enough. It's just easier to say "fuck it" and allocate each individual object on its own with a lifetime of ???.

Also, is easier to refactor if you do the typical GC allocation patterns. Because you have 1 million different lifetimes and nobody actually knows them, except the GC kind of, it doesn't matter if you dramatically move stuff around. That has pros and cons, I think. It makes it very unclear who is actually using what and why, but it does mean you can change code quickly.

comment 10mo ago · link · parent

I think it's more relevant than ever when most systems seem to dynamically allocate everything, some down to each individual object being its own runtime allocation, popularized by the likes of java.

On the surface it seems great: infinite scale and perfectly generic. The system can handle anything. But does it need to handle everything? And, what's the cost in terms of complexity of handling every single possible scenario?

comment 11mo ago · link · parent

Many languages use perls regex engine, like PHP. And PHP is definitely faster than python, but that's a low bar and honestly no idea how the regex performance is.

But, I do know perl regex are very fast because they're compiled at build time. They can have high time complexity if you use lookback, but that's true of most regex implementations. Dynamic regex is definitely slower, but this is somewhat rare in most perl programs.

But, in general, perl is going to be much faster than python or bash. Bash because bash is one of the least efficient languages ever designed, forking for basic functionality, and python because python has truly awful performance characteristics.

But, I would argue, if you have a system with python, you should probably write PHP. It's faster than both and very convenient for shell scripting like things.

But if you don't have python or can't assume it, use perl. For the love of God, don't use bash.

Python has many uses, I just don't think system scripts or system utilities is one of them. That's C, perl, or bash land, and perl is clearly the frontrunner there.

comment 11mo ago · link · parent

I'm talking like that because even you're not understanding the tradeoff.

The tradeoff isn't live like rats. That's the tradeoff RIGHT NOW, because we designed our cities for maximum suckage.

But really, you can have reasonable space and a decent commute. Light rail goes a long way, and not spending 50% of your land on parking lots does too.

When you design your cities around cars, there are really no winners. People might think that's just the natural cost of having a home, but it's just not. You can have denser cities with more space per person. Because, remember, most of the space in Houston is currently worthless. It can't actually be used by people.

So it's still dense where it matters. The pockets of goodness are just that. Between the roads and parking lots there's little dense pockets of life, and that's where everything actually happens.

Look, think of it this way. If we don't spend 50% of our most valuable space on parking lots, your home can be 50% larger. AND in an area where it matters, instead of in Timbuktu.

comment 11mo ago · link · parent

Look, I'm not looking down at your life choices, I'm just saying it probably sucks and you would probably prefer it if it wasn't like that.

Meaning, I don't think people are commuting 2 hours or three or whatever because they LIKE to. Rather, they're victims of poor poor urban design, and most of them, too, would prefer not that.

I don't think a single soul is moving to Houston because of the commute. They're doing it in spite of the commute. But wouldn't it be nice if they didn't have to do that?

Ultimately its optional, it's a choice. We could have Houston without the commute. Everyone could live the life they want without a commute, if we just put in the time and effort to design our urban spaces around that. And, if people really do want to commute - more power. I don't think that's a desire that will ever be rare to find. But we probably shouldn't be optimizing for shit, right? Or, at least, what I think we both agree most people think is shit.

comment 11mo ago · link · parent

No that's the actual figure since the 60s when they were built. I'm cheating a little, that's not a per year number.

comment 11mo ago · link · parent

The cars are higher quality and, more importantly, cheaper. US manufacturers can't make a cheap car to save their lives. The average age of cars on US roads is now 13 years, nobody can afford new cars.

There's a huge market opportunity here that all our manufacturers are missing, seemingly on purpose. BYD, and others, would absolutely sweep the competition.

comment 11mo ago · link · parent

I really, really doubt FSD is the limiter of European sales. It's pricing and competition. The US car market is laughably uncompetitive, with most manufacturers opting to make luxury landboats. It's easy to compete when all your competitors refuse to introduce an EV under, like, 50 grand.

comment 11mo ago · link · parent

People were right about touchscreens, actually, and mobile phones.

They never did replace the productivity usecases. They replaced a lot of casual usecases, and created a bunch more usecases, mostly around media consumption.

But if you go to an office anywhere in the world, and you look around, it's not people on their phones. It's a sea of desktop computers, like it's 1995. Even at Apple. Not because everyone is out of the times, but because we did truly find the perfect form factor, and have chosen to refine it.

Apple vision pro wont replace the productivity suite, like the iPhone didn't. And it won't replace the iPhone, because it's way bigger and more inconvenient. So, I'm not sure where that leaves it.

comment 11mo ago · link · parent

If you're comfortable with nextjs, you should be even more comfortable with a nodejs SSR application. It's the same thing, but simpler. The HTML doesn't even have to be pretty. We're really just querying a DB, showing forms, and saving forms. Hell, use PHP if you want.

comment 11mo ago · link · parent

Houston can be very cheap, but it comes with the steep cost of having to live in Houston.

I'm being harsh, Houston isn't completely terrible. There is a lot of culture and diversity. But you can't really get to it because everything is too far, and you're already tired from commuting 10 hours that week.

1
262728
60