C++ 20 is awesome !

For everything that's not in any way related to PureBasic. General chat etc...
threedslider
Enthusiast
Enthusiast
Posts: 397
Joined: Sat Feb 12, 2022 7:15 pm

C++ 20 is awesome !

Post by threedslider »

Hello all,

I keep maybe four programming language for my work :) : C++, Purebasic, Rust and FreePascal. But talking for C++, I love so much this, C++ 20 is more easy than before, more secure and more features. My favorite are the keyword : class, auto, constexpr and range with for; other as modules, lambdas, templates, concepts, multi-threaded, STL and type safe text formatting.
Often Purebasic is compared to speed as C++ and it will be awesome if Fred integrate C++ Backend for augmenting more power ! :P :shock:
See the article for C++ 20 : https://medium.com/@dgodfrey206/the-c-2 ... fc33c606e4

Of course there is C++ 23 too and the upcoming to C++ 26 : https://sc23.supercomputing.org/proceed ... of184.html

I prefer to C++ 20 from now and I am looking forward to C++ 26 and it is super cool too :mrgreen:

Purebasic I use often, it is awesome and beautiful programming language, I am proud to use it 8)

I keep to Rust and FreePascal as well for learning purpose, Rust is awesome too and can compete to C++ in speed and safety and FreePascal can do very more easily complicate for apps without free memory to use it but I know it more less than C++, Purebasic and Rust... However I will spend more on this because it is a very good programming language too :P

In usual, the programmer doesn't keep one programming language but several to be more multi discipline in various domain :wink:

And you what is your favorite programming language ? :arrow: :idea:

Please share your thoughts, thanks.
User avatar
IceSoft
Addict
Addict
Posts: 1694
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: C++ 20 is awesome !

Post by IceSoft »

threedslider wrote: Sun Jul 28, 2024 10:18 am And you what is your favorite programming language ? :arrow: :idea:
German! ;)
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
threedslider
Enthusiast
Enthusiast
Posts: 397
Joined: Sat Feb 12, 2022 7:15 pm

Re: C++ 20 is awesome !

Post by threedslider »

User avatar
TI-994A
Addict
Addict
Posts: 2740
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: C++ 20 is awesome !

Post by TI-994A »

threedslider wrote: Sun Jul 28, 2024 10:18 am...what is your favorite programming language ?
While I'll always be partial to BASIC, with PureBasic being my current favourite, I'd have to honour the C language for providing the foundational gateway into all the other languages that I use today. Being a self-taught programmer, I tend to stick to the basics, and even now, despite boasting experience in a wide range of languages, I still stick only to the basics.

For example, despite the subtle syntactical differences, Kotlin, Swift, PHP, Java, and Javascript are fundamentally similar to C. Technically, besides its troublesome square-bracket method chaining, even Objective-C is similar at its root. As for OOP and the object-oriented dot notations, that I learned early on from VB.Net. And just like that, I'm a full-stack programmer. :lol:

However, beyond the basics, I'm virtually a newbie. All these languages have many advanced built-in features and functions, from data models to classes, and optimised alternatives to arrays and maps, loops and iterators, observable conditions and callbacks, and much, much more. But I try to use only the basic functions where possible, and implement these advanced stuff only when absolutely necessary. Thanks to the internet, StackOverflow and YouTube are good teachers. :wink:

Believe it or not, with this meagre skillset, I have been working as a senior mobile engineer at a financial institution developing and maintaining Android and iOS apps. :twisted:

So, to answer your question, I would consider myself a language-agnostic programmer. 8)
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
User avatar
Kiffi
Addict
Addict
Posts: 1502
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: C++ 20 is awesome !

Post by Kiffi »

threedslider wrote: Sun Jul 28, 2024 10:18 amAnd you what is your favorite programming language?
Ook!
Hygge
plouf
Enthusiast
Enthusiast
Posts: 282
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Re: C++ 20 is awesome !

