Garbage Collection Makes YSH Different

submited by
Style Pass
2024-09-21 16:30:04

I made a table to emphasize a point I made in the last post: Most "Unix sludge" is string-ish, but YSH has garbage-collected data structures.

Garbage-collected data structures lets you express a larger range of programs naturally, like ones that deal with build graphs.

But lines of source is a more stable metric, and mycpp gives us leverage to make the binary smaller, if we want to. (It's more important to make it faster, but ideally we do both.)

And here's a short example, extracted from demo/url-search-params.ysh, a messy but real piece of code inspired by a problem that Samuel had. (We need syntax highlighting!)

Leave a Comment