frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Papertrails – Your personalized feed of new research papers

https://www.papertrails.app/
1•eagrwl•16s ago•0 comments

Show HN: Dedoomify – AI news, minus the doom

https://dedoomify.com/
1•akshayp29•23s ago•0 comments

Do 9/10 new AI SaaS websites seem like they should be an editor command to you?

1•Kevin_Flynn•53s ago•0 comments

AMD: Where we're going we don't need (as much) DRAM

https://www.theregister.com/systems/2026/11/11/amd-where-were-going-we-dont-need-as-much-dram/530...
1•gsky•53s ago•0 comments

No employees and prototypes within days: AI agents supercharge startups

https://www.ft.com/content/d338594b-ca66-418a-9884-8f562a175fed
1•bookofjoe•1m ago•1 comments

The Making of a Startup Simulator

https://foundrs.com/the-making-of-a-startup-simulator.html
1•alain94040•1m ago•0 comments

A Modular Cluster Controller for Burst Autoscaling and Graceful Reconfiguration

https://materialize.com/blog/a-modular-cluster-controller-for-burst-autoscaling-and-graceful-reco...
1•pranshum•1m ago•0 comments

Pharmaceutical advertising and drug recommendations by consumer-facing AI

https://www.sciencedirect.com/science/article/pii/S2589750026001378?via%3Dihub
1•PaulHoule•4m ago•0 comments

Full Stack Washing

https://thishollow.earth/posts/essays/environmental_service_provider_consolidation_winning_combo/
1•arjenvrielink•4m ago•0 comments

Schools in Italy, Scotland and Ireland receive bomb threats

https://www.ft.com/content/7bbc0a5e-b7e2-4a3f-874f-a63de94e922d
1•Geekette•5m ago•1 comments

Fine-tune a model on your org's data

https://cadreen.com/training
1•NkenuTimothy•5m ago•0 comments

North Korea posts revised constitution dropping reunification goal

https://www.upi.com/Top_News/World-News/2026/11/11/North-Korea-revised-constitution-reunification...
2•GaryBluto•6m ago•0 comments

Meta, TikTok join Google to push back on Indonesia's AI copyright law revisions

https://www.reuters.com/legal/litigation/meta-tiktok-join-google-push-back-indonesias-planned-ai-...
1•onemoresoop•6m ago•0 comments

In Memoriam: Tim Peters 1952–2026

https://lwn.net/Articles/1106901/
2•lumpa•7m ago•1 comments

British Telecom delays Starlink partnership amid recent Ukrainian disruption

https://www.datacenterdynamics.com/en/news/bt-delays-starlink-partnership-amid-recent-ukrainian-d...
1•giuliomagnifico•7m ago•0 comments

An Agent Multiplext is not all you need

https://markhalstrom.com/posts/an-agent-multiplexer-is-not-all-you-need/
1•biggestriverman•8m ago•0 comments

State of Haskell Survey

https://haskell.foundation/news/2026-10-30/state-of-haskell-2026.html
1•cosmic_quanta•8m ago•1 comments

Danbooru Hacked by a Malicious Flash Upload Worm

https://danbooru.donmai.us/forum_topics/38685.html
1•S0y•8m ago•0 comments

Do unquantized audio embeddings break autoregressive LLM template lock-in?

https://github.com/luchtan-GIT/m4r-data
1•music4robots•15m ago•0 comments

Launch HN: Pomerado (YC F26) – Turn any website into an MCP for agents

2•alanjm23•15m ago•0 comments

Phoenix Grove Systems

https://pgsgrove.com
1•Multicomp•15m ago•1 comments

Word Tree to visualize structure in a body of text

https://www.jasondavies.com/wordtree/
1•idbnstra•15m ago•0 comments

Show HN: Sonamu – Tree-Based Wayland Compositor

https://github.com/mathkimchi/sonamu/
1•lyuhdev•17m ago•0 comments

Node.js Security Release

https://nodejs.org/en/blog/release/v26.13.1
1•tilt•17m ago•0 comments

BehaviorGPT-v4: One large behavioral model that transfers zero-shot

https://research.unboxai.com/introducing-behaviorgpt-v4.html
4•rgabrielsson•17m ago•1 comments

Performance evolution of route lookup on Linux

https://vincent.bernat.ch/en/blog/2026-linux-performance-ipv4-ipv6-route-lookup
1•birdculture•19m ago•0 comments

Why Should Managers Exist?

https://www.amplifypartners.com/blog-posts/why-should-managers-exist
2•sachben91•19m ago•1 comments

Oxford Molecular Motors

https://www.physics.ox.ac.uk/research/group/oxford-molecular-motors/research/bacterial-flagellar-...
1•handfuloflight•21m ago•1 comments

Tech Allies Rally Behind Jensen Huang, Calling Him Vital in A.I. Race

https://www.nytimes.com/2026/11/11/technology/jensen-huang-affair-nvidia-support.html
6•sjs382•21m ago•0 comments

India ordered website takedowns on fake court orders, police launch probe

https://www.reuters.com/world/india-ordered-website-takedowns-fake-court-orders-reuters-finds-pol...
1•comebhack•21m 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