frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Humans were making fire 400k years ago, earlier than thought

https://apnews.com/article/britain-archaeology-fire-neanderthals-evolution-suffolk-3698b87f707ac4...
1•gmays•6m ago•0 comments

C2pm-Color to Pixel Map

1•Yukesh_J•7m ago•0 comments

The snail farm don: The most brazen tax avoidance scheme of all time

https://www.theguardian.com/news/ng-interactive/2025/dec/04/the-long-read-snail-farm-tax-avoidanc...
1•gmays•13m ago•0 comments

Measuring the Adoption of TLS ECH and Its Forebear in the Wild (2022)

https://web.archive.org/web/20250701041935/https://link.springer.com/chapter/10.1007/978-3-031-25...
1•1vuio0pswjnm7•15m ago•0 comments

SpaceX Plans to Go Public. Why?

https://arstechnica.com/space/2025/12/after-years-of-resisting-it-spacex-now-plans-to-go-public-why/
1•wintercarver•16m ago•0 comments

Why Private Equity Buyouts Are Taking the Wheel of Indian Businesses

https://taghash.io/blog/why-private-equity-buyouts-are-taking-the-wheel-of-indian-businesses/
1•koolhead17•16m ago•0 comments

The Word, the Name, the Fire (Book)

https://wordnamefire.com/
1•nuevita70•17m ago•1 comments

How I Streamlined My Development Workflow – A Game Changer for Productivity

1•quchao•34m ago•1 comments

When Money Buys Thinking: A New Day in the Life of Developers

https://tamnd.notion.site/2c74b9c1b50d8049b160f073cf773187
1•tamnd•35m ago•0 comments

Show HN: Record iOS Screen with Gestures Included

https://demoscope.app/#ios
1•admtal•41m ago•0 comments

Show HN: MiddleDrag: Three-finger trackpad gestures for middle-click on macOS

https://github.com/NullPointerDepressiveDisorder/MiddleDrag
1•NullPointerDD•43m ago•1 comments

America's Debanking Witch Hunt Finds No Evil

https://www.bloomberg.com/opinion/articles/2025-12-11/debanking-witch-hunt-finds-no-evildoing-in-...
1•petethomas•47m ago•0 comments

Show HN: I got my site down to 237kb by ditching Google Analytics

https://deadstack.net/
1•dreadsword•47m ago•0 comments

Malware found in the subtitles of a fake Leonardo DiCaprio movie torrent

https://www.bitdefender.com/en-us/blog/labs/fake-leonardo-dicaprio-movie-torrent-agent-tesla-powe...
2•CGMthrowaway•48m ago•1 comments

Monumental snake engravings of the Orinoco River (2024)

https://www.cambridge.org/core/journals/antiquity/article/monumental-snake-engravings-of-the-orin...
1•bryanrasmussen•48m ago•0 comments

Rethinking armed group control (2022)

https://odi.org/en/publications/rethinking-armed-group-control/
1•bryanrasmussen•50m ago•0 comments

Modos open source e-paper monitor development update

https://www.crowdsupply.com/modos-tech/modos-paper-monitor/updates/highlights-certifications-and-...
2•Curiositry•54m ago•0 comments

Untreated sleep apnea raises risk of Parkinson's, study finds

https://medicalxpress.com/news/2025-11-untreated-apnea-parkinson.html
2•PaulHoule•54m ago•0 comments

Gemini model that would train on all gmail

1•orena•55m ago•0 comments

Show HN: Advent of Acro – A frameworkless PHP/JS video advent-calendar

https://advent.vs.digital/
1•schuhwerk•56m ago•0 comments

Google is building an experimental new browser and a new kind of web app

https://www.theverge.com/tech/842000/google-disco-browser-ai-experiment
4•cryptoz•57m ago•1 comments

Show HN: UJAS – An open-source hiring platform (like WordPress for hiring)

https://github.com/gemini45840-cmyk/UJAS
1•jayteetech•1h ago•0 comments

Mark V Shaney

https://en.wikipedia.org/wiki/Mark_V._Shaney
1•djoldman•1h ago•0 comments

Mercury Personal Banking

https://mercury.com/personal-banking
4•gregimba•1h ago•7 comments

Historic Flooding in Western Washington

https://www.kuow.org/stories/go-now-100-000-evacuated-in-historic-skagit-flood
2•measurablefunc•1h ago•0 comments

Mathgpt.today for Discord

https://mathgpt.today/
1•umeedsto•1h ago•1 comments

6.7 Magnitude Earthquake Strikes Off Northeast Japan

https://www.newsweek.com/6-7-magnitude-earthquake-strikes-off-northeast-japan-11199276
3•ls-a•1h ago•1 comments

Rescued at Sea: How Venezuela's Machado Survived the Riskiest Leg of Her Escape

https://www.wsj.com/world/americas/rescued-at-sea-how-venezuelas-machado-survived-the-riskiest-le...
1•petethomas•1h ago•1 comments

Jonathan Blow has spent the past decade designing 1,400 puzzles for you

