frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The Last Open Inbox

https://www.blairewa.lt/the-last-open-inbox.html
1•blizow•1m ago•0 comments

Carl Jung, Occultist

https://www.ecosophia.net/carl-jung-occultist/
1•phront•4m ago•0 comments

Show HN: Astrial – Spherical Go on a Snub Dodecahedron

https://astrial.app
2•mingli_yuan•5m ago•0 comments

A Glimpse into the Future of Software Development

https://saturnino.substack.com/p/out-of-the-loop
1•lrsaturnino•14m ago•0 comments

Fixing a 20-year-old bug in Enlightenment E16

https://iczelia.net/posts/e16-20-year-old-bug/
4•snoofydude•16m ago•0 comments

When Oil Gets Expensive, Cities Get Better [video]

https://www.youtube.com/watch?v=eXNLaHsKMz8
1•CHB0403085482•16m ago•0 comments

Saying Goodbye to Agile

https://lewiscampbell.tech/blog/260414.html
2•matrixhelix•17m ago•0 comments

Agents as Scaffolding for Recurring Tasks

https://lethain.com/agents-as-scaffolding/
2•gpi•21m ago•0 comments

ZFS: Tutorial for Storage on External Drives

https://jenpeterson.net/zfs-blog/
1•bariumbitmap•23m ago•0 comments

The Economic Value of Eliminating Cancer

https://www.nber.org/papers/w35052
2•paulpauper•32m ago•0 comments

The Economist Is Putting Names (and Faces) to Its Magazine

https://www.nytimes.com/2026/04/13/business/media/economist-magazine-videos.html
1•paulpauper•33m ago•0 comments

The tech jobs bust is real. Don't blame AI (yet)

https://www.economist.com/finance-and-economics/2026/04/13/the-tech-jobs-bust-is-real-dont-blame-...
1•axiomdata316•33m ago•1 comments

Avatar: Aang: The Last Airbender Surfaces Online Months Before Paramount+ Debut

https://www.cartoonbrew.com/feature-film/avatar-aang-last-airbender-leaks-online-259953.html
2•Cider9986•34m ago•0 comments

Show HN: Firefox Sidebar Local LLM

https://github.com/skorotkiewicz/firefox-ai
1•modinfo•36m ago•0 comments

Show HN: Fz.ax – Four thousand weeks of your life, as hexagons

https://fz.ax
1•momentmaker•39m ago•0 comments

Feature Request: Support Agents.md. #6235

https://github.com/anthropics/claude-code/issues/6235
1•gz09•41m ago•0 comments

A tax revolt is under way in America

https://economist.com/united-states/2026/04/14/a-tax-revolt-is-under-way-in-america
2•andsoitis•44m ago•1 comments

Show HN: Why Rotating Vectors Makes Compression Beautiful

https://demos.connectai.blog/quantization_blog.html
1•linux_devil•44m ago•0 comments

Photocatalytic Water Splitting

https://en.wikipedia.org/wiki/Photocatalytic_water_splitting
2•wolfi1•45m ago•0 comments

Deriving the Y Combinator (2008)

https://blog.jcoglan.com/2008/01/10/deriving-the-y-combinator/
1•aragonite•56m ago•0 comments

Will Elon Musk ever be forced to explain what he did inside DOGE?

https://www.cnn.com/2026/04/13/politics/elon-musk-doge-lawsuits-avoid-deposition-questions
9•1659447091•58m ago•3 comments

The disappearance of old Tokyo businesses

https://www.tokyotimes.org/the-disappearance-of-old-tokyo-businesses/
1•razorbeamz•59m ago•0 comments

Show HN: Honeytree – Grow a forest in your terminal while you code

https://github.com/Varun2009178/honeytree
1•varunn29•1h ago•0 comments

Krafton CEO used ChatGPT in failed bid to avoid paying US$250M bonus

https://www.theguardian.com/technology/2026/mar/18/subnautica-2-publisher-krafton-ceo-reinstated-...
3•doppp•1h ago•1 comments

Moanpoint: Maps TrackPoint pressure to audio output

https://github.com/nicolasgutierrezdev/moanpoint
1•neptunianalien•1h ago•0 comments

Decline in U.S. overdose deaths threatened by changing street drug supply

https://text.npr.org/nx-s1-5783750
2•1659447091•1h ago•0 comments

New AI capabilities are coming to Google Vids, powered by Lyria 3 and Veo 3.1

https://blog.google/products-and-platforms/products/workspace/google-vids-updates-lyria-veo/
3•spaghettifythis•1h ago•1 comments

The Stern-Gerlach Experiment (1967)[video]

https://www.youtube.com/watch?v=AcTqcyv-V1I
1•nill0•1h ago•0 comments

Show HN: BSCS Bench – College CS Curriculum AI Benchmark

https://www.bscsbench.com/
1•charlielockyer•1h ago•0 comments

Bessent: Order requiring banks to collect citizenship information in process

https://thehill.com/homenews/administration/5830266-trump-executive-order-banking-system-citizens...
2•KnuthIsGod•1h 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•11mo ago

Comments

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

I've just saved untold generations from certain calamity.

** 6,000,000 years later **

Butterfly King: This chimpanzee-descended motherfucker ….

airstrike•11mo 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•11mo ago
Possible attack vector, though.
andrewflnr•11mo ago
The least interesting attack vector. You can fix it by rebooting.
Arnavion•11mo 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•11mo ago
Yes, the only difference.
api•11mo 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•11mo 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•11mo ago
There's static analysis which can effectively force these things. C++ problems are self-inflicted
bluGill•11mo 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•11mo 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•11mo ago
There are lots of languages where true memory bugs are impossible. As you say they are higher level and usually GC.
andrewflnr•11mo 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•11mo 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_•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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.