Recent submissions

Comment · 1 day ago

  std::string_view username = Sanitize("foobarbazboo");
                                        ^- temporary std::string created here

  std::string_view Sanitize(const std::string& input) { ... }
                 ^                           ^- reference to that temporary string
                 +- returns a view to a temporary string

  std::string_view username = // possibly data freed and dangling string
Comment · 1 month ago
I would have titled it: My Humble Opinion on Why Not to Use Omarchy.
Comment · 1 month ago
In this sense, not even assembly is a low-level language because an instruction may hide what the microcode is actually doing.

IMHO, C is the lowest level a procedural programming language can get.

Comment · 3 months ago
> but I guess that's just a 486

*just* a 486. :-(

Comment · 3 months ago
There are billions of lines of garbage code out there written in C, C++, Java, you name it. So much garbage, it has driven people to create languages with tighter guardrails to help programmers.

Yet, I've never seen those language creators blame anyone else. I don't recall Bjarne Stroustrup lashing out at people migrating from C++ to Java, Rust, or anything else.

Maybe humility is just a generational thing.

Comment · 3 months ago
Who are those "top" researchers? and how many?
Comment · 4 months ago
> there's been a massive increase in people migrating from C to Rust due to LLMs.

Strange. I was expecting the opposite move as LLMs know the C pitfalls and traps well enough to write corrected code.

Comment · 4 months ago
No idea whether the claim is right or wrong, but this processor package is beautiful.
Comment · 4 months ago
Back in 2017, I had this theory that Google was run from the Vatican and the Pope himself was the CEO.
Comment · 4 months ago
But... it's memory safe. Not that git has any important memory issue, but now people with skill issues in C can contribute to it without breaking stuff.
Comment · 4 months ago
Three "racist" in a sentence is a bingo. Congratulations.
Comment · 4 months ago
Do you prefer human identification, like picking the suspect among a group lineup? More accurate I guess?
Comment · 5 months ago
Does anybody know what model they are using? Is that Mythos?

This is impressive. I honestly don't know what to think about programming careers, need to reflect on my role in this area. The only thing that comes to mind the that quote from Cypher (Matrix):

"Buckle your seat belt, Dorothy, because Kansas is going bye-bye."

Comment · 7 months ago
Why has it gotten worse? are there more PhDs in Hyderabad?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton