frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Detecting browser extensions for bot detection, lessons from LinkedIn and Castle

https://blog.castle.io/detecting-browser-extensions-for-bot-detection-lessons-from-linkedin-and-c...
1•avastel•12m ago•0 comments

"The Jessica Case" –how a Lockheed Starfighter delivered a life-saving drug(Ger)

https://www.austrianwings.info/2022/01/der-fall-jessica-wie-ein-lockheed-starfighter-ein-lebensre...
2•schaum•13m ago•0 comments

Ask HN: Why does Google still provide an open redirect for phishers?

2•throwaway89201•13m ago•0 comments

Estimates Take Longer Than Expected: Parkinson's and Hofstadter's Laws

https://read.perspectiveship.com/p/planning-laws
1•birdculture•15m ago•0 comments

Wireheading Done Right

https://qri.org/blog/wireheading-done-right
1•eatitraw•15m ago•0 comments

In-browser autocomplete for entries with Radix Tries

https://aarol.dev/posts/wasm-trie-autocomplete/
1•aarol•17m ago•0 comments

ChatGPT Voice While Driving

1•smarri•17m ago•0 comments

Ask HN: Thoughts on maintaining anonymity against state-level actors?

2•adamanteye•21m ago•0 comments

Goatmire Elixir 2026 Announced

https://underjord.io/goatmire-2-announced.html
1•lawik•22m ago•0 comments

The hunt for a stolen Jackson Pollock – and answers to a family's pain

https://www.washingtonpost.com/entertainment/art/interactive/2026/jackson-pollock-theft-isaacs-fa...
2•prismatic•22m ago•0 comments

We asked four AI coding agents to rebuild Minesweeper–the results were explosive

https://arstechnica.com/ai/2025/12/the-ars-technica-ai-coding-agent-test-minesweeper-edition/
2•keyle•24m ago•0 comments

What Would AI Do?

https://www.amazon.com/dp/B0F99PJ7YK
1•jjuliano•27m ago•0 comments

Vespa.ai Blog: Embedding Tradeoffs, Quantified

https://blog.vespa.ai/embedding-tradeoffs-quantified/
1•goinglong•32m ago•0 comments

Show HN: A browser-based evolutionary simulation with emergent behavior

https://soupof.life/
1•maybe-tomorrow•35m ago•0 comments

Agent Skills are now available in Google Antigravity

https://antigravity.google/docs/skills
1•pretext•35m ago•0 comments

Iran Jamming of Starlink and Ways to Overcome Jamming

https://www.nextbigfuture.com/2026/01/iran-jamming-of-starlink-and-ways-to-overcome-jamming.html
1•ensocode•39m ago•0 comments

Show HN: Serverless GraphQL analytics framework for AWS

https://github.com/acikelli/oc-graphql
1•oacikelli•43m ago•0 comments

My parenting screen time philosophy

https://mikemcquaid.com/my-parenting-screen-time-philosophy/
1•wrxd•44m ago•0 comments

Pentagon Reportedly Testing Radio Wave Device Linked to 'Havana Syndrome'

https://www.scientificamerican.com/article/pentagon-reportedly-testing-radio-wave-device-linked-t...
2•beardyw•45m ago•0 comments

How to make users know that this is the heartopia wiki website they need?

https://www.heartopia-tips.com/
1•pacewang•45m ago•0 comments

CoreWeave Hid Data Center Delays, Investors Say

https://www.law360.com/articles/2429441/coreweave-hid-data-center-delays-investors-say
1•zerosizedweasle•47m ago•0 comments

Popular Python Libraries Used in Hugging Face Models

https://www.theregister.com/2026/01/13/ai_python_library_bugs_allow/
1•jruohonen•50m ago•1 comments

I Manage My Personal Infrastructure in 2026

https://taoofmac.com/space/blog/2026/01/09/1900
2•rcarmo•51m ago•0 comments

AI as Entertainment

https://arxiv.org/abs/2601.08768
2•50kIters•51m ago•1 comments

Sargasso Sea

https://en.wikipedia.org/wiki/Sargasso_Sea
2•thunderbong•53m ago•0 comments

Better `pre-commit`, re-engineered in Rust

https://github.com/j178/prek
2•vismit2000•53m ago•0 comments

Show HN: Drop The Adverb – Replace weak verb+adverb pairs

https://droptheadverb.com
1•ClozeLine•54m ago•1 comments

How to De-Risk from America

https://www.ft.com/content/331ec18b-9960-4954-8728-f2ff5bb5ee7b
5•KnuthIsGod•54m ago•2 comments

WordPress as a Headless CMS: A Production-Ready Plugin Stack

https://nesmachny.com/post/my-wordpress-stack-for-headless
1•taubek•54m ago•0 comments

Scott Adams, 'Dilbert' Creator, Dies at 68

https://variety.com/2026/artisans/people-news/scott-adams-dead-dilbert-creator-1236630162/
2•Rant423•58m ago•0 comments
Open in hackernews

Show HN: Stack Error – ergonomic error handling for Rust

https://github.com/gmcgoldr/stackerror
27•garrinm•8mo 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•8mo 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•8mo 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•8mo ago
I still prefer the Anyhow solution, but I like the approach here.
IshKebab•8mo ago
Isn't this strictly superior to Anyhow? What do you like more about Anyhow?
rhabarba•8mo 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•8mo 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•8mo 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•8mo 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•8mo 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•8mo 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•8mo 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