> Introducing Rust is impossible for some platforms and hard for others. Please could someone elaborate on this.
You’re chasing after the meaning of “impossible.” Easy. There’s two categories of developers: > I like programming > I program to make money If you belong to the second category - I’m going to be super charitable, it sounds like I’m not going to be charitable and I am, so keep reading - such as by being paid by a giant bank to make applications on Nonstop, there might be some policy that’s like “You have to vet all o…
Git: Introduce Rust and announce it will become mandatory in the build system
81–90 of 433 posts
Re: Git: Introduce Rust and announce it will become mandatory in the build system
#82It's to a "test balloon" if you have a plan to mandate it and will be announcing that. Unless I suppose enough backlash will cause you to cancel the plan .
Re: Git: Introduce Rust and announce it will become mandatory in the build system
#83Earlier quoted context omitted.
AFAIK git already uses multiple languages, github says its 50% C, 38% shell, 4% perl, then 4% TCL python 1% So "another language" here probably does not weigh as much, especially considering perl/TCL are the weirder one there. But for big projects like linux and git, this could actually be a consolidation step: you spent decades growing, hacking things on top of each other. You have mostly figured out what this proje…
I did check this out. The shell, perl and python are likely for scripting and not used during runtime. TCL is likely some form of dynamic scripting. I think we also have to be honest about what the project here is too, it's not to have both C and Rust together, but to replace all C with Rust. In which case, it probably makes sense to just clone to repo and work on a fork like they did with SSH.
Re: Git: Introduce Rust and announce it will become mandatory in the build system
#84> 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/
That's fine. The only impact is that they won't be able to use the latest and greatest release of Git.
Once those platforms work on their support for Rust they will be able to jump back to the latest and greatest.
Re: Git: Introduce Rust and announce it will become mandatory in the build system
#85Earlier quoted context omitted.
My guess is that we (I am also a user of git) won't even notice.
I will leave this here for the future: $ ldd /usr/bin/git linux-vdso.so.1 (0x00007f69c2d64000) libpcre2-8.so.0 => /usr/lib/libpcre2-8.so.0 (0x00007f69c2c81000) libz.so.1 => /usr/lib/libz.so.1 (0x00007f69c2c67000) libc.so.6 => /usr/lib/libc.so.6 (0x00007f69c2616000) /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f69c2d66000) $ ls -alh /usr/bin/git -rwxr-xr-x 1 root root 4.0M Aug 25 11:40 /usr/b…
While we are on Hacker News, this is still an enormously obtuse way to communicate.
Are you saying that as users of git we will be negatively affected by deps being added and build times going up? Do you have evidence of that from past projects adding rust?
Why not just say that??
Re: Git: Introduce Rust and announce it will become mandatory in the build system
#86Re: Git: Introduce Rust and announce it will become mandatory in the build system
#87Given that rust only works on e.g. cygwin recently (and still does not build many crates: i try to compile jujutsu and failed), this is a big blow to portability IMHO. While I try to like rust, I think making it mandatory for builds of essential tools like git is really too early.
Re: Git: Introduce Rust and announce it will become mandatory in the build system
#88How does this help me as a user of git?
https://www.debian.org/releases/trixie/release-notes/issues....
Re: Git: Introduce Rust and announce it will become mandatory in the build system
#89How does this help me as a user of git?
Re: Git: Introduce Rust and announce it will become mandatory in the build system
#90Earlier quoted context omitted.
AFAIK git already uses multiple languages, github says its 50% C, 38% shell, 4% perl, then 4% TCL python 1% So "another language" here probably does not weigh as much, especially considering perl/TCL are the weirder one there. But for big projects like linux and git, this could actually be a consolidation step: you spent decades growing, hacking things on top of each other. You have mostly figured out what this proje…
I did check this out. The shell, perl and python are likely for scripting and not used during runtime. TCL is likely some form of dynamic scripting. I think we also have to be honest about what the project here is too, it's not to have both C and Rust together, but to replace all C with Rust. In which case, it probably makes sense to just clone to repo and work on a fork like they did with SSH.
Some git subcommands are implemented in these. git filter-branch is a shell script, git cvsimport is a Perl script, and git p4 (perforce interop) is a Python script. There are not too many left these days (git add -p/-i also used to call a Perl script), but they exist.