frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

AGI is an engineering problem, not a model training problem

https://www.vincirufus.com/posts/agi-is-engineering-problem/
74•vincirufus•3h ago•148 comments

The cost of interrupted work (2023)

https://blog.oberien.de/2023/11/05/23-minutes-15-seconds.html
117•_vaporwave_•6h ago•67 comments

I built a tiny mac app to monitor and manage my development processes

https://github.com/kagehq/port-kill
4•lexokoh•38m ago•0 comments

Show HN: How to Build a Coding Agent (free workshop)

https://ghuntley.com/agent/
4•ghuntley•25m ago•0 comments

Line scan camera image processing for train photography

https://daniel.lawrence.lu/blog/y2025m09d21/
228•dllu•11h ago•44 comments

How can AI ID a cat?

https://www.quantamagazine.org/how-can-ai-id-a-cat-an-illustrated-guide-20250430/
109•sonabinu•3d ago•28 comments

What makes Claude Code so damn good

https://minusx.ai/blog/decoding-claude-code/
207•samuelstros•8h ago•169 comments

A 2k-year-old sun hat worn by a Roman soldier in Egypt

https://www.smithsonianmag.com/smart-news/a-2000-year-old-sun-hat-worn-by-a-roman-soldier-in-egyp...
98•sensiquest•8h ago•13 comments

Agentic Browser Security: Indirect Prompt Injection in Perplexity Comet

https://brave.com/blog/comet-prompt-injection/
3•drak0n1c•54m ago•0 comments

Static sites with Python, uv, Caddy, and Docker

https://nkantar.com/blog/2025/08/static-python-uv-caddy-docker/
105•indigodaddy•1d ago•63 comments

Evaluating LLMs for my personal use case

https://darkcoding.net/software/personal-ai-evals-aug-2025/
9•goranmoomin•3h ago•0 comments

Physics of badminton's new killer spin serve

https://arstechnica.com/science/2025/08/physics-of-badmintons-new-killer-spin-serve/
35•amichail•3d ago•4 comments

Librebox: An open source, Roblox-compatible game engine

https://github.com/librebox-devs/librebox-demo
245•libreboxdevs•16h ago•66 comments

Taking a look at my old Palm IIIx – by Paul Lefebvre

https://www.goto10retro.com/p/taking-a-look-at-my-old-palm-iiix
10•rbanffy•3d ago•3 comments

Acronis True Image costs performance when not used

https://randomascii.wordpress.com/2025/05/26/acronis-true-image-costs-performance-when-not-used/
88•juanviera23•3d ago•18 comments

RFC 9839 and Bad Unicode

https://www.tbray.org/ongoing/When/202x/2025/08/14/RFC9839
220•Bogdanp•14h ago•116 comments

Texas Instruments’ new plants where Apple will make iPhone chips

https://www.cnbc.com/2025/08/22/apple-will-make-chips-at-texas-instruments-60-billion-us-project....
115•giuliomagnifico•1d ago•97 comments

Motion (YC W20) Is Hiring Principal Software Engineers

https://jobs.ashbyhq.com/motion/7355e80d-dab2-4ba1-89cc-a0197e08a83c?utm_source=hn
1•ethanyu94•6h ago

Why was Apache Kafka created?

https://bigdata.2minutestreaming.com/p/why-was-apache-kafka-created
97•enether•1d ago•92 comments

Debdelta

https://debdelta.debian.net/
15•Bogdanp•4h ago•2 comments

DeepCode: Open Agentic Coding

https://github.com/HKUDS/DeepCode
9•pykello•2h ago•2 comments

Romhack.ing's Internet Archive Mirror No Longer Available

https://romhack.ing/database/news/entry/DW8BKnRHSEqaGDwXTiKjMw
135•pharrington•7h ago•23 comments

Hacker and physicist – a tale of "common sense"

https://www.supasaf.com/blog/general/hacker_physicist
19•supasaf•1d ago•5 comments

Not so prompt: Prompt optimization as model selection (2024)

https://www.gojiberries.io/not-so-prompt-prompt-optimization-as-model-selection/
7•neehao•2h ago•0 comments

The Cornervery: A 90-Degree Stapler

https://www.core77.com/posts/138232/The-Cornervery-A-90-Degree-Stapler
30•surprisetalk•2d ago•6 comments

Writing Speed-of-Light Flash Attention for 5090 in CUDA C++

https://gau-nernst.github.io/fa-5090/
138•dsr12•15h ago•31 comments

Libre – An anonymous social experiment without likes, followers, or ads

https://libreantisocial.com
88•rododecba•10h ago•120 comments

Monoid-Augmented FIFOs, Deamortised

https://pvk.ca/Blog/2025/08/19/monoid-augmented-fifos/
31•todsacerdoti•4d ago•13 comments

Optimizing our way through Metroid

https://antithesis.com/blog/2025/metroid/
109•eatonphil•1d ago•18 comments

