frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: World Cup TUI with Live Updates

https://github.com/perryraskin/world-cup-tui
1•perryraskin•1m ago•0 comments

The FTC Cracked Down on 'Hidden' Car Dealer Fees. They're Still Happening

https://www.wsj.com/business/autos/the-ftc-cracked-down-on-hidden-car-dealer-fees-theyre-still-ha...
1•JumpCrisscross•2m ago•0 comments

Alberta Eradicated Rats

https://worksinprogress.co/issue/albertas-war-on-rats/
1•deunamuno•2m ago•0 comments

Why long context eats your VRAM: the KV cache explained

https://vettedconsumer.com/the-kv-cache-explained-why-long-context-eats-your-vram-and-how-to-fit-...
1•ermantrout•3m ago•0 comments

Show HN: Vet Turned Founder, AI Lawn Diagnosis

https://grassdx.com/
1•andrewbr•4m ago•0 comments

Heikki's Garden of Flowers, a catalogue of pictorial letterpress works

https://garden-of-flowers.heikkilotvonen.com/?essay
1•NaOH•4m ago•0 comments

Ask HN: How do you track commitments you make to other people in conversation?

1•annonymousjaat•4m ago•0 comments

Single dose of magic mushroom psychedelic can cause anatomical brain changes

https://www.theguardian.com/science/2026/may/05/magic-mushrooms-psychedelic-changes-brain-anatomy...
2•helterskelter•5m ago•0 comments

Google vs. Oracle (2021)

https://en.wikipedia.org/wiki/Google_LLC_v._Oracle_America,_Inc.
1•tosh•5m ago•0 comments

Game Engine White Papers Commander Keen

https://forgottenbytes.net/commander_keen.html
2•mfiguiere•7m ago•0 comments

Anti-slopping: An innovation for rectifying LLM writing clichés

https://research.thoughtworks.com/library/anti-slopping-an-innovation-for-rectifying-llm-writing-...
1•freeatnet•9m ago•0 comments

JD Vance Confirms Iran Will Get Jaw-Dropping Sum Under Trump Deal

https://newrepublic.com/post/211826/jd-vance-us-pay-iran-billions-trump-deal
6•nothrowaways•11m ago•3 comments

A Clojure Dialect on Rust

https://clj.rs
1•caseym831•11m ago•0 comments

At Berkeley, the enrollment dip [in CS] has come from a supply-side constraint

https://alumni.berkeley.edu/california-magazine/2026-summer/major-issue/
1•jedberg•12m ago•1 comments

Oura and Counsel Health Partner to Provide AI-Enabled Care Within the Oura App

https://ouraring.com/blog/counsel-integration-oura-app/
1•bariumbitmap•13m ago•0 comments

AI and Amateurism

https://pluralistic.net/2026/06/15/vernacular/
1•hn_acker•14m ago•0 comments

Show HN: Turboquant.cpp – Quantize embeddings to 1-4 bits, no training (400 LoC)

https://github.com/RunEdgeAI/turboquant.cpp
1•andrewmikhail•15m ago•0 comments

Ask HN: Whats your intuition on AGI breakthrough?

4•filup•17m ago•0 comments

Ask HN: Did your (non-AI) research field get less fun after commercialization?

1•blt•17m ago•0 comments

Claude Corps

https://www.anthropic.com/news/claude-corps
3•Mustan•18m ago•0 comments

The domain Pinboard.in has expired today

https://ph.godaddy.com/whois/results.aspx?domain=pinboard.in
2•kome•19m ago•0 comments

Running local models is good now

https://vickiboykis.com/2026/06/15/running-local-models-is-good-now/
2•sixhobbits•19m ago•0 comments

Programming Parallel Computers

https://ppc.cs.aalto.fi/
1•ibobev•20m ago•0 comments

How Does a Database Work?

https://cstack.github.io/db_tutorial/
1•ibobev•21m ago•0 comments

Tea Time Numerical Analysis

https://lqbrin.github.io/tea-time-numerical/
1•ibobev•21m ago•0 comments

SVGs and PDFs can both be interactive

https://vexlio.com/blog/svgs-and-pdfs-can-both-be-interactive/
3•birdculture•22m ago•0 comments

Fruit Is Too Sweet

https://www.theatlantic.com/culture/2026/06/fruit-sweet-sumo-cotton-candy-grape/687507/
4•gmays•22m ago•0 comments

Balkan Sworn Virgins

https://en.wikipedia.org/wiki/Balkan_sworn_virgins
6•Semaphor•22m ago•0 comments

Security Risks of Apple's AI-Built Shortcuts

https://www.kylereddoch.me/blog/describe-a-shortcut-create-a-risk-the-security-side-of-ai-built-a...
1•speckx•23m ago•0 comments

