<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Sorting in the C++20 release</title><link>/technologies/code_exchange/b/blog/posts/sorting-in-the-c-20-release</link><description>I don&amp;#39;t get over-excited about programming languages and their evolution easily.But it happened this time. C++ is introducing a new dialect. The 2020 standard. There are a number of things that are useful but I wouldn&amp;#39;t consider them gro...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Sorting in the C++20 release</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/sorting-in-the-c-20-release</link><pubDate>Sat, 24 Oct 2020 13:37:25 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a79d6d0b-8268-465c-94b5-05955cbeb815</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I now have a Eclipse Windows setup that supports C++ 20 extensions.&lt;/p&gt;&lt;p&gt;I downloaded and unpacked Eclipse 2020-12 release C/C++ edition.&lt;/p&gt;&lt;p&gt;I have Cygwin 64 bit installed, and upgraded GCC from 7.4 to 10.&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/565x240/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-a79d6d0b-8268-465c-94b5-05955cbeb815/1817.contentimage_5F00_192853.png:565:240]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I created a new &amp;quot;C++ Managed Build&amp;quot; project and selected Cygwin GCC.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/523x402/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-a79d6d0b-8268-465c-94b5-05955cbeb815/5040.contentimage_5F00_192854.png:523:402]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Checked the Cygwin settings in the project properties:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x289/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-a79d6d0b-8268-465c-94b5-05955cbeb815/7268.contentimage_5F00_192855.png:620:289]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Then set the dialect to C++2a, the preview of the not yet established standard:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x262/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-a79d6d0b-8268-465c-94b5-05955cbeb815/1401.contentimage_5F00_192856.png:620:262]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Success. Here&amp;#39;s a sorting example being debugged:&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x291/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-a79d6d0b-8268-465c-94b5-05955cbeb815/5633.contentimage_5F00_192857.png:620:291]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The code in the debug window is using the new &lt;strong&gt;&amp;lt;==&amp;gt;&lt;/strong&gt; operator. It works.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10042&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Sorting in the C++20 release</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/sorting-in-the-c-20-release</link><pubDate>Thu, 15 Oct 2020 09:55:40 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a79d6d0b-8268-465c-94b5-05955cbeb815</guid><dc:creator>Fred27</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Despite being a professional C# developer since C# was in beta (over 20 years ago), I&amp;#39;ve dabbled in C++ but it&amp;#39;s never really grabbed me. C seems to suit me better for embedded and C# for bigger stuff.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Rust is looking really nice for low level stuff. I&amp;#39;ve had a play and it&amp;#39;s on my list of things to learn. It does seem to be really taking off - especially with Microsoft starting to use it for internal development of Windows, etc. Right now there doesn&amp;#39;t seem to be much in the way of jobs that mention Rust though. Also, whilst embedded Rust development is possible and you can use Visual Studio Code as an IDE and debugger, none of the big players have integrated it into their own toolchains yet.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10042&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Sorting in the C++20 release</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/sorting-in-the-c-20-release</link><pubDate>Wed, 14 Oct 2020 19:12:09 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a79d6d0b-8268-465c-94b5-05955cbeb815</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I remember when C++ came out and was supposed to be the next best thing to sliced bread.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In some areas it came close to living up to its hype, in other areas, not so much.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Like any language, you have to take time to learn and understand what it can do and how you need to use it before you become truly proficient.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10042&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Sorting in the C++20 release</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/sorting-in-the-c-20-release</link><pubDate>Wed, 14 Oct 2020 08:57:53 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a79d6d0b-8268-465c-94b5-05955cbeb815</guid><dc:creator>BigG</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Thanks for sharing this update &lt;span&gt;[mention:acaf6a9338de4eef8f6717d5561ed01d:e9ed411860ed4f2ba0265705b8793d05]&lt;/span&gt;.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Back in the 1990&amp;#39;s I was involved in a real-time monte-carlo based simulation software project, which was all done in C++. Back then computers were slow and the sorting algorithms made a huge difference. While I could never quite fathom C++ back then and had whizzy programmers doing the work. I relied on Visual Basic for my analytics software instead. It was slow but it integrated very nicely with Excel. A classic lose-win scenario. Anyhow, sorting algorithms made a huge difference there too - we&amp;#39;re talking minutes of a difference with VB. With more speed and power, I can fully appreciate how this (STL option) should now make a difference in reducing code size and complexity. This is a good feature... and thanks to the many applications and good quality examples out there I am finally understanding C++ and I might even find a need for this &amp;lt;=&amp;gt; comparator (beside applying it in a new emoticon&amp;nbsp; &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-a79d6d0b-8268-465c-94b5-05955cbeb815/contentimage_5F00_403.png:16:16]&lt;/span&gt;).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;And then I look at Python. I keep reading about the hype and the buzz about Python but it has yet to grab me and I&amp;#39;ve yet to find a project that requires it (I realise my Linux desktop is all done in Python so I know it&amp;#39;s pretty good). Recently, I looked at the end to end programming process rather than just the language and compared it to GO or Golang and thought Golang did things better than Python (although there&amp;#39;s not many examples out there). But that&amp;#39;s just me.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Then much like &lt;span&gt;[mention:b0bc65b9ecdc4307bd967592f00e340a:e9ed411860ed4f2ba0265705b8793d05]&lt;/span&gt;&amp;nbsp; I often wanted to learn C# (and TypeScript) but yet to find a compelling reason to use it. Maybe one day.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; /----\&lt;/p&gt;&lt;p&gt; / &amp;lt;=&amp;gt; \&lt;/p&gt;&lt;p&gt;|_|_|_|_|&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;C://&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10042&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Sorting in the C++20 release</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/sorting-in-the-c-20-release</link><pubDate>Tue, 13 Oct 2020 21:12:07 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a79d6d0b-8268-465c-94b5-05955cbeb815</guid><dc:creator>neuromodulator</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;C++ has turned into such a complex language and gets more complex at every release. Today not even Stroustrup knows every feature of the language.&lt;/p&gt;&lt;p&gt;The other aspect that I don&amp;#39;t like much about C++, is that the STL is very limited, and installing external libs can get quite complex. There is no reason for Python to require less coding time than C++, except because Python&amp;#39;s libraries are more readily available and easier to install and use.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;These days I mostly use Python, but I still find it a pretty &amp;quot;ugly&amp;quot; language, I don&amp;#39;t like their duck typing, the spacing being part of its syntax, and its OOP with lack of encapsulation (justified by their: &amp;quot;we are all adults&amp;quot;). The only reason I use Python is because of how easy it is to prototype an idea.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10042&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>