Post by plouf »

threedslider wrote: Sun Jul 28, 2024 10:18 am
Often Purebasic is compared to speed as C++ and it will be awesome if Fred integrate C++ Backend for augmenting more power ! :P :shock:
See the article for C++ 20 : https://medium.com/@dgodfrey206/the-c-2 ... fc33c606e4

Of course there is C++ 23 too and the upcoming to C++ 26 : https://sc23.supercomputing.org/proceed ... of184.html

I prefer to C++ 20 from now and I am looking forward to C++ 26 and it is super cool too :mrgreen:

Purebasic I use often, it is awesome and beautiful programming language, I am proud to use it 8)
for me is PureBasic obviously (As the majority of users here)

Others Basic and basic-like programming languanges are also interest..
TI-994A wrote: Sun Jul 28, 2024 3:55 pm
While I'll always be partial to BASIC, with PureBasic being my current favourite, I'd have to honour the C language for providing the foundational gateway into all the other languages that I use today. Being a self-taught programmer, I tend to stick to the basics, and even now, despite boasting experience in a wide range of languages, I still stick only to the basics.

For example, despite the subtle syntactical differences, Kotlin, Swift, PHP, Java, and Javascript are fundamentally similar to C. Technically, besides its troublesome square-bracket method chaining, even Objective-C is similar at its root. As for OOP and the object-oriented dot notations, that I learned
i dont like this common "mistake" who make "Everyting like C" C is not as fundamental and first as many think.. basic was way earlier
and i see no similarity to PHP, PHP is way better :) ONLY the fact that is case INSENSITVE ,itself, makes it a far better one ;)
Christos
threedslider
Enthusiast
Enthusiast
Posts: 397
Joined: Sat Feb 12, 2022 7:15 pm

Re: C++ 20 is awesome !

Post by threedslider »

plouf wrote: Sun Jul 28, 2024 6:00 pm for me is PureBasic obviously (As the majority of users here)

Others Basic and basic-like programming languanges are also interest..
Yeah but Purebasic is the best in comparison to other basic-like :wink:
Maybe only Freebasic compete to Purebasic : https://www.freebasic.net/ :shock:
User avatar
TI-994A
Addict
Addict
Posts: 2740
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: C++ 20 is awesome !

Post by TI-994A »

plouf wrote: Sun Jul 28, 2024 6:00 pm...PHP is way better...
Better than C?

PHP is great and it is my preferred goto language for server-side development. It's the original P in LAMP. :lol:

And it was also written in C. :wink:
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
Quin
Addict
Addict
Posts: 1133
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: C++ 20 is awesome !

Post by Quin »

threedslider wrote: Sun Jul 28, 2024 6:55 pm Maybe only Freebasic compete to Purebasic : https://www.freebasic.net/ :shock:
The next best BASIC I managed to find is BCX. It translates your BASIC code to either C or C++, then runs it through MSVC ,Pelles, Mingw, or any compiler of your choice. It's Windows only and I still use PB a lot, but for writing tiny, windows-specific utilities that need a lot of COM or API calls, it works pretty well too 8). FreeBasic is Linux/Windows/DOS? last I checked, so better if you want at least a portion of PB's magic.

As for my favorite language, it's a tossup between C/C++, AngelScript, PB/SB, and BCX, in no particular order, just what I'm doing for a particular task.
tj1010
Enthusiast
Enthusiast
Posts: 716
Joined: Mon Feb 25, 2013 5:51 pm

Re: C++ 20 is awesome !

Post by tj1010 »

