frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The cost of protecting Oracle Corp.'s debt against default rose on Friday

https://www.bloomberg.com/news/articles/2025-11-14/oracle-credit-derivatives-jump-as-traders-rush...
1•zerosizedweasle•1m ago•0 comments

I wrote a playable Pong game in a 512-byte boot sector

https://akshatjoshi.com/i-wrote-a-pong-game-in-a-512-byte-boot-sector/
1•akshat666•1m ago•0 comments

Scam.security Wants Freelancer

1•Jaseymour•3m ago•0 comments

Show HN: A visual guide to learning Jujutsu (JJ)

https://excalidraw.com/#json=kMtNOJfH_UUOzBqt7WXx9,cyuXonQjb-Kor72f0F5YXg
2•anavid7•6m ago•0 comments

Code Wiki: Accelerating your code understanding

https://developers.googleblog.com/en/introducing-code-wiki-accelerating-your-code-understanding/
3•nh43215rgb•12m ago•0 comments

SlimBrowser: Fastest web browser for Windows that blocks all Ads

https://www.slimbrowser.net/
1•thunderbong•12m ago•0 comments

Student brags on social media about calling ICE on car wash workers

https://www.wbur.org/news/2025/11/13/student-ice-car-wash-social-bu-republicans
5•geox•18m ago•0 comments

Do you know how much the world outside a small group of people hate AI?

9•zerosizedweasle•19m ago•1 comments

I don't love Rust (either)

https://cbarrete.com/rust-bad.html
4•wakawaka28•20m ago•1 comments

Claude Code modernizes a legacy COBOL codebase [video]

https://www.youtube.com/watch?v=OwMu0pyYZBc
1•vinhnx•24m ago•0 comments

Urban Myth of 5-7-5

https://www.graceguts.com/essays/urban-myth-of-5-7-5
2•latexr•27m ago•0 comments

Jack Dorsey and Elon Musk would like to 'delete all IP law'

https://techcrunch.com/2025/04/13/jack-dorsey-and-elon-musk-would-like-to-delete-all-ip-law/
4•hhs•34m ago•2 comments

Andrew Ng's letter to an 18 y.o. worried about AI

https://www.deeplearning.ai/the-batch/dont-believe-the-hype/
3•siquick•36m ago•0 comments

The curious case of broken theorems

https://davidbessis.substack.com/p/the-curious-case-of-broken-theorems
2•mathgenius•37m ago•0 comments

A Small Linear Accelerator for Charged Microparticles

https://www.mdpi.com/2076-3417/15/21/11709
2•PaulHoule•40m ago•0 comments

AI Gateway from Pydantic

https://pydantic.dev/articles/gateway-open-beta
1•scolvin•41m ago•0 comments

Be Simple

https://corrode.dev/blog/simple/
1•vinhnx•42m ago•0 comments

Use buttons instead of text link in your outreach email

https://www.emailbuttons.com/
3•zackho•44m ago•1 comments

Heat engine uses the cold of space to run a fan (400mW per sqm)

https://www.youtube.com/watch?v=5VSmBl8Rv_o
2•gsf_emergency_4•45m ago•0 comments

Gaza Online – Esims for Gazans

https://www.gaza.online/
1•aussieguy1234•45m ago•0 comments

Differential Coding of Perception in the Languages

https://www.pnas.org/doi/10.1073/pnas.1720419115
1•DrierCycle•48m ago•0 comments

Disney+ to Allow User-Generated Content via AI

https://www.hollywoodreporter.com/business/digital/disney-plus-gen-ai-user-generated-content-1236...
2•TMWNN•49m ago•0 comments

US announces 'Southern Spear' mission as forces deploy near South America

https://www.aljazeera.com/news/2025/11/14/us-announces-southern-spear-mission-as-forces-deploy-to...
5•treetalker•50m ago•1 comments

Another Round of Tea Protocol Spam Floods NPM, but It's Not a Worm

https://socket.dev/blog/tea-protocol-spam-floods-npm-but-its-not-a-worm
1•feross•52m ago•0 comments

No Leak, No Problem – Bypassing ASLR with a ROP Chain to Gain RCE

https://modzero.com/en/blog/no-leak-no-problem/
4•todsacerdoti•58m ago•0 comments

The EU must uphold hard-won protections for digital human rights [pdf]

https://edri.org/wp-content/uploads/2025/11/The-EU-must-uphold-hard-won-protections-for-digital-h...
4•doener•1h ago•0 comments

Crushed by capitalism? There's a video game for that

https://www.ft.com/content/5b223e7a-3161-4f03-a577-557e9947618b
3•hhs•1h ago•0 comments

Show HN: Infinite canvas product search and decision making

https://onton.com/surfaces
7•kar_t•1h ago•0 comments

Strict and full Turkish get-up [video]

https://www.youtube.com/shorts/wXWSjSwjGuA
3•programmexxx•1h ago•0 comments

Big Tech Wants Direct Access to Our Brains

https://www.nytimes.com/2025/11/14/magazine/neurotech-neuralink-rights-regulations.html
8•bookofjoe•1h ago•2 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•6mo ago

Comments

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

I've just saved untold generations from certain calamity.

** 6,000,000 years later **

Butterfly King: This chimpanzee-descended motherfucker ….

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