Anonymous
C with classes ftw
Anonymous
You got this from the first time
Anonymous
Yeah Bjarne
Thanks 😘
Anonymous
Anonymous
MᏫᎻᎯᎷᎷᎬᎠ
Concept should a little bit more helpful and not lazy
MᏫᎻᎯᎷᎷᎬᎠ
Concept should a little bit more helpful and not lazy
Like Providing a compiler messages with the concept in case of SFINE breaking A
Anonymous
Well I like Kotlin more But I agree with you
Anonymous
We need C++ + Kotlin language
Mar!o
Also I think Rust is something big to learn. Iv'e written so much C#/C/C++ and it wasn't that easy to learn Rust for me. Why? Because they do so many thing TOO differently. Traits are basically compile time interfaces. So why not call them interfaces?! Then all the short keyword's like mut or impl are not helpful and self explaining too for a beginner. It is good to do things differently but not too much!
MᏫᎻᎯᎷᎷᎬᎠ
Like Providing a compiler messages with the concept in case of SFINE breaking A
B If you want to use ++ operator You must explicitly include IncrementOp concept
Mar!o
Like: you write the name first then the type integer : i32 why? If it would be the other way around it would align better. Also with mut it randonly changes sides: mut var : u32 or var : &mut u32
Mar!o
It's horrible
Mar!o
Well actually I like the way when types at rhs
It is personal style and opinion of course some like it some not
MᏫᎻᎯᎷᎷᎬᎠ
Universal reference Rvalue reference Lvalue reference. . . .
MᏫᎻᎯᎷᎷᎬᎠ
I mean Wtf
Mar!o
No It's not It's absolutely soo clean In C++ you have many types of references
I don't think so look at this: how it is: age : u8; some_other_value_with_long_identifier : str; some_very_important_value : u128; how it could be: u8 age; str some_other_value_with_long_identifier; u128 some_very_important_value;
Mar!o
YOu instantly see the type
Mar!o
But I like the trailing return types in Rust that's why I use them in C++ too
Mar!o
Universal reference Rvalue reference Lvalue reference. . . .
Yeah they fucked up the references. I think references are a good idea in general
Mar!o
Yeah but null checking sucks - you do not have to do that for references. References are better for Parameters
MᏫᎻᎯᎷᎷᎬᎠ
I don't think so look at this: how it is: age : u8; some_other_value_with_long_identifier : str; some_very_important_value : u128; how it could be: u8 age; str some_other_value_with_long_identifier; u128 some_very_important_value;
You just because you used to it You would prefer to know the variable name before it's type in complex codes And it's a function before its return type so your subconscious doesn't hold for a second to ask itself whether after this int is a function or a member function
MᏫᎻᎯᎷᎷᎬᎠ
I mean like Look at the SFINE in type_traits and all that cheap type checks
Mar!o
You just because you used to it You would prefer to know the variable name before it's type in complex codes And it's a function before its return type so your subconscious doesn't hold for a second to ask itself whether after this int is a function or a member function
Yeah of course I'm used to the C style since I've only written Languanes from the C family :P of course if I would switch to Rust it would change. Also I don't like the name: Rust. C++ or C# sounds cool, when I hear Rust I imagine an old rusty car
Pavel
Universal reference Rvalue reference Lvalue reference. . . .
also they try to rename "universal references" to "forwarding references"
MᏫᎻᎯᎷᎷᎬᎠ
Yeah But after all that makes it a "Trait"
MᏫᎻᎯᎷᎷᎬᎠ
Universal reference was (I think) means to implement the perfect forwarding 🤔
Mar!o
Fuck C++ or Rust I will create my own system programming language! I hate it to depend on others!
Pavel
Yeah, and some guys from the committee don't like him for that :) because they already had a name for this thing Also I think naming something "universal" it's like naming something "final", you don't know if there will be a new category in the future that doesn't fall into universal reference. Then some "more universal than universal" will be created Also "forwarding reference" tells much more about the purpose.
MᏫᎻᎯᎷᎷᎬᎠ
Fuck C++ or Rust I will create my own system programming language! I hate it to depend on others!
I like that type of thinking but really C++ fit my all purposes and even more Just a little bit and will be perfect
Pavel
On his own OS in the perfect world :D
Anonymous
Mar!o
Every developer should program on his own language :)
I have created my own scripting language for my own VM for my own Game Engine - nothing will stop me!!! The problem is: I'm a crazy guy who is working in my own game company as the only programmer. We have modelers, designer and some gameplay programmer n00bs which are using my scripting language in the engine. Since it so very much code and I'm one person I can't just rewrite the systems so I want a future proof language. I would use Rust BUT it is less cross platform than C and if I would write the engine in Rust I would get overhead to the Vulkan C++ libraries!
MᏫᎻᎯᎷᎷᎬᎠ
But Rust is still not matured
Pavel
Hi Pavel, how are you
Hey, I'm still alive
Anonymous
good xd
Mar!o
But Rust is still not matured
That's the problem
Pavel
By the way, how would you rename std::move? I totally agree that's not the best name
MᏫᎻᎯᎷᎷᎬᎠ
Read the pattern matching Proposal in C++
MᏫᎻᎯᎷᎷᎬᎠ
Maybe more
MᏫᎻᎯᎷᎷᎬᎠ
Rust doesn't have downcasting yet
MᏫᎻᎯᎷᎷᎬᎠ
There are Proposal with it to have a wildcard _ as a built-in
Mar!o
Maybe If I create my own programming language I could just cheat and compile to C and Rust and use their opzimizations 🤣
Mar!o
Since writing a compiler for each architecture is quite a lot of work
MᏫᎻᎯᎷᎷᎬᎠ
Yess
MᏫᎻᎯᎷᎷᎬᎠ
Since writing a compiler for each architecture is quite a lot of work
About that What is soool awesome about Rust is its compiler It's cross-platform
Anonymous
Mar!o++ vs C++
MᏫᎻᎯᎷᎷᎬᎠ
You don't need to follow OsDev anymore ;)
Mar!o
Just use LLVM :)
Good idea :) like Rust. And since it is used by Rust i think it is future proof
Mar!o
And because I don't want to rewrite my legacy C++ or C code I will also write a C/C++ to my language converter. It's genius 🤣
Anonymous
xD
Mar!o
You just need a language that links with C++ sources
Yeah that's true - but I will change the linking and file system in my language but add C linking. Terry Davis would be proud xD now with this project I'm busy for the next years. Maybe I'm done when I'm 19 or 20. Hopefully...
Mar!o
How old are you?
Just turned 18 in March. And you?
Mar!o
Haha 😄
Anonymous
Just turned 18 in March. And you?
20 When i was 18 i was stupid af
Pavel
Well, at least for me, some of the examples look awful. Especially with red-black tree. It's like I'm reading a bunch of big nested ternary operators. I mean maybe after working with this pattern matching enough time it would be better, but by the first impression they seems to be kinda complex
Mar!o
20 When i was 18 i was stupid af
In school they think I'm stupid AF because it's boring. I see you are from Germany too. Hallo :) BUT.STOP.THATS.OFFTOPIC.AND.NOT.ALLOWED
Mar!o
#ot
🤣
MᏫᎻᎯᎷᎷᎬᎠ
+ it lets you get to the deepest value inside your many functions calls
MᏫᎻᎯᎷᎷᎬᎠ
With an easy way
MᏫᎻᎯᎷᎷᎬᎠ
Madhu C++ has a pattern matching library Actually two or more xD
Anonymous
https://github.com/mpark/patterns/blob/master/README.md
lock
Ushie
Hello everyone How can u pin on cbar cloud in c++
Anonymous
I am gonna make a code which is a mix of C and CPP. It is for embedded system. Has anyone did this before?