frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Box to Save Memory in Rust

https://dystroy.org/blog/box-to-save-memory/
26•emschwartz•3d ago

Comments

krautsauer•44m ago
Box<str> or Box<&str> might also have been usable routes. (example: https://play.rust-lang.org/?version=stable&mode=debug&editio... )
stebalien•33m ago
Box<str> is still two words (length and pointer). That's better than the 3 words (length, pointer, capacity) for strings, but Box<String> is one word (not including the heap allocation).
mstange•29m ago
Are there any tools that help finding these kinds of things? Like a profiler that says "80% of the allocated bytes are objects of this type, with 95% of those having that field set to None"
gizmo686•9m ago
The closest I am aware of is clippy (`cargo clippy` in a standard Rust project will run it with default configurations).

Clippy is essentially a linter; and one of its checks catches cases where different enum variants have a significantly different size; with a suggestion to Box the larger variant.

Since this is just a linter, it doesn't actually have any knowledge of how frequently each variant is actually used. It also doesn't address the situation in the article at all.

I bought Friendster for $30k – Here's what I'm doing with it

https://ca98am79.medium.com/i-bought-friendster-for-30k-heres-what-i-m-doing-with-it-d5e8ddb3991d
259•ca98am79•3h ago•131 comments

Fast16: High-precision software sabotage 5 years before Stuxnet

https://www.sentinelone.com/labs/fast16-mystery-shadowbrokers-reference-reveals-high-precision-so...
114•dd23•3h ago•34 comments

Sawe becomes first athlete to run a sub-two-hour marathon in a competitive race

https://www.bbc.com/sport/athletics/articles/crm1m7e0zwzo
197•berkeleyjunk•3h ago•130 comments

Two Athletes Break Sub-2-HR Marathon in Adizero Adios Pro Evo 3

https://news.adidas.com/running/two-adidas-athletes-sabastian-sawe-and-yomif-kejelcha-break-the-s...
47•canucker2016•3h ago•34 comments

Box to Save Memory in Rust

https://dystroy.org/blog/box-to-save-memory/
27•emschwartz•3d ago•4 comments

Butterflies are in decline across North America, a look at the Western Monarch

https://www.smithsonianmag.com/science-nature/butterflies-are-in-dramatic-decline-across-north-am...
89•1659447091•2h ago•25 comments

Show HN: AI memory with biological decay (52% recall)

https://github.com/sachitrafa/YourMemory
47•SachitRafa•3h ago•20 comments

Magic: The Gathering took me from N2 to Japanese fluency

https://www.tokyodev.com/articles/how-magic-the-gathering-took-me-from-n2-to-japanese-fluency
70•pwim•3d ago•21 comments

AI should elevate your thinking, not replace it

https://www.koshyjohn.com/blog/ai-should-elevate-your-thinking-not-replace-it/
227•koshyjohn•4h ago•189 comments

SWE-bench Verified no longer measures frontier coding capabilities

https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/
231•kmdupree•10h ago•136 comments

Running Bare-Metal Rust Alongside ESP-IDF on the ESP32-S3's Second Core

https://tingouw.com/blog/embedded/esp32/run_rust_on_app_core
17•MrBuddyCasino•2d ago•2 comments

XOXO Festival Archive

https://xoxofest.com/
34•surprisetalk•2d ago•3 comments

MoQ Boy

https://moq.dev/blog/moq-boy/
28•mmcclure•3h ago•3 comments

Show HN: Startup Equity Adventure Game

https://options-game-polymathrobotics.pythonanywhere.com/
9•iliabara•1h ago•4 comments

Clay PCB Tutorial

https://feministhackerspaces.cargo.site/Clay-PCB-Tutorial
186•j0r0b0•8h ago•118 comments

The Visible Zorker: Zork 1

https://eblong.com/infocom/visi/zork1/
90•PLenz•7h ago•14 comments

An AI agent deleted our production database. The agent's confession is below

https://twitter.com/lifeof_jer/status/2048103471019434248
395•jeremyccrane•7h ago•548 comments

Show HN: Tiao, A two-player turn-based board game

https://playtiao.com
17•trebeljahr•3h ago•3 comments

The Last of the Lost Generation

https://porticoquarterly.com/book/the-last-of-the-lost-generation/
5•benbreen•1d ago•1 comments

The 1944 Warsaw Uprising, in Color

https://www.barwypowstania.pl/
107•keiferski•4h ago•42 comments

Statecharts: hierarchical state machines

https://statecharts.dev/
270•sph•14h ago•77 comments

Show HN: Free textbook on engineering thermodynamics

https://thermodynamicsbook.com/
95•2DcAf•8h ago•28 comments

GoDaddy gave a domain to a stranger without any documentation

https://anchor.host/godaddy-gave-a-domain-to-a-stranger-without-any-documentation/
513•jamesponddotco•7h ago•203 comments

Dear friend, you have built a Kubernetes (2024)

https://www.macchaffee.com/blog/2024/you-have-built-a-kubernetes/
67•Wingy•2d ago•105 comments

Chernobyl Wildlife Forty Years On

https://www.bbc.com/future/article/20260424-chernobyl-wildlife-forty-years-on
22•reconnecting•4h ago•0 comments

Orinoco: Young Generation Garbage Collection

https://v8.dev/blog/orinoco-parallel-scavenger
32•plow-tycoon•3d ago•4 comments

Dillo Browser Release 3.3.0

https://dillo-browser.org/release/3.3.0/
145•rodarima•6h ago•24 comments

Asahi Linux Progress Linux 7.0

https://asahilinux.org/2026/04/progress-report-7-0/
586•elisaado•13h ago•275 comments

Show HN: Turning a Gaussian Splat into a videogame

https://blog.playcanvas.com/turning-a-gaussian-splat-into-a-videogame/
201•yak32•3d ago•47 comments

Why has there been so little progress on Alzheimer's disease?

https://freakonomics.com/podcast/why-has-there-been-so-little-progress-on-alzheimers-disease/
406•chiefalchemist•23h ago•281 comments