frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: TFStudio – open-source design and optimization for optical thin films

https://github.com/aai2k/TFStudio
1•aai2k•3m ago•0 comments

Show HN: Kakehashi – Experimental userspace to run macOS binaries on Linux ARM

https://github.com/wie-project/kakehashi
2•vlad_kalinkin•4m ago•1 comments

Show HN: Sprocket – The Best AI Agent for Hardware and Software Development

https://sprocket-demo.spikonado.com
1•amronos•4m ago•0 comments

Catastrophic MoD data breach happened because stuff didn't know how to use excel

https://www.independent.co.uk/news/uk/home-news/afghan-data-breach-superinjunction-defence-report...
2•Teever•4m ago•0 comments

Capital One closed Trump Org's accounts after anti-money laundering probe

https://www.reuters.com/legal/government/capital-one-says-it-closed-trump-organizations-accounts-...
2•speckx•5m ago•0 comments

3D Visualization of E8 Using an H4 Folding Matrix [pdf]

https://www.researchgate.net/profile/J-Gregory-Moxness/publication/281557337_The_3D_Visualization...
1•brandonb•5m ago•0 comments

How to design, build and test small liquid-fuel rocket engines(1967)

https://spacha.github.io/How-to-Rocket/
2•num42•6m ago•0 comments

Rooting, firmware analysis and persistent credentials of TP-Link TL-841N

https://blog.juni-mp4.com/posts/42/rooting-the-tplink-tl841n-pt1/
3•mindracer•11m ago•0 comments

From now on, companies across the EU must be clear about their use of AI

https://digital-strategy.ec.europa.eu/en/policies/regulatory-framework-ai
3•speckx•12m ago•0 comments

GPU Accelerated Genetic Programming for Symbolic Regression – Beagle Framework

https://arxiv.org/abs/2603.12292
1•bane•12m ago•0 comments

Own your family tree with a local-first app

https://purplehoisin.com/own-your-family-tree/
3•fersarr•14m ago•1 comments

Australian booksellers raise alarm over destruction of rare titles to feed AI

https://www.theguardian.com/technology/2026/aug/02/australian-book-sellers-alarm-destruction-rare...
2•Teever•18m ago•0 comments

Chatto Is Robots

https://www.hmans.dev/blog/chatto-is-robots
1•mertbio•19m ago•0 comments

SQL vs. NoSQL: How to Answer This Interview Question in 2026

https://www.thetrueengineer.com/p/sql-vs-nosql-how-to-answer-this-interview
2•andrewstetsenko•20m ago•0 comments

Anthropic's Opus 5 Is Better at Resisting Prompt Injection

https://www.schneier.com/blog/archives/2026/07/anthropics-opus-5-is-better-at-resisting-prompt-in...
1•rustoo•21m ago•0 comments

Leadwerks Game Engine 5.1 Released

https://www.leadwerks.com/community/blogs/entry/2900-better-graphics-and-lower-system-requirement...
1•Josh_Klint•21m ago•0 comments

As Reddit stock falls, CEO questions value of Google's AI Overviews

https://arstechnica.com/ai/2026/08/reddit-ceo-on-ai-overviews-were-still-looking-for-that-win-win/
5•Brajeshwar•21m ago•1 comments

I refuse to bow to our AI overlords

https://grugq.substack.com/p/i-refuse-to-bow-to-our-ai-overlords
3•speckx•22m ago•0 comments

Why I've become interested in aesthetics

https://twitter.com/patrickc/status/2083931939673878592
1•tosh•22m ago•0 comments

iOS 26.6 and macOS Tahoe 26.6 Patch Hundreds of Security Flaws

https://www.macrumors.com/2026/07/27/ios-26-6-security-fixes/
2•akyuu•25m ago•0 comments

Exercise works for depression. So why isn't it treated like real medicine?

https://bigthinkmedia.substack.com/p/exercise-works-for-depression-so
1•wertyk•27m ago•1 comments

The Euler Disc Is the Wrong Shape [video]

https://www.youtube.com/watch?v=ti2qiU_JTUQ
1•num42•28m ago•0 comments

A SR-71 Blackbird Is Now Buried in the Mariana Trench

https://theaviationgeekclub.com/ichiban-wreckage-the-story-of-how-sr-71-blackbird-61-7974-was-rec...
2•situationista•29m ago•0 comments

I Was in the DSA. Here's What They Believe

https://www.thefp.com/p/i-was-in-the-dsa-heres-what-they
1•TimTheTinker•29m ago•0 comments

EU Code of Practice on Transparency of AI-Generated Content (Starting August)

https://digital-strategy.ec.europa.eu/en/policies/code-practice-ai-generated-content
2•tannhaeuser•30m ago•0 comments

Fukushima beach reopens for first time since 2011 quake and nuclear accident

https://www3.nhk.or.jp/nhkworld/en/news/20260802_04/
1•e2e4•31m ago•0 comments

SwitchBot Kata Friends AI Pet Review: Useless If You Don't Pay Up

https://gizmodo.com/switchbot-kata-friends-ai-pet-review-useless-if-you-dont-pay-up-2000789267
1•FiddlerClamp•31m ago•1 comments

Show HN: Rextio – Compile Python code natively using Rust with CPython fallbacks

https://github.com/rextio/rextio
1•rextio•32m ago•0 comments

Show HN: Adept – convert any YouTube playlist into a Udemy-like course

https://withadept.com
1•Sekhmet•33m ago•0 comments

August Is Here: Time Has Come to Label AI Deepfakes

https://read.misalignedmag.com/august-is-here-time-has-come-to-label-ai-deepfakes-2181ad0435ac
1•lcubw•34m ago•1 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