frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

YouTube Drums [video]

https://www.youtube.com/watch?v=8IJx6rl9he8
1•convict•5m ago•0 comments

Krenov's Hand Planes

https://www.thekrenovfoundation.org/krenov100/hand-planes
1•tosh•5m ago•0 comments

French computer museum Aconit could dissapear

https://france3-regions.franceinfo.fr/auvergne-rhone-alpes/isere/grenoble/2700-ordinateurs-et-mac...
2•zoobab•5m ago•0 comments

Has AI just cracked Internet encryption? Rumoured 'bombshell' stuns scientists

https://www.nature.com/articles/d41586-026-03875-6
3•DitheringIdiot•10m ago•1 comments

Tw-origin/tw-framework has 138,819 lines of code – SLOC report by OctoCounts

https://octocounts.com/github/tw-origin/tw-framework/commit/ec95dc862aa34cdacae455087ab813482f3fb...
1•tw_mrmk•13m ago•0 comments

Thomas L. Friedman author talks of AI as a "new species." [video]

https://www.youtube.com/shorts/6pZeJ0ZUz2I
1•rbanffy•13m ago•0 comments

Google Antigravity ACP using "custom-agent" consumes 4x quota per token

https://github.com/google-antigravity/antigravity-cli/issues/1890
1•bloopernova•16m ago•0 comments

Minimum Square Partridge Packing with MiniZinc

https://zayenz.se/blog/post/minimizing-partridge-packing/
1•mzl•19m ago•0 comments

SuperStation One: FPGA gaming console

https://retroremake.co/pages/superstation%E1%B5%92%E2%81%BF%E1%B5%89
1•measurablefunc•19m ago•0 comments

Scarlet: An AI video editor for macOS and Windows

https://github.com/Forward-Future/scarlet
2•7777777phil•23m ago•0 comments

1M Data Centers in Space: Why the FCC Approved Elon Musk's Idiotic Ideas

https://emeraldbook.org/news/nov-2726/
2•BerislavLopac•28m ago•0 comments

Rail Cube in Prolog

https://chen.cat/prolog/railcube/
1•triska•29m ago•0 comments

How to Improve When You're Stuck at 'Just OK'

https://brandongustafson.me/ok-plateau/
1•acqbu•34m ago•0 comments

Domes

https://www.shelterpub.com/domes
1•tosh•34m ago•0 comments

Chart of the Day: Jevons Losing Juice as Token Spend Flatlines

https://paulkedrosky.com/chart-of-the-day-jevons-losing-juice-as-token-spend-flatlines/
2•u1hcw9nx•36m ago•0 comments

Guys, a Help for You

https://themeforge.page.gd/
1•Dumasha05•36m ago•0 comments

LTX-2.5 at 4K, in half the time

https://www.doubleai.com/research/maxwell-ltx-2-5-4k-in-half-the-time
1•NeuralOracle•39m ago•0 comments

Show HN: Yavc.App (Yet Another Vibe-Coded App)

https://yavc.app/
1•paulmooreparks•52m ago•0 comments

Leading AI models are biased against certain accents

https://www.washington.edu/news/2026/11/04/ai-models-are-biased-against-certain-accents/
3•giuliomagnifico•53m ago•1 comments

Sex in Britain has changed significantly, especially among young people

https://www.ucl.ac.uk/news/2026/nov/sex-britain-has-changed-significantly-especially-among-young-...
2•giuliomagnifico•56m ago•0 comments

AI Agents Livestream Their Assault on P=NP

https://pequalnp.com/pnp/live
1•extasetoi12•57m ago•0 comments

NOAA Found a Fish Sitting in a Brine Pool at the Bottom of the Gulf [video]

https://www.youtube.com/watch?v=i9J1EmGTezk
1•zeristor•59m ago•1 comments

The Monumental Achievement of the Stanford Encyclopedia of Philosophy

https://www.newyorker.com/culture/annals-of-inquiry/the-monumental-achievement-of-the-stanford-en...
1•rbanffy•1h ago•0 comments

Counting "Go" on Hacker News, using a Jev-like decision model

https://github.com/ianTPE/hn-topic-race/blob/main/docs/counting-go.md
1•iantpe•1h ago•1 comments

Welcome to Soviet Union 2.0, comrade

https://nibblestew.blogspot.com/2026/11/welcome-to-soviet-union-20-comrade.html
2•ibobev•1h ago•1 comments

Satmux: 3.6x faster inflight Wi-Fi via BBR TCP multiplexing

https://github.com/Th0rgal/satmux
3•joshcsimmons•1h ago•0 comments

Schneier: Tracking incidents of hacking using AI tools

https://www.schneier.com/blog/archives/2026/11/tracking-incidents-of-hacking-using-ai-tools.html
2•thamiltonsmith•1h ago•0 comments

Show HN: Nuv1, a real time animated character on ESP32-S3 board

https://nuv1.com/
1•NuvolaProject•1h ago•0 comments

Can I use QEMU untrusted?

1•logicallee•1h ago•0 comments

Why optimistic UI updates are corrosive

https://datastar-instant-intent.ndyg.cross.stream/corrosive/
2•fanf2•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