I’ve built binaries for gawk and glibc to run freaking bun.
project link
project webpage
binaries (github)
welp. nevermind. it got suspended
Does it work if you avoid storing it in node_modules?
does it take more than 1GB?
It’s like 7MB for gawk (which I don’t think you need after you build glibc), 120MB for glibc (which I don’t think you need all of), and ~91MB for bun.
So like 220MB max.
Also, I’m not sure if those binaries on github work… they might’ve been corrupted by git
I actually built them in /dev/nvme1n1p1
because I kept running out of room in /app
.
There’s a lot more room there, but it gets wiped every so often, so don’t depend on it. Apparently, it also gets checked every so often too, so oof.
/ (and /tmp) have a lot of room
Just note that /tmp
only has a lot of room temporarily: there are bells and whistles that go off when someone starts flooding it with data, and someone on-call is going to have to go in and suspend whatever project is flooding the host because that’s usually someone trying to exploit the fact that /tmp
exists rather than ligitimately using it as temporary storage for a compile or something =)
@tiago that’s bloody amazing, I personally love it, so I’m going to see if I can get us to look into if there’s things we can do on the Glitch side with this after the holiday break!
this is on glibc 2.25. is bun ok with that?
Yeah, glibc 2.25 is what bun requires. You have to build yourself though because ubuntu 16.07.4 only comes with glibc 2.23
oh cool, that version runs fine without patches. you can get a prebuilt version from ubuntu too https://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.27-3ubuntu1.6_amd64.deb
$ bun test.ts
0
well dang, i didn’t even think about that. that’s a way better solution. That way is so much faster.
wouldn’t it be possible to compile stuff using bun’s cli compiler to a binary and then run that? I think it embeds bun in the binary so maybe it’s not worth it
idk. using @wh0’s solution i have a project working just fine on bun. pretty simple to set up.