frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Rustls Server-Side Performance

https://www.memorysafety.org/blog/rustls-server-perf/
76•jaas•3d ago

Comments

koakuma-chan•4h ago
It's blazingly fast.
pzmarzly•4h ago
Also in referent news: "The State of TLS Stacks" by HAProxy devs https://www.haproxy.com/blog/state-of-ssl-stacks https://news.ycombinator.com/item?id=43912164

TLDR OpenSSL days seem to be coming to an end, but Rustls C bindings add not production ready yet.

Twirrim•2h ago
Would love to see compliance and accreditation coming through for native rusttls, like FIPS. That'll unlock a large potential market, which can in turn unlock other markets.

You can get FIPS by using some of the third party back-end integration via aws-lc-rs.

bastawhiz•4h ago
I'm not a Rust guy and I probably won't be any time soon, but Rustls is such an exciting project in my eyes. Projects like BoringSSL are cool and noble in their intentions, but having something that's not just a hygienic codebase but an implicitly safer one feels deeply satisfying. I'm eagerly looking forward to this finding its way into production use cases.
nyanpasu64•3h ago
I wonder if replacing the encryption key every 6 hours would be a good use case for a crossbeam-epoch, though this may be premature optimization, and that library requires writing unsafe code as far as I can tell.
yencabulator•2h ago
You might like https://docs.rs/arc-swap/latest/arc_swap/
nyanpasu64•1h ago
AIUI epoch GC doesn't require Arc's atomic increment/decrement operations which can be slower than naive loads (https://codeberg.org/nyanpasu64/cachebash), but at this point we're getting into nano-optimization territory.
toast0•32m ago
I think it is worth optimizing, there's a noticable, but small, dip in handshakes per second going from 1 to 2 threads.

If I were to optimize it, and the cycling rate is fixed and long, I would have the global storage be behind a simple Mutex, and be something like (Expiration, oldval, newval), on use, check a threadlocal copy, use it if it's not expired, otherwise lock the global, if the global is not expired, copy it to thread local. If the global is expired, generate a new one, saving the old value so that the previous generation tickets are still valid.

You can use a simple Mutex, because contention is limited to the expiration window. You could generate a new ticket secret outside the lock to reduce the time spent while locked, at the expense of generating a ticket secret that's immediately discarded for each thread except the winning thread. Not a huge difference either way, unless you cycle tickets very frequently, or run a very large number of threads.

toast0•3h ago
I wish they included details on how they ran these benchmarks, like they did last year [1].

I'd like to take a look and try to understand why there's such a big difference in handshake performance. I wouldn't expect single threaded handshake performance to vary so much between stacks... it should be mostly limited by crypto operations. Last time, they did say something about having a cpu optimization for handshaking that the other stack might not have, but this is on a different platform and they didn't mention that.

I'd also be interested in seeing what it looks like with OpenSSL 1.1.1, given the recent article from HAProxy about difficulties with OpenSSL 3 [2]

[1] https://www.memorysafety.org/blog/rustls-performance-outperf...

[2] https://www.haproxy.com/blog/state-of-ssl-stacks

hardwaresofton•3h ago
At the risk of sounding like a crustacean cult member, really hope the skeptics read this post. No hype, no drama, just slow, steady high perf incremental improvement in a crucially important area without any feet blown off.

I feel bad for other/new system languages, you get so much for the steeper learning curve with Rust (cult membership optional). And I think it’s genuinely difficult to reproduce Rust’s feature set.

landl0rd•1h ago
I stole these graphs for a branch of that thread ffmpeg started on twitter. The one where they were flaming rav1d vs dav1d performance to attack Rust generally.

I don't like the RiiR cult. I do like smart use of a safer language and think long-term it can get better than C++ with the right work.

Getting AI to write good SQL

https://cloud.google.com/blog/products/databases/techniques-for-improving-text-to-sql
241•richards•8h ago•119 comments

Wow@Home – Network of Amateur Radio Telescopes

https://phl.upr.edu/wow/outreach
47•visviva•3h ago•0 comments

Show HN: Fahmatrix – A Lightweight, Pandas-Like DataFrame Library for Java

https://github.com/moustafa-nasr/fahmatrix
8•mousomashakel•46m ago•1 comments

XTool – Cross-platform Xcode replacement

https://github.com/xtool-org/xtool
47•TheWiggles•3h ago•15 comments

A Linux kernel developer plays with Home Assistant: general impressions

https://lwn.net/SubscriberLink/1017720/7155ecb9602e9ef2/
26•pabs3•2h ago•3 comments

Thoughts on thinking

https://dcurt.is/thinking
358•bradgessler•10h ago•238 comments

Show HN: KVSplit – Run 2-3x longer contexts on Apple Silicon

https://github.com/dipampaul17/KVSplit
219•dipampaul17•9h ago•33 comments

Show HN: Merliot – plugging physical devices into LLMs

https://github.com/merliot/hub
27•sfeldma•4h ago•6 comments

A Research Preview of Codex

https://openai.com/index/introducing-codex/
399•meetpateltech•14h ago•321 comments

How can traditional British TV survive the US streaming giants

https://www.bbc.co.uk/news/articles/cx2enydkew3o
5•asplake•2d ago•1 comments

Rustls Server-Side Performance

https://www.memorysafety.org/blog/rustls-server-perf/
76•jaas•3d ago•11 comments

MIT asks arXiv to withdraw preprint of paper on AI and scientific discovery

https://economics.mit.edu/news/assuring-accurate-research-record
272•carabiner•14h ago•147 comments

Coding agent in 94 lines of Ruby

https://radanskoric.com/articles/coding-agent-in-ruby
75•radanskoric•2d ago•24 comments

ClojureScript 1.12.42

https://clojurescript.org/news/2025-05-16-release
119•Borkdude•9h ago•20 comments

I'm Peter Roberts, immigration attorney, who does work for YC and startups. AMA

196•proberts•14h ago•362 comments

Show HN: Visual flow-based programming for Erlang, inspired by Node-RED

https://github.com/gorenje/erlang-red
208•Towaway69•14h ago•91 comments

X X^t can be faster

https://arxiv.org/abs/2505.09814
166•robinhouston•13h ago•49 comments

MCP: An in-depth introduction

https://www.speakeasy.com/mcp/mcp-tutorial
39•ritzaco•3d ago•14 comments

New high-quality hash measures 71GB/s on M4

https://github.com/Nicoshev/rapidhash
21•nicoshev11•2d ago•4 comments

WebGL Gray-Scott Explorer (2012)

http://www.mrob.com/pub/comp/xmorphia/ogl/index.html
18•joebig•4h ago•2 comments

The Joys of Discovering the Roman Underground

https://www.smithsonianmag.com/travel/the-joys-of-discovering-the-roman-underground-from-the-colosseum-to-whats-beneath-the-trevi-foundation-180986626/
6•ulrischa•1d ago•0 comments

Postman for MCP

https://usetexture.com/##
24•andes314•3h ago•6 comments

Will AI systems perform poorly due to AI-generated material in training data?

https://cacm.acm.org/news/the-collapse-of-gpt/
75•pseudolus•5h ago•77 comments

The first year of free-threaded Python

https://labs.quansight.org/blog/free-threaded-one-year-recap
255•rbanffy•19h ago•252 comments

Java at 30: Interview with James Gosling

https://thenewstack.io/java-at-30-the-genius-behind-the-code-that-changed-tech/
176•chhum•16h ago•259 comments

Behind Silicon Valley and the GOP’s campaign to ban state AI laws

https://www.bloodinthemachine.com/p/de-democratizing-ai
33•spenvo•2h ago•10 comments

They Were Identical 'Twinnies' Who Charmed Orwell, Camus and More

https://www.nytimes.com/2025/05/04/books/review/the-dazzling-paget-sisters-ariane-bankes.html
21•lermontov•6h ago•4 comments

Foundry (YC F24) Is Hiring – Founding Engineer (ML × SWE)

https://www.ycombinator.com/companies/foundry/jobs/uwi8b6I-founding-engineer-ml-x-swe
1•lakabimanil•12h ago

Show HN: Solidis – Tiny TS Redis client, no deps, for serverless

https://github.com/vcms-io/solidis
43•jayl-e-e•8h ago•4 comments

The Magic Hours: The Films and Hidden Life of Terrence Malick

https://www.lrb.co.uk/the-paper/v47/n09/david-thomson/cool-tricking
56•mitchbob•11h ago•31 comments