'Are We Dating the Same Guy?' Facebook dating group faces lawsuit

https://www.13newsnow.com/video/news/crime/are-we-dating-the-same-guy-facebook-dating-group-faces...
1•randycupertino•24m ago•0 comments
Open in hackernews

Memory safety CVEs differ between Rust and C/C++

https://kobzol.github.io/rust/2026/06/15/how-memory-safety-cves-differ-between-rust-and-c-cpp.html
34•nicoburns•1h ago

Comments

chilljinx•40m ago
Unsafe is not necessary to trigger UB in case no_std is used. Nor if one of the soundness holes in the Rust programming language itself is encountered. Nor if there is UB in one of the libraries used as a dependency by the library you are using. Nor if there is UB in the Rust standard library. Which has happened many times, since the Rust standard library is full of unsafe.

Rust also requires libraries to be safe regarding unsafe, no matter what kind of insane input that is given to the library and that would otherwise potentially be security issues. Which is too difficult for many library authors.

And unsafe in Rust is so difficult that many library authors throw their hands up, use Miri, and hope for the best. Even though Miri, all respect to it, has bugs, probability-based testing and other limitations and issues.

UB in both user library and standard library:

https://materialize.com/blog/rust-concurrency-bug-unbounded-...

kllrnohj•28m ago
> Nor if one of the soundness holes in the Rust programming language itself is encountered.

imo one of those soundness holes is caused directly from trying to prevent UB - integer overflows. It is inconsistent in Rust what happens in that scenario depending on compiler flags, which basically just makes it UB for any given piece of code. And, unfortunately, default release mode behavior is unsafe.

chilljinx•22m ago
Which definition of UB are you using regarding that? Behavior changing based on configuration does not seem like UB, at least if none of the configurations allow for UB.
afdbcreid•19m ago
You seem to have been misinformed. Rust panics on overflow in debug mode (or always if you toggle a compiler flag), and has a guaranteed wrap-around in release mode. In no case there is UB.
slopinthebag•22m ago
> The fix for this bug is included in Rust 1.87.0

Am I missing something?

afdbcreid•21m ago
> Unsafe is not necessary to trigger UB in case no_std is used

I have no idea what are you talking about, no_std is just completely irrelevant here.

> Nor if one of the soundness holes in the Rust programming language itself is encountered

Have you actually examined those soundness holes? It is basically impossible to hit them without writing code which is meant to hit them.

And this is also noted in a footnote.

> Nor if there is UB in one of the libraries used as a dependency by the library you are using

If we treat a Rust program globally, this is kinda true. A more true statement will be that UB cannot happen without unsafe code somewhere, including in dependencies (and the original statement can be interpreted as saying that).

But the true power of unsafe is that it's local. If you've reviewed a library and its unsafe is sound, you can ignore it for the rest of the calculation. And of course, the more people review a library the more likely it is that it is sound.

> Which has happened many times, since the Rust standard library is full of unsafe

And here again the post's point stands: many CVEs in std are artificial, you can't exploit them without writing a program that is meant to be exploited. Such thing will never be a CVE in C/C++'s std.

> Rust also requires libraries to be safe regarding unsafe, no matter what kind of insane input that is given to the library and that would otherwise potentially be security issues. Which is too difficult for many library authors.

That is true, that is in fact the post's point: that if they fail this, a CVE will be filled, even if exploitation is just not possible realistically.

But there is a very simple solution for library authors: don't write unsafe code! You don't need to, the vast majority of times. And if you do not have the knowledge (which indeed is more complicated than in C/C++) how to not have an unsound API, then you just should not write unsafe code.

chilljinx•15m ago
> no_std

Is 100% relevant.

Did you use ChatGPT to generate your comment?

afdbcreid•12m ago
What? Absolutely not. May you explain why no_std is relevant?
Groxx•20m ago
I'm caught somewhere between interpreting this as "C is all we need. git gud" and "rust hurt me and I'm still mad".

In broad strokes it's correct, this stuff happens and it's hard to be correct all the time. But are you trying to make a point? Or just ranting?

Also that linked issue was considered a CVE and is fixed (as the article says).

chilljinx•13m ago
Are you breaking the rules of the site?
sunshowers•6m ago
If you are interested in a more nuanced take on what makes unsafe Rust both valuable and difficult, check out my blog post on the Oxide blog: https://oxide.computer/blog/iddqd-unsafe

I directly tackle the concerns you mentioned, and as a followup I'm actually working on formally verifying the library as well (I've had some success and will publish an update regarding this).

jurschreuder•30m ago
Just want to remind everyone that only 1% of vulnerabilities are memory related in the average Joe's code.

