frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

A new bill in New York would require disclaimers on AI-generated news content

https://www.niemanlab.org/2026/02/a-new-bill-in-new-york-would-require-disclaimers-on-ai-generate...
139•giuliomagnifico•2h ago•59 comments

Claude Opus 4.6

https://www.anthropic.com/news/claude-opus-4-6
2043•HellsMaddy•18h ago•874 comments

Invention of DNA "Page Numbers" Opens Up Possibilities for the Bioeconomy

https://www.caltech.edu/about/news/invention-dna-page-numbers-synthesis-kaihang-wang
27•dagurp•1h ago•11 comments

GPT-5.3-Codex

https://openai.com/index/introducing-gpt-5-3-codex/
1352•meetpateltech•18h ago•517 comments

Things Unix can do atomically (2010)

https://rcrowley.org/2010/01/06/things-unix-can-do-atomically.html
140•onurkanbkrc•6h ago•49 comments

Systems Thinking

http://theprogrammersparadox.blogspot.com/2026/02/systems-thinking.html
129•r4um•6h ago•59 comments

Plasma Effect

https://www.4rknova.com/blog/2016/11/01/plasma
44•todsacerdoti•3d ago•4 comments

My AI Adoption Journey

https://mitchellh.com/writing/my-ai-adoption-journey
640•anurag•17h ago•240 comments

We tasked Opus 4.6 using agent teams to build a C Compiler

https://www.anthropic.com/engineering/building-c-compiler
565•modeless•17h ago•552 comments

Show HN: Artifact Keeper – Open-Source Artifactory/Nexus Alternative in Rust

https://github.com/artifact-keeper
83•bsgeraci•8h ago•29 comments

DNS Explained – How Domain Names Get Resolved

https://www.bhusalmanish.com.np/blog/posts/dns-explained.html
19•okchildhood•3d ago•6 comments

US Immigration on the Easiest Setting

https://pluralistic.net/2026/02/06/doge-ball/#n-600
42•headalgorithm•1h ago•19 comments

Stay Away from My Trash

https://tldraw.dev/blog/stay-away-from-my-trash
47•EvgeniyZh•3d ago•24 comments

Recreating Epstein PDFs from raw encoded attachments

https://neosmart.net/blog/recreating-epstein-pdfs-from-raw-encoded-attachments/
389•ComputerGuru•1d ago•134 comments

Animated Knots

https://www.animatedknots.com/
224•ostacke•3d ago•32 comments

Unlocking high-performance PostgreSQL with key memory optimizations

https://stormatics.tech/blogs/unlocking-high-performance-postgresql-key-memory-optimizations
62•camille_134•4d ago•5 comments

The RCE that AMD won't fix

https://mrbruh.com/amd/
250•MrBruh•12h ago•103 comments

Sealos – AI Native Cloud Cloud Operating System

https://github.com/labring/sealos
11•fanux•3d ago•5 comments

I reversed Tower of Fantasy's anti-cheat driver: a BYOVD toolkit never loaded

https://vespalec.com/blog/tower-of-flaws/
76•svespalec•9h ago•34 comments

The time I didn't meet Jeffrey Epstein

https://scottaaronson.blog/?p=9534
212•pfdietz•16h ago•226 comments

Waiting for Postgres 19: Better planner hints with path generation strategies [video]

https://www.youtube.com/watch?v=QLb3nhIy2Lc
44•sbuttgereit•8h ago•1 comments

MenuetOS – a GUI OS that boots from a single floppy disk

https://www.menuetos.net/
163•pjerem•3d ago•34 comments

The Color of Safety

https://protocolized.summerofprotocols.com/p/the-color-of-safety
14•laurex•3d ago•1 comments

Claude Opus 4.6 extra usage promo

https://support.claude.com/en/articles/13613973-claude-opus-4-6-extra-usage-promo
177•rob•16h ago•58 comments

GitHub Actions is slowly killing engineering teams

https://www.iankduncan.com/engineering/2026-02-05-github-actions-killing-your-team/
284•codesuki•9h ago•138 comments

LinkedIn checks for 2953 browser extensions

https://github.com/mdp/linkedin-extension-fingerprinting
438•mdp•16h ago•204 comments

Hypernetworks: Neural Networks for Hierarchical Data

https://blog.sturdystatistics.com/posts/hnet_part_I/
65•mkmccjr•19h ago•4 comments

What if writing tests was a joyful experience? (2023)

https://blog.janestreet.com/the-joy-of-expect-tests/
86•ryanhn•14h ago•33 comments

Generative Pen-Trained Transformer

https://theodore.net/projects/Polargraph/
20•Twarner•7h ago•0 comments

Orchestrate teams of Claude Code sessions

https://code.claude.com/docs/en/agent-teams
360•davidbarker•18h ago•197 comments
Open in hackernews

Show HN: Stack Error – ergonomic error handling for Rust

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