News for hackers. Stuff that matters.

ropejumper

People in a coma are still considered real human beings. The reason why you'd pull the plug is because there is no prospect of survival, or that the resources necessary are too great. Which, as much as it sucks, is a normal thing that happens. People die.

Intentionally breeding people that have no intelligence is a very different thing and I don't even know why we're talking about it as if it's even remotely similar.

Re:Dark Mirror Ideologies on Monday April 07, 2025 @04:04AM (#43609039)
What I like is practical and real life, what I don't like is ideological.
This requires a justification for why home size is a good indicator of quality of life, or for why it's more important than other indicators.
Re:U.S. Pauses All Military Aid to Ukraine on Wednesday March 05, 2025 @08:29AM (#43266128)
Many americans put the euro sign before the numerical value even though most (afaik all) countries that use the euro put it after. This is such a weird thing to get bothered by.
Re:Hacker News for Gamedev on Friday January 31, 2025 @05:02AM (#42886261)
Yes it's invite-based, and yes it actually is lobsters, a fork of it.
Re:I wrote my own "proper" programming language on Friday January 24, 2025 @08:52AM (#42813004)
The lack of such tooling may be precisely why many potentially great "indie" languages never succeed.
Re:UI is hell: four-function calculators on Friday January 24, 2025 @04:23AM (#42811675)
They meant that the implementation of a four-function calculator only needs a few fixed variables rather than a stack.
Re:Turn Any Bicycle Electric on Friday January 24, 2025 @04:18AM (#42811658)
The amount of braking you can apply before flying over the handlebars decreases significantly the more you move the center of gravity forward.
Re:How to improve your WFH lighting to reduce eye strain on Thursday January 23, 2025 @03:44PM (#42807866)
I'm comparing more to 2010s cars :)

I think it's a pretty good balance between visibility and comfort. But I can definitely see your point.

> Are there new cars with warm LED lights?

I don't know actually, but I've definitely not seen any on the road. I wonder why, as far as I know it's not a technical issue.

Re:How to improve your WFH lighting to reduce eye strain on Thursday January 23, 2025 @09:49AM (#42804567)
The cold LED headlights also strain your eyes more as the driver. It's much less comfortable to look at IMO.
Re:Examples of quick hash tables and dynamic arrays in C on Thursday January 23, 2025 @02:51AM (#42801726)
Huh, I hadn't realized you can't search for submission domains, that seems like an oversight. To search for comments specifically there's a dropdown in the top left by the way.
Re:Examples of quick hash tables and dynamic arrays in C on Wednesday January 22, 2025 @10:48AM (#42794027)
Fair enough, though I think the techniques that the author uses are perfectly adequate depending on the type and scale of software you're writing. Maybe it should be better labelled.

As for searching, if you scroll down to the bottom of the page there's a search box, you can add your username to the query and it'll match.

Re:Ross Ulbricht was just granted a full pardon on Wednesday January 22, 2025 @07:52AM (#42792257)
You're right, but I meant the consequences for him from this point on, which are essentially as if he hadn't done anything.
Re:Examples of quick hash tables and dynamic arrays in C on Wednesday January 22, 2025 @04:36AM (#42790923)
> despite being of average quality at best and seriously problematic at worst

What exactly is your objection?

Re:Ross Ulbricht was just granted a full pardon on Wednesday January 22, 2025 @03:36AM (#42790479)
With a full pardon it's as if he never did anything in the first place.
Re:Microsoft should be terrified of SteamOS on Thursday January 09, 2025 @08:13AM (#42645017)
It's a bit big for my hands as well, but the huge touch screen is amazing for programs like sunvox so I don't even mind.

I think it's hard to genuinely appreciate how big the thing is until you hold it. Today I realized it's exactly the same size as my keyboard. And almost as wide as a 12-inch macbook.

Re:Laid Off in My Career, and Twice in One Year on Wednesday January 08, 2025 @03:22AM (#42632190)
The formatting is off, family time is 17:00-21:00 in GP's comment.
Re:Cognitive load is what matters on Thursday December 26, 2024 @05:06AM (#42514244)
On almost every newline, which is the reason why this doesn't work:

    func thing()
    {
I quite like this approach. It's very simple and consistent, and once you know how it works it's not ever surprising.
Re:Cognitive load is what matters on Thursday December 26, 2024 @05:01AM (#42514223)
Because now you have to jump around in order to see the sequence of events, which can be very frustrating if you have to constantly switch between two of these functions.

Plus, if we're dealing with a "long list of tasks" that can't be broken up in reusable chunks, it probably means that you need to share some context, which is way easier to do if you're in the same scope.

One thing I find useful is to structure it in blocks instead, so you can share things but also contain what you don't want shared. So e.g. in rust you could do this:

    let shared_computation = do_shared_computation();
    
    let result_one = {
        let result = do_useful_things();
        other_things(&shared_computation);
        result
    }
    
    ...
I think it's a nice middleground. But you still can't write modular tests. But maybe you don't have to, because again, this is just a long list of tasks you need to do that conceptually can't be broken down, so maybe it's better to just test the whole thing as a unit.
Re:Fixing C Strings on Sunday December 22, 2024 @11:40AM (#42487421)
Yep, you're right. One way to make this less of a problem is to make this distinction at the type level, having both an owned_string and a string_view for example. You can even make owned_string store its length inline.
Re:Fixing C Strings on Wednesday December 18, 2024 @03:36AM (#42448961)
Two people have already mentioned things like storing the length inline or including a null-terminator to be backwards-compatible. What's described there is basically the same as std::string_view or &str, and to me one of the biggest reasons to use these structures is that your particular view of the string doesn't interfere with someone else's. You can slice your string in the middle and just look at it piecewise without bothering anyone else.

Choosing between these trade-offs just depends on what you're doing. I'd definitely choose this pattern if I were to write a parser for instance.

You have a point. It's a complicated issue for sure, I definitely don't want to be the one tasked with making a decision (and being judged for it!)
No voting machines were used. It was paper ballots with stamps.
Paper ballots, and a recount was already issued. There were differences between the two counts but they were minor enough; the recount was actually done because some other guy didn't like the fact that 2nd and 3rd place were only 2000 votes apart.

The breaches apparently didn't do much, the big reason why they cancelled the election was because the leading candidate declared 0 spending for his campaign, but it was proven he used russian money to fund countless tiktok videos that got him popular overnight. This is illegal under romanian law.

Personally, I don't think they should've been cancelled. It's a dubious thing to do under a democracy, and the runner-up was pretty decent anyway and had a chance for the second tour. I guess we'll see how it goes.

But the point of communication is mutual understanding. I generally agree that language is what we make it be, but in this case the wrong usage, meaning the usage that is mathematically incorrect, is causing issues.

I can't just go around saying that my cat is siamese even if he's not just because I got it wrong one time and now this is what siamese means to me. Because my goal is to transmit accurate messages.

Re:The Birthday Paradox Experiment on Friday November 22, 2024 @02:50AM (#42211932)
There are relatively few people living south enough to have "cold and dark winters," anyway. The northern hemisphere is much more concentrated towards the north.

Most people live above 35°S where, at the most extreme, winter days are about 10 hours and a half long (plus about an hour of decent twilight). Temperatures obviously vary depending on region but they don't really get much below 10°C as far as I know.

So really, it's more like mostly bright and somewhat chilly.

Re:DOJ will push Google to sell off Chrome on Tuesday November 19, 2024 @04:58AM (#42181727)
Yep. The issue with megacorps (and more generally monopolies) is that they want to have their cake and eat it too. You want capitalism but you also want to be the only one on the market. Pick a side.
Re:The 1600s Were a Watershed for Swear Words (2022) on Friday November 01, 2024 @02:19PM (#42019978)
The downvotes aren't because people are triggered, they're because people think that what you said is kind of stupid.

Older »