frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Skillbench

https://skillbench.arcade.dev/browse
1•gnanagurusrgs•17s ago•0 comments

Show HN: Forall – Spec-driven AI coding with formal verification

https://github.com/astrio-labs/forall
1•Nolan_Lwin•50s ago•0 comments

Caseway and MiTAC Advance Technology Partner to Bring Trusted AI Intelligence

https://www.suasnews.com/2026/07/caseway-and-mitac-advance-technology-partner-to-bring-trusted-ai...
1•ClearwayLaw•1m ago•1 comments

The Mechanics of ARR Loans

https://lesbarclays.substack.com/p/the-mechanics-of-arr-loans
1•lesbarclays•1m ago•0 comments

DiffGI Differentiable Geometry Images for High-Fidelity Thin-Shell 3D Generation

https://ejshim.github.io/diffgi/
1•throwaway2027•1m ago•0 comments

The Human-in-the-Loop Is Tired

https://pydantic.dev/articles/the-human-in-the-loop-is-tired
2•haritha1313•2m ago•0 comments

Cerebras Built Its Enterprise Knowledge Base

https://www.cerebras.ai/blog/how-we-built-our-knowledge-base
1•haritha1313•3m ago•0 comments

Show HN: Justif – publication-grade text justification for the web

https://justif.lyall.co/
1•lyall•3m ago•0 comments

WTF are modular forms (2024)

https://graemephi.github.io/posts/modular-forms/
1•marysminefnuf•3m ago•0 comments

No Shark Is Safe: Shark Vacuums Are Vulnerable to RCE

https://tokay0.com/posts/millions-of-shark-vacuums-vulnerable-to-rce.html
1•dlgeek•4m ago•0 comments

'Rust makes coding fun again': Greg explains why Linux is moving away from C

https://www.zdnet.com/article/greg-kroah-hartman-linux-kernel-rust/
1•maxloh•9m ago•0 comments

Lingbot-map: A 3D foundation model for reconstructing scenes from streaming data

https://github.com/Robbyant/lingbot-map
1•olalonde•15m ago•0 comments

Alphabet shares fall on Gemini 3.5 Pro delay

https://www.cnbc.com/2026/07/16/alphabet-stock-gemini-3-5-pro-ai.html
3•PessimalDecimal•16m ago•0 comments

DEI Ain't Dead According to New Study

https://www.blackenterprise.com/dei-isnt-dead-companies-still-back-workplace-inclusion/
2•ohjeez•20m ago•0 comments

The Auditor's Opinion

https://www.cringely.com/2026/07/16/the-auditors-opinion/
1•dxs•22m ago•0 comments

Against "Stochastic Terrorism"

https://www.astralcodexten.com/p/against-stochastic-terrorism
1•paulpauper•27m ago•1 comments

Why Legal Personhood Is Neither Necessary nor Sufficient

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7127038
1•paulpauper•27m ago•0 comments

Why is it so difficult (and crazy expensive) to fly within Africa?

https://www.africanistperspective.com/p/why-is-it-so-difficult-and-crazy
2•paulpauper•27m ago•1 comments

ReactBench

https://www.reactbench.com/blog
1•gmays•30m ago•0 comments

Apple's Vision Pro Tool Contains Traces of Defunct Game Engine 'The Machinery'

https://www.macrumors.com/2026/06/23/apple-reality-composer-pro-the-machinery/
4•bananaboy•35m ago•0 comments

AI that builds and runs your business, 24/7

https://www.leapd.ai
2•Cyrus2050•38m ago•3 comments

Xiaomi Opens a 38B World Model Built to Generate Robot Data

https://topicqueue.substack.com/p/xiaomi-opens-a-38b-world-model-built
3•DISCURSIVE•41m ago•0 comments

Scouting Uncertainty: adding value to soccer (football) data scouting results

https://marclamberts.medium.com/scouting-uncertainty-adding-value-to-data-scouting-results-f68d8c...
2•sebg•47m ago•0 comments

The Self-Driving Company

https://twitter.com/amasad/status/2077802290304684404
3•bilsbie•49m ago•0 comments

Why Not HP Printers (2019)

https://productrevue.ca/index.php/2019/04/23/why-not-hp-printers/
3•thisislife2•50m ago•0 comments

Cyberattack at Nichirei leads to food shortages at eateries, stores

https://www.asahi.com/ajw/articles/16731347
4•rawgabbit•52m ago•0 comments

AI Data Centers and the Concentration of Wealth

https://www.schneier.com/blog/archives/2026/07/ai-data-centers-and-the-concentration-of-wealth.html
7•birdculture•1h ago•0 comments

Can AI make honest mistakes?

https://twitter.com/thsottiaux/status/2077630111499882637
3•throwaway2027•1h ago•3 comments

The Rise and Fall of a Tech Company

https://amrshawky.com/posts/rise-and-fall/
6•amr_shawky•1h ago•0 comments

AegisDB – self-hosted memory for AI agents, in one C binary

https://github.com/d4n-larsson/aegisdb
2•d4n-larsson•1h ago•0 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