frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

McDonald's is quietly ending the era of self-serve soda fountains nationwide

https://www.foxbusiness.com/fox-news-food-drink/mcdonalds-quietly-ditching-popular-in-store-featu...
1•not4uffin•3m ago•0 comments

Scripting on the JVM with Java, Scala, and Kotlin

https://mill-build.org/blog/19-scripting-on-the-jvm.html
1•lihaoyi•3m ago•0 comments

MathNet:30k competition math problems for AI mathematical reasoning benchmarking

https://mathnet.mit.edu/
1•nill0•3m ago•1 comments

JSXGraph – Web-Based Interactive Mathematics Visualisation

https://jsxgraph.uni-bayreuth.de/home/
1•the-mitr•4m ago•0 comments

NetHack 5.0.0 Released

https://nethack.org/common/index.html
1•isaacfrond•10m ago•0 comments

Local Harness Benchmark: Pi Coding Agent vs. OpenCode with Qwen3.6 35B A3B

https://grigio.org/local-harness-benchmark-pi-coding-agent-vs-opencode/
1•grigio•12m ago•0 comments

Show HN: Generate SKILL.md files from URLs, in the browser

https://www.getskillify.dev/
3•lukyvj•12m ago•0 comments

Hanakai: Family of Ruby tools to help you write clearer, more maintainable apps

https://hanakai.org/
2•thunderbong•13m ago•0 comments

My favorite device is a Chromebook, without ChromeOS

https://kokada.dev/blog/my-favorite-device-is-a-chromebook-without-chromeos/
2•birdculture•15m ago•0 comments

The Download: the North Pole's future and humanoid data

https://www.technologyreview.com/2026/04/30/1136713/the-download-north-pole-future-humanoid-data/
1•joozio•15m ago•0 comments

Key Components of a Linux Distribution for AI Agents

https://www.ericburel.tech/blog/agentic-linux-distribution
1•eric-burel•17m ago•0 comments

Swamp Club – Your Agent Builds the Tools, Then Runs Them

https://swamp.club/
1•mpweiher•20m ago•0 comments

Show HN: My "home rig" for iterative attribute-weighted LLM benchmarking

https://github.com/yuvhaim-gif/LLM_InSight
1•yuvalhaim•20m ago•1 comments

Red Alert 2 UI in real life [video]

https://www.youtube.com/watch?v=gvarqqtdcOQ
1•nomilk•26m ago•0 comments

Show HN: Mirror a terminal to your phone – E2E encrypted, peer-to-peer,no daemon

https://github.com/lucarp/terminalsync
1•rafaepta•26m ago•0 comments

Progressive Web Components

https://arielsalminen.com/2026/progressive-web-components/
1•mpweiher•30m ago•0 comments

Show HN: I built Luxury Intel, because every luxury hotel on Google is 4.8

https://luxuryintel.co/
1•minvariance•30m ago•0 comments

Why I Don't Vibe Code

https://jacobharr.is/personal/i-dont-vibe-code
3•signa11•30m ago•1 comments

Jaron Lanier on the Zeitgeist

https://www.youtube.com/watch?v=Vmx3SbgoPZc
1•musha68k•30m ago•0 comments

Postgres by Example

https://github.com/boringcollege/postgres-by-example
1•dariubs•31m ago•0 comments

The Foundations of LLMs, 1943-2026: A Curated Collection of Seminal Papers

https://github.com/joeduffy/foundations-of-llms
2•aragonite•36m ago•1 comments

Everything needs to be open source. Why I decided to open source my project

1•SilverPlate3•37m ago•1 comments

Catch hallucinated, typosquatted, non-canonical dependencies before production

https://github.com/brennhill/sloppy-joe
1•chillax•38m ago•0 comments

Replit: Turn ideas into apps in minutes – no coding needed

https://replit.com/
1•doener•39m ago•0 comments

Emergent: Build Full-Stack Web and Mobile Apps in Minutes

https://app.emergent.sh/landing/
1•doener•40m ago•0 comments

Syllogisms Made Easy

https://www.youtube.com/watch?v=MXRwmOpgqLw
1•pratikdeoghare•42m ago•0 comments

Make your software arch context-ready

https://www.shaylivni.com/blog/make-architecture-context-queryable
1•doshay•43m ago•0 comments

Claude-Code-Proxy – Use Kimi K2.6 and OpenAI Subscriptions in Claude Code

https://github.com/raine/claude-code-proxy
1•rane•44m ago•0 comments

US economy expected to grow above 2% despite recent shocks

https://www.reuters.com/business/us-economy-quite-resilient-should-keep-growing-above-2-feds-powe...
1•latentframe•45m ago•1 comments

Typography vs. Terrorism: Germany's FE-Schrift Font

https://www.core77.com/posts/112537/Typography-vs-Terrorism-Germanys-FE-Schrift-Font
4•Markoff•49m ago•0 comments
Open in hackernews

Show HN: Stack Error – ergonomic error handling for Rust

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