Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Jarred
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
181.
▲
by
Jarred
4y ago
Are there benchmarks comparing it against postgres/mysql/mariadb?
182.
▲
by
Jarred
4y ago
We will eventually have a builtin Postgres client, but Postgres.js is also a great choice. I started to work on a `bun:sql` module, but ran out of time for now.
183.
▲
by
Jarred
4y ago
Zig is great for writing fast software and I’m really productive in Zig.
184.
▲
by
Jarred
4y ago
dgram & UDP sockets will happen, though honestly probably not until v0.7 We’ll likely do AsyncLocalStorage and make the rest of async_hooks a no-op. async_hooks are detrimental to event loop performance, but important for observability
185.
▲
by
Jarred
4y ago
- Ziglings is great - https://github.com/ratfactor/ziglings - zig.news has some good posts https://zig.news/ - Zig's language docs: https://ziglang.org/documentation/master&#x
186.
▲
by
Jarred
4y ago
This is something we need to do, but haven't prioritized yet For now you can do bunx bun-repl
187.
▲
by
Jarred
4y ago
Not yet, we haven't released our docs site yet either. Probably won't be there in the first release of our docs, but this is something we should do If you're familiar with Node, Bun should feel familiar except you don't
188.
▲
by
Jarred
4y ago
The last time I looked into adding musl support, there were some difficult to narrow down crashes in bun's linux aarch64 build it's worth revisiting though since its been a little while
189.
▲
by
Jarred
4y ago
Not yet. MongoDB requires resolving SRV dns records and we haven't implemented support for that yet (just A/AAAA via getaddrinfo()-like APIs currently) Tracking issue: https://github.com/oven-sh/bun/issue
190.
▲
by
Jarred
4y ago
We'll add glob support in v0.6. We didn't include it because we need to implement a glob matcher in native code and we needed to descope some stuff because it was already a little more than 3 weeks since the last release
191.
▲
by
Jarred
4y ago
I work on Bun. Happy to answer any questions or feedback
192.
▲
by
Jarred
4y ago
Oven (YCS19) | https://bun.sh | Software Engineer | San Francisco or Remote (worldwide) | Full-time or Contract Oven is on a mission to make JavaScript faster and simpler. That's why we launched Bun, a fast all-in-one JavaS
193.
▲
by
Jarred
4y ago
Unfortunately it takes awhile to compile Bun from scratch. It doesn’t need root privileges though. To compile Bun completely from scratch, you’d need to compile: - Zig - mimalloc - libtcc - zlib - picohttpparser - sqlite3 - BoringSSL - WebK
194.
▲
by
Jarred
4y ago
Here is a relevant link: https://bugs.chromium.org/p/chromium/issues/detail?id=124697... It sounds like they haven't decided whether to do it or not
195.
▲
by
Jarred
4y ago
We are planning to expose zstd as a runtime API in Bun. zstd is great
196.
▲
Oven (YC S19) is hiring C/C++ or Zig engineers to build Bun
(bun.sh)
1 points
by
Jarred
4y ago
197.
▲
by
Jarred
4y ago
“blazing fast” often means “I want to say it’s fast but I’ve never benchmarked it”
198.
▲
by
Jarred
4y ago
Lower than “tls” and “dns”, but not much lower. It’s necessary for databases and anything databases need is important for Bun to support well
199.
▲
by
Jarred
4y ago
Most of the code is here. It needs some linker config but basically you wrap symbols which depend on too new versions of glibc and dynamically load them or call some other implementation internally https://github.com/oven-sh
200.
▲
by
Jarred
4y ago
Bun is able to run in these environments now - before it had that glibc error Right now you’d need to download it via curl https://bun.sh/install | bash But we need to make that better
201.
▲
by
Jarred
4y ago
We want Bun to feel more like an upgrade from Node than switching runtimes Basically everything that doesn’t rely on node’s internal “bindings” C++ stuff should eventually be supported
202.
▲
by
Jarred
4y ago
I would love for us to do this builtin to Bun.serve() No idea about timeline but something we are thinking about
203.
▲
by
Jarred
4y ago
You can set “jsxImportSource” in tsconfig.json or jsconfig.json to point to a different jsx package There is also a setting in bunfig.toml but it appears we haven’t documented it yet
204.
▲
by
Jarred
4y ago
The “tls” module is on our list of node core modules to implement, somewhere near the top
205.
▲
by
Jarred
4y ago
I work on Bun happy to answer any questions or feedback
206.
▲
by
Jarred
4y ago
Bun is an all-in-one JavaScript/TypeScript bundler, runtime, package manager, and transpiler focused on being being fast and a drop-in replacement for Node. Much of it is written from scratch in Zig. Bun also adds many runtime APIs lik
207.
▲
by
Jarred
4y ago
I think you mean Bun https://bun.sh Please share any feedback jarred@oven.sh
208.
▲
by
Jarred
4y ago
Spawning processes was added in Bun v0.2.0 (released three days ago). It internally uses posix_spawn. That being said, there’s definitely still a lot of work to do in Bun
209.
▲
by
Jarred
4y ago
When you import “react-dom/server” in Node, it actually loads “react-dom/server.node.js” When you import “react-dom/server” in browsers or Deno, it loads “react-dom/server.browser.js” When you import “react-dom/serv
210.
▲
by
Jarred
4y ago
I think it’s better to do it via multiple JS VMs than one http server splitting the work between multiple threads. There’s really not enough work for it to be worthwhile otherwise Bun will eventually implement Worker/worker_threads and
More ›