frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

DIY E-Reader Folds Open Like a Book

https://hackaday.com/2025/12/24/diy-e-reader-folds-open-like-a-book/
1•elashri•2m ago•0 comments

Free Speech in Tucson

https://yousaytoday.com/story/3ab31ff0-d955-408a-851d-ac77a9d7c23d
1•mvcalder•3m ago•0 comments

From shoreline to skyscraper: Seashells offer a path to low-carbon concrete

https://techxplore.com/news/2025-12-shoreline-skyscraper-seashells-path-carbon.html
1•PaulHoule•4m ago•0 comments

Available domain names for your next project

https://sneakydomains.com/freebies/pn1y89xgpnmvwdd
3•starf1sh•8m ago•0 comments

Why do we hear the same Christmas songs year after year?

https://text.npr.org/nx-s1-5637477
1•mooreds•9m ago•0 comments

Observability dashboard for an arbitrary LLM langgraph

https://github.com/xbt-a4224j/langgraph-observer
1•mooreds•9m ago•0 comments

AI #148: Christmas Break

https://thezvi.substack.com/p/ai-148-christmas-break
1•paulpauper•11m ago•0 comments

All over the rich world, fewer people are hooking up and shacking up

https://www.economist.com/briefing/2025/11/06/all-over-the-rich-world-fewer-people-are-hooking-up...
1•paulpauper•11m ago•0 comments

Show HN: I treated my brain like a buggy server and wrote a patch (Shi-Mo Model)

https://github.com/317317317apple-a11y/shi-mo-protocol/blob/main/README.md
1•ShiMo_Protocol•13m ago•1 comments

Meta Ads Minimum Daily Budget Calculator

https://fiz-fb-calculator.netlify.app/
1•hafizdhanani•13m ago•1 comments

How I Make These ASCII Pictures and Links to Other Tutorials (2000)

https://web.archive.org/web/20000520115049/http://www.ludd.luth.se/~vk/pics/ascii/junkyard/techst...
1•susam•18m ago•0 comments

Agentic Coding Course

https://agenticoding.ai/
1•ofriw•19m ago•0 comments

The Offline Society

https://www.theofflinesociety.org/
1•sigalor•20m ago•0 comments

Introduction to Agents

https://www.kaggle.com/whitepaper-introduction-to-agents
1•saikatsg•23m ago•0 comments

PEP 686 – Make UTF-8 mode default

https://peps.python.org/pep-0686/
1•tosh•23m ago•0 comments

New Way You Can Discover Asteroids

https://science.nasa.gov/get-involved/citizen-science/new-way-you-can-discover-asteroids/
1•ohjeez•24m ago•0 comments

Keeping Windows and macOS alive past their sell-by date: Part 1

https://www.theregister.com/2025/12/24/freshen_up_old_os/
1•cf100clunk•28m ago•1 comments

Show HN: Why many AI-generated websites don't show up on Google

https://pagesmith.ai/seo-for-ai-generated-sites
1•manu_trustdom•29m ago•0 comments

Sina Hartung Ousted as the CEO of CodeRabbit

https://twitter.com/SinaHartung/status/2004125292676383227
2•dsr12•30m ago•1 comments

Ask HN: What is the international distribution/statistics of HN visitors?

2•KellyCriterion•31m ago•0 comments

Leaving Meta as Engineering Manager after 6.5 years

https://twitter.com/k2xl/status/2004226660141310352
1•k2xl•33m ago•0 comments

EngineAI's T800 humanoid: agile motion, 29-DOF joints and combat-style demos

https://scienceclock.com/engineai-t800-humanoid-robot-martial-arts/
2•akg130522•36m ago•0 comments

Show HN: Bookmarklet shows local- and sessionStorage. e.g. on mobile browser

https://gist.github.com/ulrischa/c4c4b18065cafc17def687eb7a91a6ea
1•ulrischa•37m ago•0 comments

New image sensor breaks optical limits

https://phys.org/news/2025-12-image-sensor-optical-limits.html
1•manidoraisamy•37m ago•0 comments

Why FedRAMP Authorization and CMMC Level 2 Are Now Table Stakes for GovCon AI

https://blog.procurementsciences.com/psci_blogs/why-fedramp-authorization-and-cmmc-level-2-are-no...
2•mooreds•39m ago•0 comments

Show HN: Another Voice dictation and voice-to-prompt for macOS

https://github.com/mgsgde/whisper-shortcut
1•mgsgde•42m ago•0 comments

Why most software fails solar reps

https://medium.com/@joseph.s_63161/why-most-software-fails-solar-sales-reps-459fcbeea59e
1•fieldops•43m ago•0 comments

I Sell Onions on the Internet

https://www.deepsouthventures.com/i-sell-onions-on-the-internet/
2•sogen•43m ago•0 comments

Vibesbench: A Multi-Turn Conversational AI Benchmark

https://github.com/firasd/vibesbench
1•firasd•44m ago•0 comments

Voice Agents Now Retrieve Context in <150ms with On-Device Prediction

https://twitter.com/shawkatkabbara/status/2004221740000665906
1•shawkatkabbara•45m ago•0 comments
Open in hackernews

Show HN: Stack Error – ergonomic error handling for Rust

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