https://arstechnica.com/gaming/2025/12/jonathan-blow-has-spent-the-past-decade-designing-1400-puz...
3•furcyd•1h ago•0 comments

Show HN: PowerKit for Tmux – 32 Plugins

https://github.com/fabioluciano/tmux-powerkit
1•fabioluciano•1h ago•0 comments
Open in hackernews

Show HN: Stack Error – ergonomic error handling for Rust

https://github.com/gmcgoldr/stackerror
27•garrinm•6mo ago
Stack Error reduces the up-front cost of designing an error handling solution for your project, so that you focus on writing great libraries and applications.

Stack Error has three goals:

1. Provide ergonomics similar to anyhow.

2. Create informative error messages that facilitate debugging.

3. Provide typed data that facilitates runtime error handling.

Comments

tevon•6mo ago
This is awesome! Will give it a try in my next project.

How does it keep track of filename and line number in a compiled binary? I'm fairly new to rust libraries and this doesn't quite make sense to me. I know in JS you need a source-map for minification, how does this work for a compiled language?

fpoling•6mo ago
Rust provides file!, line! and column! macros that expands into a compile-time constants that the compiler embeds then into the executable. This way no source map at runtime is necessary as the relevant errors are constructed from those constants.

Presumably StackError just uses those macros.

But for debugging a source map is still necessary and is a part of various debug formats.

rhabarba•6mo ago
I still prefer the Anyhow solution, but I like the approach here.
IshKebab•6mo ago
Isn't this strictly superior to Anyhow? What do you like more about Anyhow?
rhabarba•6mo ago
I prefer Anyhow's non-intrusiveness: "Result" is still "Result" and all I need is a "?". I agree with Stack Error's documentation that Anyhow can't help with debugging that well, but it's "good enough" in my opinion.
IshKebab•6mo ago
Result in `anyhow::Result` though. It's still a different type. Or do you literally mean you like that it is still spelt the same?

And I think you can still use `?` with this if you don't want to add any context... Not 100% sure on that though.

rhabarba•6mo ago
Might as well be my limited understanding from what I can read behind the link, to be fair.
garrinm•6mo ago
Anyhow still makes things easier for application development. The main drawback is that the resulting error type doesn't implement std::error::Error, so it's not suitable for library development (as pointed out in the anyhow documentation). Stack Error is a bit less ergonomic, but suitable for library development.
shepmaster•6mo ago
I hope to read through your crate and examples later, but if you have a chance, I’d be curious to hear your take on how Stack Error differs from my library, SNAFU [1]!

[1]: https://docs.rs/snafu/latest/snafu/index.html

garrinm•6mo ago
I played around a bit with SNAFU a couple of years ago, but I'm haven't worked deeply with the library so there might well be some features I'm not aware of.

I think SNAFU is more like a combination of anyhow and thiserror into a single crate, rather than Stack Error which leans more heavily into the "turnkey" error struct. Using the Whatever struct, you get some overlap with Stack Error features:

- Error message are co-located.

- Error type implement std::error::Error (suitable for library development).

- External errors can be wrapped and context can easily be added.

Where Stack Error differs:

- Error codes (and URIs) offer ability for runtime error handling without having to compare strings.

- Provides pseudo-stack by stacking messages.

Underlying this is an opinion I baked into Stack Error: error messages are for debugging, not for runtime error handling. Otherwise all your error strings effectively become part of your public interface since a downstream library can rely on them for error handling.

lilyball•6mo ago
If the macros only exist to get file and line information, you could do the same thing by using `#[track_caller]` functions combined with `std::panic::Location` to get that same info. For example, `stack_err!` could be replaced with

  impl StackError {
      #[track_caller]
      fn new_location(msg: impl Display) -> Self {
          let loc = std::panic::Location::caller();
          Self::new(format!("{}:{} {msg}", loc.file(), loc.line()))
      }
  }
such that you call `.map_err(StackError::new_location("data is not a list of strings"))`. A macro is nice if you need to process format strings with arguments (though someone can call `StackError::new_location(format_args!(…))` if they want), but all of your examples show static strings so it's nice to avoid the error in that case.

The use of `std::panic::Location` also means instead of baking that into a format string you could also just have that be an extra field on the error, which would let you expose accessors for it, and you can then print them in your Debug/Display impls.

Speaking of, the Display impl really should not include its source. Standard handling for errors expects that an error prints just itself with Display because it's very common to recurse through sources and print those, so if Display prints the source too then you're duplicating output. Go ahead and print it on Debug though, that's nice for errors returned from `main()`.

garrinm•6mo ago
Thanks for the insight, I wasn't aware of `track_caller`. I'll definitely be looking into this. I was scratching my head trying to figure out how to make file and line number usage consistent and customizable, this looks like the answer!

You're also right that this will pretty much eliminate the need for macros.

That's also a very key insight about Display vs. Debug printing. I'll be looking into that as well.

Thank you for the thoughtful reply.

DavidWilkinson•6mo ago
Dei here, from the team behind Error Stack [1] (a similarly named existing, context-aware error-handling library for Rust that supports arbitrary attachments). How does Stack Error, here, compare?

[1]: https://crates.io/crates/error-stack