frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Why do developers choose one programming language over another? (2002)

https://web.archive.org/web/20020803183731/http://www.joelonsoftware.com/news/20020505.html
1•tosh•2m ago•0 comments

Show HN: FOSS sandbox platform that hides infra secrets from devs and AI agents

https://github.com/octelium/cordium
1•geoctl•3m ago•0 comments

Pandas vs. DuckDB vs. Polars: 20M rows, 10 operations, benchmarked

https://thedatabytes.substack.com/p/pandas-vs-duckdb-vs-polars-i-ran
1•badhayaru•4m ago•0 comments

The Emerging AI Governance Space

https://www.threedeep.tech/ai-governance-stack
1•ethigent•4m ago•0 comments

Show HN: Criterion Closet as a website – pull any of 1,247 films off the shelf

https://the-criterion-closet.vercel.app
1•olievans•4m ago•0 comments

The Agentic Resource Discovery Specification

https://developers.googleblog.com/announcing-the-agentic-resource-discovery-specification/
2•simonpure•7m ago•0 comments

Gotique – AI that gives a first-read appraisal on antiques from photos

https://gotique.ai/en/community
2•gotique•9m ago•0 comments

Five Worlds (2002)

https://www.joelonsoftware.com/2002/05/06/five-worlds/
2•tosh•11m ago•0 comments

Two production Next.js apps, built solo with Cursor+Claude, $13,945

https://technicalstrat.com/articles/enterprise-app-vibecode-recipe
3•matttek•12m ago•0 comments

Getting over Your Skills Issues

https://theoryvc.com/blog
2•sambcui•15m ago•0 comments

India Calls in Military, Blocks Telegram App to Lock Down College-Entrance Exam

https://www.wsj.com/world/india/india-calls-in-military-blocks-app-to-lock-down-college-entrance-...
4•bookofjoe•16m ago•1 comments

Changes that cut our LLM pipeline costs more than model-switching did

2•Abbas_Maka•17m ago•0 comments

Ag.ide Index, rank, and refactor your repo's worst code

https://agide.dev/
2•navs•17m ago•0 comments

Most Affordable Cities to Buy a Home

https://wallethub.com/edu/most-affordable-cities-for-home-buyers/121950
4•panny•37m ago•2 comments

Convert your landing pages to powerful visuals for social media

3•umeshmr•38m ago•0 comments

The IPv4 Parser AI Couldn't Have Written

https://extractingcycles.com/blog/the-ipv4-parser-ai-couldnt-have-written/article/
4•csno•39m ago•0 comments

The ERoadBook – Rally-Inspired GPS Device for Riders and Adventurers [video]

https://www.youtube.com/watch?v=1KoQ-l3-tg8
3•arbayi•39m ago•0 comments

The Music Industry is broken (by Drew Gooden) [video]

https://www.youtube.com/watch?v=Yx7baJMQuVA
2•Imustaskforhelp•41m ago•0 comments

Longterm use of intracortical brain–computer interface for speech&cursor control

https://www.nature.com/articles/s41591-026-04414-6
3•bookofjoe•48m ago•0 comments

Looking Ahead to Postgres 19

https://www.snowflake.com/en/blog/engineering/postgresql-19-features-beta/
2•plaur782•48m ago•0 comments

How Russia's Skyfall Nuclear-Powered Cruise Missile Works

https://www.twz.com/nuclear/here-how-russias-skyfall-nuclear-powered-cruise-missile-actually-works
4•pcestrada•50m ago•0 comments

Using an iPad Pro as a Laptop

https://justingarrison.com/blog/2026-06-20-ipad-laptop/
3•wrxd•50m ago•1 comments

A 3D cube written in JSX and CSS running natively at 60 FPS on a $3 MCU [video]

https://www.youtube.com/watch?v=pC3kNSWaL18
1•arbayi•52m ago•0 comments

The Early Days: The History of Interactive Computing

https://obsolescence.dev/interactive-computing-history.html
1•rbanffy•53m ago•0 comments

A Microsoft product from June 1979 led to the IBM PC

https://dfarq.homeip.net/how-a-microsoft-product-from-june-1979-led-to-the-ibm-pc/
1•rbanffy•54m ago•0 comments

Scheduled Tasks in ChatGPT

https://help.openai.com/en/articles/10291617-scheduled-tasks-in-chatgpt
1•khutorni•56m ago•0 comments

Show HN: AlphaVibe – AI that reads your DeFi wallet live via DeBank

https://quantarena.xyz/
2•denis4inet•56m ago•0 comments

"China Outpacing Us on AI": Why Musk Bought an Autonomous Coding Startup

https://en.sedaily.com/technology/2026/06/20/china-outpacing-us-on-ai-why-musk-bought-an-autonomous
2•modinfo•56m ago•0 comments

Claude Guillemot Ubisoft Co-Founder Dead in Plane Crash

https://www.thegamer.com/ubisoft-co-founder-claude-guillemot-dead/
5•Animatronio•56m ago•0 comments

Our billing pipeline was suddenly slow. A hidden bottleneck in ClickHouse

https://blog.cloudflare.com/clickhouse-query-plan-contention/
3•tosh•59m 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