Better HN
topnewbestaskshowjobs
Log inSign up

redcannon218

23 karma · joined Dec 9, 2024 (1y ago) · 21 submissions

Submissions

1.

Even if 90% of AI-discovered vulnerabilities are made up, it's still terrifying(kerkour.com ↗)

4 points · by redcannon218 · 4mo ago · discuss

2.

Building a Plugin System: Native Libraries vs. Scripting vs. WebAssembly(kerkour.com ↗)

4 points · by redcannon218 · 4mo ago · discuss

3.

Introduction to embedded development with Rust: Overview of the ecosystem(kerkour.com ↗)

5 points · by redcannon218 · 8mo ago · discuss

4.

Bugs that the Rust compiler catches for you(kerkour.com ↗)

3 points · by redcannon218 · 9mo ago · discuss

5.

So, you want to serialize a B-Tree?(kerkour.com ↗)

2 points · by redcannon218 · 10mo ago · discuss

6.

Slashing Rust allocations with mimalloc and heapless to build the fastest proxy(kerkour.com ↗)

12 points · by redcannon218 · 1y ago · discuss

comment 1y ago · link · parent

TL;DR: Programming agents need strong typing and compiler-enforced correctness to get feedback.

comment 1y ago · link · parent

The claims about privacy are, at best, dubious.

While it's true that there are less opportunities to track you through leaky / malicious apps, "dumbphones" remain, well, phones, with data retention laws in almost all countries in the world (and the subsequent leaks / hacks, see the recent Salt typhoon events for a good example) plus extra vulnerabilities due to poorly-developed Operating Systems.

9.

Avoiding memory fragmentation in Rust with jemalloc(kerkour.com ↗)

7 points · by redcannon218 · 1y ago · discuss

comment 1y ago · link · parent

My benchmarks are not public, but on AMD EPYC processors ChaCha12 (5 GB / s) is faster than hardware-accelerated AES-256-GCM (3.5 GB / s).

Unfortunately, this is comparing apples to oranges because AES-256-GCM is authenticated, so you will need a MAC with ChaCha12 (usually Poly1305) which finally makes ChaCha12 in AEAD mode slower than AES-256-GCM.

But the real question is: What is fast enough?

I believe that between 1 and 2 GB / s per core for an AEAD is fast enough as I/O will be your bottleneck way before that.

This is why I will always favor a ChaCha20/ChaCha12-based AEAD over AES and its many footguns.

comment 1y ago · link · parent

I need to hash something, one way or another, in virtually 100% of my projects. Where is SHA-256 in the standard library?

comment 1y ago · link · parent

But Go has proven that the ecosystem is way more important than the language.

It's time to shift priorities.

comment 1y ago · link · parent

Please see my edit

comment 1y ago · link · parent

Unfortunately Rust is making the exact same mistake.

Edit: It focuses too much on the language instead of the ecosystem.

15.

Bugs that the Rust compiler catches for you(kerkour.com ↗)

2 points · by redcannon218 · 1y ago · discuss

comment 1y ago · link · parent

Serious question: does "AI" in a product description make you want to buy it more, or less?

17.

System Transparency(docs.system-transparency.org ↗)

1 points · by redcannon218 · 1y ago · discuss