Have someone already integrated Rust language for application creation for SFOS?
As i have already programmed for 5 years - one of the last languages i’ve learned - is the Rust language. Before i tried it - i have never had that enjoyed experience before. Now when i write new backend / system application - i do it only in Rust, as its compiler lets me see: no segmentation faults / no memory leaking / native C execution speed / even some of business logic errors due to iam using “Type state” pattern - which is always checked at compile time. So when mu project is compiled - i know for sure that it works for sure, as long as integration tests pass. So the question is next. Is the ability to write applications for SFOS in rust natively? Like with no tricks, no bolierplate, maximum i would afford - is like run some bootstrap script to setup the project. Thank you!
You need some more components to build a valid SFOS app. A C or Rust executable file is not enough. Read the documentation
and search here in the forum for “Rust”
Also a good start is to install the SDK
and build one of the examples. You can see what needed and where to add your Rust lib.
Happy hacking.
1 Like
It’s not the language that counts.. languages are just tools (so use what you or your coding agent is best at → PRO tip: the easier the language syntax, the better are AI results) and stop being a Rust evangelist
.
Happy (vibe engineering) / coding!
3 Likes
There are also some Rust Sailfish-Apps out there already, the most famous one probably Whisperfish: Whisperfish / Whisperfish - Signal on Sailfish OS · GitLab
Another app to look into is Dee. It’s also written with Rust.
I am also looking for app development on Rust.
1 Like
When the tool is good - then working with it is the joy. If the tool is shitty and falling apart during work with it - then work with it feels frustrating. Evangelist - it requires to be a believer. I do not need to be a believer anymore, because I have tried already in variety of my projects. Never had such experience before with C++, JavaScript, even with python. Now constantly sure - if my code compiles - it works as long as integration tests works, not even unit tests, because they are mostly not needed there. Microsoft team did a research of the bugs they had while they were fully into C++. 70% of errors - were situations when compiler did’nt prevent developer from mistakes of working with memory. There is people nature to make mistakes. And compiler’s duty to check the program correctness before even letting compile it.
2 Likes
Look like good native development in rust. I’am exploring it now. Thank you!
Dee. I see its implemented as library, and then used in C++ code. Seing lot of Foreign Function Interface bridges to C language - things i wanted to avoid as much as possible. IFNdef, Define, including protectors, unsafe code, nullptr. That’s definadely what i wanted to avoid. Just looking trough whisperfish. Look exactly as something i wanted.
Note that a lot of things in Whisperfish are macros and bindings as to not expose the manual C++ a lot. In the process of writing the bindings and macros, we pushed a lot of opinions that may be (too) Whisperfish-specific.