Bun 1.4
12 points by simonw
12 points by simonw
Why is this marked as spam, but the article from yesterday which is void of any information has tons of upvotes and a discussion.
That article was in fact not good, but a lot of people (myself included) think that just submitting some arbitrary project's release notes isn't the peak of content either.
the release tag exists for this reason. on the frontpage yesterday was the go 1.27 release (which has not been marked as spam by anybody). lets not pretend that submitting release notes is the reason for marking a story as spam.
I like the look of Bun.WebView:
await using view = new Bun.WebView({ width: 800, height: 600 });
await view.navigate("https://bun.sh");
await view.click("a[href='/docs']");
const title = await view.evaluate("document.title");
await Bun.write("page.png", await view.screenshot());
Amazing release, already have use-cases for a lot of these features, can’t wait to use them. This is how Node.js should have been doing if it wasn’t for all the hurdles of its open governance model, which, while appealing when it started, in practice didn’t perform really well.
There’s a ton of interesting stuff in here. The markdown support is interesting (markdown parser and formatter), as well as cron and parallel testing. Single file-HTML output, similarly, is a nice QoL thing.
It’s also nice to that it looks like Bun and WebKit have a symbiotic relationship. I think Bun landed some stuff upstream in WebKit (IIRC) and they now take advantage of WebKit performance improvements.
Bun may be more optimized, but this website is laggy as hell on mobile.
This article is super long! Guessing he didn't write all of it, but I'd believe that this took a while to put together.