Yes, as said, my Rust-Sailfish images need a lot of build.rs
hacking, and it’s not clean, at all. If at all possible, I’d rather spend effort in getting qmetaobject-rs
and alike to build on SFDK.
About Go and Rust, let me get you some to go with this: I have never written a line of Go, I am the new “organizer” (haven’t organised anything yet, because COVID strikes) of the Belgium Rust User Group. I’d consider myself part of the Rust Evangelism Strike Force.
That said, Whisperfish 0.5 was written in Go. What I completely disliked (but that could have been the Go-Textsecure library) was the callback hell. Textsecure required from Whisperfish to implement certain methods that called back into the QML to get passwords, phonenumbers, etc. I found it became quite a spaghetti. The GoMethod()
vs goMethod()
way of distinguishing public and private was very confusing to me (it still is).
What did go well, was mapping go
routines onto my async worker. I did have to write a Qt-Sailfish specific async runtime (fancy Rustspeak for an event loop) to get it to work, but hey, that was fun!
In the end, I’m unsure what hole Go would fill for me. I use Rust for almost anything, and when I do want something dynamic, I’d revert to Python or Scheme or something like that. But that’s probably because I didn’t join the Go-train when it was there, and at this point I’d be very late joining it!
By the way, feel free to join #whisperfish (on Freenode IRC) or #whisperfish:rubdos.be (on Matrix) if you want to talk about Rust (on Sailfish). That’s an invite for everyone here. We tend to go off-topic now and then anyway, talking about electric cars and such.