Better HN
topnewbestaskshowjobs
Log inSign up

array_key_first

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

Submissions

comment 9mo ago · link · parent

In addition, C++ and Rust are very, very similar languages. Almost everything in C++ translates easily, including low level stuff and template shenanigans. There's only a few "oh shit there's no analog" things, like template specialization or virtual inheritance.

Out of all the languages rust takes inspiration from, id rank C++ at the top of the list.

comment 9mo ago · link · parent

1. Tesla is not competitive with Waymo, they're not even in the same class. Waymo is 10 years ahead at least. I understand you can't buy a Waymo, but still.

2. Other car companies are properly valued, Tesla is overinflated.

3. Other cars, even basic Hondas, have the same level of self driving as Teslas.

4. Other car companies don't lie to their customers about their capabilities or what they're buying.

comment 9mo ago · link · parent

> Being reactionary to dangerous events is not an intelligent plan of action.

Yes but in capitalist systems this is basically the only way we operate.

comment 9mo ago · link · parent

Negativity exists outside of your own perception of it, or in your terms, ignorance is bliss.

You can always choose to believe things will be good, but after a certain point it stops being a belief and is moreso a mental illness that requires medication. When reality and your perception diverge too much, you can believe anything.

In the current economic systems, AGI would bring about mass starvation, war, and enslavement. We would require a complete destruction of capitalism to make AGI not the worst thing to happen to humanity since the black plague. Now, look at our leaders. How likely is that?

comment 9mo ago · link · parent

None of these were arguments. You just said "nuh uh" in more words, which is really just a waste of storage.

comment 9mo ago · link · parent

Why not?

The thing is that your argument is just not compatible with real life. Humans are humans, they are absolutely not going to create unique and strong passwords for every service.

What happens in actuality is that they create one or two okay passwords, then reuse them, which is 100,000x worse than using a password manager.

The promise of a password manager is you get infinite perfect passwords. Perfectly long, perfectly unguessable. And then you can redirect your brain power to making one really, really good password you can remember. The benefits are plentiful. You don't have to worry about breaches. You're immune to dictionary attacks and brute forcing. And, it's much more convenient.

comment 9mo ago · link · parent

Storing encrypted files is the best use case for the cloud. There's absolutely zero reason to set up your own wire guard tunnel if the file is encrypted. You can even throw it on Google drive, if you want.

comment 9mo ago · link · parent

It is, just the existence of goto makes control flow significantly harder to understand. People complain about exceptions in C++ obfuscating control flow, but then they recreate exceptions using goto. The funny thing is that exceptions are just fancy goto, the assembly is almost the same.

The bigger picture of C as a language is not that it's simple, because it's not simple at all. It's inept. It doesn't give developers the tools to write simple code. So easy things become hard, and we sort of jank together solutions that kind of work but usually don't.

I like to compare it to building a shed with power tools versus only a screwdriver. Is a screwdriver simpler than a power saw and all that? Of course. Now think about building a shed. Is it simpler to do with a screwdriver? No. It's much, much more complex. You have to develop complex processes to make that work, and it's not intuitive at all.

C is a language that already makes use of implicit control flow A LOT. I don't see defer being a problem. The irony is that if C just supported these use cases out-of-the-box, it would be simpler and easier. As a concrete example, consider polymorphism in C versus C++. Both languages can do it, but one provides the tools and one doesn't. In C++ I can go to definition, I can concretely define what polymorphism is allowed and what isn't, and the type system gives me the tools to make it safe. In C, none of that is true, so when we do polymorphism with function pointers, it's much harder to understand what's actually going on, or what could be going on.

comment 9mo ago · link · parent

The main problem I have this with real-world analogies we use for hacking is we assume that, like a home owner, these companies ultimately care about security and are in good-faith trying to make secure systems.

They're not. They're malicious actors themselves. They will expose the absolute maximum amount of data they can with the absolute maximum amount of parties they can to make money. They will also collect the absolute maximum amount of data. Your screen is 1920 by 1080? Cool, record that, we can sell that.

All the common sense practices we were taught in school about data security, they do the opposite. And, to top it off, they don't actually want to fix ANYTHING because doing so threatens their image, their ego, and potentially their bottom line.

comment 9mo ago · link · parent

You can build those things on top of Linux, like Android did. Linux has containerization and all.

comment 9mo ago · link · parent

But the real-world alternatives that people use are:

