Fork me on GitHub
#nbb
<
2022-07-11
>
alexdavis22:07:08

really cool you’re doing this! I just switched a fairly large typescript project over to bun today, 1 weird error that was easily worked around and everything else just worked and now new people don’t have to wait 1000 years to install dependencies 😅 got some nbb scripts I’m going to port too, nbb is really helping in my situation where I’m trying to convince a bunch of js only people that clojure isn’t old and slow 😄

borkdude22:07:23

:-D nice - note that not all of nbb already works with bun, but I think both bun and nbb can grow to like each other more

alexdavis22:07:08

do you have a list of what isn’t working anywhere? no worries if you don’t, I can find out for myself

borkdude22:07:35

nbb assumes node and many node-specific things don't work yet

borkdude22:07:08

I can probably work around that a bit in nbb itself by conditionalizing things

borkdude22:07:40

I'm using this wrapper to launch an nbb script in bun:

import { loadString, loadFile } from 'nbb'

import { readFileSync } from 'fs'

await loadString(readFileSync('index.cljs', 'utf-8'))

borkdude22:07:01

Directly using loadFile doesn't work for some reason, you'll see some "undefined" error

lispyclouds22:07:06

Bun vs node vs rust thing: https://youtube.com/watch?v=qAYFepR4GcE bun looks quite promising!

lispyclouds22:07:20

I wonder how bb performs in that queue benchmark 😄

borkdude06:07:43

What a clickbait title

borkdude06:07:51

Fun watch though

lispyclouds06:07:17

yep, he says in his streams how to outdo his own clickbait-y titles every video 😆

borkdude06:07:48

He also made that vim video right

lispyclouds06:07:17

yep, he has a whole series of all serious and goofy and mixed things, all good quality

lispyclouds07:07:47

Also in the boat of Bun's gonna kill Deno

borkdude07:07:10

Btw, if you watched the video, I don't know what made you say "Bun looks quite promising"

lispyclouds07:07:58

Well it's more from the streams I guess, I saw the times he mentioned when it didn't segfault, bun was able to handle 50% more load than node

lispyclouds07:07:40

It is unstable but looks like it can beat node performance when it does run

borkdude07:07:52

It hardly did any better than Node and then crashed 🤷

borkdude07:07:16

Yeah, sure in general, but from this video, it was nothing to be proud of I think ;)

borkdude07:07:23

Hence: clickbait

lispyclouds07:07:38

Yeah the stream on twitch has more details, but then you need 3 hours of time 😆

borkdude07:07:48

ah, I see :)

lispyclouds07:07:08

It's there on his twitch, I saw the thing being made live

👍 1
ribelo11:07:24

I've been following bun for a long time and it looks really good

ribelo11:07:55

As of today, it looks better than deno, which are making bigger names for much more money

ribelo11:07:57

if there is to be a babashka for bun then I suggest the name babun/bbun and in the logo give a monkey in a hoodie 🙃

borkdude11:07:58

Yea, agreed. I think if you're invested somewhat in Node, it makes more sense to fund bun than deno

borkdude11:07:28

I hope to make nbb compatible with bun (or vice versa) so I don't have to maintain two codebases

borkdude11:07:44

But I've also thought about unbb

😲 1
ribelo11:07:07

first of all ffi in bun looks very good and works very fast

ribelo11:07:14

blazingly fast!

lispyclouds11:07:42

> But I've also thought about unbb Id also vote for bbb

1
lispyclouds11:07:18

blazing bb

😄 2
borkdude11:07:08

I think with only a few tweaks nbb should work with bun. But bun node compatibility isn't there yet

borkdude11:07:19

See linked tweet for how it already works