frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The Data Project – data journalism sites built from public government datasets

https://www.thedataproject.ai
1•kianoconnor•6m ago•0 comments

Altman says OpenAI agrees with Anthropic's red lines in Pentagon dispute

https://thehill.com/policy/technology/5758898-altman-backs-anthropic-pentagon-stand/
2•rectang•6m ago•0 comments

Federal agencies may have a Claude problem now

https://www.axios.com/2026/02/27/claude-anthropic-trump-government-agencies
2•toomuchtodo•8m ago•1 comments

Show HN: I built a site where you hire yourself instead of applying for jobs

https://hired.wtf
2•apwn•9m ago•1 comments

Show HN: Rapidly build efficient sites with Neat, the minimalist CSS framework

https://github.com/codazoda/neatcss
1•codazoda•13m ago•0 comments

Need ArXiv endorsement.. CS. Multiagent-Systems [pdf]

https://www.socialcompute.dev/deterministic_control_paper.pdf
1•dev_marcospimi•13m ago•0 comments

Show HN: XDP firewall that auto-syncs open ports – built after my VPS got DDoS'd

https://github.com/Kookiejarz/basic_xdp
1•kennethhh•14m ago•0 comments

Show HN: Taskdog – Terminal-based task manager with schedule optimization

https://github.com/Kohei-Wada/taskdog
1•kohei-wada•15m ago•0 comments

Show HN: AgentGate – Stake-Gated Action Microservice for AI Agents

https://github.com/selfradiance/agentgate
1•selfradiance•16m ago•0 comments

Show HN: Market Digest: Self-hosted market analysis and Telegram

https://github.com/mutaaf/MarketDigest
1•mutaaf•25m ago•1 comments

Zugunruhe, and what makes things worth doing

https://www.nathanzhao.cc/zugunruhe
2•nzhaa•25m ago•0 comments

Perplexity Computer: What I Built in One Night (Review and Examples)

https://karozieminski.substack.com/p/perplexity-computer-review-examples-guide
1•Lunaboo•29m ago•0 comments

Ask HN: Do you enforce Prettier in all Next.js projects?

1•digi_wares•29m ago•0 comments

Show HN: Notemac++ – A Notepad++-inspired code editor for macOS and the web

https://github.com/sergioadevita/notemac-plus-plus
2•sergioadevita•30m ago•0 comments

Technical Recruiter in 2026

https://anangsha.substack.com/p/technical-recruiting-in-2026-how
1•monolikma•31m ago•0 comments

Lee Kuan Yew – Resources

https://advaypal.com/writes/lky_resources/
2•advaypal•32m ago•0 comments

Neil Sedaka, Singing Craftsman of Memorable Pop Songs, Dies at 86

https://www.nytimes.com/2026/02/27/arts/music/neil-sedaka-dead.html
2•bookofjoe•33m ago•0 comments

Amazon deal with OpenAI shakes up AI landscape

https://www.axios.com/2026/02/27/ai-amazon-openai-chips
1•doener•33m ago•1 comments

Emuko: Fast RISC-V emulator written in Rust, boots Linux

https://github.com/wkoszek/emuko
3•felipap•33m ago•0 comments

GAIT: A Voluntary Transparency Framework for AI Use in Games

https://hypervisor.studio/blog/introducing-gait-game-ai-transparency.html
2•jamesjennings•35m ago•0 comments

Moltler the Skills Framework for Elasticsearch

https://hub.moltler.dev/
1•bahaazarmi•36m ago•0 comments

Should Social Media Algorithms Have Age-Based Safeguards for Over-60s?

https://petition.parliament.uk/petitions/758659
2•lalessandro2•36m ago•0 comments

Ask HN: Can our bootstrapped startup keep up?

3•lewq•39m ago•0 comments

Trump instructs federal agencies to stop work with Anthropic

https://www.cnn.com/2026/02/27/tech/anthropic-pentagon-deadline
1•empressplay•39m ago•0 comments

How are we physically caging autonomous AI? (My architecture for kill-switch)

https://plinklogic.tech
1•Johngreetme•40m ago•1 comments

Show HN: QF STEM Ledger – Logging Structured Cognitive Work

https://ledger.quantumformalism.com/
1•bamborde_zaiku•40m ago•0 comments

Write Modern Go Code with Junie and Claude Code

https://blog.jetbrains.com/go/2026/02/20/write-modern-go-code-with-junie-and-claude-code/
1•Annprots•42m ago•1 comments

Paramount strikes deal to buy Warner Bros Discovery for $110B

https://news.sky.com/story/paramount-agrees-to-buy-warner-bros-discovery-in-110bn-deal-13513157
1•austinallegro•43m ago•1 comments

Human brain cells on a chip learned to play Doom in a week

https://www.newscientist.com/article/2517389-human-brain-cells-on-a-chip-learned-to-play-doom-in-...
3•stared•43m ago•0 comments

Rank5.io – a party game about the people you play with

https://rank5.io/howTo
2•blendaddict•44m ago•2 comments
Open in hackernews

Show HN: Stack Error – ergonomic error handling for Rust

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