Live data from Hacker News

Bun 0.6

bun.sh

1–10 of 243 posts

Re: Bun 0.6

#2
I work on Bun. Happy to answer any questions

also: there is a bug in `bun build --compile` I am currently working on fixing. Expect a v0.6.1 in a bit

Re: Bun 0.6

#3
post #2

I work on Bun. Happy to answer any questions also: there is a bug in `bun build --compile` I am currently working on fixing. Expect a v0.6.1 in a bit

> I work on Bun

Understatement.

Re: Bun 0.6

#4
post #2

I work on Bun. Happy to answer any questions also: there is a bug in `bun build --compile` I am currently working on fixing. Expect a v0.6.1 in a bit

Really impressed to see that bun is now faster than esbuild, that was in my mind one of the fastest bundler/minifier in town.

How did you achieve that? Are there some shortcuts you took, or some feature you deemed not in scope (yet)?

Re: Bun 0.6

#5
Tangential, but, this has to be one of the fastest websites I've used recently. How is it possible they get such fast loading of static content? It's basically instantaneous, specially with JavaScript disabled.

edit: Oh well, after navigating to some pages on the blog I see that everything was already on browser cache, so that's why it was so fast. Reminds me I need to overwrite Netlify's cache-control on my website, even though it's already very fast to load (Netlify sets max-age=0, must-revalidate by default).

Re: Bun 0.6

#6
> Standalone executables. You can now create standalone executables with bun build.

> bun build --compile ./foo.ts

> This lets you distribute your app as a single executable file, without requiring users to install Bun.

> ./foo

This is big! Part of Go's popularity is due to how easy it is to produce self-contained executables.

And it seems to support amd64 and arm according too: https://twitter.com/jarredsumner/status/1657964313888575489

Re: Bun 0.6

#7
post #2

I work on Bun. Happy to answer any questions also: there is a bug in `bun build --compile` I am currently working on fixing. Expect a v0.6.1 in a bit

Congrats on the release!

How standalone are the standalone executables produced by `bun build`? Is a libc or equivalent expected to be present?

Re: Bun 0.6

#8

Tangential, but, this has to be one of the fastest websites I've used recently. How is it possible they get such fast loading of static content? It's basically instantaneous, specially with JavaScript disabled. edit: Oh well, after navigating to some pages on the blog I see that everything was already on browser cache, so that's why it was so fast. Reminds me I need to overwrite Netlify's cache-control on my website,…

Its use of the Cloudflare cache seems to be a part of it

Re: Bun 0.6

#10
post #6

> Standalone executables. You can now create standalone executables with bun build. > bun build --compile ./foo.ts > This lets you distribute your app as a single executable file, without requiring users to install Bun. > ./foo This is big! Part of Go's popularity is due to how easy it is to produce self-contained executables. And it seems to support amd64 and arm according too: https://twitter.com/jarredsumner/statu…

It's why I dove into Go.

This definitely took me from the 'eh, kinda cool project' to 'I cant wait to try this out immediately' camp.

The binaries are pretty huge, hoping they can bring that down in time.

Post reply on HN