https://pantsbuild.org/ logo
#general
Title
# general
f

flat-zoo-31952

05/31/2020, 1:25 PM
yall mention v1 vs v2 quite a bit, but does that refer to any specific release version? or just to two different versions that exist together in the same codebase but refer to different styles and codepaths?
j

jolly-midnight-72759

05/31/2020, 1:50 PM
V1 and V2 refer to the #engine that backs
pants
. I believe the V2 engine is destined to replace the V1 engine when it has sufficient features. Currently V2 only supports python code which is why both engines need to live side by side for now.
👍 1
https://pants.readme.io/docs/contributions-rust indirectly talks about the architectural change.
👍 1
h

hundreds-breakfast-49010

06/01/2020, 5:55 AM
Exactly what @jolly-midnight-72759 said. the v1 engine is pants' traditional execution engine written in python, the v2 engine is the new execution engine written in rust
we're actively developing the v2 engine, but right now it doesn't support languages other than python. this will hopefully change in the near future
both engines currently live in the same codebase. you can use the
--v2
and
--v1
options to toggle them on/off. the
v2
script in the pants repo is a thin wrapper around running
./pants --v2 --no-v1
🙏 1
h

hundreds-father-404

06/01/2020, 9:04 PM
Hey Josh! Good point. I’m going to work today and possibly tomorrow on a page in https://pants.readme.io/docs describing the difference
Hey @flat-zoo-31952, check out https://pants.readme.io/docs/pants-v1-vs-v2. Any feedback appreciated 🙂 Thanks for the suggestion!
😁 1
f

flat-zoo-31952

06/02/2020, 3:31 PM
yes! that's really helpful...especially knowing that i can mix the two versions for now
if there's one thing that i could suggest it's just to make a note that v1 and v2 have nothing to do with the overall pants version, and refer the different engines within the same codebase
👍 1
h

hundreds-father-404

06/02/2020, 3:32 PM
Awesome! Someone in a hacker news post mentioned Pants yesterday and suggested a page describing Pants new architecture. We’ll work on that soon
Ah, good point. And the confusing thing is that we’re actively discussing when the version Pants 2.0 comes out. Confusing
f

flat-zoo-31952

06/02/2020, 3:34 PM
i would adopt some terminology like "v1 = legacy engine" vs "v2 = accelerated engine" or something like that
but that's just an off-hand suggestion
h

hundreds-father-404

06/02/2020, 3:43 PM
Agreed, I wish we had used legacy engine. At this point, we’re so close to removing the legacy engine that it might be confusing to rename. But worth considering
Anyways. Let us know if you have a chance to try our mixed mode and if you have any feedback! One of the exciting things about this redesign is that it’s made it much easier to iterate rapidly on feedback
f

flat-zoo-31952

06/02/2020, 3:57 PM
awesome! i'm doing an evaluation run this week, so i think i need to stick with that to finish my PoC, but after that i'll definitely give the newer versions a try!
❤️ 2
6 Views