frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ada and the Panda: even with AI, making a picture book was no child's play

https://fazy.medium.com/ada-and-the-panda-even-with-ai-making-a-picture-book-was-no-childs-play-d...
1•xfz•16s ago•0 comments

Ask HN: Diablo 4 on Ubuntu?

1•herodoturtle•3m ago•0 comments

Reflections on Trusting Trust (1984)

https://dl.acm.org/doi/epdf/10.1145/358198.358210
1•mooreds•3m ago•0 comments

Best YouTube creator for understanding low level computer systems

https://www.youtube.com/@coredumpped?si=yroi1PMasLpsEo0k
1•KinetiNode•5m ago•0 comments

Show HN: Autopoiesis: Concept for AI platforms shipped with repos

https://jakobbr.eu/2026/09/20/autopoiesis-concept-for-repos-bringing-their-own-preconfigured-ai-f...
1•waschl•6m ago•1 comments

Gov. Gavin Newsom vetoes state worker telework bill in latest battle over RTO

https://www.sacbee.com/news/politics-government/the-state-worker/article317302211.html
1•mancerayder•8m ago•1 comments

Show HN: OpensourceDB Tamper-evident,checksum-backed decision and session replay

https://github.com/ZIZKA-AI-SL/ZizkaDB
1•Arshad-Talpur•9m ago•0 comments

Ask HN: What is up with all the AI doomerism I'm seeing?

3•vasko•10m ago•0 comments

Meta launches legal challenge against UK media regulator over Online Safety Act

https://www.theguardian.com/media/2026/sep/20/meta-legal-challenge-uk-media-regulator-ofcom-onlin...
1•skor•10m ago•0 comments

Spotify Soloist, a headless Spotify client for Linux

https://developer.spotify.com/blog/2026-08-13-introducing-spotify-soloist
1•JustSkyfall•11m ago•0 comments

Lambda MicroEgg

https://www.philipzucker.com/lambda_miller_egg/
1•philzook•11m ago•0 comments

Burned Out and Unemployed, Young People in China Are Launching AI Startups

https://www.wsj.com/business/entrepreneurship/burned-out-and-unemployed-young-people-in-china-are...
2•Brajeshwar•13m ago•0 comments

Misaligned citations and LLM-generated scientific fraud

https://jilltxt.net/misaligned-citations-and-llm-generated-scientific-fraud/
2•jruohonen•14m ago•0 comments

Show HN: Swarm, an offline family tree app for macOS

https://github.com/samoilev/swarm
2•samoilev•15m ago•0 comments

Video games inspire great UX (2019)

https://jenson.org/games/
3•andsoitis•16m ago•0 comments

Consuming extra vitamin D is less good than it sounds

https://www.economist.com/science-and-technology/2026/09/18/consuming-extra-vitamin-d-is-less-goo...
3•markgavalda•17m ago•0 comments

The future needs files (2021)

https://jenson.org/files/
2•andsoitis•17m ago•0 comments

Prompts Aren't Real

https://evaluation.club
3•mcfunley•17m ago•0 comments

Our Airborne Demo Makes Space Solar Energy a Reality

https://www.overviewenergy.com/updates/airborne
1•thunderbong•18m ago•0 comments

Laya (OS Jev) on Mac M4 CoreML Offline (45 decisions per second)

https://gist.github.com/fordnox/e592d0f68b543fd044be8e6d040863a0
1•putna•18m ago•0 comments

Show HN: I wanted Human Benchmark with global leaderboards, so I built it

https://humanrank.app/
1•maxiom•19m ago•0 comments

Why I Write?

https://notes.pault.ag/why-write/
1•jruohonen•19m ago•0 comments

Translator collapsed during Khadafy's rambling diatribe (2009)

https://nypost.com/2009/09/24/translator-collapsed-during-khadafys-rambling-diatribe/
1•Bluestein•21m ago•0 comments

The cold, harsh reality of the Strait of Magellan

https://worldhistory.substack.com/p/the-long-way-around
1•gdillard•22m ago•0 comments

In a world of wars and climate crisis, a new leader could save the UN

https://www.theguardian.com/commentisfree/2026/sep/20/un-new-leader-wars-climate-crisis-donald-trump
1•shadow28•23m ago•0 comments

A 256-byte Commodore 64 demo (2017)

https://linusakesson.net/scene/a-mind-is-born/index.php
1•dimonomid•24m ago•0 comments

Jev compiler – Turn the rules your agent keeps ignoring into gates you can test

https://github.com/doronp/jevc
2•doronp•24m ago•0 comments

ChiPass Release 2026.09.0

https://codeberg.org/ChiPass/ChiPass/releases/tag/v2026.09.0
1•birdculture•24m ago•0 comments

Why Hacker News Protects Google: The Anatomy of Big Tech Fanboyism

https://scored.co/c/Technology/p/1ATVMDyZXy/why-hacker-news-protects-google-/c
13•CanusLupus79•26m ago•1 comments

Investigation: Uncovering Chinese Academic Espionage at Stanford

https://stanfordreview.org/investigation-uncovering-chinese-academic-espionage-at-stanford/
1•harry_nutsachs•26m 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•1y ago

Comments

eptcyka•1y ago
Memory leaks are by far the least interesting class of defect that Rust helps with - leaking memory is safe.
genter•1y ago
Until the kernel kills you for being OOM.
YZF•1y 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•1y ago
Program that no longer runs is the safest.
aquariusDue•1y ago
For true safety we must prevent it from being written in the first place /s
dmit•1y ago
That's the true meaning of backward compatibility. The [backward] refers to the time scale.
drivingmenuts•1y ago
stomps butterfly

I've just saved untold generations from certain calamity.

** 6,000,000 years later **

Butterfly King: This chimpanzee-descended motherfucker ….

airstrike•1y 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•1y ago
Possible attack vector, though.
andrewflnr•1y ago
The least interesting attack vector. You can fix it by rebooting.
Arnavion•1y 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•1y ago
Yes, the only difference.
api•1y 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•1y 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•1y ago
There's static analysis which can effectively force these things. C++ problems are self-inflicted
bluGill•1y 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•1y 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.
shmerl•1y 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_•1y 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•1y 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•1y 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•1y 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•1y 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•1y 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•1y 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.

api•1y ago
There are lots of languages where true memory bugs are impossible. As you say they are higher level and usually GC.
andrewflnr•1y 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?