MᏫᎻᎯᎷᎷᎬᎠ
really???? T_T
Nice emoji T_T
I'll set it as my template naming convention
MᏫᎻᎯᎷᎷᎬᎠ
:D
Anonymous
one question,
assuming im working with short, 2 bytes,
and if i say, short s = 65;
00000000 01000001
then i go, char ch = s;
so the right part of my ‘s’ byte is copied, right?
so i get my ch as 01000001, right?
and then when i print my boy, it shows me 'A',
is this related to big endian ?
and does it always happen like that?? or its dependent??
is this behaviour same with other data types as well ?
thank you
Anonymous
Artöm
It is related, with different endianess it will be 00010100 00000000 and left part will be copied, char is stil 'A'
Artöm
But 'A' may be not 65 with different locale
Anonymous
ohhh ohhh okk alright understood, so if its some endian, it will get copied in that endian way, okeyyy. . .
got it, thank youuu
Anonymous
ummmmmmmm okayyyy, alright
im getting it now,
May i know what exactly locale settings mean ?
Anonymous
ohhh god, this is enough for today.
ohhhkay thank you! once again.
Dima
MᏫᎻᎯᎷᎷᎬᎠ
But It definitely represents the definition of "over Code-bloating"
MᏫᎻᎯᎷᎷᎬᎠ
Yeah
I never tried C# before but I heard nice talks about LINQ
MᏫᎻᎯᎷᎷᎬᎠ
The only gateway for C++ is through Epochs
That's just something inevitable
I can't see why the std committee still refusing it
At least these are not convincing reasons
MᏫᎻᎯᎷᎷᎬᎠ
Well
They don't have enough time
By the time it is accepted, the adoption of Rust will be soo wide and C++ will be a history language
MᏫᎻᎯᎷᎷᎬᎠ
At least they should implement it
For the sake of keeping the state of the language as stable as possible and after that fixes can be made
MᏫᎻᎯᎷᎷᎬᎠ
Yeah
It's just getting bigger and adding more features just to cover the mistakes of others
Over complex
MᏫᎻᎯᎷᎷᎬᎠ
Look at how Rust handles generic type restrictions
C++20 concepts don't do it like that, but worse
MᏫᎻᎯᎷᎷᎬᎠ
It's just a C++ done right
MᏫᎻᎯᎷᎷᎬᎠ
Well
Rust have Editions to keep the backward Compatibility🤷🏻♂
MᏫᎻᎯᎷᎷᎬᎠ
And they really look like they a clear clean roadmap
MᏫᎻᎯᎷᎷᎬᎠ
It's just two step
The adoption
Maturity
And Rust will boom the freak out of C++
Mar!o
I kinda love and hate Rust.
Mar!o
It feels to restricted and it lacks basic features like function overloading
Mar!o
But Rust also is there to replace C and not C++
MᏫᎻᎯᎷᎷᎬᎠ
Speaking of that
Even in simplest thing could be forgotten, but not
Macro system is waay better
Anonymous
https://www.youtube.com/watch?v=eZxtUPlLaZI
MᏫᎻᎯᎷᎷᎬᎠ
Renan
Renan
MᏫᎻᎯᎷᎷᎬᎠ
Read this
Renan
This is a considerable step forward.
Mar!o
Like Linux Torvalds said: With C I know what the computer is doing, I can imagine the assembly language. With C++ and Rust and their annoying abstractions this is not the case
MᏫᎻᎯᎷᎷᎬᎠ
Mar!o
I think C will stay for ever for byte by byte extremly low level programming and Rust and C++ stay in the high performance application area
Renan
MᏫᎻᎯᎷᎷᎬᎠ
Mar!o
MᏫᎻᎯᎷᎷᎬᎠ
The ownership of C library was too complex for Rust to handle it cleanly
Mar!o
And abstractions are great and they have their place - but I don't what them around when writing a VM or a kernel
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
unsafe blocks
Mar!o
I think I might switch to Rust if it has more implementations, a real standart, compile time programming.
MᏫᎻᎯᎷᎷᎬᎠ
unsafe blocks
With idiomatic style you can get your to your goal
Mar!o
And I really hate the file system - each file a module it's so annoying.
Mar!o
If Rust & C++ sucks in the future I will just create my own system programming language! Then can make it like I want :P
MᏫᎻᎯᎷᎷᎬᎠ
Well
It's kinda like filtering my code
When I know where are the unsafe components I'm dealing with or where is the error
Instead of getting a segment fault inside a 10000 LOC
Mar!o
With C++ 20 and Modules it will become better
Renan
It is what people chose.
Renan
Mar!o
1 year ago I loved C++ now I love C. Because C is the programming language of the gods 😆 I use C++ for my games and stuff and it is incredibly powerfull - with control comes responsibility so yes maybe Rust istsafer but the safety might also be a weakness
Mar!o
It's also the peoples fault that C++ is such a mess: Some programmers use macros for constants in C++ 17 instead of const or constexpr variables or macros for functions instead of inline functions
Mar!o
Some write C like C++, some C# like C++ that's the problem
Mar!o
But C will never be replaced for extremely low level programming
Anonymous
Wow
Why there are so much smart people
Anonymous
Hello Team I want to learn C++
MᏫᎻᎯᎷᎷᎬᎠ
Anonymous
Anyone can help me
MᏫᎻᎯᎷᎷᎬᎠ
Mar!o
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
About a material
Anonymous
Anonymous
MᏫᎻᎯᎷᎷᎬᎠ
With templates they will Never be a clean C++ xD
Mar!o
Yeah that's true it is messy but combined with the peoples different styles it becomes more messy. The most beautiful and cleanest language I've ever seen is C#. I think it is beautiful.
Anonymous
There is a beautiful language within C++ that is struggling to come out
This is brilliant
MᏫᎻᎯᎷᎷᎬᎠ
The first thing they should start with to clean up the language is the std and remove that ugly __Name_Convention
Because of modules are here finally :)
Anonymous
GC and reference semantics are not great for C++ like language