frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

StackSafe: Taming Recursion in Rust Without Stack Overflow

https://fast.github.io/blog/stacksafe-taming-recursion-in-rust-without-stack-overflow/
13•andylokandy•3d ago

Comments

lionkor•2h ago
Why would I use a bandaid fix like this that has horrible memory usage, when there are crates[1] that allow tail call recursion?

[1] https://docs.rs/tailcall/latest/tailcall/

ameliaquining•2h ago
This works on functions that can't be tail-recursive, like depth-first search.
hotpotat•2h ago
> You must carefully not leaving any recursive functions not annotated with #[recursive]

Isn’t the same true of forgetting #[stacksafe]?

This reminds me of certain Haskell patterns where you selectively make some operations strict instead of lazy for similar reasons. I’m glad this library exists, but I’m sad the Rust compiler itself doesn’t have better support for recursion.

CyberDildonics•42m ago
Why not just use a stack data structure instead of using the call stack as a stack data structure? Each stack frame is going to take up a lot more space than a straight array used as a stack.
Jtsummers•38m ago
You may disagree with their take on it, but they do address that in the write-up.

> This approach works for simple cases but becomes extremely complex or impossible when any of these conditions apply:

> 1. The algorithm transforms data structures rather than just evaluating them (e.g., optimizing an AST)

> 2. Multiple recursive calls need to be coordinated (e.g., tree balancing algorithms)

> 3. The algorithm doesn’t fit the tail-recursion pattern

I would disagree with "impossible" (pretty sure it's never actually impossible, but some type systems and language features may work together to make it so, I suppose), but definitely agree with "extremely complex".

Dumb Pipe

https://www.dumbpipe.dev/
177•udev4096•2h ago•33 comments

Claude Code Is a Slot Machine

https://rgoldfinger.com/blog/2025-07-26-claude-code-is-a-slot-machine/
20•rgoldfinger•1h ago•7 comments

Return of wolves to Yellowstone has led to a surge in aspen trees

https://www.livescience.com/animals/land-mammals/return-of-wolves-to-yellowstone-has-led-to-a-surge-in-aspen-trees-unseen-for-80-years
203•geox•4d ago•112 comments

Linux on Snapdragon X Elite: Linaro and Tuxedo Pave the Way for ARM64 Laptops

https://www.linaro.org/blog/linux-on-snapdragon-x-elite/
205•MarcusE1W•9h ago•134 comments

Beetroot juice lowers blood pressure in older people by changing oral microbiome

https://news.exeter.ac.uk/faculty-of-health-and-life-sciences/beetroot-juice-lowers-blood-pressure-in-older-people-by-changing-oral-microbiome/
117•lightlyused•4h ago•58 comments

Chemical process produces critical battery metals with no waste

https://spectrum.ieee.org/nmc-battery-aspiring-materials
185•stubish•12h ago•16 comments

Hierarchical Reasoning Model

https://arxiv.org/abs/2506.21734
187•hansmayer•9h ago•56 comments

4k NASA employees opt to leave agency through deferred resignation program

https://www.kcrw.com/news/shows/npr/npr-story/nx-s1-5481304
210•ProAm•11h ago•257 comments

High-performance RISC-V processors: UltraRISC UR-DP1000, Zhihe A210, SpacemIT K3

https://www.cnx-software.com/2025/07/22/three-high-performance-risc-v-processors-to-watch-in-h2-2025-ultrarisc-ur-dp1000-zizhe-a210-and-spacemit-k3/
55•fork-bomber•4d ago•7 comments

BlueOS Kernel – Written in Rust, compatible with POSIX

https://github.com/vivoblueos/kernel
43•dacapoday•3d ago•2 comments

Fast and cheap bulk storage: using LVM to cache HDDs on SSDs

https://quantum5.ca/2025/05/11/fast-cheap-bulk-storage-using-lvm-to-cache-hdds-on-ssds/
164•todsacerdoti•13h ago•43 comments

Smallest particulate matter air quality sensor for ultra-compact IoT devices

https://www.bosch-sensortec.com/news/worlds-smallest-particulate-matter-sensor-bmv080.html
130•Liftyee•13h ago•44 comments

The future is not self-hosted, but self-sovereign

https://www.robertmao.com/blog/en/the-future-is-not-self-hosted-but-self-sovereign
113•robmao•12h ago•112 comments

When we get Komooted

https://bikepacking.com/plog/when-we-get-komooted/
357•atakan_gurkan•9h ago•196 comments

Constrained languages are easier to optimize

https://jyn.dev/constrained-languages-are-easier-to-optimize/
41•PaulHoule•7h ago•33 comments

Janet: Lightweight, Expressive, Modern Lisp

https://janet-lang.org
130•veqq•15h ago•60 comments

Book Review: Nixon's Memoirs

https://justismills.substack.com/p/book-review-nixons-memoirs
5•surprisetalk•3d ago•3 comments

A low power 1U Raspberry Pi cluster server for inexpensive colocation (2021)

https://github.com/pawl/raspberry-pi-1u-server
102•LorenDB•4d ago•39 comments

The many, many, many JavaScript runtimes of the last decade

https://buttondown.com/whatever_jamie/archive/the-many-many-many-javascript-runtimes-of-the-last-decade/
5•LinguaBrowse•2h ago•1 comments

Coronary artery calcium testing can reveal plaque in arteries, but is underused

https://www.nytimes.com/2025/07/26/health/coronary-artery-calcium-heart.html
151•brandonb•19h ago•143 comments

Purple Earth hypothesis

https://en.wikipedia.org/wiki/Purple_Earth_hypothesis
267•colinprince•3d ago•71 comments

How we rooted Copilot

https://research.eye.security/how-we-rooted-copilot/
333•uponasmile•1d ago•135 comments

Low cost mmWave 60GHz radar sensor for advanced sensing

https://www.infineon.com/part/BGT60TR13C
116•teleforce•3d ago•44 comments

16colo.rs: ANSI/ASCII art archive

https://16colo.rs/
83•debo_•3d ago•19 comments

Teach Yourself Programming in Ten Years (1998)

https://norvig.com/21-days.html
137•smartmic•19h ago•71 comments

Resizable structs in Zig

https://tristanpemble.com/resizable-structs-in-zig/
141•rvrb•19h ago•67 comments

What went wrong for Yahoo

https://dfarq.homeip.net/what-went-wrong-for-yahoo/
218•giuliomagnifico•22h ago•219 comments

The natural diamond industry is getting rocked. Thank the lab-grown variety

https://www.cbc.ca/news/business/lab-grown-diamonds-1.7592336
253•geox•1d ago•319 comments

Personal aviation is about to get interesting (2023)

https://www.elidourado.com/p/personal-aviation
142•JumpCrisscross•17h ago•120 comments

Implementing dynamic scope for Fennel and Lua

https://andreyor.st/posts/2025-06-09-implementing-dynamic-scope-for-fennel-and-lua/
25•Bogdanp•3d ago•0 comments