frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Sam Altman: Man charged with attempting to murder OpenAI boss

https://news.sky.com/story/sam-altman-man-charged-with-attempting-to-murder-openai-boss-13531548
1•taspeotis•2m ago•0 comments

UpDown: Efficient Manycore based on Many Threading & Scalable Memory Parallelism

https://people.cs.uchicago.edu/~aachien/lssg/research/10x10/ics26-single-chip-updown.pdf
1•matt_d•2m ago•0 comments

TanStack Start Now Support React Server Components

https://tanstack.com/blog/react-server-components
2•polywock•3m ago•0 comments

How the corpse flower came to be so weird

https://www.scientificamerican.com/article/how-the-corpse-flower-evolved-its-bizarre-traits/
1•1659447091•5m ago•0 comments

HyperVenom: Using Hyper-V for Ring -1 Control from Usermode

https://gsmll.github.io/hypervenom/writeup/
1•claykettle•8m ago•0 comments

Modern Git based version control with parallel and stacked branches

https://gitbutler.com/
1•rushil_b_patel•10m ago•0 comments

Can Germany restart its nuclear power program?

https://www.politico.eu/article/germany-berlin-nuclear-is-over-the-debate-isnt/
1•leonidasrup•11m ago•0 comments

Introduction to Spherical Harmonics for Graphics Programmers

https://gpfault.net/posts/sph.html
2•nicebyte•16m ago•0 comments

Hackers Reveal Rockstar Earns over $1M a Day from GTA Online

https://kotaku.com/hackers-reveal-rockstar-earns-over-1-million-a-day-from-gta-online-2000687207
1•jmsflknr•20m ago•0 comments

Show HN: Groupr – Rust CLI that sorts files into subfolders by extension

https://github.com/TimFinnigan/groupr
1•timfinnigan•24m ago•0 comments

Show HN: Shloka Artha [Word-by-Word Meanings for Shlokas]

https://shlokartha.in/
1•init0•25m ago•0 comments

Show HN: Deflect One – command line dashboard for managing Linux servers via SSH

https://github.com/Frytskyy/deflect-one
2•whitemanv•27m ago•1 comments

Show HN: 2nnel – self-hosted ngrok with one-click framework-agnostic deployment

https://github.com/22or/2nnel
1•rogerdodgerwang•28m ago•0 comments

Need feedback on sandflare.io – AI Agent Sandboxes with

2•ajaysheoran2323•30m ago•0 comments

When Dancing Plagues Struck Medieval Europe(2019)

https://daily.jstor.org/when-dancing-plagues-struck-medieval-europe/
1•rawgabbit•32m ago•0 comments

Is It Worth Learning Unity in 2026? In the Age of AI

https://darkounity.com/blog/is-it-worth-learning-unity-in-2026
2•hacker_13•34m ago•0 comments

I Built a Open Source Portfolio and Project Website – Sean Filimon

https://seanfilimon.com
2•seanfilimon•35m ago•0 comments

Microlink: Tailscale-compatible VPN client for ESP32

https://github.com/CamM2325/microlink
1•MrBuddyCasino•41m ago•0 comments

Bear Roll – Daily roll of Bear Blog's top posts

https://bearroll.dev/
2•freediver•42m ago•0 comments

How to build an Agent

https://ampcode.com/notes/how-to-build-an-agent
2•pramodbiligiri•47m ago•2 comments

Ex150nosauce+ACV-5 review: Bouncing off the new Bottom?

https://www.exfatloss.com/p/ex150nosauceacv-5-review-bouncing
1•paulpauper•52m ago•0 comments

Math Is Still Catching Up to the Mysterious Genius of Srinivasa Ramanujan

https://www.quantamagazine.org/srinivasa-ramanujan-was-a-genius-math-is-still-catching-up-20241021/
10•paulpauper•53m ago•0 comments

Qten AI platform for social media content creator

https://www.qten.ai/
1•bandishankar•53m ago•0 comments

Spektrafilm – Open-source Film Simulation

https://github.com/andreavolpato/spektrafilm
2•mikae1•58m ago•1 comments

Chinese Room

https://en.wikipedia.org/wiki/Chinese_room
3•slopinthebag•1h ago•0 comments

How to talk about open source without making a mess

https://dirkriehle.com/2026/04/13/for-the-press-how-to-talk-about-open-source-without-making-a-mess/
2•Tomte•1h ago•0 comments

Analysis of 320k careers suggests that productive researchers stay that way

https://www.nature.com/articles/d41586-026-00744-0
1•salkahfi•1h ago•1 comments

The Cadaver Synod: Putting a Dead Pope on Trial (2019)

https://daily.jstor.org/the-cadaver-synod-putting-a-dead-pope-on-trial/
1•rawgabbit•1h ago•0 comments

Como hackear O face pelo email só quero ter acesso a conta

1•lilika•1h ago•0 comments

Stardrop Supply Chain Attack Targets Venture Capital Firms, Luxury Brands

https://opensourcemalware.com/blog/stardrop-attack
2•jruohonen•1h ago•0 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•10mo 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•10mo 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•10mo 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•10mo 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