frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Cost of Indirection in Rust

https://blog.sebastiansastre.co/posts/cost-of-indirection-in-rust/
36•sebastianconcpt•3d ago

Comments

cat-whisperer•1h ago
I wouldn't have agreed with you a year ago. async traits that were built with boxes had real implications on the memory. But, by design the async abstraction that rust provides is pretty good!
slopinthebag•50m ago
Cool article but I got turned off by the obvious AI-isms which, because of my limited experience with Rust, has me wondering how true any of the article actually is.
ramon156•42m ago
I don't see anything wrong code-wise, but it's definitely an odd way of making an accumulator. Maybe I'm pedantic
bombela•49m ago
I think this long post is saying that if you are afraid that moving code behind a function call will slow it down, you can look at the machine code and run a benchmark to convince yourself that it is fine?
layer8•2m ago
I think it’s arguing that normally you shouldn’t even bother benchmarking it, unless it’s in a critical hot spot.
Scubabear68•42m ago
A function call is not necessarily an indirection. Basic premise of the blog is wrong on its face.
alilleybrinker•30m ago
Did you read the article? The author makes exactly that point.
ekidd•21m ago
We have been able to automatically inline functions for a few decades now. You can even override inlining decisions manually, though that's usually a bad idea unless you're carefully profiling.

Also, it's pointer indirection in data structures that kills you, because uncached memory is brutally slow. Function calls to functions in the cache are normally a much smaller concern except for tiny functions in very hot loops.

Sytten•19m ago
Also to note that the inline directive is optional and the compiler can decide to ignore it (even if you put always if I remember)

Malus – Clean Room as a Service

https://malus.sh
495•microflash•3h ago•179 comments

The Met Releases High-Def 3D Scans of 140 Famous Art Objects

https://www.openculture.com/2026/03/the-met-releases-high-definition-3d-scans-of-140-famous-art-o...
81•coloneltcb•1h ago•18 comments

Show HN: OneCLI – Vault for AI Agents in Rust

https://github.com/onecli/onecli
28•guyb3•59m ago•12 comments

Bubble Sorted Amen Break

https://parametricavocado.itch.io/amen-sorting
16•eieio•26m ago•5 comments

Kotlin creator's new language: a formal way to talk to LLMs instead of English

https://codespeak.dev/
161•souvlakee•3h ago•128 comments

Reversing memory loss via gut-brain communication

https://med.stanford.edu/news/all-news/2026/03/gut-brain-cognitive-decline.html
20•mustaphah•1h ago•0 comments

Converge (YC S23) Is Hiring a Founding Platform Engineer (NYC, Onsite)

https://www.runconverge.com/careers/founding-platform-engineer
1•thomashlvt•38m ago

US banks' exposure to private credit hits $300B (2025)

https://alternativecreditinvestor.com/2025/10/22/us-banks-exposure-to-private-credit-hits-300bn/
172•JumpCrisscross•4h ago•98 comments

Asia rolls out 4-day weeks, WFH to solve fuel crisis caused by Iran war

https://fortune.com/2026/03/11/iran-war-fuel-crisis-asia-work-from-home-closed-schools-price-caps/
204•speckx•2h ago•104 comments

The Cost of Indirection in Rust

https://blog.sebastiansastre.co/posts/cost-of-indirection-in-rust/
38•sebastianconcpt•3d ago•9 comments

Show HN: LogClaw – Open-source AI SRE that auto-creates tickets from logs

https://logclaw.ai
10•Robelkidin•33m ago•1 comments

Dolphin Progress Release 2603

https://dolphin-emu.org/blog/2026/03/12/dolphin-progress-report-release-2603/
224•BitPirate•8h ago•36 comments

Italian prosecutors seek trial for Amazon, 4 execs in alleged $1.4B tax evasion

https://www.reuters.com/world/italian-prosecutors-seek-trial-amazon-four-execs-over-alleged-14-bl...
97•amarcheschi•2h ago•17 comments

Avoiding Trigonometry (2013)

https://iquilezles.org/articles/noacos/
175•WithinReason•8h ago•47 comments

Emacs internals: Tagged pointers vs. C++ std:variant and LLVM (Part 3)

https://thecloudlet.github.io/blog/project/emacs-03/
44•thecloudlet•4h ago•17 comments

Full Spectrum and Infrared Photography

https://timstr.website/blog/fullspectrumphotography.html
8•alter_igel•4d ago•0 comments

Show HN: Understudy – Teach a desktop agent by demonstrating a task once

https://github.com/understudy-ai/understudy
5•bayes-song•35m ago•0 comments

3D-Knitting: The Ultimate Guide

https://www.oliver-charles.com/pages/3d-knitting
192•ChadNauseam•9h ago•67 comments

Claude now creates interactive charts, diagrams and visualizations

https://claude.com/blog/claude-builds-visuals
61•adocomplete•1h ago•27 comments

ATMs didn't kill bank Teller jobs, but the iPhone did

https://davidoks.blog/p/why-the-atm-didnt-kill-bank-teller
137•colinprince•2h ago•167 comments

Long Overlooked as Crucial to Life, Fungi Start to Get Their Due

https://e360.yale.edu/features/fungi-kingdom
18•speckx•4h ago•0 comments

Suburban school district uses license plate readers to verify student residency

https://www.nbcchicago.com/consumer/suburban-school-district-uses-license-plate-readers-to-verify...
147•josephcsible•2h ago•168 comments

Printf-Tac-Toe

https://github.com/carlini/printf-tac-toe
104•carlos-menezes•4d ago•11 comments

High fidelity font synthesis for CJK languages

https://github.com/kaonashi-tyc/zi2zi-JiT
41•kaonashi-tyc-01•3d ago•4 comments

Lf-lean: The frontier of verified software engineering

https://theorem.dev/blog/lf-lean/
4•alpaylan•2h ago•0 comments

The Road Not Taken: A World Where IPv4 Evolved

https://owl.billpg.com/ipv4x/
4•billpg•2h ago•0 comments

Returning to Rails in 2026

https://www.markround.com/blog/2026/03/05/returning-to-rails-in-2026/
307•stanislavb•11h ago•190 comments

Big Data on the Cheapest MacBook

https://duckdb.org/2026/03/11/big-data-on-the-cheapest-macbook
246•bcye•5h ago•216 comments

Reliable Software in the LLM Era

https://quint-lang.org/posts/llm_era
82•mempirate•9h ago•26 comments

Apple's MacBook Neo makes repairs easier and cheaper than other MacBooks

https://arstechnica.com/gadgets/2026/03/more-modular-design-makes-macbook-neo-easier-to-fix-than-...
13•GeekyBear•33m ago•2 comments