frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

A Prescription for Fixing the Prevailing Wage System [pdf]

https://ifp.org/wp-content/uploads/IFP_Prevailing_Wage_Experience_Benchmarking.pdf
1•rustoo•1m ago•0 comments

Neural surrogate experiments for physics simulation, automated with Opus and Cod

https://blog.1001ud.me/technical/experimental/physics-ml/neural-surrogates
1•lekan_digital•2m ago•0 comments

Benchmarking a Bug Scanner

https://blog.detail.dev/posts/bug-scanner/
1•drob•3m ago•0 comments

3D Tic Tac Toe

https://apps.apple.com/at/app/3d-ttt/id6763501981
1•franze•4m ago•1 comments

Silicon Valley Is Bracing for a Permanent Underclass

https://www.nytimes.com/2026/04/30/opinion/ai-labor-work-force-silicon-valley.html
1•reducesuffering•4m ago•0 comments

We Built AI Agents That Think, Shop, and Choose Like Real Consumers

https://sediman.com/research/ai-agents-consumer-research
1•JasonHEIN•4m ago•0 comments

You've Got (Too Much) Mail: Behind the Scenes of the 3/25/26 Voice Outage

https://discord.com/blog/behind-the-scenes-of-the-3-25-26-voice-outage
1•cyndunlop•5m ago•0 comments

Riviera – A Reverb plugin for DAWs that you can demo in the browser

https://riviera-demo.surge.sh/
1•stagas•6m ago•0 comments

U.S. Senators Vote to Ban Themselves from Trading on Prediction Markets

https://www.wsj.com/politics/policy/senators-vote-to-ban-themselves-from-trading-on-prediction-ma...
5•kamaraju•7m ago•0 comments

The debt crisis could cost average US household $18k/year

https://fortune.com/2026/04/30/national-debt-today-crisis-solutions-tax-brookings/
2•littlexsparkee•8m ago•1 comments

With AI, Your Internet History Is Attributable to You Personally

https://thecarrierwave.substack.com/p/with-ai-your-entire-internet-history
1•23j423j423hj•8m ago•0 comments

Belgium seeks nationalization of nuclear power plants

https://www.dw.com/en/belgium-seeks-nationalization-of-nuclear-power-plants/a-76993170
1•rustoo•9m ago•0 comments

LinkedIn scans for 6,278 extensions and encrypts the results into every request

https://404privacy.com/blog/linkedin-is-scanning-your-browser-extensions-this-is-how-they-use-the...
1•un-nf•9m ago•1 comments

How I built an Autonomous AI Agent team that runs 24/7

https://twitter.com/Saboo_Shubham_/status/2022014147450614038
1•rmason•10m ago•0 comments

Chernobyl, 40 Years Later

https://nautil.us/chernobyl-40-years-later-1280322
1•Brajeshwar•10m ago•0 comments

The HIPAA Violations Hiding in Your Team's Browser History

https://threegates.ai/blog/hipaa-violations-hiding-in-browser-history/
2•rndkeithw•10m ago•0 comments

Remix 3 Beta Preview

https://remix.run/blog/remix-3-beta-preview
2•pspeter3•14m ago•0 comments

Agentic Coding Is Burning Me Out – Sid's Blog

https://0xsid.com/blog/agentic-coding-fatigue
3•evo_9•14m ago•0 comments

CIA Ran MK-Ultra Experiments on Prisoners of War in Custody, Declassified Docs

https://theintercept.com/2026/04/26/mk-ultra-korean-war-prisoner-experiments/
2•pseudolus•15m ago•0 comments

YouTube has demonITised us. Here's what's next.[video; comments]

https://inv.nadeko.net/watch?__goaway_challenge=js-refresh&__goaway_id=ca717db49b8189092f97f7680d...
1•rolph•15m ago•1 comments

French prosecutors link 15-year-old to mega-breach at state's document agency

https://www.theregister.com/2026/04/30/french_gov_mega_breach_suspect/
1•Cider9986•16m ago•0 comments

Show HN: MCP Servers Can Fix the Biggest Problem with AI Coding Assistants

https://medium.com/@xcf.seetan/how-mcp-servers-can-fix-the-biggest-problem-with-ai-coding-assista...
1•xcf_seetan•17m ago•0 comments

A scar-tissue lessons library for Claude Code (compounds across projects)

https://github.com/tenxengineer/claude-code-enhance
1•tenxsengineer•18m ago•0 comments

Chinese Courts Rule Companies Cannot Fire Workers Simply to Replace Them with AI

https://www.caixinglobal.com/2026-04-30/chinese-courts-rule-companies-cannot-fire-workers-simply-...
3•vrganj•19m ago•0 comments

It's well past time we unionize

https://code-cwa.org/
3•systemerror•20m ago•1 comments

Show HN: Byok-relay – self-hosted proxy for BYOK LLM apps without CORS issues

https://github.com/avikalpg/byok-relay
1•avikalp•21m ago•0 comments

Discomfort with modern technology shapes Gen Z's desire to live in the past

https://www.nbcnews.com/politics/politics-news/discomfort-modern-technology-gen-z-desire-live-pas...
2•senorqa•22m ago•0 comments

My Kindle Turned 10

https://mikolajbiernat.com/blog/my-kindle-turned-10
1•surplus2889•22m ago•0 comments

Software engineer driven to insanity from 2026 Job Market

https://www.youtube.com/watch?v=TYuSEeuUhPo
2•tcp_handshaker•23m ago•0 comments

Amazon Is Hiring 11,000 Software Engineers and Interns

https://www.finalroundai.com/blog/amazon-hiring-software-engineers-2026
1•_____k•23m ago•1 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