Artur
Look at the library items now
It doesn’t matter i talked about compiler features not the library items
Ludovic 'Archivist'
Danya🔥
Look at the library items now
Overall GCC and Clang are more up-to-date
Ludovic 'Archivist'
Ludovic 'Archivist'
Not to mention that non-compliant implementations are still green on cppreference
Danya🔥
I guess Microsoft decided not to invest money in compiler support for C++23. I hope they at least invested the saved money into ARM support in the compiler.
Ludovic 'Archivist'
And the no-coroutines in clang is very ew
Ludovic 'Archivist'
I guess Microsoft decided not to invest money in compiler support for C++23. I hope they at least invested the saved money into ARM support in the compiler.
I think the compiler team is just shitty compared to the standard lib team. Sy Brand is a pretty good dev
Artur
The thing about standard lib is that they open sourced it and there have been quite a few contributions from other devs, that’s one of the reasons why it so well implemented
Danya🔥
They also conducted public PR reviews which is nice https://youtube.com/playlist?list=PLReL099Y5nRffygixwNJhENbYxhuJL6Ei&si=q_NK6sasKPzeWsV7
Ludovic 'Archivist'
I think the compiler team is just shitty compared to the standard lib team. Sy Brand is a pretty good dev
What is shitty at MS is that they implement C++ in two different compilers without team communication. The Intellisense is basically a second, full blown compiler and it makes their life hell
Ludovic 'Archivist'
(also, one day, they will understand error messages, probably in 2333)
Danya🔥
True
I once used a feature that was supported in the compiler but not in the ide. So I needed to ifdef on intellisense.
Artur
Anyway let’s end that conversation, each compiler has its positive and negative side. Let’s just hope that in C++ 26 we get static reflection, pattern matching, more constexpr, more library features and more template features … Want to be a true C++ dev? Switch to Linux :) in fact I haven’t had a single C++ job where I would puerilely develop for Windows 🤔
Pavel
What standards? GCC has a full support for C++ 20 and GCC 14 has nearly a full support for C++ 23
C++20 for example, it took a loooooong time to get structured binding capturable in lambdas in clang. There are still some things not checked for clang on the compiler support page, so technically they don't fully support it
D.
How can I start my coding skill ?give me a suggestions guys
Dalme
Read a book or a tutorial
MᏫᎻᎯᎷᎷᎬᎠ
why do you want to learn to code?
I think we should categorise this type of question to question Similar to xy problem I see this a lot in the forums where someone ask about something and answers be like "why do you want to use x", "why y" Like hell, just answer the question, it's not like he is going to write the full context of the problem and decisions made But surely sometimes those who ask don't know what they're looking at
12C76DC
Hello?
12C76DC
Very strange, my recommendations gets removed almost instantly :(
Danya🔥
Danya🔥
Because I posted links?
I don't its logic honestly
12C76DC
I don't its logic honestly
One message was with a link, another was without link. Strange
12C76DC
Anyway, I started learning C++ some weeks ago
12C76DC
There is a very nice source for learning, google for Learn CPP and first result
Rose
Anyway, I started learning C++ some weeks ago
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
12C76DC
I tried few times in the past to learn C++ from books, and failed, but this time with this LearnCPP, it's going good so far
abel
Read some book and begin to write something when you think you can
12C76DC
Yeah, I would not recommend that from my personal experience
D.
Now I am studying BE 3rd ECE ..I have an opportunity to place software companys...so coding skill is must
D.
Thanks everyone
12C76DC
abel
In my experience,you can't wait to learn everything to start to write some code. The best way is to learn the basic structure and then try to write your own project, thus you can find what you should cope with.
abel
Therefore, the key is to practice as early as possible
12C76DC
Yeah, programming is like a craft, you need to do it, and not just read books or watch tutorials about it
Ndongo
Hi I have query in c++ I have a double number suppose 1.45678384 i want that double takes only four digits after decimal number what is the methods
Use conversion especifier "%.4lf" to 4 digits. To change the number of the digits write "%.(number of digits you want)lf" lf = long float that mean Double.
Brooklyn
What is the difference between the g++ compiler and clang compiler
SUPER AGENT
What is the difference between the g++ compiler and clang compiler
Both g++ and Clang are popular C++ compilers, but they have some differences in terms of their origins, features, and performance. Here are some key distinctions: 1. Origins: g++ is part of the GNU Compiler Collection (GCC), which is a collection of compilers for various programming languages. It has been around for a long time and is highly mature. Clang, on the other hand, is a compiler front end for C, C++, and Objective-C languages developed by Apple. It was designed to provide better diagnostics and error messages compared to GCC. 2. Language Compatibility: Both g++ and Clang aim to be compliant with the C++ language standards. However, there might be slight differences in their interpretation and support for specific language features. It's always a good practice to consult the documentation for each compiler to understand their specific language conformance. 3. Diagnostics and Error Messages: Clang is known for its advanced diagnostics and error messages, which are often considered more user-friendly and informative than those generated by g++. Clang provides detailed and precise error messages, which can be beneficial during development and debugging. 4. Compilation Speed: Clang is generally faster than g++ when it comes to compilation speed. Clang's modular architecture allows for more efficient incremental compilation, which can be advantageous for large codebases. However, the actual compilation speed might vary depending on the specific code and compilation options used. 5. Optimization and Performance: Both compilers offer optimization options to improve the performance of compiled code. Traditionally, g++ has been considered stronger in terms of generating highly optimized binaries. However, Clang has made significant strides in recent years and is now on par with g++ in terms of optimization capabilities. 6. Platform Support: g++ is available on a wide range of platforms, including Linux, macOS, and Windows, while Clang was initially developed for macOS and later ported to other platforms. Clang has gained popularity due to its use in Apple's Xcode development environment, but it is also widely used on other operating systems. Ultimately, the choice between g++ and Clang depends on your specific needs, preferences, and
Brooklyn
Which is a compiler you would never suggest a person to use?
mito
Both g++ and Clang are popular C++ compilers, but they have some differences in terms of their origins, features, and performance. Here are some key distinctions: 1. Origins: g++ is part of the GNU Compiler Collection (GCC), which is a collection of compilers for various programming languages. It has been around for a long time and is highly mature. Clang, on the other hand, is a compiler front end for C, C++, and Objective-C languages developed by Apple. It was designed to provide better diagnostics and error messages compared to GCC. 2. Language Compatibility: Both g++ and Clang aim to be compliant with the C++ language standards. However, there might be slight differences in their interpretation and support for specific language features. It's always a good practice to consult the documentation for each compiler to understand their specific language conformance. 3. Diagnostics and Error Messages: Clang is known for its advanced diagnostics and error messages, which are often considered more user-friendly and informative than those generated by g++. Clang provides detailed and precise error messages, which can be beneficial during development and debugging. 4. Compilation Speed: Clang is generally faster than g++ when it comes to compilation speed. Clang's modular architecture allows for more efficient incremental compilation, which can be advantageous for large codebases. However, the actual compilation speed might vary depending on the specific code and compilation options used. 5. Optimization and Performance: Both compilers offer optimization options to improve the performance of compiled code. Traditionally, g++ has been considered stronger in terms of generating highly optimized binaries. However, Clang has made significant strides in recent years and is now on par with g++ in terms of optimization capabilities. 6. Platform Support: g++ is available on a wide range of platforms, including Linux, macOS, and Windows, while Clang was initially developed for macOS and later ported to other platforms. Clang has gained popularity due to its use in Apple's Xcode development environment, but it is also widely used on other operating systems. Ultimately, the choice between g++ and Clang depends on your specific needs, preferences, and
You copy pasted this from ChatGPT didn't you?
harmony5 🇺🇳 ⌤
Both g++ and Clang are popular C++ compilers, but they have some differences in terms of their origins, features, and performance. Here are some key distinctions: 1. Origins: g++ is part of the GNU Compiler Collection (GCC), which is a collection of compilers for various programming languages. It has been around for a long time and is highly mature. Clang, on the other hand, is a compiler front end for C, C++, and Objective-C languages developed by Apple. It was designed to provide better diagnostics and error messages compared to GCC. 2. Language Compatibility: Both g++ and Clang aim to be compliant with the C++ language standards. However, there might be slight differences in their interpretation and support for specific language features. It's always a good practice to consult the documentation for each compiler to understand their specific language conformance. 3. Diagnostics and Error Messages: Clang is known for its advanced diagnostics and error messages, which are often considered more user-friendly and informative than those generated by g++. Clang provides detailed and precise error messages, which can be beneficial during development and debugging. 4. Compilation Speed: Clang is generally faster than g++ when it comes to compilation speed. Clang's modular architecture allows for more efficient incremental compilation, which can be advantageous for large codebases. However, the actual compilation speed might vary depending on the specific code and compilation options used. 5. Optimization and Performance: Both compilers offer optimization options to improve the performance of compiled code. Traditionally, g++ has been considered stronger in terms of generating highly optimized binaries. However, Clang has made significant strides in recent years and is now on par with g++ in terms of optimization capabilities. 6. Platform Support: g++ is available on a wide range of platforms, including Linux, macOS, and Windows, while Clang was initially developed for macOS and later ported to other platforms. Clang has gained popularity due to its use in Apple's Xcode development environment, but it is also widely used on other operating systems. Ultimately, the choice between g++ and Clang depends on your specific needs, preferences, and
Nice chatgpt response
Pryimaks
If you can, why not, ahaha 😂
harmony5 🇺🇳 ⌤
A. R.
If you can, why not, ahaha 😂
I was about to say, I legit got banned from the main python community group on this platform because somebody asked a question and my response looked too concise and complete to the 200 iq admins They thought I'd copied a response from an AI service
A. R.
Least toxic programming forum btw
Pryimaks
A. R.
Toxic is a base of all
True. I did eventually realize that I was in fact at fault for questioning this very foundation and pillar of such communities, how dare I expect mental stability from (SOME) forum/community admins lol, dude was a discord mod at heart P. S. : emphasis on "SOME", please don't ban me D:
A. R.
People should not be mean for information as long as it serves the purpose
I fully agree, but I do also understand the concerns that come with presenting information gathered or generated using an experimental technology; even assuming the AI tech is not experimental, the information it provides are more than often not properly referenced/cross-referenced or fact checked, and neither do they provide further info or sources on said information. At least for now, all of the AI platforms out there are blackbox and not of the "explainable" kind (which means they lack transparency), thus why I think people don't condone or in some cases even tolerate answers provided by them from other users. It's also the fact that they don't see it as expert and proper advice, which is right, because if the person asking the question wanted a generic answer, they'd have used an AI to get those kinds of answers and results themselves. I think it depends on the context, if the question is very generic, it's almost always okay to give generic (a.k.a. AI generated) answers to them, but in situations and contexts requiring actual often undocumented advice based on expertise and experience, I don't really like getting AI answers either. But then again, people should almost always be fact checking whatever they see on the internet anyways if they don't want it to come back and bite them later.
Danya🔥
Stop offtoping
A. R.
Stop offtoping
Sorry, mb I dragged this lol I'll stop now. 👍
Liang
ez
Hii
bhai DSA c++ ka handwritten notes ??
Sing-ehbe
Hi please how to write a programme c that output "-" for example 20 times without using boucle? I'm a beginer if someone can help me
Thomas
Hi please how to write a programme c that output "-" for example 20 times without using boucle? I'm a beginer if someone can help me
i assume you are looking to iterate it so you would do something similar to this: #include <stdio.h> int main(){ for(int i=0; i <20;i++){ printf("-"); } return 0; }
Thomas
They said without using loops
oh i didnt know what boucle meant
Thomas
why would anyone even want to do that, for loops exist for a reason
Sing-ehbe
OK thank you but we can't do without using iteration?
Leovan
Hi please how to write a programme c that output "-" for example 20 times without using boucle? I'm a beginer if someone can help me
char buff[21]; memset(buff, '-', 20); buff[20] = '\0'; printf("%s\n", buff);
Suka
Yes
nice. thanks
Leovan
Guys, is it possible somehow to do template function specialization like this? template<typename T, typename... Args> void Func(size_t id, Args... args); template<> void Func<SomeClass>(size_t id, Args... args); So I want to leave variadic Args, but specify T = SomeClass
Melvin
/start
Rose
/start
Heya :) PM me if you have any questions on how to use me!
Melvin
/start
/help