frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Holy shit holy shit holy shit holy shit: The magnitude of what’s now happening

https://scottaaronson.blog/?p=10379
1442•Kotlopou•13h ago•1256 comments

1Password Security Incident

https://1password.com/blog/update-on-nov-2026-security-incident
1391•lxhrstn•15h ago•587 comments

Lions' Commentary on Unix: Why It Was Secretly Copied for 20 Years

https://fosscomics.com/posts/17.%20Lions%27%20Commentary%20on%20Unix/
73•joonehur•3h ago•9 comments

Much shorter version of GRH Lean verification from Anthropic

https://github.com/lsernau/grh-lean
438•nb-t•10h ago•223 comments

Moat: Your OpenRouter Replacement

https://commandcode.ai/moat
23•amanverasia•2h ago•15 comments

The New York Times warns photographers not to update Photoshop over AI features

https://www.theverge.com/ai-artificial-intelligence/1041227/the-new-york-times-warns-photographer...
357•rmason•11h ago•302 comments

Minipg: PostgreSQL as a Single Executable

https://progrium.github.io/minipg/
107•rguiscard•5h ago•16 comments

Collection of preserved UI style guides

https://aresluna.org/ui-style-guides/
150•sohkamyung•8h ago•16 comments

Tell HN: Lots of Ask HNs again

249•dang•8h ago•91 comments

Show HN: Synth Patch Hero

https://swarkentin.github.io/synth-patch-hero/
29•kaidon•2d ago•7 comments

Slow Ubuntu security response times

https://www.openwall.com/lists/oss-security/2026/11/25/9
278•gslin•12h ago•124 comments

The Great Automatic Grammatizator (By Roald Dahl), 1954 [pdf]

https://gwern.net/doc/fiction/science-fiction/1953-dahl-thegreatautomaticgrammatizator.pdf
80•Michelangelo11•3d ago•21 comments

GPT-6.2 Astra is the first model to beat Googlers' code golf records

https://bjin.github.io/go-codegolf-benchmark/#leaderboard
362•bjin•3d ago•102 comments

What VP ≠ VNP Means (In 3 Minutes)

https://www.friedgil.com/vpvnp
120•vinhnx•1d ago•32 comments

OpenAI cuts GPT-6.2 usage: Astra hits limits 40% faster, Sol 25% faster

https://twitter.com/thsottiaux/status/2125784147889393806
204•Herrera•5h ago•100 comments

Qualcomm's Oryon 3 Reaches the Top

https://chipsandcheese.com/p/qualcomms-oryon-3-reaches-the-top
44•wmf•5h ago•13 comments

Bare Metal Qwen

https://github.com/alesha-pro/llm.asm/tree/main/02-baremetal-os
139•miohtama•10h ago•34 comments

Nfs2root: A 12-year-old pre-auth remote root in the Linux kernel's NFS server

https://opensec.in/blog/nfs2root-cve-2026-99362
133•dm•12h ago•51 comments

How did pinwheel calculators work?

https://blog.coredump.cx/p/how-did-pinwheel-calculators-work
66•surprisetalk•1d ago•6 comments

The history of civilization is the history of wheat

https://asteriskmag.com/issues/16/marginal-grains
21•NaOH•1d ago•0 comments

'Castles' Review

https://www.wsj.com/arts-culture/books/castles-review-playing-defense-da10d776?st=tR9KT4&reflink=...
16•mr_tyzik•1d ago•3 comments

Deploying a payphone on a tiny Pacific Island for fun and zero profit

https://nickvsnetworking.com/deploying-a-payphone-on-a-tiny-pacific-island-for-fun-and-zero-profit/
92•qzervaas•10h ago•12 comments

SSH is a GUI framework

https://zydra.sh/articles/ssh-is-a-gui-framework/
188•teledream•4d ago•92 comments

XKCD and Fourier

https://leancrew.com/all-this/2026/10/xkcd-and-fourier/
47•surprisetalk•1d ago•13 comments

Unconditional Integer Factorization in Subexponential Time

https://github.com/google-research/google-research/tree/4a7bc8ab0bc770e71a259b7966c500496b99010a/...
14•_alternator_•3h ago•1 comments

The polynomial Hirsch conjecture is false [pdf]

https://github.com/openai/math/blob/main/preprints/Superpolynomial-graph-diameter-of-simple-polyt...
152•acossta•15h ago•41 comments

Deriving Black-Scholes

https://david.alvarezrosa.com/posts/deriving-black-scholes/
69•meysamazad•15h ago•46 comments

Can a TV be too large? An investigation

https://techcrunch.com/2026/11/22/can-a-tv-be-too-large-an-investigation/
55•jomon003•3d ago•80 comments

I checked Clojure's core with Lean and found unreported bugs

https://s.conao3.com/blog/2026/e4f733
219•encyclopedism•17h ago•76 comments

Hkust 3D Prints a Titanium Alloy That Keeps Hardening

https://3dprinting.com/news/hkust-researchers-3d-print-a-titanium-alloy-that-keeps-hardening-unde...
35•rbanffy•2d ago•6 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