Anonymous
Rust is also now taking place on android and linux kernal
Anonymous
And yeah i meant "beast" in terms of extremely massive and complex and thus can do pretty much anything somehow
Nomid Íkorni-Sciurus
Anonymous
like C++ is truely a bit like Frankesteins monster lol. But there is a "modern" part of C++ and you can choose to only use that portion of the language
Anonymous
but you can also choose to pretty much write C
Anonymous
Slowly rust will be used on place of c/c++
Nomid Íkorni-Sciurus
Anonymous
But having a knowledge of c/c++ is great benefit
Nomid Íkorni-Sciurus
Anonymous
You can jump on another language easily
Nomid Íkorni-Sciurus
Anonymous
Why that
Anonymous
Oh
Anonymous
Did you guys know about TempleOS?
Anonymous
which is very bad
I like that freedom. If you want to change the calling convetion in Rust / have inline asm or just anything C++ trusts you with you will most likely have a hard time compiling that in Rust. I only did simple things in Rust so far tho.
Hanz
Anonymous
That was a genius man
Nomid Íkorni-Sciurus
Anonymous
You guys wanna listen templeos soundtrack?
Anonymous
May i send here?
Hanz
Anonymous
I can't send here 😂
Anonymous
well you can choose to not use them^^. Like if your sick of headers, just use modules... i get your point but i think you can choose to develop in a modern way in C++. Even tho. it has artifacts from the past you dont have to use it. But you still can if you see fit. I think thats great about C++
Nomid Íkorni-Sciurus
there were better languages than C already, right before C
Nomid Íkorni-Sciurus
but it was invented just because Unix.
Hanz
So?
Nomid Íkorni-Sciurus
So?
So, we could have developed better software, in less time and with less pain
Nomid Íkorni-Sciurus
obviously this is a conjecture
Anonymous
No pain no gain lol
Hanz
No pain no gain. This is an advertisement in my country 😅
Ahadu
Which one is complex
Python or C++
Hanz
Anonymous
Python is easy man
Anonymous
But yeah. I get your point. I still hope C++ stays around. I just love that you can do whatever you want. I dont get that feeling of freedom and stupidity from any other language
Anonymous
On c/c++ you have to handle so much things yourself
Nomid Íkorni-Sciurus
Anonymous
I should. Never heard of it 😅
Anonymous
Hanz
Hanz
From garbage management to performance
Anonymous
Nomid Íkorni-Sciurus
I should. Never heard of it 😅
It was created for enterprise, and as a replacement of C++.
It took the best of C++ and the best of others like Java and Rust.
And it features autopointers and memory borrowing.
Nomid Íkorni-Sciurus
it is now fully open source.
Ahadu
Nomid Íkorni-Sciurus
and interacts just great with C/C++ code.
Anonymous
i want the D now
Nomid Íkorni-Sciurus
Hanz
nope.
I never saw closed source programming language 🤔
Nomid Íkorni-Sciurus
Anonymous
Yah d lang is still active
Anonymous
Looks great
Nomid Íkorni-Sciurus
Anyway I really hope for D to win against Rust, at least for webassembly.
Anonymous
I recently checked
Anonymous
But why d is so underrated?
Anonymous
Sad
Nomid Íkorni-Sciurus
though. It has good sponsors like Netflix and Ebay.
Talula
Which data member?
Talula
If you want to pass the value by reference make sure the argument is a pointer like int *p
Pass the variable by reference to it, like binarySearch(&num....
Then you can use that reference to find the information and change the value of it if you need to.
Mar!o
Anyway I really hope for D to win against Rust, at least for webassembly.
It probably won't. Rust is growing very fast. Rust is a good language but it also has some flaws. Rust will never beat high end C/C++ performance but that's fine the most cases... C/C++ will probably stay for low level stuff where Rust will take the high performance application area like for example games...
Nomid Íkorni-Sciurus
Nomid Íkorni-Sciurus
I like Rust, but I think the web doesn't need its complexity.
Anonymous
Mar!o
The quote of Rust "Empowering everyone to build reliable and efficient software" is a good term but I think they already made it too complex to keep that quote 🤣
Nomid Íkorni-Sciurus
Anonymous
A B
\ /
C
/ \
D E
In classes D and E, I getting the error ("some var" is not a nonstatic data member or base class of class "some class") when I initialize the variables using initializer list, but when I use the body of the constructor this-> var = var works perfectly.
It doesn't looks a Dreadful Diamond on Derivation problem for me
Nomid Íkorni-Sciurus
Mar!o