Native I/O fixes, five focused libraries, and a SmolLM2 chat update.
Why you’re getting thisYou’re subscribed to Weekly Bend news and projects, the newsletter from
Built with Bend. One weekly email about the language and its community. Not for you?
Unsubscribe anytime.
Bend, once a week · #2 · 2026-11-17
Buffered reads and practical libraries
This week: less I/O overhead and fewer parser surprises. The development changes below are merged upstream after stable 2.0.40, not a new stable release. The five library discoveries are all from Emerging-Patterns, whose READMEs target Bend 2.0.38.
Bend dev news
- Buffered line reads - The native C backend now keeps a 16 KiB buffer per handle instead of reading byte by byte. Close handles explicitly; unread pipe data can be lost when a buffered handle closes.
- Zero-length reads keep errors - A follow-up preserves EBADF for zero-capacity reads on write-only handles without consuming buffered input on readable handles. Useful if your code probes handles before reading.
- Nested annotations stop doubling - The parser remembers failed typed-let attempts rather than repeatedly parsing the same nested type. Deep nesting still has quadratic cost; this is not a constant-time parsing claim.
- Formatting preserves meaning - Whitespace after % distinguishes modulo from rewrite syntax. The formatter now retains that boundary, including when a comment follows, so formatting does not change the operation.
Five builds to explore
- ezaudio - WAV and limited MP3 codecs plus clip editing. Its MP3 decoder does not handle typical LAME files, and resampling is absent.
- eztoml - Parse and render TOML with dotted-path lookup. Validate UTF-8 bytes first if invalid input must be rejected rather than replaced.
- ezsys - File helpers, UTC timestamps and templates; flush-and-rename saves use trusted native or JavaScript effects, not proofs of the underlying operating system.
- ezimg - Raster editing with PNG and sequential JPEG codecs. Progressive JPEG is unsupported, and PNG output is uncompressed; recompress elsewhere when size matters.
- shake - Declare CLI flags and nested commands as Bend data. Check the spec yourself; parse does not do that validation automatically.
1 tweet about Bend
- SmolLM2 conversations in Bend - The llama.bend author reports persistent key/value caches across chat turns. Capacity is fixed, conversation ends when full, and token generation still trails llama.cpp in their measurements.
- Rasul
Share the newsletter
Know someone curious about Bend? Forward them this email, or share the signup page so they can get the next issue.
Independent directory. Not affiliated with the Bend team.