Code Monkey home page Code Monkey logo

Comments (4)

akshatmittal avatar akshatmittal commented on August 16, 2024 1

Thanks for the comments, @PaulRBerg!

  1. Bun is faster

Does it really matter here? The half a second to a second saved isn't going to be impactful right?

  1. Bun is more lightweight;

I do agree with you, it is. Although I'm not quite following the problem with .yarn and one entry in .gitignore. As of right now, (using v4.0.2) .yarn is optional if you want everyone to be on the same version of yarn - which imo is useful, and the only entry I have in .gitignore is the install-state.gz file, which is also optional.

Not true. I use it on macOS

Haha, true, you're not wrong. I should really have mentioned *nix here.

Appreciate the openness here, I will open a discussion to talk about Bun vs Yarn! The only reason I'm even talking about this is because having a single package manager that just works for everyone on the team (using Linux, macOS and Windows), without having to worry about versions, without having to think about the idiosyncrasies or unexpected behaviours is a good experience.

from foundry-template.

akshatmittal avatar akshatmittal commented on August 16, 2024

I have to ask @PaulRBerg, why choose Bun over Yarn?

Perspective: Yarn ecosystem is ubiquitous, supports configurable soft links, hard links, global cache and per-project configs for several things necessary in the Solidity ecosystem. Meanwhile, Bun is (currently) only supported on Linux, is unstable, fairly buggy and for a project like this (and nearly anything in the solidity ecosystem) the benefit of installing dependencies 1s faster are outweighed by the ecosystem alone.

(To be clear, I really like this template, I switched from my own to this a while ago but I always replace <whatever package manager> with Yarn)

from foundry-template.

PaulRBerg avatar PaulRBerg commented on August 16, 2024

I have to ask @PaulRBerg, why choose Bun over Yarn?

  1. Bun is faster
  2. Bun is more lightweight; I've used Yarn V3 for 2+ years, and gotten tired of having to keep the .yarn directory in version control and the complicated entries in .gitignore

Tip: feel free to open discussions for questions like this (which are great!)

Bun is (currently) only supported on Linux

Not true. I use it on macOS

is unstable, fairly buggy and for a project like this (and nearly anything in the solidity ecosystem) the benefit of installing dependencies 1s faster are outweighed by the ecosystem alone.

It wasn't unstable for me. But I hear you on the other points - I will monitor how Bun works and reconsider Yarn.

I really like this template

Thanks

I switched from my own to this a while ago but I always replace with Yarn)

Then, the template works! It's meant to be edited like that.

from foundry-template.

PaulRBerg avatar PaulRBerg commented on August 16, 2024

The half a second to a second saved isn't going to be impactful right?

Fair enough

As of right now, (using v4.0.2) .yarn is optional if you want everyone to be on the same version of yarn - which imo is useful, and the only entry I have in .gitignore is the install-state.gz file, which is also optional.

Oh, that is interesting! I did not know that.

I will open a discussion to talk about Bun vs Yarn!

Please do!

from foundry-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.