frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Grifters, cynics, and true believers: The family tree of vaccine opponents

https://arstechnica.com/science/2026/05/grifters-cynics-and-true-believers-the-family-tree-of-vac...
1•rbanffy•1m ago•0 comments

2D Particles sandbox using WebGPU

https://2sandbox.tulv.in/
1•atulvi•1m ago•0 comments

Bubbles: From "tronics" to "dot com" (1999)

https://www.forbes.com/1999/01/14/mu3.html
1•jumploops•1m ago•1 comments

Impossibly rare tropical bird swooped over California. Experts fear a trend

https://www.sfgate.com/california/article/rare-tropical-species-southern-california-22282620.php
1•c420•2m ago•0 comments

Show HN: leaf – one month later: website, releases and lots of improvements

https://leaf.rivolink.mg
1•RivoLink•5m ago•0 comments

Boston Mystery Boom

https://www.wcvb.com/article/did-you-feel-it-viewers-report-hearing-mystery-boom-across/71450011
1•benwhitehead21•6m ago•0 comments

Possible meteor/bolide atmospheric entry east of Boston

https://twitter.com/NStewWX/status/2060792766997655903
1•twoodfin•7m ago•0 comments

Meta is reportedly developing an AI pendant

https://techcrunch.com/2026/05/30/meta-is-reportedly-developing-an-ai-pendant/
1•rishikeshs•9m ago•0 comments

In Pursuit of Understanding the Crash in Me/CFS

https://likeannopeningbandforthesun.substack.com/p/in-pursuit-of-understanding-the-crash
1•brandonb•9m ago•0 comments

Fluid Fire Simulation Sandbox

https://www.escapemotions.com/experiments/fluid_fire_3/
2•Leftium•10m ago•0 comments

Development and validation of a digital biomarker for peripheral artery disease

https://www.nature.com/articles/s41746-026-02655-w
1•brandonb•11m ago•0 comments

Compare AI Model Pricing Across 9 Providers (385 Models)

https://silkdock.ai/rankings
3•aqib-public•11m ago•1 comments

Ernst & Young published cybersecurity report full of hallucinations

https://gptzero.me/investigations/ey
4•smartmic•12m ago•0 comments

Thiel moves family to Milei's libertarian Argentina

https://www.ft.com/content/3d7ab893-1842-4c6c-a3d9-26871d79dde4
1•mmarian•12m ago•1 comments

How Does Google Maps Work? [video]

https://www.youtube.com/watch?v=kS-CGkiPetQ
1•tacon•14m ago•0 comments

People Keep Damaging Garbage Trucks by Throwing Car Batteries in the Trash

https://www.thedrive.com/news/people-keep-throwing-away-car-batteries-in-dumpsters-and-thats-a-re...
2•01-_-•14m ago•0 comments

What the OSS Summit Says About OSS in 2026

https://redmonk.com/sogrady/2026/05/19/oss-summit-2026/
1•mooreds•15m ago•0 comments

United flight diverted to Wisconsin after passenger's attempts to breach cockpit

https://www.cnn.com/2026/05/30/us/united-airlines-unruly-passenger-wisconsin
1•mooreds•16m ago•0 comments

SoftBank pledges €75B to build Europe's biggest AI facility in France

https://www.ft.com/content/1022f9bd-5b6d-44a5-9303-c8b05b8c6463
2•bazzmt•16m ago•1 comments

Getting changes from FusionAuth theme updates

https://fusionauth.io/community/forum/topic/3105/getting-changes-from-theme-updates
1•mooreds•16m ago•0 comments

DHS says it's 'drawing up plans' to ban international arrivals at SFO

https://www.sfgate.com/travel/article/dhs-ban-international-arrival-sfo-22280740.php
4•consumer451•18m ago•0 comments

You don't have a willpower problem. You have a slot machine in your pocket

https://stvrrll1ght.substack.com/
2•maheenahmed•19m ago•0 comments

Cardiopulmonary Exercise Testing Explained for Regular People

https://likeannopeningbandforthesun.substack.com/p/cardiopulmonary-exercise-testing
1•brandonb•21m ago•0 comments

Huawei thanks US for restrictions that supercharged China semiconductor industry

https://www.tomshardware.com/tech-industry/huawei-chairman-thanks-the-us-for-supercharging-chinas...
3•dabinat•21m ago•0 comments

Don't Forget To Flush (2025) [video]

https://www.youtube.com/watch?v=f30PceqQWko
2•tosh•21m ago•0 comments

Cancer jab can eradicate tumours in patients, trial shows

https://www.theguardian.com/science/2026/may/30/cancer-jab-can-eradicate-entire-tumours-in-patien...
2•tosh•23m ago•0 comments

Claude Code vs. Codex: FRA challenge 75746d-2025

https://gist.github.com/joelonsql/c49129b151d7e77fb83250f675ffea07
2•JoelJacobson•26m ago•0 comments

I Ported Pixal3D over to Apple Silicon

https://blog.chillaid.art/posts/porting-pixal3d-one-cursed-kernel-at-a-time
1•pawelma•28m ago•1 comments

Cancer Alley

https://en.wikipedia.org/wiki/Cancer_Alley
3•amarcheschi•28m ago•0 comments

Looking at code behind File Pilot

https://www.youtube.com/watch?v=Ww26eO1WeGQ
1•vjekoslav•29m 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