frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Tech Startups Are Handing Out Free Nicotine Pouches to Boost Productivity

https://www.wsj.com/tech/tech-startups-are-handing-out-free-nicotine-pouches-to-boost-productivit...
1•mattas•4m ago•0 comments

Ask HN: Transition Out of SWE and Regret It

2•t4367•5m ago•0 comments

2026 Delights and Not-So-Delightfuls

https://jakesimonds.leaflet.pub/3mbi4mcd3uk2v
1•jakesimonds•25m ago•0 comments

Einstein Probe detects an X-ray flare from nearby star

https://phys.org/news/2025-12-einstein-probe-ray-flare-nearby.html
2•wglb•28m ago•1 comments

Could OpenAI make a move on Pinterest?

https://seekingalpha.com/news/4536354-could-openai-make-a-move-on-pinterest
1•randycupertino•30m ago•1 comments

Dotnet Source Build Fails in 2026 Due To Date Overflow

https://github.com/dotnet/dotnet/issues/4037
1•csmantle•30m ago•0 comments

Year end sees record borrowing from Fed's standing repo operation

https://www.reuters.com/business/finance/banks-tap-record-liquidity-new-york-feds-standing-repo-f...
2•JumpCrisscross•35m ago•0 comments

A Basic Just-in-Time Compiler

https://nullprogram.com/blog/2015/03/19/
6•ibobev•39m ago•0 comments

Proving Liveness with TLA

https://roscidus.com/blog/blog/2026/01/01/tla-liveness/
2•ibobev•41m ago•0 comments

Apple Vision Pro production reportedly axed, marketing cut by more than 95%

https://www.pcguide.com/news/apple-vision-pro-production-reportedly-axed-despite-newer-m5-model-m...
6•ivewonyoung•42m ago•0 comments

Representing Hierarchies

https://gpfault.net/posts/first-child-next-sibling.html
1•ibobev•43m ago•0 comments

Fanimal Antitrust Lawsuit Against Ticketmaster Claims Startup Was Forced Out

https://www.ticketnews.com/2026/01/fanimal-files-antitrust-lawsuit-against-ticketmaster-claims-st...
2•hnburnsy•48m ago•0 comments

Show HN: I used AI to recreate a $4000 piece of audio hardware as a plugin

4•johnwheeler•49m ago•0 comments

2025: The Year SwiftUI Died

https://blog.jacobstechtavern.com/p/the-year-swiftui-died
1•alwillis•49m ago•0 comments

Uxn/Varvara ecosystem is a personal computing stack

https://100r.co/site/uxn.html
2•doener•53m ago•1 comments

Blaze: A Dec VT420 (and More) Emulator

https://mmastrac.github.io/blaze/
4•doener•55m ago•1 comments

Show HN: Share Claude Code and Codex CLI Transcripts

https://agentexports.com/
1•nicoritschel•56m ago•0 comments

Show HN: SpeakCamera – a surprisingly useful iPhone Shortcut to read text aloud

https://speakmycamera.org/
2•wdpatti•58m ago•0 comments

Google AI Overviews put people at risk of harm with misleading health advice

https://www.theguardian.com/technology/2026/jan/02/google-ai-overviews-risk-harm-misleading-healt...
9•sandebert•1h ago•0 comments

2026 will be the year of on-device agents

1•mycelial_ali•1h ago•1 comments

Looking for Alice

https://www.henrikkarlsson.xyz/p/looking-for-alice
1•noleary•1h ago•0 comments

JMW Turner, more a Buffett than a Jane Street intern

https://www.ft.com/content/e306db7b-7403-4c99-b557-48b42a9eba51
1•hhs•1h ago•0 comments

Albert Einstein's Brilliant Politics

https://www.theatlantic.com/culture/2026/01/albert-einstein-optimistic-politics/685458/
1•fortran77•1h ago•1 comments

Erdos problems solved more or less autonomously by AI

https://mathstodon.xyz/@tao/115788262274999408
1•gmays•1h ago•0 comments

Where AI is headed in 2026

https://foundationcapital.com/where-ai-is-headed-in-2026/
2•gmays•1h ago•0 comments

System Falsification for Efficient Cyber-Kinetic Vulnerability Detection

https://arxiv.org/abs/2511.16765
1•PaulHoule•1h ago•0 comments

New reporting rules end crypto’s tax secrecy era

https://www.pymnts.com/cryptocurrency/2026/new-reporting-rules-end-cryptos-tax-secrecy-era/
2•hhs•1h ago•0 comments

Show HN: Browser in C and Lua for the Playdate Console

https://github.com/remysucre/ORBIT
1•remywang•1h ago•0 comments

NumPy Enhancement Proposal 21: Simplified and explicit advanced indexing

https://numpy.org/neps/nep-0021-advanced-indexing.html
2•dynm•1h ago•0 comments

Life and Death at the County Fair

https://bittersoutherner.com/issue-no-12/life-and-death-at-the-county-fair
2•noleary•1h ago•0 comments
Open in hackernews

Show HN: Stack Error – ergonomic error handling for Rust

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