quant-ux icon indicating copy to clipboard operation
quant-ux copied to clipboard

Support Bun

Open rempas opened this issue 10 months ago • 6 comments

I wonder how no one else has requested, but, I'd like to request support for Bun.

It has very good compatibility with NodeJS so, you probably won't even have to change lots of things.

rempas avatar Feb 03 '25 20:02 rempas

Hi,

thanks for the feedback. Which part would you like to replace with Bun? The node backend? What would you see as the benefit?

KlausSchaefers avatar Feb 03 '25 21:02 KlausSchaefers

Hi,

Hello! I hope thanks for the reply and I hope you're doing great! 😄

thanks for the feedback. Which part would you like to replace with Bun? The node backend?

Yep! I was talking about the backend. Bun is also a package manager so npm is also practically supported. Also, in case that there won't be miscommunication here. I'm talking about extra support. Not replacing NodeJS with Bun. I don't think that lots of people would be happy with the later, lol!

What would you see as the benefit?

Some benefits that I can see are three (listing them starting from the highest importance):

  • People like me that don't have NodeJS and NPM installed won't need to install it so, more portability and fewer dependencies

  • Potential performance and memory consumption improvement from Bun itself

  • Bun has a faster package manager than NPM

Someone might be able to provide more but especially the first one is the reason I asked for support :)

rempas avatar Feb 04 '25 18:02 rempas

I don't have capacity right now and node works fine, so i will park this one.

KlausSchaefers avatar Feb 18 '25 18:02 KlausSchaefers

Hey @rempas ,

Have you tried building it with Bun instead of Node.js? It should normally work right out of the box. The only thing you might need to tweak occasionally is if a developer uses a different package registry outside of npm. I don't know if it applies to Quant, but long story short: it should work.

Anyway, bun would use NPM for dependencies anyway. Except building speed, I don't see any advantage of offering a dedicated bun package - except for Klaus himself, cause I am a bun user myself and it's great.

dev-inside avatar Feb 19 '25 08:02 dev-inside

I don't have capacity right now and node works fine, so i will park this one.

I understand. I just felt like posting it and see how it goes. Thank you so much for your time and effort!

rempas avatar Feb 20 '25 18:02 rempas

Hey @rempas ,

Have you tried building it with Bun instead of Node.js? It should normally work right out of the box. The only thing you might need to tweak occasionally is if a developer uses a different package registry outside of npm. I don't know if it applies to Quant, but long story short: it should work.

Anyway, bun would use NPM for dependencies anyway. Except building speed, I don't see any advantage of offering a dedicated bun package - except for Klaus himself, cause I am a bun user myself and it's great.

I also thought that it should work and tried it, but I got error. Can you build it and run it with bun?

rempas avatar Feb 20 '25 18:02 rempas