Replace C++ code with Rust


#42

btw how is rust progress going on? Any bindings for graphical apps?


#43

I’d like to see bindings for Swift, also. I wouldn’t want to replace C++ but I think it would be a nice addition.

I know Swift 3 is in HaikuDepot, but I don’t know the state of Swift 4.


#44

Let the patches coming, guys!


#45

I wish I could help with that. I’m more of a user these days. The last real program I wrote was a front end for BeMAME, before the maintainer(s) tacked their own on.


#46

Always good to see people respect other’s opinions and decisions…


#47

I’ve actually heard that this language is the truly best for operating systems and it’s so easy to use that I bet it would save tons of time and effort even if we just had to start over in this language.


#48

That’s actually “Smalltalk”… just kiddy-fied.


#49

Would be time to close this discussion?


#50

‘Scratch’ looks like a good way to introduce youth to programming.


#51

Only if you want to be anti-social…

I think this topic has been brought up before elsewhere and the problem is that Rust in a C kernel is fine as it interfaces just fine with C eg you can write Linux kernel modules in Rust. However Rust in a C++ kernel is probably not very nice and would require boilerplate for a lot of things.


#52

Sure i am so anti-social, because i write over 200 tutorials, helping in the forums and over places.

I wrote this because this discussion has arrived a endpoint and we need to do our focus on importand things, so we should close it.

Written words can be ready on several ways.

Why on a time all users crying for the release of a beta and r1 release, the developers of haiku should switch to a new dev main language? Do you want to wait again 10 years?

I wish all a nice weekend with much sun, like here in hamburg (germany)


#53

I’m going to work on ThermiteOS. Haiku userland reimplemented in Rust, on top of the hurd kernel, and Hey will be reimplemented in Brainfuck. Still serious about magnesium as the bootscript, but open to alternatives.


#54

I suggest F# for the bootloader, i’m working on porting a subset of .NET for it


#55

I’m not sure a music note gets hot enough to start thermite.


#56

Does it actually tell you how to fix your problem? It thought it will tell you if you have a logical error?


#57

Can I see the repository to ThermiteOS please?


#58

As cool as Rust is Haiku can get a lot of the benefits of Rust just by adopting modern C++17 standards without losing backwards compatibility.


#59

FYI - Rust 1.27.0 is out: ( https://www.osnews.com/story/30507/Rust_1_27_0_released ).


#60

Sorry if i came across badly I can be a bit sarcastic at times… I

In all seriousness though closing a thread doesn’t do anything but temporarily end communication on a matter… It’d just get brought up in a new thread anyway since it’s a popular topic. Threads should only be closed if rules are broken IMO or an OP requests it etc…

In any case based on the recent posts it looks like rust is actually in decent shape at least for console apps… it would be interesting to see how hard porting the GUI is also since that would be harder due more C++ issues there… but QT and other C++ frameworks have bindings to rust so perhaps not impossible. It would be cool if Web+ could get servo working inside it… since that is based on the chrome embedded framework.


#61

Web+ is staying with webkit , an engine written in a programming language that I can understand. But if someone wants to port servo, have fun!