News for hackers. Stuff that matters.
Re:Git: Introduce Rust and announce that it will become mand... by riedel on Saturday September 20, 2025 @11:43AM (#45314317)
Given 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 that it will become mand... by GoblinSlayer on Saturday September 20, 2025 @11:46AM (#45314349)
Git works only on cygwin too?
Re:Git: Introduce Rust and announce that it will become mand... by Kwpolska on Saturday September 20, 2025 @12:50PM (#45314980)
No, it doesn't. OP meant that the Rust support on Cygwin is bad; it is better with the native Windows API.
Re:Git: Introduce Rust and announce that it will become mand... by sunshowers on Saturday September 20, 2025 @01:35PM (#45315391)
I don't quite understand. Why use a janky, lossy Linux emulation layer when you can just target Windows natively?
Re:Git: Introduce Rust and announce that it will become mand... by GoblinSlayer on Tuesday September 23, 2025 @04:16AM (#45344247)
For some reason git for windows is a cygwin build.
Re:Git: Introduce Rust and announce that it will become mand... by 1718627440 on Tuesday September 23, 2025 @05:18AM (#45344650)
Because git expects a POSIX API and POSIX tools and also POSIX behaviour like symlinks and line-endings to do its job.
Re:Git: Introduce Rust and announce that it will become mand... by lazka on Wednesday September 24, 2025 @08:14AM (#45359233)
It's a native build. Only various tools it is shipped with are cygwin builds, like bash etc.
Re:Git: Introduce Rust and announce that it will become mand... by GoblinSlayer on Thursday September 25, 2025 @06:38AM (#45371304)
Oh, indeed, but git often calls them.
Re:Git: Introduce Rust and announce that it will become mand... by IshKebab on Saturday September 20, 2025 @01:16PM (#45315210)
Cygwin is an ugly hack anyway.
Re:Git: Introduce Rust and announce that it will become mand... by 1718627440 on Tuesday September 23, 2025 @05:22AM (#45344677)
Git for Windows uses MSYS2, which is a mix of a Cygwin fork and MinGW, the implementation of the Win32 APIs for Linux.
Re:Git: Introduce Rust and announce that it will become mand... by lame_lexem on Saturday September 20, 2025 @12:20PM (#45314669)
jj has msvc builds and is still tire 1 target maybe something particular about your configuration?
Re:Git: Introduce Rust and announce that it will become mand... by riedel on Saturday September 20, 2025 @03:19PM (#45316432)
I want it to be cygwin native, i.e. passing calls through the cygwin posix layer and not use the windows binary. Sure I can use the windows binary, but that is a different thing.
Re:Git: Introduce Rust and announce that it will become mand... by sunshowers on Saturday September 20, 2025 @01:33PM (#45315378)
?? I build Jujutsu and many other Rust programs from source on Windows.

Rust has a much better Windows story than C and bash do, due to its heritage as a language built by Mozilla for Firefox.

Re:Git: Introduce Rust and announce that it will become mand... by riedel on Saturday September 20, 2025 @03:22PM (#45316471)
As said before I wasn't complaining about windows, but rather of not so common posix layers like cygwin [0]. Most C posix compliant stuff compiles in my experience.

[0] https://github.com/rust-lang/rust/issues/137819

Re:Git: Introduce Rust and announce that it will become mand... by sunshowers on Saturday September 20, 2025 @03:40PM (#45316633)
Right, but Rust makes it so you don't have to use Cygwin. It's one of the great portability advantages of Rust that you can write real Windows programs with it.
Re:Git: Introduce Rust and announce that it will become mand... by riedel on Saturday September 20, 2025 @04:25PM (#45317116)
I am not really sure if I can follow here. How could a rust compiled program like git honor my cygwin emulated mount points in paths, which I need, when working with other posix compliant software.
Re:Git: Introduce Rust and announce that it will become mand... by sunshowers on Saturday September 20, 2025 @06:31PM (#45318192)
I thought that if you invoke a native Windows binary with Cygwin, it translates Unix-looking paths into Windows ones. But it's been a long time since I used Cygwin so I could be wrong.
Re:Git: Introduce Rust and announce that it will become mand... by egorfine on Sunday September 21, 2025 @11:37AM (#45323676)
> Rust has a much better Windows story than C

This is an extremely strong statement. Which is so obviously factually incorrect that I tend to think you might have meant something else.

Re:Git: Introduce Rust and announce that it will become mand... by steveklabnik on Sunday September 21, 2025 @12:40PM (#45324303)
As a Windows user, I find random Rust projects work on Windows far more often than random C ones, even if the authors didn’t make a specific attempt to support Windows.
Re:Git: Introduce Rust and announce that it will become mand... by egorfine on Sunday September 21, 2025 @12:43PM (#45324348)
"work" as in "build"? I would agree with that.
Re:Git: Introduce Rust and announce that it will become mand... by steveklabnik on Sunday September 21, 2025 @01:03PM (#45324555)
And run.

My colleague Bryan Cantrill, famously a huge Unix guy, once said to me “if you had told me that projects I write would just work on Windows at the rate they do, I wouldn’t have believed you.” When I started at Oxide I had to submit like one or two patches to use Path instead of appending strings and that was it, for my (at the time) main work project.

Re:Git: Introduce Rust and announce that it will become mand... by sunshowers on Sunday September 21, 2025 @10:10PM (#45328459)
I meant exactly what I said.