A few notes
1. GCC and MSVC have never complied fully with the ISO. VS 2022 C20 isn't full spec
2. The classic C, C++, NASM, FASM, MASM endorsement of smaller, faster, less RAM is rarely true. The reason is mostly because the people saying it either haven't published finished tools or products to find out, or they did publish something written in one of them but weren't experienced enough to manage heap and stack right and consumed a lot of clock cycles using loops
3. I have no problem getting bugs through C20 linker in VS 2022. From class stack overflows up to double-free. In some cases you have to disable IDE features, but they have nothing to do with compiler and linker features
4. C17 has every security feature like CET, ASLR, DEP, CFI, CFG, and XFG.. Then I beleive DEP, ASLR and CET only in GCC. Both platforms have transparent heap hardening like segmentation and cookies
threedslider
Enthusiast
Enthusiast
Posts: 397
Joined: Sat Feb 12, 2022 7:15 pm

Re: C++ 20 is awesome !

Post by threedslider »

Quin wrote: Mon Jul 29, 2024 1:15 am The next best BASIC I managed to find is BCX. It translates your BASIC code to either C or C++, then runs it through MSVC ,Pelles, Mingw, or any compiler of your choice. It's Windows only and I still use PB a lot, but for writing tiny, windows-specific utilities that need a lot of COM or API calls, it works pretty well too 8).
Nice I try it :) But I prefer to Purebasic ;)
Quin wrote: Mon Jul 29, 2024 1:15 am ... AngelScript...
Me too I love this script very powerful too, specially for games and apps :mrgreen:
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: C++ 20 is awesome !

Post by fsw »

threedslider wrote: Sun Jul 28, 2024 6:55 pm
plouf wrote: Sun Jul 28, 2024 6:00 pm for me is PureBasic obviously (As the majority of users here)

Others Basic and basic-like programming languanges are also interest..
Yeah but Purebasic is the best in comparison to other basic-like :wink:
Maybe only Freebasic compete to Purebasic : https://www.freebasic.net/ :shock:
Didn't code in a BASIC language in a while, but if I remember correctly FreeBASIC is more verbose than PureBasic...
...and there is no macOS version of FreeBasic.

So, all my BASIC points go to... PureBasic!

I am to provide the public with beneficial shocks.
Alfred Hitshock
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: C++ 20 is awesome !

Post by fsw »

threedslider wrote: Sun Jul 28, 2024 10:18 am And you what is your favorite programming language ? :arrow: :idea:
There are a lot of languages I looked into over the years (some new and some old):
C/C++, Objective-C, Swift, Rust, Zig, Inko, Jule, Jakt, Carbon, C3, Go, Vlang, Odin, and some I don't remember anymore...

Many of them have very cool stuff built-in.
I wish I could take a mixer and mix them up until my preferred syntax and functionality comes out...

As far as C style languages Go, currently I prefer C3 over C++.
[pun intended...]

I am to provide the public with beneficial shocks.
Alfred Hitshock
Rinzwind
Enthusiast
Enthusiast
Posts: 690
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

Re: C++ 20 is awesome !

Post by Rinzwind »

The C++ compiler is a technical marvel, but a horribly bloated misused language. So many paradigms, so many keywords. Everything c was, c++ isn't. PureBasic does not "do" c++, but c. It can also only interop with c object code. C++ libraries need wrappers.

My favorite language doesn't exist. And modern programming ways are cumbersome and dependent on framework x, y which will be thrown away in 3 years for framework z. Who thought you could mangle html/css/javascript like that. Certainly hope webasm brings something better to the table soon. My most disliked language is easy: c++ :twisted:
Cyllceaux
Enthusiast
Enthusiast
Posts: 511
Joined: Mon Jun 23, 2014 1:18 pm

Re: C++ 20 is awesome !

Post by Cyllceaux »

My 3 Cents,


Looooooong time ago, I preferred Java. Like version 1.2 and 1.3. It was bloated, yes... But clean. Today's Java is a dump of framework ideas, useless code, boilerplate and crappy frameworks. (but still like reflections)

Later I prefer Xojo. I loved how easy the constants handle was and the extending of "objects". But Xojo bloated more and more.

Now I prefer PB. Yes, it has problems but I like how small it is. I don't like the idea with compiling libs, but I can live with it.
Post Reply