frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Bun.Image

https://bun.com/docs/runtime/image
25•chakintosh•1h ago

Comments

wxw•59m ago
> The API is shaped after Sharp: construct from an input, chain transforms, pick an output format, then await a terminal method.

(https://sharp.pixelplumbing.com/)

Good! I like the pipeline workflow.

onesingleblast•44m ago
Glad to see that Bun is doing something that Java has been doing since 1998.
dzogchen•22m ago
Pretty sure Java didn’t slop code its APIs in 1998.
nfredericks•36m ago
Nice to see lots of LLM-generated text
furyofantares•33m ago
This looks like one of the better pieces of LLM-output documentation I've seen. It's bad technical writing, but better than most of what I've seen come out of an LLM.

---------------

Pre-empting the "how can you tell", here's some of the tells.

> The API is shaped after Sharp:

Constantly using "shaped" and "shape" is becoming an LLM-ism, much more common than in human writing.

> The constructor accepts a path, bytes, or a Blob — including Bun.file() and Bun.s3().

> The format is sniffed from the bytes — extensions and Content-Type are ignored.

Repeatedly formatting statements as X: Y, X — Y, or [b]X[b] Y is also an LLM-ism.

> Don’t pass user-controlled strings directly to the constructor — that’s an arbitrary-file-read primitive.

> When passing a TypedArray/ArrayBuffer, don’t mutate it while a terminal is pending — decode runs off-thread and borrows the bytes.

Doing so by leading with what-it's-not / what-not-to-do is even more of an LLM-ism.

solenoid0937•27m ago
The other big problem with LLM documentation is that it tends to drift from the code, because agents forget to update it. Then later agents sometimes reference the documentation, sometimes reference the code, and get confused.

For agent written code I now default to no documentation and explanatory function signatures, it works better for me at least.

michaelmior•19m ago
Humans also tend to forget to update documentation and the same confusion happens. I don't think it's really a new problem.
solenoid0937•13m ago
I agree, I think for agents though, documentation does more harm than good. When I'm writing code with an agent I tell it to skip documentation entirely (reading or writing it) and it leads to more accurate outcomes.

When agents write most of our code, I question if we will still even need documentation.

simonw•33m ago
I really like this. Having image manipulation as a core standard library feature rather than an optional package makes complete sense to me for a web development platform in 2026.

It's not like image manipulation is a poorly understood problem or a fast-moving field.

It's time to talk about my writerdeck

https://veronicaexplains.net/my-first-writerdeck/
253•hggh•5h ago•128 comments

Don't Roll Your Own

https://susam.net/do-not-roll-your-own.html
52•adunk•1h ago•39 comments

Sales and Dungeons: Thermal printer TTRPG utility

https://sales-and-dungeons.app/
27•hyperific•1d ago•9 comments

My two-part desk setup (2025)

https://arslan.io/2025/11/18/my-two-part-desk-setup/
199•James72689•3d ago•121 comments

On The <dl> (2021)

https://benmyers.dev/blog/on-the-dl/
339•ravenical•11h ago•106 comments

My I3-Emacs Integration

https://khz.ac/software/i3-integration.html
12•nosolace•1h ago•1 comments

Green card seekers must leave U.S. to apply, Trump administration says

https://www.nytimes.com/2026/05/22/us/politics/green-card-changes-trump.html
469•tlhunter•1d ago•854 comments

.NET (OK, C#) finally gets union types

https://andrewlock.net/exploring-the-dotnet-11-preview-2-dotnet-gets-union-types/
126•ingve•1d ago•105 comments

Hengefinder: Finding when the sun aligns with your street

https://victoriaritvo.com/blog/hengefinder/
102•evakhoury•1d ago•24 comments

New map reveals lost roads of the Roman Empire

https://www.scientificamerican.com/article/new-high-resolution-map-transforms-what-we-know-about-...
33•sohkamyung•3d ago•4 comments

Toxic chemical leak at a manufacturing facility in Orange County

https://www.bbc.com/news/articles/c3w2l249j8go
80•borski•2h ago•46 comments

Reverse engineering circuitry in a Spacelab computer from 1980

https://www.righto.com/2026/05/reverse-engineering-spacelab-computer.html
79•elpocko•7h ago•10 comments

SpaceX launches Starship v3 rocket

https://www.space.com/space-exploration/launches-spacecraft/spacex-starship-v3-megarocket-first-t...
340•busymom0•1d ago•229 comments

Bun.Image

https://bun.com/docs/runtime/image
26•chakintosh•1h ago•9 comments

Show HN: Anyone interested in a tool helps to explore C++ ASTs

https://uvic-aurora.github.io/acav-manual/index.html
8•leomicv•2d ago•1 comments

80386 microcode disassembled

https://www.reenigne.org/blog/80386-microcode-disassembled/
216•nand2mario•12h ago•42 comments

The Art of Money Getting

https://kk.org/cooltools/book-freak-210-the-art-of-money-getting/
178•dxs•11h ago•119 comments

PHP's Oddities

https://flowtwo.io/post/php%27s-oddities
92•thejoeflow•4d ago•103 comments

Making deep learning go brrrr from first principles (2022)

https://horace.io/brrr_intro.html
146•tosh•12h ago•57 comments

Byrne's Euclid

https://www.c82.net/euclid/
6•layer8•2h ago•3 comments

Kindle loyalists scramble as Amazon turns page on old e-readers

https://www.reuters.com/business/retail-consumer/kindle-loyalists-scramble-amazon-turns-page-old-...
109•cf100clunk•4d ago•114 comments

-​-dangerously-skip-reading-code

https://olano.dev/blog/dangerously-skip/
84•fagnerbrack•14h ago•102 comments

Texas woman arrested for Facebook post about town water quality

https://reclaimthenet.org/texas-woman-arrested-for-facebook-post-about-town-water-quality
603•abawany•6h ago•257 comments

Italy moves to Airbus A330 tankers

https://www.euronews.com/my-europe/2026/05/21/italy-moves-to-airbus-a330-tankers-in-major-nato-al...
227•embedding-shape•8h ago•77 comments

sp.h: Fixing C by giving it a high quality, ultra portable standard library

https://spader.zone/sp/
184•dboon•3d ago•165 comments

Judson's Last Ride

https://www.realclearpolitics.com/articles/2026/05/22/judsons_last_ride_154150.html
5•NaOH•12h ago•0 comments

A self-powered computer in actual credit-card size (~1mm thick)

https://old.reddit.com/r/electronics/comments/1td7yxl/i_built_a_fully_selfpowered_computer_in_act...
44•gnabgib•3h ago•4 comments

Rubish: A Unix shell written in pure Ruby

https://github.com/amatsuda/rubish
170•winebarrel•17h ago•98 comments

Spanish court declines to fine NordVPN over LaLiga piracy blocking order

https://torrentfreak.com/spanish-court-declines-to-fine-nordvpn-over-laliga-piracy-blocking-order/
114•gslin•17h ago•84 comments

Highest Random Weight in Elixir

https://jola.dev/posts/highest-random-weight-in-elixir
60•shintoist•2d ago•3 comments