frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Turn product photos into new scenes and short videos

https://www.piclumen.com/
1•rollingcarollin•53s ago•0 comments

Do not remove Contracts from C++26 [pdf]

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p4433r0.pdf
1•khalidkhair•2m ago•0 comments

Ownership – By Thorsten Ball – Register Spill

https://registerspill.thorstenball.com/p/ownership
1•fagnerbrack•8m ago•0 comments

I will no longer upload to NEW

https://lists.debian.org/debian-devel/2026/10/msg00263.html
2•edward•9m ago•0 comments

VCAT – Every line of the Voynich Manuscript, as a versioned dataset

https://github.com/noah-chelednik/voynich-data
1•chedai__•11m ago•0 comments

Show HN: Hatamoto batteries-included CMS in Go

https://hatamoto.dev/
4•teslazen•11m ago•3 comments

What Do Platform Engineers Do After Automation?

https://www.syntasso.io/post/what-do-platform-engineers-actually-do-after-automation
1•danielbryantuk•13m ago•0 comments

Ten Times I Bowed to the Genius of Ancient Indian Gurus (and Still Counting)

https://medium.com/@sahana.singh/10-times-i-bowed-to-the-genius-of-ancient-indian-gurus-and-still...
1•axiologist•13m ago•1 comments

Show HN: Minebender – Minesweeper in Bend2 with proven no-guess assist

https://github.com/luiscleto/minebender
1•lfcc•15m ago•0 comments

Rest of World faces prospect of shutting down

https://www.semafor.com/article/10/25/2026/rest-of-world-faces-prospect-of-shutting-down
1•DeepLogin•16m ago•0 comments

Show HN: Imp, an LLM Server for RTX 50 GPUs, Written by Claude Code

https://github.com/kekzl/imp
1•kekz•18m ago•0 comments

Show HN: PrettyUp – Free portrait editing for photos and videos in the browser

https://www.prettyupapp.com/
1•awa11•19m ago•1 comments

You don't have a "Bluesky account"

https://lou.gg/blog/you-dont-have-a-bluesky-account/
2•louisescher•23m ago•0 comments

Alibaba's Qwen3.8-Flash-Next model tried to upload a file to Beijing in a test

https://www.notebookcheck.net/Alibaba-s-Qwen3-8-model-tried-to-upload-a-file-to-Beijing-in-a-test...
3•nh43215rgb•29m ago•0 comments

Show HN: ToolConfig – EditorConfig, extended to formatters and linters

https://github.com/mathematic-inc/toolconfig
1•jrandolf•29m ago•0 comments

1 in 8B – An AI-Powered Life Simulator

https://1in8billion.games
1•dotcurio•29m ago•0 comments

LARPing with Agents (and Why It Works)

https://chrlschn.dev/blog/2026/10/larping-with-agents-and-why-it-works/
1•CharlieDigital•31m ago•0 comments

I tested 12 small AI models on 2,500 design-system questions

https://www.designsystemscollective.com/i-tested-12-small-ai-models-on-2-500-design-system-questi...
2•elwingo1•34m ago•0 comments

Subgraph Isomorphism, ILP, and Lattices: A Linear Algebraic Framework

https://arxiv.org/abs/2610.33235
1•ahsillyme•38m ago•0 comments

Trump admin cuts to satellites will set back US weather forecasting by a decade

https://www.cnn.com/2026/10/19/weather/trump-satellites-extreme-weather-forecast-future-set-back
1•robtherobber•38m ago•0 comments

RFC AI Tooling: 40x fewer tokens while reading the RFC corpus

https://github.com/shbernal/rfc-ai-tooling
1•shbernal01•38m ago•0 comments

Show HN: Ollama client library for Golang with streaming API support

https://github.com/okunix/gollama
1•kelthuzad19•40m ago•0 comments

Google's C Binder Driver Removed with Rust Binder Ready for Few Billion Devices

https://www.phoronix.com/news/Linux-7.4-Char-Misc
1•cisc•40m ago•0 comments

Putting the Cart Before the AI

https://blog.tohojo.dk/2025/06/putting-the-cart-before-the-ai.html
1•ankitg12•41m ago•0 comments

Matiks raises $10M to expand its math and puzzle gaming platform

https://techcrunch.com/2026/10/26/matiks-raises-10m-to-expand-its-math-and-puzzle-gaming-platform/
1•porridgeraisin•41m ago•0 comments

I built a stock market research app and would love honest feedback

https://play.google.com/store/apps/details?id=in.unfluke.app&hl=en_US
1•unfluketrade•43m ago•0 comments

AV2 Video Codec Adoption Talked Up, SVT-AV2 Being Developed

https://www.phoronix.com/news/AV2-Adoption-Plus-SVT-AV2
2•cisc•43m ago•0 comments

Show HN: Free one-page templates for Supernote, reMarkable and Kindle Scribe

https://eink.fyi/
1•symbolhunter•46m ago•0 comments

Exponential Velocity – UltraFast Modern Pure PHP Webserver Built for Production

https://github.com/se7enxweb/exponential-velocity
2•thekracker•47m ago•2 comments

Klattsch: How to Fake a Face [video]

https://www.youtube.com/watch?v=-NblnuTAM6o
1•mister_mort•47m ago•0 comments
Open in hackernews

Show HN: Stack Error – ergonomic error handling for Rust

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