frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

OnlineOrNot's lessons from Cloudflare's outage on 2025-11-18

https://onlineornot.com/onlineornot-lessons-from-cloudflare-outage-2025-11-18
1•rozenmd•2m ago•0 comments

How to work with Product: At the tea table

https://blog.nilenso.com/blog/2025/11/18/how-to-work-with-product-at-the-tea-table/
1•sriharis•2m ago•0 comments

The paradox is that when I accept myself just as I am, I change

https://www.henrikkarlsson.xyz/p/diaries
1•jger15•4m ago•0 comments

Show HN: I made a landing page component picker

https://landinggo.com/tools/landing-page-component-picker-quiz
1•bkrisa•5m ago•0 comments

Europe's cookie nightmare is crumbling. EC wants preference at browser level

https://www.theverge.com/news/823788/europe-cookie-prompt-browser-changes-proposal
2•nopakos•6m ago•0 comments

Show HN: tweakcc (OSS)–customize Claude Code's system prompt and LSP and /title

https://github.com/Piebald-AI/tweakcc/releases/tag/v3.1.1
1•bl-ue•7m ago•1 comments

Show HN: Hypercamera – a browser-based 4D camera simulator

https://dugas.ch/4d_creatures/4d_camera.html
1•chronolitus•7m ago•0 comments

Maurizio Cattelan Golden Toilet Sells for $12.1m At Sotheby's

https://www.artnews.com/art-news/news/maurizio-cattelan-america-sothebys-sale-toilet-12-million-1...
1•bookofjoe•8m ago•0 comments

Show HN: GetViralSEO – Find competitors' top SEO pages instantly

https://getviralseo.com/
1•natia_kurdadze•8m ago•0 comments

AI-Assisted Scientific Research?

https://www.aims.healthcare
1•martinclayton•8m ago•1 comments

Show HN: Folderhost – selfhosted file sharing app in Go

https://github.com/MertJSX/folderhost
1•mertjsx•9m ago•0 comments

How to overcome your Indie hacking (Solopreneur) Writer's block

https://hugoib.beehiiv.com/p/how-to-overcome-indie-hacking-solopreneur-writer-block
1•hugoib•10m ago•0 comments

Show HN: Ice Breaker Games

https://icebreakergames.art
1•ethanYIAI•11m ago•0 comments

Three Moo Tokens

https://gist.github.com/grantisu/eac11b207e49e66fd543b57269f149ef
1•gsu2•12m ago•0 comments

Show HN: After 7+ years, I'm releasing Melodic Mind (a Superapp for musicians)

https://melodic-mind.com
1•seanitzel•12m ago•0 comments

AI Transcriptions and Insights–Fast, Accurate, Multilingual

https://transcribepro.nl
1•oarized•12m ago•1 comments

I launched a payload to the stratosphere to measure algae fluorescence

https://radi8.dev/blog/stratospore/
1•radeeyate•14m ago•1 comments

How might we incentivize a Proof-of-Work Code Review?

https://cameronwestland.com/how-might-we-incentivize-a-proof-of-work-code-review
1•bladeee•15m ago•0 comments

Zo: Intelligent Personal Servers for Everyone

https://www.zo.computer/about
2•benzguo•16m ago•0 comments

State of IP Spoofing

https://spoofer.caida.org/summary.php
2•evah•16m ago•0 comments

Show HN: Fixing a single pointer bug unlocked 1M+ row JSON parsing on Windows

1•hilti•17m ago•0 comments

EU Regulators Announce List of Critical ICT Third-Party Providers

https://www.esma.europa.eu/press-news/esma-news/european-supervisory-authorities-designate-critic...
3•das_keyboard•18m ago•1 comments

New Crosh Window

1•crimble•23m ago•1 comments

Destroyer Escort vs. German 576-pound torpedo warhead

https://laststandonzombieisland.com/2025/11/18/destroyer-escort-vs-german-torpedo-2025-edition/
2•speckx•23m ago•0 comments

You Aren't in the DSM

https://asteriskmag.com/issues/12-books/you-arent-in-the-dsm
2•surprisetalk•24m ago•0 comments

Forever Object: The Staple-Less Oceanus Brass Stapler

https://www.core77.com/posts/139027/Forever-Object-The-Staple-less-Oceanus-Brass-Stapler
2•surprisetalk•24m ago•0 comments

Variance of a Sum

https://leancrew.com/all-this/2025/11/variance-of-a-sum/
1•surprisetalk•24m ago•0 comments

What Pixar's 'Wall-E' Got Right About the Future of Work

https://www.wsj.com/tech/ai/wall-e-future-of-work-14015a3f
1•bookofjoe•25m ago•2 comments

OpenAI is going to do a Trillion Dollar IPO

https://www.ai-supremacy.com/p/openai-is-going-to-do-a-trillion-dollar-ipo-2026-27
2•gmays•27m ago•1 comments

Rust edges toward CPython and older platforms won't like it

https://www.theregister.com/2025/11/19/cpython_may_use_rust/
3•rbanffy•29m ago•1 comments
Open in hackernews

Show HN: Stack Error – ergonomic error handling for Rust

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