Serving the Quantitative Finance Community

 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

July 4th, 2024, 3:54 pm

Visual Studio 2022 does not suppport Gaussian integers.
... not end of world, stilll, error messages are scary for some.

https://en.wikipedia.org/wiki/Gaussian_integer
// Not on VS2022
//    std::complex<int> com(1, 1);
//    std::complex<int> com2(1.0, 1);
//    std::complex<float> com3(1.0, 1);
    std::complex<float> com3(1.0, 2.0);

Sorry for the dumb question, But, why VS2022 doesn't support Gaussian integers?
1. they are not mathematicians.
2. incomplete acceptance testing.
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

July 19th, 2024, 2:20 pm

               F1: Rvalues and move constructors (avoiding deep copies and passing objects by value).
               F2: constexpr (generalised constant expressions).
               F3: Initialiser lists and uniform initialisation.
               F4: Type inference (template metaprogramming techniques); determining the type of an expression at compile time.
               F5: Object construction improvement.
               F6: Explicit override and final.
               F7: Template aliases.
               F8: Variadic templates.
               F9: Explicitly defaulted and deleted functions.
 
                F10: Upgrades to standard library components.
               F11: Threading facilities.
               F12: Tuple types.
               F13: Hash tables.
               F14: Regular expressions.
               F15: General purpose smart pointers.
               F16: Extensible random number facility.
               F17: Polymorphic wrappers for function objects.
               F18: Type traits for metaprogramming.
 
               F19: Fold expressions for variadic templates.
               F20: Class template argument deduction (CTAD).
               F21: Optional objects.
               F22: File system library based on boost::filesystem.
               F23: Parallel versions of STL algorithms.
               F24: Variant and Byte data types.
 
               F25: Concepts (see chapter 19).
               F26: Modules.
               F27: New functionality for lambdas.
               F28: Coroutines.
               F29: Ranges.
               F30: std::span (provide a view to a contiguous array).
 
6.2.5 C++23
A discussion of  C++23 is outside the scope of this book.
 
 
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

August 26th, 2024, 1:21 pm

Image
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

November 9th, 2024, 1:03 pm

C++
Attachments
CPP.jpeg
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

January 18th, 2025, 5:25 pm

"Controlled by FAANG" is a silly argument.

Does Louis Brauer know who employs the core members of the C++ Standard Committee? Herb Sutter works for Microsoft.
Mr. Sutter now works at Citadel Securities it seems.
 
User avatar
bearish
Posts: 5906
Joined: February 3rd, 2011, 2:19 pm

Re: C++20

January 18th, 2025, 11:55 pm

“Controlled by Ken Griffin” is not more reassuring!
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

January 21st, 2025, 7:41 pm

an offer he kannie refuse
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

February 1st, 2025, 7:01 pm

"Controlled by FAANG" is a silly argument.

Does Louis Brauer know who employs the core members of the C++ Standard Committee? Herb Sutter works for Microsoft.
Mr. Sutter now works at Citadel Securities it seems.
Good for him, Microsoft is gradually ditching C++
That's an oxymoron.
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

February 2nd, 2025, 11:38 am

"Controlled by FAANG" is a silly argument.

Does Louis Brauer know who employs the core members of the C++ Standard Committee? Herb Sutter works for Microsoft.
Mr. Sutter now works at Citadel Securities it seems.
Good for him, Microsoft is gradually ditching C++
Are they replacing it by Rust?
Or has that idea fallen by the wayside?
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

February 4th, 2025, 8:58 pm



Good for him, Microsoft is gradually ditching C++
Are they replacing it by Rust?
Or has that idea fallen by the wayside?
It hasn't. They are replacing it with Rust and C#. We also have some Python running in containers in production.
C# is a great language. We have used it since 1.0 (no generics then..) We were "trained" by Erik Meijer of LINQ fame.
C# breaks when you want to do clever generics, like maths stuff. C++ templates are miles ahead.
But C# dev productivity is good.

Rust ... not sure if it is good. 
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

February 4th, 2025, 9:27 pm

1. What happened to C++/CLI?
2. What happened to C# Contracts? what a shame.
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

February 6th, 2025, 3:03 pm

A while back (1996) we used C++ and MFC for holography/optics origination based on CAD library. We ported it all to C# with resulting productivity gains. NB especially fixed-price project..
C# had everything we needed at the time. C++ playing catch up.
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

April 24th, 2025, 10:58 pm

1. What happened to C++/CLI?
2. What happened to C# Contracts? what a shame.
2. 
Code Contracts is no longer supported for .NET Core. It's available in the .NET Core 2.0, but it's no longer maintained.

Ugh.  That sucks.
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: C++20

April 25th, 2025, 9:00 am

C++26 promises Contracts ..