frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Is Cognitive Dissonance a Thing?

https://www.newyorker.com/culture/the-lede/is-cognitive-dissonance-actually-a-thing
1•pseudolus•18s ago•0 comments

RecallBricks – Persistent memory infrastructure for AI agents

https://recallbricks.com
1•tylerrecall•1m ago•2 comments

AI learns to build simple equations for complex systems

https://phys.org/news/2025-12-ai-simple-equations-complex.html
1•pseudolus•2m ago•0 comments

Show HN: Deterministic analysis of musical tension, novelty, and fatigue

https://github.com/le-director/director-signals
1•simonmorley•4m ago•1 comments

"My friend group has a case of the Creepy Dude" (2012)

https://captainawkward.com/2012/08/07/322-323-my-friend-group-has-a-case-of-the-creepy-dude-how-d...
1•Tomte•4m ago•0 comments

We created a way to keep docs automatically up to date

https://www.prodflow.co/
1•RoopeRipatti•6m ago•0 comments

A think piece: What happens if the Right wins absolutely?

https://neuburger.substack.com/p/if-the-right-wins-absolutely-what
1•ThomasNeu•13m ago•0 comments

Werner Herzog Trolling Elon Musk with Silence [video]

https://www.youtube.com/shorts/TuBNDulY5O0
1•doener•15m ago•0 comments

Show HN: YapType: hassle-free yap-to-text for Linux

https://github.com/jonas-klesen/yaptype
2•deklesen•15m ago•1 comments

Coursera to combine with Udemy

https://investor.coursera.com/news/news-details/2025/Coursera-to-Combine-with-Udemy-to-Empower-th...
15•throwaway019254•16m ago•5 comments

I've earned my PhD – what now?

https://www.nature.com/articles/d41586-025-03489-4
1•bookofjoe•16m ago•1 comments

PearPass: Open-Source Password Manager

https://pass.pears.com/
1•sygma•17m ago•1 comments

Bincode is now unmaintained

https://docs.rs/crate/bincode/latest
2•trashburger•18m ago•0 comments

Polyglot Makefiles

https://alganet.github.io/blog/2025-12-17-07-Polyglot-Makefiles.html
1•gaigalas•18m ago•0 comments

AnonCreds – Verifiable Credential Format

https://github.com/anoncreds/anoncreds
1•lionkor•18m ago•0 comments

After the warming. (1989) (YouTube) [video]

https://www.youtube.com/undefined
1•fanf2•19m ago•0 comments

Why European data sovereignty demands data governance

https://xwiki.com/en/Blog/open-source-data-governance-europe-2025/
2•lorinab•20m ago•0 comments

AI toys for kids talk about sex and issue Chinese Communist Party talking points

https://www.nbcnews.com/tech/tech-news/ai-toys-gift-present-safe-kids-robot-child-miko-grok-alilo...
1•bongripper•22m ago•0 comments

The Future of City-Building Games: A Developer-Player Perspective

https://www.radical-elements.com/minor-epiphanies/the-future-of-city-building-games-a-developer-p...
3•lexx•27m ago•0 comments

City now using AI-powered license plate readers to charge for garage parking

https://c-ville.com/city-using-ai-powered-license-plate-readers-to-charge-for-garage-parking/
1•bookofjoe•27m ago•1 comments

Show HN: A Chrome extension to navigate long Claude/ChatGPT threads with ease

https://chromewebstore.google.com/detail/threadline/aimgnmoicadcddiabnalakacaadaiibi
1•piyushgupta53•27m ago•0 comments

Developer Productivity

https://blog.joeschrag.com/2025/10/enabling-your-team.html
1•mooreds•30m ago•0 comments

Toolsmiths Melt Snowflakes

https://michaelheap.com/toolsmiths-melt-snowflakes/
1•mooreds•30m ago•0 comments

Sustainability and Responsible Computing

https://www.tara.sh/posts/2025/2025-12-16_sustainability_responsible_computing/
1•wrxd•32m ago•0 comments

An open-source multi-provider AI assisted CLI development tool

https://github.com/vybestack/llxprt-code
1•mooreds•32m ago•0 comments

Ramanujan's 100-year-old pi formula is still revealing the Universe

https://www.sciencedaily.com/releases/2025/12/251216081949.htm
2•baruchel•33m ago•0 comments

Inlining – The Ultimate Optimisation

https://xania.org/202512/17-inlining-the-ultimate-optimisation
1•hasheddan•33m ago•0 comments

Ask HN: Is there still space for innovation in B2B?

2•_el1s7•34m ago•1 comments

Show HN: ApplyFirst – AI job search alerts that get you more interviews

https://applyfirst.app/
2•mmazurovsky•35m ago•0 comments

Sigurimi

https://en.wikipedia.org/wiki/Sigurimi
1•vinnyglennon•35m ago•0 comments
Open in hackernews

Rust Devs Think We're Hopeless; Let's Prove Them Wrong (With C++ Memory Leaks)

https://www.babaei.net/blog/rust-devs-think-we-are-hopeless-lets-prove-them-wrong-with-cpp-memory-leaks/
27•zdw•7mo ago

Comments

eptcyka•7mo ago
Memory leaks are by far the least interesting class of defect that Rust helps with - leaking memory is safe.
genter•7mo ago
Until the kernel kills you for being OOM.
YZF•7mo ago
That's still safe.

EDIT: Safe in the sense you're not writing into memory you don't own, e.g. write after release, buffer overflows etc.

scotty79•7mo ago
Program that no longer runs is the safest.
aquariusDue•7mo ago
For true safety we must prevent it from being written in the first place /s
dmit•7mo ago
That's the true meaning of backward compatibility. The [backward] refers to the time scale.
drivingmenuts•7mo ago
stomps butterfly

