frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Modalyze – Modal Manager for React

https://github.com/kaundur/modalyze
1•kaundur•4m ago•0 comments

Show HN: Appsec.fi – Interactive AppSec training matched to your stack

https://appsec.fi/en
1•selteo•4m ago•0 comments

TurboQuant: Building a Sub-Byte KV Cache Quantizer from Paper to Production

https://demo.aitherium.com/blog/turboquant-sub-byte-kv-cache-from-paper-to-production
1•wizzense•5m ago•0 comments

Show HN: I made my fitness dashboard public and Apple Health needs an API

https://aka.me/blog/personal-software-to-stay-healthy/
2•pbarondadditude•9m ago•0 comments

I built my first app, here's what I learned / struggled with

https://apps.apple.com/us/app/invested-iq/id6760033371
3•LebDevJB•11m ago•0 comments

ADK for Java 1.0.0: Building the Future of AI Agents in Java

https://developers.googleblog.com/announcing-adk-for-java-100-building-the-future-of-ai-agents-in...
3•mfiguiere•14m ago•1 comments

The Webs Digital Locks Have Never Had a Stronger Opponent

https://blog.pixelmelt.dev/the-webs-digital-locks/
5•pixelmelt•16m ago•0 comments

Show HN: An extremly fast AI-native file manager written in Rust for macOS

https://github.com/vdavid/cmdr
3•orbanlevi•17m ago•0 comments

'Fortnite' developer Epic Games cuts 1k employees in mass layoffs

https://mashable.com/article/fortnite-epic-games-layoffs-job-cuts
3•Bender•17m ago•1 comments

Algorithms as a Tool of Thought (2021) [video]

https://www.youtube.com/watch?v=GZuZgCDql6g&list=PLVFrD1dmDdvdwBa7nPNCjA00m31MkNIlb&index=14
2•tosh•17m ago•0 comments

Agent Runs Code You Never Wrote

https://timbreai.substack.com/p/your-agent-runs-code-you-never-wrote
2•bakibab•19m ago•0 comments

Heerich.js – A tiny engine for 3D voxel scenes rendered to SVG

https://meodai.github.io/heerich/
4•MindGods•20m ago•0 comments

Ask HN: Why not use Codeburg (or Source Hut)?

1•bitbasher•21m ago•3 comments

A Peer-Vetted AI Stack for Builders

https://medium.com/@vishakha041/a-peer-vetted-ai-stack-for-builders-03bb3af8adf5
3•PeterCorless•21m ago•0 comments

Lime (bikes) is a data company

https://ktoya.me/lime-data-company/
3•ktoyame•22m ago•0 comments

Pulsar Fusion Ignites Plasma in Nuclear Rocket Test

https://www.nextbigfuture.com/2026/03/pulsar-fusion-ignites-plasma-in-nuclear-rocket-test.html
4•mpweiher•24m ago•0 comments

Fixing our own problems in the Rust compiler

https://trifectatech.org/blog/fixing-our-own-problems-in-the-rust-compiler/
2•todsacerdoti•24m ago•0 comments

Cookie Consent Management in 2026, Part 1: Overview

https://cloudfour.com/thinks/cookie-consent-management-in-2026-part-1-overview/
3•mooreds•25m ago•0 comments

Spain shuts airspace for US planes involved in Iran war

https://english.aawsat.com/world/5256772-spain-shuts-airspace-us-planes-involved-iran-war
41•vrganj•25m ago•4 comments

Anyone Can Now Buy an Eames House – Sort Of

https://www.dwell.com/article/eames-house-pavilion-system-modular-design-kettal-9aeb4708
3•Kaibeezy•25m ago•0 comments

Measuring AI Ability to Complete Long Software Tasks

http://muratbuffalo.blogspot.com/2026/03/measuring-ai-ability-to-complete-long.html
2•matt_d•25m ago•1 comments

Recover Apple Keychain

https://arkoinad.com/posts/apple_keychain_recovery.html
4•speckx•26m ago•0 comments

OpenGyver – CLI Tool / Claude Code skill that converts anything

https://github.com/create-flow-ai/openGyver
2•brainboi•28m ago•1 comments

Iran Conflict Daily Dashboard

https://www.bcaresearch.com/collection/bcas-iran-conflict-daily-dashboard
2•gmays•29m ago•1 comments

How the shadow fleet is capitalising on the chaos of war

https://ig.ft.com/shadow-fleet/
1•thehoff•29m ago•0 comments

PostgreSQL as a Data Platform: The Missing Piece

https://github.com/grove/pg-trickle
1•grove•32m ago•0 comments

Judge Allows BitTorrent Seeding Claims Against Meta Despite Lawyers Lame Excuses

https://torrentfreak.com/judge-allows-bittorrent-seeding-claims-against-meta-despite-lawyers-lame...
5•t-3•33m ago•3 comments

A Couple Million Lines of Haskell: Production Engineering at Mercury

https://blog.haskell.org/a-couple-million-lines-of-haskell/
2•Vosporos•34m ago•0 comments

DigitalOcean Seeks $800M in Funding

https://www.datacenterdynamics.com/en/news/digitalocean-seeks-800m-in-funding/
9•herbertl•34m ago•0 comments

Congress Trading Dashboard

https://www.quiverquant.com/congresstrading/
2•inaros•35m ago•0 comments
Open in hackernews

Show HN: Stack Error – ergonomic error handling for Rust

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