frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Everything I own, owned

https://schlarp.com/posts/everything-i-own-owned/
125•schlarpc•1h ago•29 comments

How I find problems to solve as a staff engineer

https://lalitm.com/post/find-problems-staff-engineer/
237•vanpra•4h ago•87 comments

Google Workspace thinks my domain is an email provider (2025)

https://blog.elis.cc/articles/google-workspace-thinks-my-domain-is-an-email-provider/
140•el1s7•4h ago•32 comments

Anthropic's best AI model struggles to attract users as cheaper tools thrive

https://www.ft.com/content/5ee49718-c258-4f01-aa32-7e5b76ae5245
126•naves•5h ago•115 comments

My agent.md to improve LLM-assisted code quality

https://fabiensanglard.net/agent.md/index.html
124•ibobev•6h ago•63 comments

AI Chip Architectures

https://www.jepeake.com/ai-chip-architectures
14•Finbarr•21h ago•0 comments

What Is a Harness?

https://earendil.com/posts/what-is-a-harness/
266•tosh•9h ago•128 comments

How Complex Systems Fail (1998)

https://how.complexsystems.fail/
223•shortcrct•8h ago•59 comments

Implementation of GPT-2 in pure CMake

https://github.com/AlpinDale/gpt2.cmake
15•porridgeraisin•2h ago•2 comments

Malware infects Android-based automotive head unit firmware

https://securelist.com/android-head-unit-malware/121106/
199•campuscodi•11h ago•101 comments

My favorite nonfiction books about cults, scams, and schemes

https://bookdna.com/best-books/nonfiction-about-cults-scams-and-schemes
185•bwb•10h ago•64 comments

Why Sal Khan't: On Learning by Making but Teaching by Telling

https://punyamishra.com/2026/04/16/why-sal-khant-on-learning-by-making-but-teaching-by-telling/
122•the-mitr•8h ago•78 comments

A website for debloated open source alternatives

https://debloat.dev/
238•ryanvogel•7h ago•80 comments

Explain it to me like I'm ten

https://timharford.com/2026/08/explain-it-to-me-like-im-ten/
67•bookofjoe•5h ago•30 comments

Decoding silent reading from non-invasive EEG

https://arxiv.org/abs/2608.20186
19•root-parent•3h ago•9 comments

Declarative WebGPU with S-Expressions

https://hugodaniel.com/posts/declarative-webgpu-with-s-expressions/
14•hugodan•3h ago•0 comments

Over 170k Nonprofits Lost All Their Data. Is Microsoft to Blame?

https://slate.com/technology/2026/08/microsoft-software-nonprofit-data-delete.html
142•tchalla•5h ago•60 comments

Wi-Fi 8 is the first wireless upgrade in years that isn't chasing speed

https://www.xda-developers.com/wi-fi-8-first-wireless-upgrade-years-isnt-chasing-speed-home-netwo...
292•taubek•17h ago•230 comments

Rural Village in Spain Is Welcoming Digital Nomads with Open Arms

https://www.cntraveler.com/story/this-rural-village-in-spain-is-welcoming-digital-nomads-with-ope...
10•simonebrunozzi•3h ago•1 comments

The Vibe Tax

https://insufferable.dev/posts/vibe-tax/
94•allisdust•5h ago•72 comments

Kodak DC50 now usable on the Apple II

https://www.colino.net/wordpress/archives/2026/08/23/kodak-dc50-now-usable-on-the-apple-ii/
24•ibobev•7h ago•4 comments

A complex structure on S^6 [pdf]

https://alpo.ge/s6.pdf
40•robinhouston•2h ago•13 comments

AI and Infrastructure Engineering

https://omegion.dev/2026/08/ai-and-infrastructure-engineering/
28•0megion•5h ago•7 comments

Things I want in a modern relational query language

https://sporks.space/2026/08/19/things-i-want-in-a-modern-relational-query-language/
80•zdw•1d ago•77 comments

The planet now has more trees than it did 35 years ago (2018)

https://psmag.com/environment/the-planet-now-has-more-trees-than-it-did-35-years-ago/
34•bookofjoe•2h ago•20 comments

Fable and the end of the free lunch

https://www.dbreunig.com/2026/08/23/fable-the-end-of-moore-s-law.html
96•dbreunig•5h ago•80 comments

Parallel development without the headaches using Git worktree

https://barrd.dev/article/parallel-development-without-the-headaches-using-git-worktree/
5•oogali•2h ago•2 comments

Coconut oil jet fuel matches kerosene's efficiency in engine tests

https://studyfinds.com/coconut-oil-jet-fuel-matches-kerosenes-efficiency-in-engine-tests/
136•mdp2021•8h ago•150 comments

The Remote Work Challenge: Lessons from 5 Cities

https://www.pew.org/en/research-and-analysis/reports/2026/05/the-remote-work-challenge-lessons-fr...
25•softwaredoug•6h ago•9 comments

Death to px, long live ch

https://shkspr.mobi/blog/2026/08/death-to-px-long-live-ch/
58•Brajeshwar•10h ago•41 comments
Open in hackernews

Show HN: Stack Error – ergonomic error handling for Rust

https://github.com/gmcgoldr/stackerror
27•garrinm•1y 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•1y 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•1y 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•1y ago
I still prefer the Anyhow solution, but I like the approach here.
IshKebab•1y ago
Isn't this strictly superior to Anyhow? What do you like more about Anyhow?
rhabarba•1y 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•1y 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•1y ago
Might as well be my limited understanding from what I can read behind the link, to be fair.
garrinm•1y 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•1y 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•1y 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•1y 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•1y 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•1y 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