I've just saved untold generations from certain calamity.

** 6,000,000 years later **

Butterfly King: This chimpanzee-descended motherfucker ….

airstrike•7mo ago
I'll add that even safety itself is not the sole reason why some people prefer Rust. There's a lot to Rust besides that and sometimes it's not about memory safety as much as it is about steering you into patterns Rust devs perceive as better overall.
jayd16•7mo ago
Possible attack vector, though.
andrewflnr•7mo ago
The least interesting attack vector. You can fix it by rebooting.
Arnavion•7mo ago
And in fact is not even something that Rust does differently from C++. Memory releases in Rust are handled by dtors just like they are in C++. What a weird article.

(The only difference is that Rust defaults to moving while C++ defaults to copying, and Rust moves don't leave a moved-out object behind while C++ does, so the dtors in Rust are simpler and called fewer times than the equivalent C++ code.)

dmit•7mo ago
Yes, the only difference.
api•7mo ago
The problem with unsafe languages is not that you can’t write safe code in them with skill and discipline.

The problem is that programmers don’t always do that, either because they are not that experienced or they are in a hurry.

The real danger is when code is long lived and worked on by multiple people. One bad commit after a late night hacking session and now there is a zero day just waiting to be discovered.

Safe languages don’t rule that out but they make it profoundly less likely.

bluGill•7mo ago
I write C++ all the time and I still cannot convince many developers to use unique_ptr over new. It isn't that hard to write code that doesn't leak but if you bypass the language features it cannot help you.

for that matter though I've seen rust programmers put everything in unsafe.

on_the_train•7mo ago
There's static analysis which can effectively force these things. C++ problems are self-inflicted
bluGill•7mo ago
There is but we have code predating c++11 that isn't worth rewriting. So the static analisys is off. We do use lots of static analisys but that one is too hard to fix all the old code that we have decades of proff works and isn't leaking (much?)
andrewflnr•7mo ago
I mean, a sufficiently safe language would rule it out. Either one not expressive enough to express memory unsafety (i.e. GC or fully linear types with no escape hatches) or one that requires a machine checked proof of safety to compile. These options just happen to be too big of a pain in the assembly for today's appetite.
api•7mo ago
There are lots of languages where true memory bugs are impossible. As you say they are higher level and usually GC.
andrewflnr•7mo ago
Right, the interesting case would be the formal proof. Though, I suspect there are fewer high-level languages where memory bugs are actually impossible than you would naively think. I've segfaulted Python by accident, only using the standard library (concurrency shenanigans if I recall). You can probably do worse if you try. To make a truly memory-safe language, you would need to carefully design and implement the standard library, disallow all native code extensions, and probably more I'm not smart enough to figure out. So, not Java, not Python. Maybe some Schemes?
shmerl•7mo ago
No, C++ is hopeless. No need to bend over backwards to try to disprove it. It's not only about memory safety, some of it is about legacy stuff and backwards compatibility it's forever stuck with.
tom_•7mo ago
This only works with the VC++ CRT, which is potentially a bit limiting!

Also, the DEBUG_NEW thing is useless in practice since, from memory, it stops you using placement new, and dependencies typically don't participate, so a zillion unlabeled leaks is the usual result from the common case of you failing to call some dependency's free function.

And the allocation IDs (and therefore _CrtSetBreakAlloc) are pretty worthless in practice for multithreaded programs, because the allocation order isn't deterministic.

I use the LEAK_CHECK_DF flag in the programs I write (and the CHECK_ALWAYS_DF is worth investigating too), but the only point is to indicate whether there are leaks on exit, yes/no. If no, great; if yes, well that's useful information, but the actual output is almost never helpful. (Though occasionally I do somehow introduce a leak from something that happens before the first thread is created.)

yusina•7mo ago
It's 2025 and we are still discussing memory leaks. The very existence of this article is an indication that C++ (used like that) has an issue. Non-kernel programmers should not even be able to create memory leaks by mistake.

Well, unless they are doing something incredibly stupid including stepping over several explicit warnings of "don't do this unless you are very sure about what you are doing".

teleforce•7mo ago
It's really a shame isn't it? It's 2025 and we still have no programming languages that have impeccable GC for automatic memory management rather than forcing programmer to wrestling and fighting for manually managing the memory [1].

Auto industry kind of solved this automation mechanism for example with the new high performance Toyota GR Corolla has a new automatic gear transmission that's proven as fast if not faster than the manual version [2]. The same goes to F1, the epitome of car racing performance.

[1] Understanding Memory Management, Part 5: Fighting with Rust (101 comments):

https://news.ycombinator.com/item?id=43882291

[2] 2025 Toyota GR Corolla's New Automatic Gearbox Democratizes Fun:

https://www.caranddriver.com/reviews/a62672128/2025-toyota-g...

linotype•7mo ago
I’ve seen way more comments from C++ developers complaining about Rust developers insulting them than I’ve seen Rust developers actually insulting C++. It’s weird to see how attached people are to programming languages, though it’s weird to me too how attached people are to ICE/drivetrains.
sunrunner•7mo ago
I think that's because the Rust developers are having too much fun sitting on their high horse shouting about how great the horse is to need to spend time yelling about the people _not_ on the horse, while the C++ developers don't have a horse to yell about so need one to yell _at_ instead.
squirrellous•7mo ago
It’s about jobs and livelihoods, even if not everyone will admit it. It’s easy to emotional when the argument boils down to “your skills are now outdated, go learn a better one”.
fithisux•7mo ago
c++ is a huge language, with lots of backwards compatibility.

I think c++ should keep the good modern things and fork (restart) from there by breaking backwards compatibility, c++23 will be frozen with some fixes.