1. goto, which is "spooky action at a distance" to the nth degree. It's not even safe, you can goto anywhere, even out of scope.

2. cleanup attributes, which are not standard.

comment 9mo ago · link · parent

It's important to note that evolution is not a designer, it's just a string of random mutations over millions of years that mostly work. The human body is remarkably shit at a lot of thing, like not getting heart disease. Most animals don't develop heart disease but we do... oops.

comment 9mo ago · link · parent

If you're writing true low-level code then you're most likely doing it for performance reasons, like ffmpeg. But ARM doesn't have the instruction set to make the best use of that, x86 does with its extensions. Otherwise, the compiler handles translation, so there's just no reason for you to care about the assembly unless you're writing assembly.

As for nice laptops, I think Asus and Lenovo makes some nice ones. I don't believe any are fanless, but most are quiet - Lunar Lake gen 3 is an SOC with a base TDP of 25 watts, and it can even go down to 15 watts. These CPUs are slightly faster in multi-core performance than M4, and they use similar wattage. I believe the Asus zenbook duo gets better battery life by a wide margin because of the 99 watt-hour battery. They still fall a little short of M5 in performance, but it's very close.

As for servers, it's a good point. But I think currently most servers are still using x86 CPUs, so it might not be relevant for a while.

comment 9mo ago · link · parent

Yes, and performance. Java edition is slow as hell in comparison, it just doesn't matter on PCs too much unless you really mod it.

comment 9mo ago · link · parent

And glue, you forgot glue. Maybe we'll get the Matrix plot line where we become human glue. Or, uh, batteries.

comment 9mo ago · link · parent

HN, and firefox users, can never decide where the money should go or what the goals should be. The problem with producing the better product is the amount of in-fighting increases exponentially. Google produces a "fuck you got mine" type browser and everyone knows it, so nobody really cares when they make god awful privacy decisions or intentionally produce worst standards to try to fuck their customers up the ass in new and exciting ways.

When Firefox introduces a new feature, half the people complain it's stupid and worthless while the other half complain it's not enough. And, when it inevitably gets axed, it magically turns out actually it was beloved the whole time and oh no my Grandma used Pocket as life support and now she can't breath.

When Firefox implements new web standards half the people complain that they're bending to Google's whim and that these standards are stupid. We don't want them, just focus on performance and what people really care about! ... While the other half complains that it took so long, and in the meantime they switched to a real browser, like Chrome.

Of course, Safari is even further behind Firefox in standards and frankly it's not even close, but does anyone care? Of course not. Apple is another "fuck you got mine" type company. People love that.

And it doesn't just end at Firefox. Oh, no. Firefox OS? Depending on who you ask it's either the biggest missed opportunity ever or one of Mozilla's worst money burning schemes. It's Schrödinger's software - in a parallel universe where it took it off everyone would've always wanted it, and in the current universe nobody ever wanted it.

The biggest mistake Mozilla made was extending any kind of goodwill to their customer base. Clearly, that doesn't work and people do not like it. Let's all stop fucking around and be real for a second - nobody, and I do mean nobody, is switching to Google Chrome because Mozilla made some mistake. They're not, because the reality is that Firefox is truly irreplaceable and ahead of Chrome in so many aspects. They're switching to Chrome because they just don't care about being fucked up the ass, or worse, they secretly want to be.

comment 9mo ago · link · parent

Intel lunar lake gen 1 and 3 are competitive with the M series both in battery life and performance. Qualcomm makes arm chips that are somewhat competitive too, but you run into similar problems as M. x86 chips can most definitely reach the efficiency of M.

comment 9mo ago · link · parent

You don't need an arm processor, many modern x86 chips match or outcompete m series on power efficiency and performance. Mainly lunar lake gen 1 and the new gen 3 (arrow lake not really).

The efficiency of arm chips was never arm, really, it was the manufacturing node and SOC design. Well, Intel and AMD can make SOCs, and they do.

comment 9mo ago · link · parent

Right, but humans are never marketed as infallible, nor do you pay big bucks for them. You just are one already, and you know the limitations of humans.

comment 9mo ago · link · parent

I don't know where this idea that firing people is hard comes from.

My company, and no I won't say who, have fired hundreds of devs without recourse. And not in official layoffs, mind you.

Not to mention for the first 90 days or so you're fresh meat. Firing you is trivial. But, even past that, you don't need performance reasons to fire someone. You can fire someone for cultural fit, if you want. At will employment is the norm.

