Live data from Hacker News

Bun v1.3.9

bun.com

41–50 of 54 posts

Re: Bun v1.3.9

#41

It's fascinating to see a project like Bun, already mature enough to run in production, and yet still improving everyday even if it's a 1.1x speedup. To me, that shows how committed the team is to deliver performance.

Is it mature?

I’m genuinely curious because there’s currently 63 open issues of reported segfaults.

https://github.com/oven-sh/bun/issues?q=is%3Aissue%20state%3...

Re: Bun v1.3.9

#42
post #12
post #10

Earlier quoted context omitted.

It lets developers on Windows also build and test your package in parallel mode. If you make your build scripts bash, they're Linux-only.

> if you make your build scripts bash, they’re Linux only Git bash exists on windows and is perfectly usable.

Yes, bash is the near-universal language for build scripts as long as git is the near-universal source control tool.

Re: Bun v1.3.9

#43

Parallel and sequential, especially at the command level, are really the wrong abstractions for running scripts. If you have multiple packages, each with builds, there's a high chance you have dependencies and multiple packages depending on common ones. What you really want is a way for scripts to describe their dependencies, and then the runner figures out what order to run them in, and cache scripts that don't need…

`make` can do exactly the same.

Re: Bun v1.3.9

#44
post #10
post #4

Genuine question out of curiosity. Why do I want parallel and sequential when I can just write a simple bash script to accomplish the same thing? Is there some additional complexity I’m missing?

It lets developers on Windows also build and test your package in parallel mode. If you make your build scripts bash, they're Linux-only.

That is an interesting point... but if I do development on windows it usually happens inside WSL :)

Seriously, my number one windows shell is WSL. Distant second and third are cmd and powershell which I only use to diagnose WSL issue.

Re: Bun v1.3.9

#45

It's fascinating to see a project like Bun, already mature enough to run in production, and yet still improving everyday even if it's a 1.1x speedup. To me, that shows how committed the team is to deliver performance.

Is it mature? I’m genuinely curious because there’s currently 63 open issues of reported segfaults. https://github.com/oven-sh/bun/issues?q=is%3Aissue%20state%3...

It's also built on an unstable language. I'm a big fan of Zig, for what it's worth, and also it's important to take into consideration.

Re: Bun v1.3.9

#47
post #13
post #12

Earlier quoted context omitted.

> if you make your build scripts bash, they’re Linux only Git bash exists on windows and is perfectly usable.

It's still much less dependable compared to something fully supported like Bun.

I’m no bash lover, but I’ve used git bash as my primary driver on windows for I don’t know many years. It has its quirks (like any tool) but I don’t think I’d say it’s less dependable. Anecdotally I’ve had way more issues with node on windows than I have with git bash and node is fully supported.

Re: Bun v1.3.9

#48

Well, that speeds things up a lot. But I agree with spankalee, it should be a DAG. "ci": "CI=true bun run --parallel check test build docs && bun run --parallel zip zip:firefox"

The problem is that whole thing should have been its own script, which it coulda been with npm-run-all:

https://github.com/mysticatea/npm-run-all/blob/HEAD/docs/npm...

"scripts":{ "buldrun":"run-p check test docs && run-p zip zip:firefox" }

I guess you can put `bun run --parallel` into the script too but it's a bit more verbose.

Re: Bun v1.3.9

#49
post #46

even though it's at 1.x release, Bun still has so many critical issues (segfault, etc...)

Going 1.0 was a requirement for cashing out, don't worry about it. And segfaults don't really even matter as long as you run the code in production with -OReleaseSafe and turn on ubsan, it's fiiiiineee

Re: Bun v1.3.9

#50
post #13
post #12

Earlier quoted context omitted.

> if you make your build scripts bash, they’re Linux only Git bash exists on windows and is perfectly usable.

It's still much less dependable compared to something fully supported like Bun.

Fully supported, until they sell it to someone.
Post reply on HN