frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

I built a "Reverse CAPTCHA" for AI agents – open-sourced and live

https://github.com/henrylai/CaptchAI
1•solwater•2m ago•1 comments

Commodore, IBM, OS/2, ARexx: Deal or No Deal?

https://www.datagubbe.se/os2/
1•ingve•2m ago•0 comments

Superb extension for bulk messaging without spam

https://chromewebstore.google.com/detail/quicsender-for-whatsapp/bafjghnachkmhngiojjhiablcinabnpp
1•paulakshat•3m ago•0 comments

'Melania' promises to take us behind the scenes. There's nothing to see

https://www.washingtonpost.com/style/2026/01/31/melania-trump-documentary/
1•MrJagil•4m ago•0 comments

Should I Switch From Git to Jujutsu (2025)

https://etodd.io/2025/10/02/should-i-switch-from-git-to-jujutsu/
1•walterbell•4m ago•0 comments

Mortgage Broker

https://iqrate.io/
1•tomsmith033•5m ago•0 comments

Trump helped Harvard: 5 'Crimson' leadership lessons

https://www.msn.com/en-us/news/politics/how-trump-helped-harvard-5-crimson-leadership-lessons-on-...
1•galaxyLogic•7m ago•0 comments

What are the most influential current AI Papers?

https://arxiv.org/abs/2412.12121
2•onurkanbkrc•11m ago•0 comments

Lambdir: The First No-Code, O(0)-Memory, Directory-Oriented Programming

https://iacgm.com/projects/lambdir/
1•todsacerdoti•11m ago•0 comments

Unlocking high-performance PostgreSQL with key memory optimizations

https://stormatics.tech/blogs/unlocking-high-performance-postgresql-key-memory-optimizations
3•camille_134•18m ago•0 comments

The Karman Industries Heat Processing Unit uses SpaceX tech to cool data centers

https://www.businesswire.com/news/home/20260115549871/en/Karman-Industries-Launches-the-HPU-A-New...
2•plun9•20m ago•0 comments

AI Powered Calendar

https://supaplan.ai/en
1•wisefounder•22m ago•1 comments

The Concepts of Forking

http://monty-says.blogspot.com/2026/01/the-concepts-of-forking.html
2•todsacerdoti•23m ago•0 comments

Show HN: SwitchBlade – A macOS menu bar app to context-switch dev environments

https://8533705985940.gumroad.com/l/vxrols
1•anishyc•24m ago•1 comments

TablaM

https://tablam.org/
1•todsacerdoti•26m ago•0 comments

China AIGC Dataset

https://docs.google.com/spreadsheets/d/1yxyZzLFbmQKIPonzyMH8m62IE78egBy0zCiL7ZXqxXM/edit
1•hunglee2•31m ago•0 comments

AI is scaring scientists [video]

https://www.youtube.com/watch?v=PctlBxRh0p4
2•pppone•36m ago•0 comments

Claude Sonnet 5 the "Fennec" Leaks

https://xcancel.com/pankajkumar_dev/status/2018187650927349976?s=20
1•aquir•36m ago•0 comments

Show HN: Verifly – Verify if companies received your job applications

https://james-sib.github.io/verifly-seo-pages/
1•alisher_sib•38m ago•0 comments

A world without nuclear arms control begins on Thursday

https://www.ft.com/content/fd1d2e57-dce7-489d-956a-22b839cfadd8
4•mmarian•39m ago•0 comments

2019: Off-World (Blade Runner Page)

https://scribble.com/uwi/br/
1•exvi•39m ago•1 comments

Title: Just patched CVE-2026-21509? Here's why you're still exposed

https://farathappsec.substack.com/p/faraths-biweekly-code-security-brief-af8
1•farathshba•40m ago•1 comments

Installing and Running Fortran Program on Linux

https://linuxtldr.com/installing-fortran/
1•O1111OOO•42m ago•0 comments

Show HN: Blockrand – Verifiable randomness API with a double-blind threat model

https://github.com/blockrand-api/blockrand-js
1•rishi_blockrand•42m ago•1 comments

Social app that proves you met IRL. Skip 3 days, get deleted

https://apps.apple.com/us/app/irl-in-real-life/id6743378227
1•anazarian•43m ago•1 comments

Ask HN: Good resources to learn how to write well?

2•Dansvidania•43m ago•1 comments

Blade Runner FAQ (1993)

https://scribble.com/uwi/br/br-faq.html
1•exvi•44m ago•0 comments

Depaudit – Inspect and triage NPM/yarn/pnpm dependency vulns in the terminal

https://github.com/stevepapa/depaudit
1•s9beam•46m ago•0 comments

'Fell the enemies:' Illini Republicans support ICE amid Minnesota killings

https://dailyillini.com/news-stories/university-news/student-organizations/2026/02/01/illini-repu...
1•zerosizedweasle•48m ago•0 comments

Ask HN: Would you use a tool that auto-adds telemetry to your code at PR time?

1•chiehminwei•50m ago•1 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•8mo 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•8mo 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