Companies are doing far, far too much. You don't need all those stacks of paperwork. You just don't. Am I saying that everyone company is wrong and stupid? Yes, I am. It's become a cargo cult, a self serving beast. You don't need it.

comment 9mo ago · link · parent

Well we tried the "burn it all down" approach with DOGE and the BBB and we got... -2 trillion in savings? Really? Wow, okay.

The truth is nobody wants to solve the deficit. It's a self eating beast at this point and simply cutting funding for a bunch of shit won't solve it. A lot of these things are fundamentally the federal governments concern, whether people admit it or not.

comment 9mo ago · link · parent

There's a lot of things wrong with liquid glass. The problem isn't that nobody has valid complaints. It's that you, and others, read those valid complaints and then just literally pretend they don't exist. Frankly, I don't even know how you manage to achieve this level of cognitive dishonesty without stepping back and seriously considering your life and purpose.

Yes, liquid glass does actually have problems. It has performance problems. It can be a big distraction, and some people believe UI whitespace shouldn't detract from the main content. It has huge legibility problems. Sometimes text straight up cannot be read. It has predictability problems. Stuff moves around when it shouldn't, text magically changes colors based on heuristics, which throws users off.

And that's not an exhaustive list.

comment 9mo ago · link · parent

Informal or conversational tone has always been the gold-standard for most communications. People just piss on it because they like to feel smart.

But, most writing has purpose. And usually fulfilling that purpose requires readers to comprehend what you're writing. Conversational tone is easy to comprehend, and shockingly less ambiguous than you'd think, especially when tailored to the target audience.

comment 9mo ago · link · parent

React is not actually functional - hooks are not functions, they're magic functions that smuggle state.

The main problem with react is that it's, ironically, not reactive. It greedily re-renders, whereas Vue actually reacts to state change.

comment 9mo ago · link · parent

7.25 is not a livable wage anywhere really, so even at 7.25 they would need tips to live. It really is the customers problem to pay them - their employers get off on 2.13 mostly, and 7.25 if they're extremely unlucky.

And yes, I'm American. Of course it's culture, but more than that we want waiters to not starve to death so we tip. You can, of course, choose not to but I consider it an asshole move knowing what they're making.

comment 9mo ago · link · parent

Incorrect, the reason they don't get a full salary is because tipping is allowed.

If you don't tip, the worker does not magically get a salary. How would they? No, they actually make less money.

This whole "well if you think about not tipping is actually giving them more money" thing is the purest and most refined form of cope I've ever seen. It obviously doesn't work like that. Maybe if everyone did it. But you just doing it does nothing.

You're 100% allowed to not tip. What you're NOT allowed to do is not tip and then somehow try to claim you're helping the worker. You're not. Like, objectively, you're not. That's just literally not true.

comment 9mo ago · link · parent

He's not saying HE is this way, he's saying the US culturally is this way.

Which... uh, yeah, it is. The US is superficial, it's vain, it's racist. I thought everyone knew that.

comment 9mo ago · link · parent

Everyone cares, most people can't express it because they're not techies and don't know what's going on. But the keyboard is straight up buggy. Everyone is just working around it.

That's just how software works. People also care that the windows taskbar just kills itself sometimes. But they feel powerless, stupid even, so they just work around it every day forever and never say anything.

comment 9mo ago · link · parent

This is so out of touch. Coal is the most expensive electricity source in the US and it's not even close. We have an administration pushing coal.

That means you get worse air, worse water, AND you pay more for it. Some of y'all are so delusional that you're not only fine with getting fucked up the ass, you're actually willing to pay more for it!

comment 9mo ago · link · parent

This is just not true at all. Yes Gnome and KDE are old, but they've changed SIGNIFICANTLY.

Gnome 2 => 3 was a bigger and more ambitious transition than anything Microsoft has done. Except maybe DOS => NT. Same thing with KDE 3 => 4.

KDE gets new features on a very regular basis and they're not just, like, little checkboxes added here or there. No. Theyre huge changes. New system resource monitor, new notification center, new widget editor, new panel editor, window tiling... the list goes on. And that's just, like, the past 2 ish years.

Linux GUIs are improving, and rapidly. Before, they were close. But the gap keeps widening. At this point, KDE is so unbelievably far ahead of windows in terms of UI, UX, usability, performance, and feature set that it doesn't seem fair. I don't know if Microsoft can catch up. And, if they could, it would take multiple versions of windows.

1
181920
60