News for hackers. Stuff that matters.
Re:macOS Apps in Rust by foldr on Sunday May 14, 2023 @04:46AM (#35936437)
> https://github.com/therecipe/qt

Do these not work? (Not a rhetorical question - I haven’t tried them.)

Re:macOS Apps in Rust by c4mpute on Sunday May 14, 2023 @07:16AM (#35937135)
They used to work until the big modules change a few golang releases ago. Now, nothing works anymore unless you exhume a sufficiently old golang compiler.

The project also seems dead since 2020 or so, a current fork is https://github.com/bluszcz/cutego/ But I haven't tried that one.

Re:macOS Apps in Rust by foldr on Sunday May 14, 2023 @09:18AM (#35937720)
I see what you mean about this particular project, but more generally, you can certainly use pre-modules Go code with current Go compilers. See e.g. https://github.com/golang/go/issues/37797 (a case of someone not RTFMing, but the response illustrates how it's done).

If you just want to pretend modules never happened, then export GO111MODULE=off and use the latest Go compiler.

Re:macOS Apps in Rust by c4mpute on Sunday May 14, 2023 @09:54AM (#35938008)
In most cases, these things would work, but not here. Tried everything, nothing works except using a pre-modules-compiler.

In general, golang seems to work best with golang-only projects. As soon as there are other languages in the mix, like C++ here, things get very ugly very fast.

Re:macOS Apps in Rust by foldr on Sunday May 14, 2023 @11:06AM (#35938546)
Ah, I think I misinterpreted what you meant by "nothing works anymore". I thought you were saying that no old Go projects were usable with new Go compilers. I believe you that this particular project may not work with the current toolchain.
Re:macOS Apps in Rust by c4mpute on Sunday May 14, 2023 @03:28PM (#35940673)
Ah, yes, that wasn't sufficiently clear in my text. In almost all projects I've done/used, go modules work fine and are nice. It is just this one library that I know ceased to work.