frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Everything Is AI

https://www.ft.com/content/4a76d755-d269-4f06-b5a8-9440407a5c50
1•johnbarron•22s ago•0 comments

I built a app to help founders plan and build organized apps – AMA

https://foundry.codefiworks.com/
2•gduncan7•3m ago•0 comments

AI and Liability

https://simonwillison.net/2026/Jun/25/ai-and-liability/
2•Brajeshwar•4m ago•0 comments

One man, two kernels, and a lot of RISC-V

https://www.theregister.com/software/2026/06/26/one-man-two-kernels-and-a-lot-of-risc-v/5262858
2•LorenDB•5m ago•0 comments

Un0rick: Open-source pulse echo ultrasound

https://www.opensourceimaging.org/project/un0rick/
2•jerlendds•6m ago•0 comments

Show HN: Uv-matrix – A tiny matrix runner for Python projects using Astral uv

https://github.com/atsuoishimoto/uv-matrix/
2•atsuoishimoto•8m ago•0 comments

Best Investments over the Last 100 Years? Almost All Are Tech Companies

https://www.nytimes.com/2026/06/26/business/apple-nvidia-tesla-spacex-stock-market-winners.html
2•petilon•8m ago•0 comments

Venetian Bridge Brawls in 17th and 18th Century Art

https://publicdomainreview.org/collection/venice-bridge-fights/
2•pepys•9m ago•0 comments

Alamo Drafthouse spent years banning phones. Now it requires them

https://slate.com/culture/2026/06/alamo-drafthouse-movie-theaters-near-me-food.html
2•hihihellohi•9m ago•0 comments

Show HN: OpenOrb – BYOK multi-AI council that shows its work

https://openorb.onrender.com
2•Gbalhara•10m ago•0 comments

Goodle – A Local Search Engine That Finds Text Inside Screenshots

https://github.com/RahulAloth/goodle
2•rahulaloth•11m ago•0 comments

All Roads Lead to Om

https://ma.tt/2026/06/om-forever/
3•speckx•13m ago•1 comments

The Demoralization of the White-Collar Worker – No One's Happy

https://nooneshappy.com/article/the-demoralization-of-the-white-collar-worker/
2•diebillionaires•14m ago•0 comments

IngrediCheck

https://www.ingredicheck.app/
2•fungeellc•14m ago•1 comments

Prompts in Manuscripts Exploit AI-Assisted Peer Review

https://cacm.acm.org/opinion/hidden-prompts-in-manuscripts-exploit-ai-assisted-peer-review/
2•adunk•14m ago•0 comments

Government Information Belongs to Everyone: Democracy's Library in 2026

https://blog.archive.org/2026/06/22/government-information-belongs-to-everyone-democracys-library...
2•toomuchtodo•16m ago•0 comments

A glitch in February of the year 0

https://28times.com/blog/2026-06-26-february-of-the-year-0
2•lukasgelbmann•17m ago•0 comments

No-Slop OSS, a checklist of contribution best practices when using AI (or not)

https://github.com/omkar-foss/noslop-oss
3•omkar-foss•17m ago•0 comments

Show HN: uvx ptn and give your agent full access to any system (dangerously)

https://pypi.org/project/ptn/
1•yxl448•18m ago•0 comments

Printable Wrist Rest System – ZSA Voyager – Zsa.io

https://www.zsa.io/voyager/wrist-rest-system?mc_cid=52feb8f1db&mc_eid=c352ca6cba
1•tortilla•20m ago•0 comments

Provisional Voice API Agents with Telnyx

https://github.com/team-telnyx/telnyx-code-examples/tree/main/provisional-telnyx-voice-api-agents...
1•anushathukral•20m ago•0 comments

A month of vibe-coding at 0.01x velocity

https://webesque.agency/blog/2026-06-19-llms.html
2•mhitza•20m ago•0 comments

Michael Milken's Spreadsheets: Computation and Charisma in Finance in the '80s

https://ieeexplore.ieee.org/document/9051785/
1•toomuchtodo•21m ago•1 comments

Benchmarking AI Gateways: GoModel vs. LiteLLM vs. Portkey vs. Bifrost

https://enterpilot.io/blog/benchmarking-ai-gateways-gomodel-litellm-portkey-bifrost-june-2026/
1•santiago-pl•22m ago•1 comments

Does using modulo (%) affect quality of randomness?

https://crypto.stackexchange.com/questions/22767/does-using-modulo-affect-quality-of-randomness
1•tosh•22m ago•0 comments

South Korea to Train All Active-Duty Soldiers to Operate Drones

https://www.wsj.com/world/asia/south-korea-to-train-all-active-duty-soldiers-to-operate-drones-28...
2•bookofjoe•22m ago•1 comments

Insert is a programming language for self-modifying code

https://github.com/uellenberg/Insert
1•trenchgun•23m ago•0 comments

Show HN: Keyway – Control your Mac from the keyboard

https://github.com/Njuhobby/keyway
2•njuhobby•24m ago•1 comments

Show HN: Lettered – a daily phrase puzzle game

https://lettered.io
1•ajhenrydev•24m ago•0 comments

A little bird told her: scientist wins $100k prize for decoding birdsong

https://www.theguardian.com/science/2026/jun/26/human-animal-communication-step-closer-scientist-...
2•Brajeshwar•24m 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