HNHacker News
TopNewBestAskShowJobs

z_open

486 karma · joined January 22, 2018

submissionscomments
z_open··on Self-imposed ban – a lightweight bash script to block commands
I am. Every time I cd I ls even though I know what's in there.
z_open··on C++: Maps on Chains
Throwing a runtime error seems like an absurd solution compared to changing the comparison operator or using an unordered_map

What's wrong with x.min < y.min || (x. min == y.min && x.max < y. max)

z_open··on Matt Godbolt sold me on Rust by showing me C++
assembly catches integer overflow. You just need to check the flag.
z_open··on Swiss admit to secretly posting AI-penned posts to Reddit in the name of science
reddit has become unusable with the bots. It's really a shame to see now even universities doing it. I think in the future we will have to find a way to verify if users or posts are real. Otherwise it will end up being dystopian wasteland.
z_open··on The hidden cost of AI coding
Does your course not have exams or in-lab assignments? Should sort itself out. Honestly, I'm all for homework fading away as professors can't figure out how to prevent people from using AI. It used to be the case that certain kids could get away with not doing much because they were popular enough to get people to let them copy their assignments (at least for certain subjects). Eventually the system will realize they can't detect AI and everything has to be in-person.
z_open··on Googler... ex-Googler
It is a chrome developer. His claims that he was raising the quality level of the web are particularly hilarious given that he worked at google. Maybe the salary of google blinds people into believing this.
z_open··on Compiler Options Hardening Guide for C and C++
His opinions on include files have fallen out of favor because compiling is faster and it adds needless work. Are there organizations that still do this? All the style guides I've seen do not.
z_open··on Modern C
auto is insane seeing as how it's already a reserved keyword in C.
z_open··on Telegram founder Pavel Durov arrested at French airport
What about group chat encryption? You can not possible say telegram is more secure than signal or WhatsApp.

What did I say that made me an apologist for government overreach? I recommend users use Signal? Your accusation is unfounded when I was complaining about a lack of encryption.

z_open··on Telegram founder Pavel Durov arrested at French airport
Why don't you post it yourself. And why should I care about what he says when telegram has some of the worst default encryption settings among commonly used messaging apps in the west?
z_open··on Noexcept affects libstdc++’s unordered_set
somewhat unrelated but it's worth pointing out that noexcept is more specific for move semantics.

In fact most c++ developers believe that throwing an exception in a noexcept function is undefined behavior. It is not. The behavior is defined to call std::terminate. Which would lead one to ask how does it know to call that. Because noexcept functions have a hidden try catch to see if it should call it. The result is that noexcept can hurt performance, which is surprising behavior. C++ is just complicated.

z_open··on Reflection for C++26
Many C++ features are useless outside of writing libraries, but your typical developer is going to be forced to understand how they work at some point. The result is just a burden.
z_open··on Farewell, Chuck E. Cheese Animatronic Band
Half of their games didn't amount to much more than child gambling. I guess the saving grace is that people weren't there very often. Still I'd be curious to know if there is any sort of research as to whether childhood gambling transfers to adulthood.
z_open··on Reddit Will License Its Data to Train LLMs, We Made a FF Extension to Replace
I don't think reddit let's you do this in anymore than a superficial way. I think reddit keeps the old edits internally so it won't harm the LLM. There were reports after the last protest of reddit reverting mass edits.
z_open··on Show HN: Parallel Arabic – Arabic reading and writing practice
There are two characters for t, h, s, d, th, and k.

The two characters for each are pronounced a bit different.

z_open··on Fishing for oil and meat drives defaunation of deepwater sharks and rays
Even in the US grassfed is less than 1%. It's just not sustainable.
z_open··on Fishing for oil and meat drives defaunation of deepwater sharks and rays
Veganism doesn't solve every issue, but it makes them better almost immediately. For the problem you mention, we would need to farm substantially less with Veganism. Feed ratios for cows is around 7:1 when I checked last. So it absolutely is cow.
z_open··on Fishing for oil and meat drives defaunation of deepwater sharks and rays
People are still really viscerally against veganism. Really this isn't even close to the main issues with the animal husbandry industry, including famine in developing countries

https://planetforward.org/story/the-dirt-on-beef-global-hung...

z_open··on You've just inherited a legacy C++ codebase, now what?
This is not idiomatic C++ in any C++ standard. You can also just replace vector with map so the brackets insert, but that isn't either.
z_open··on You've just inherited a legacy C++ codebase, now what?
That's why I asked what the bar was? If Google is writing shitty C++ even with the world's eyes on their code base, who is doing it right? No one writing anything sufficiently complicated that's for sure.
z_open··on You've just inherited a legacy C++ codebase, now what?
Go look at the CVEs and github issues of modern C++ codebases. Your statement is nonsense. Chromium is still plagued by use after free. How high do you set the bar? Which codebases are we allowed to look at?
z_open··on You've just inherited a legacy C++ codebase, now what?
How is that memory safe? Even vector out of bounds index is not memory safe.
z_open··on "the game will simply stop running in a few months"
> Tekken boss says microtransactions are prevalent because dev costs are larger

In fact I think games are much cheaper to make than they used to be. The number of great games made by a single person or a small team would have been almost impossible to do a few decades ago. Now if you want top of the line graphics and the rest of the fluff AAA games insist on, then he's right.

z_open··on Why Python's integer division floors (2010)
Changing well known behavior for something no one is really going to need. The justification makes sense, but it breaks convention and the relationship with modulo doesn't need to hold for negative numbers.
z_open··on Gemini can't show me the fastest way to copy memory in C# because it's unethical
These need to stop being posted. These bots give different answers to the same questions constantly. There's not much definitive that can be gathered from these snippits.
z_open··on Ask HN: How to re-kindle my interest in computer science?
Don't force it. Find something else in life you like and leave computer science as a job.

Liking your job is a tall order few end up with. It's not a failure to not have it. That's why hobbies and family or friends exist.

z_open··on Winlator: Android app that lets you to run Windows apps with Wine
Really cool. Just tried it with notepad++ and it seemed to work as expected. Can't find a use case for me yet but may come up.
z_open··on C23: A Slightly Better C
C++ and C are no longer used for the same types of projects so C++ is not a better C.
z_open··on C23: A Slightly Better C
The auto keyword seems like a strange addition given it's already a C keyword with a different meaning and this change won't help developers that much. It's more useful in C++.
z_open··on Duolingo Cuts 10% of Contractors as It Uses More AI to Create App Content
In my opinion, watching movies is ineffective until you can read the subtitles in the target language. This is at the B1/B2 level. Before that you're just focusing on the native language.

Once you hit the B levels, things get easier. But it's uphill until then and tutors or courses are your best bet to get there.

← PreviousPage 2 of 5Next →