Live data from Hacker News

Git: Introduce Rust and announce it will become mandatory in the build system

lore.kernel.org

11–20 of 433 posts

Re: Git: Introduce Rust and announce it will become mandatory in the build system

#11
post #7

"Announce that Git 3.0 will make Rust a mandatory part of our build infrastructure." Sounds like it will be mandatory to use Rust to build all of Git. The title implies Rust itself will be mandatory.

how is that not the same thing?

Re: Git: Introduce Rust and announce it will become mandatory in the build system

#12

Earlier quoted context omitted.

There's at least one proprietary platform that supports Git built by via a vendor-provided C compiler, but for which no public documentation exists and therefore no LLVM support is possible. Ctrl+F for "NonStop" in https://lwn.net/Articles/998115/

How is this git's concern?

They enjoy being portable and like things to stay that way so when they introduce a new toolchain dependency which will make it harder for some people to compile git, they point it out in their change log?

Re: Git: Introduce Rust and announce it will become mandatory in the build system

#13
post #7

"Announce that Git 3.0 will make Rust a mandatory part of our build infrastructure." Sounds like it will be mandatory to use Rust to build all of Git. The title implies Rust itself will be mandatory.

how is that not the same thing?

One phrasing implies contributions will have to be in Rust, the other doesn’t.

I was confused in the same way after reading the submission title. Mandating Rust would be a far more radical change.

Re: Git: Introduce Rust and announce it will become mandatory in the build system

#14

Earlier quoted context omitted.

how is that not the same thing?

One phrasing implies contributions will have to be in Rust, the other doesn’t. I was confused in the same way after reading the submission title. Mandating Rust would be a far more radical change.

I see. No, I understood it the way it is, as introducing it as a new hard dependency in git 3. I suppose it is a pilot for making it mandatory for contributions / incrementally replacing the existing code in the future, though.

Re: Git: Introduce Rust and announce it will become mandatory in the build system

#15
post #7

"Announce that Git 3.0 will make Rust a mandatory part of our build infrastructure." Sounds like it will be mandatory to use Rust to build all of Git. The title implies Rust itself will be mandatory.

how is that not the same thing?

You could read "Rust will become mandatory" as "all contributors will need to be able to code Rust" or even "all new code has to be written in Rust" or similar variations

Re: Git: Introduce Rust and announce it will become mandatory in the build system

#16
post #6

> Introducing Rust is impossible for some platforms and hard for others. Please could someone elaborate on this.

See this page [1], particularly the 'Tier 3' platforms. [1] https://doc.rust-lang.org/beta/rustc/platform-support.html

Thanks for the specifics, really fascinating list! I'm sure I'm being a bit flippant, but it's pretty funny that a list including the Playstation 1, N64, and Apple Watches is in the same conversation as systems that need to compile git from source.

Anyone know of anything on that list with more than a thousand SWE-coded users? Presumably there's at least one or two for those in the know?

Re: Git: Introduce Rust and announce it will become mandatory in the build system

#17

> Introducing Rust is impossible for some platforms and hard for others. Please could someone elaborate on this.

There's at least one proprietary platform that supports Git built by via a vendor-provided C compiler, but for which no public documentation exists and therefore no LLVM support is possible. Ctrl+F for "NonStop" in https://lwn.net/Articles/998115/

Shouldn't these platforms work on getting Rust to support it rather than have our tools limited by what they can consume? https://github.com/Rust-GCC/gccrs

Re: Git: Introduce Rust and announce it will become mandatory in the build system

#18

Earlier quoted context omitted.

There's at least one proprietary platform that supports Git built by via a vendor-provided C compiler, but for which no public documentation exists and therefore no LLVM support is possible. Ctrl+F for "NonStop" in https://lwn.net/Articles/998115/

Shouldn't these platforms work on getting Rust to support it rather than have our tools limited by what they can consume? https://github.com/Rust-GCC/gccrs

Isn’t that’s what’s happening? The post says they’re moving forward.

Re: Git: Introduce Rust and announce it will become mandatory in the build system

#19

Earlier quoted context omitted.

There's at least one proprietary platform that supports Git built by via a vendor-provided C compiler, but for which no public documentation exists and therefore no LLVM support is possible. Ctrl+F for "NonStop" in https://lwn.net/Articles/998115/

Shouldn't these platforms work on getting Rust to support it rather than have our tools limited by what they can consume? https://github.com/Rust-GCC/gccrs

Yes. It benefits them to have ubiquitous tools supported on their system. The vendors should put in the work to make that possible.

I don’t maintain any tools as popular as git or you’d know me by name, but darned if I’m going to put in more than about 2 minutes per year supporting non-Unix.

(This said as someone who was once paid to improve Ansible’s AIX support for an employer. Life’s too short to do that nonsense for free.)

Post reply on HN