Sasuke
really???? T_T
Nah just kidding
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
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.
MᏫᎻᎯᎷᎷᎬᎠ
Constexpr SQL: a compile time SQL library GitHub link: [https://github.com/mkitzan/constexpr-sql](https://github.com/mkitzan/constexpr-sql) For my honors project at UVic, I wrote a library which parses string literal SQL queries into relational algebra expression trees at compile time. Using Constexpr SQL and modern C++ programming idioms you can query containers of `std::tuple`-like objects as you would query tables in SQL. The repo's README has information on [features](https://github.com/mkitzan/constexpr-sql#library-features-and-compiler-support) and an [example](https://github.com/mkitzan/constexpr-sql#example) which demonstrates the core library features. The README also has implementation details with references into the code base for folks interested in learning about TMP and `constexpr` parsing techniques. The goal of Constexpr SQL is to eliminate the need for hand-written SQL-like data processing code, and the need to use a DBMS backend in light weight data processing contexts. I'm happy to answer questions and would love some feedback about the project. Feel free to submit issues and pull requests to the repo as needed. https://redd.it/g5l2nt @r_cpp
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
MᏫᎻᎯᎷᎷᎬᎠ
I kinda love and hate Rust.
I'm too Rust ownership has its cons and pros
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
Mar!o
I'm too Rust ownership has its cons and pros
Yeah the general Idea is good but I don' really like the implementation. Also Rust Syntax is not very clean and clear
Anonymous
https://www.youtube.com/watch?v=eZxtUPlLaZI
Renan
But Rust also is there to replace C and not C++
I think Rust is not even close of replacing C.
Mar!o
I think Rust is not even close of replacing C.
Currently it is not - if it will ever replace C it will take decades
MᏫᎻᎯᎷᎷᎬᎠ
Or I am mistaken? 🤔
In terms of what?!
Renan
Currently it is not - if it will ever replace C it will take decades
I thought Rust was Object Oriented but it seems it is not. 😂
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
Mar!o
That dude is.... It's "zero-cost abstraction with whatever a layer you can go into"
If it takes runtime performance or not everything you have to look up is an abstraction
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ᏫᎻᎯᎷᎷᎬᎠ
And abstractions are great and they have their place - but I don't what them around when writing a VM or a kernel
You can go dirty if you want That is what C++ is anyway It will never prevent you from shooting your foot
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
It is what people chose.
We just follow. 😂
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++
Anonymous
Anyone can help me
MᏫᎻᎯᎷᎷᎬᎠ
Anyone can help me
What do you want
Mar!o
Wow Why there are so much smart people
Don't sound so sarcastic :P
MᏫᎻᎯᎷᎷᎬᎠ
Safety might be weakness?
Do you mean In terms of performance?
MᏫᎻᎯᎷᎷᎬᎠ
Do you mean In terms of performance?
If you meant so Rust's ownership model combine both
Mar!o
Do you mean In terms of performance?
Compile time is slower, and is restricts you sometimes
Anonymous
What do you want
I want learn c++ I need material
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
About a material
Anonymous
Don't sound so sarcastic :P
It is really an interesting conversation, which are rare here
Anonymous
Google first
Thank you
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