Exploring EXIF (2023)

https://hturan.com/writing/exploring-exif
57•jxmorris12•2d ago•8 comments
Open in hackernews

Ergonomic errors in Rust: write fast, debug with ease, handle precisely

https://gmcgoldr.github.io/2025/08/21/stackerror.html
17•garrinm•1d ago

Comments

TheCleric•5h ago
This just feels like recreating exceptions, but with more complicated syntax.
XorNot•5h ago
I mean broadly that's my entire problem with errors as values: every implementation wastes a ton of syntax trying to make them like exceptions.
MindSpunk•3h ago
The common problems with exceptions isn’t the easy part of try/catch, it’s the execution model and “any function could throw” that causes most contention. Error values are logically simpler and fully document if and what errors the function can return. Checked exceptions solve that too, but in practice nobody used them even where available. And you still end up with hidden control flow with exceptions, the exceptional path through a function is syntactically invisible and difficult to audit without very strong language tooling.
marcianx•1h ago
And also the issue with checked exceptions is that one can't be generic over the checked exception, at least in Java. So it's impossible to write out a universally useful function type that's strictly typed on the error. This definition of `ThrowingFunction` for Java [1] needs just have `throws Exception`, allowing just about anything to be thrown.

Most functional-inspired languages would just have a single `f: T -> Result<U, E>` interface, which supports both (1) a specific error type `E`, which can also be an uninhabited type (e.g. never type) for an infallible operation, and (2) where `U` can be the unit type if the function doesn't return anything on success. That's about as generic as one can get with a single "interface" type.

[1]: https://docs.spring.io/spring-framework/docs/current/javadoc...

catlifeonmars•1h ago
Sometimes it’s nice to have one control flow mechanism rather than too. One could argue that traditional exceptions are more complicated with a their alternative control flow and syntax.
adastra22•5h ago
How is this different from the even more ergonomic “#[from]” provided by thiserror?
echelon•4h ago
Are all of these proc macros worth it? The compile times for proc macros explode.

I'd rather hand-roll errors than deal with more proc macros. Or better yet, have code gen pay the cost once and never deal with it again.

alfiedotwtf•4h ago
Cognitive load is more expensive than compilation time.
echelon•4h ago
Compilation time turns into cognitive load via frustration. Death by a thousand cuts.
adastra22•3h ago
How long are your compiles? The longest I’ve ever seen is a massive Bevy project with 700 dependencies, and it still compiled in <5min from an empty cache, and then 2-3 second incremental builds (mostly link time).
dijksterhuis•3h ago
https://xkcd.com/303/

(compilation time is good for brain switch off time - i.e. reducing cognitive load).

echelon•54m ago
I find it's great for letting ADHD take over steering the ship and losing total focus on what needs to be done.

Which is more or less what this XKCD encapsulates.

duped•2h ago
Frankly, std::io:Error::other is good enough most of the time.
Spooky_Fusion1•4h ago
Thankyou for pointing out a Rust, crate, error handler. Judging by the other comments, it's just as well you did,as I will look more closely at its use with virtual DOM. Thankyou.
QuaternionsBhop•4h ago
I have never seen anything use Result<_,&'static str>, that is such an anti-rust thing to start with.
adastra22•3h ago
LLMs love to do this. I assume they are trying to write JavaScript or Python or whatever, but in Rust.

I have never seen an actual Rist programmer do this, and that was clue #1 that TFA was AI generated without review.

bigstrat2003•2h ago
I do when prototyping. Long term you don't really want to pass around &str errors, but they are quick and dirty and easy to get rolling with.
adastra22•1h ago
Seems just as quick to make an enum with thiserror string conversion? Not much boilerplate at least.
hardwaresofton•3h ago
OP should really mention that they made stackerror. I couldn’t shake the feeling that this read like an ad for stackerror… and of course the author is the crate writer. This feels somewhat disingenuous without a disclaimer that you wrote the lib and there are other ways.

The general advice is good (except for the awkward use of std error), so for anyone who wants to know what rustaceans are actually using:

- std error when it’s required

- anyhow for flexibly dealing with large classes of errors and rethrowing (often in bin crates or internally in a lib crate ), use anyhow::Context to tag errors

- thiserror for building and generating custom errors (in a lib crate)

- miette/eyre for more advanced features

Watch out for exposing error types in public API because then you are bound to push a breaking change if the upstream does.

Anyhow will probably never have a v2 at this point IMO, the entire Rust ecosystem might have to rev!

[EDIT] dont want to suggest that people avoid stackerror, just want to show what other ecosystem projects there are! stackerror seems to fit the hole of anyhow.

faangguyindia•2h ago
Rust used to be pretty hard to read and write, now with ai coding agent not anymore.
Analemma_•1h ago
Have you had success doing non-trivial Rust with AI agents? In my experience they're all pretty bad at it once you get beyond the basics and start having tricky lifetimes and complicated types, but I'm interested to hear what people have done to make it better.