And only 20% of memory related bugs are use-after-free which the borrow checker fighting is for.

And 100% of the use-after-free exploits were to gain admin rights on an already hacked Windows (all windows) computer.

So for the vast majority of people the borrow checker adds nothing.

The vast majority of memory safety bugs (extreme pro level, super hard to exploit, only worth it in massively adopted evil outer world facing software) can be fixed by using C++26 with array bounds checking and forced initialisation.

These last two things that Rust forces catch 70-80% of the memory problems the borrow checker only 20-30% only use-after-free.

Most problems by far for normal developers are supply chain attacks, exposing api keys, remote code execution, wrong input validation, wrong auth-flow.

You're reading the CVEs of sudo and ssh and think your code will be hacked like that.

PHP is memory safe and still many people hack wordpress plugins.

slopinthebag•25m ago
Any sources for these numbers?
lawn•5m ago
90℅ of all statistics is made up.
khuey•19m ago
> Just want to remind everyone that only 1% of vulnerabilities are memory related in the average Joe's code.

Unless your point is merely that average Joes write such terrible code that you don't even need memory safety issues to exploit their software, [citation needed]

Google says memory safety issues are 75% of exploited zero days. (https://security.googleblog.com/2024/10/safer-with-google-ad...)

shevy-java•15m ago
C and C++ are kind of losing out to Rust right now.

Take ladybird (last month blog; not that ladybird stands for all projects out there, of course; it is just an example):

https://ladybird.org/newsletter/2026-05-31/

"The HTML parser is now written in Rust" "The Rust parser is also about 10% faster than the C++ version it replaced,"

I am not saying this is a systematic analysis by far, but Rust is pushing into domains where C and C++ dominated in the past. And that seems to be a real push. To me it looks as if both C and C++ are standing to lose some ground in the next few years, directly to Rust. Perhaps even via snowball effect.

platinumrad•8m ago
Not trying to single you out, but this is such a worthless comment of the type that is so common on HN.

"I think technology X is losing to technology Y right now. The evidence? $BLOG_POST where company A is moving from X to Y. Here's a choice quote from $BLOG_POST: '$BENCHMARK is single digit N% better!' Not a systematic analysis, BTW! (X will lose though.)"

ghosty141•6m ago
> but Rust is pushing into domains where C and C++ dominated in the past.

I think it's also a big sign that the linux kernel adopted rust and not c++. (only for small parts but still)

cesaref•4m ago
Is it only me that would have expected curl_getenv() to have an assert that it's argument isn't NULL?

I know this doesn't stop runtime problems in release builds, but i'd have thought this sort of simple precondition check would help users find problems in their library useage.

It's not going to stop you passing a non-terminated string, or other such invalid input though, which is I guess more the point, that it's totally possible in C to produce good looking but actually invalid arguments that can't be spotted at runtime without UB (out of bounds access etc).

pitaj•12m ago
Explain how it is relevant
rumblefrog•4m ago
Little hostile with the refutal
kalaksi•10m ago
And at least in Chromium project, half of those memory safety issues are use-after-free: https://www.chromium.org/Home/chromium-security/memory-safet...
bbippin•9m ago
The point is that memory issues are a smallish number of issue compared to the larger ecosystem of vulnerabilities, and choosing to port everything to Rust is like over-optimizing. Well, that’s my 2 cents.

For a language as ugly as Rust, my thought is that people should actually be using Ada, and have a mathematically provable correctness angle; not just a replacement for C/C++ with memory safety.

khuey•7m ago
> The point is that memory issues are a smallish number of issue compared to the larger ecosystem of vulnerabilities

If memory safety issues are 75% of exploited zero days it sounds to me like they're the biggest issue in the ecosystem by far.

afdbcreid•6m ago
My understanding is that they claim that the average Joe writes code in a garbage-collected memory-safe language.

Which is... true? but irrelevant. Such applications are not suggested to be ported to Rust. Of course, some people still do that, because they like Rust; but that's their personal choice.

chilljinx•17m ago
I do not believe that I agree, and I am not sure about all of your numbers.

The borrow checker does add something, but it definitely costs something as well in multiple ways, also in terms of how it is done in Rust and at a programming language design perspective.

It would be very funny if you were batting for Rust, and just having a laugh at others here.

jeffbee•15m ago
Hrmm. I don't think there exists a set of compiler flags that will just make an existing C++ (or, worse, a mixed C and C++) project safe to the extent that you suggested. The STL hardening flags don't help for ordinary arrays that aren't accessed via smart pointers, and they don't help code that uses a pointer+offset style of access. As for UAF, nothing in C++ comprehensively prevents you from accessing an invalid stored reference even if you have cranked up the hardening mode to DEBUG. Rust, on the other hand, affirmatively prevents that.