C# 11 - Generic Math(s)

  Рет қаралды 4,533

Coding Tutorials

Coding Tutorials

Күн бұрын

Пікірлер: 18
@CodingTutorialsAreGo
@CodingTutorialsAreGo 2 жыл бұрын
Which features of C# 11 are you most interested in? Let me know in the comments. Source code available at: github.com/JasperKent/Generic-Maths Remember to subscribe at kzbin.info/door/qWQzlUDdllnLmtgfSgYTCA And if you liked the video, click the 👍.
@demarcorr
@demarcorr 2 жыл бұрын
i took a 2year hiatus from dev, got back in about a month ago and now we can define static abstract members in interfaces. What a time to be alive. I love these new features
@codingbloke
@codingbloke 9 ай бұрын
Wow! More than a year on since C#11 and I did not know about this feature. Really well explained thank you!
@Rhysling2
@Rhysling2 Жыл бұрын
Brilliantly clear. Thank you!
@krccmsitp2884
@krccmsitp2884 2 жыл бұрын
Interesting and helpful roundup!
@haroldpepete
@haroldpepete Жыл бұрын
nice tip, thank sr by share with us your knowledge
@jimpaloander1888
@jimpaloander1888 9 ай бұрын
1. They have to introduce vector math on arrays. Overloading operators +,*,-,/ create temporary objects. These in turn for long expressions and large vectors occupy as much extra memory as the number of extra temporaries. Fortran has it since decades ago, Zig has introduced it by scratch; it is unreasonable in 2024 C# not introducing vector math operations on arrays. 2. They should introduce a type for automatic differentiation (AD) build in the language so that 1st and 2nd order derivatives can be computed on the fly. 3. They have to introduce a feature for compile time code execution similar to Zig.
@williamliu8985
@williamliu8985 2 жыл бұрын
Can I say the static abstract method in interface is designed to abstract the static member out of class?
@CodingTutorialsAreGo
@CodingTutorialsAreGo 2 жыл бұрын
Yep, that's a fair way of putting it.
@RiversJ
@RiversJ 2 жыл бұрын
I can't believe these weren't a thing earlier and even worse i can't use them yet where i need them 😃
@mihaiga
@mihaiga Жыл бұрын
Maybe it is a problem of commutativity when summing over unordered lists. In this case, the sum is not deterministic.
@CodingTutorialsAreGo
@CodingTutorialsAreGo Жыл бұрын
Not sure what you mean.
@mihaiga
@mihaiga Жыл бұрын
@@CodingTutorialsAreGo commutativity means that A+B = B+A so if the sum is over (A,B,C) then it may give a different result than over (A,C,B). My assumption is a stretch, I don't believe that Microsoft was considering abstract algebra in this case. Thank you for your videos, they are very informative and to-the-point. I wish to see this channel grow and I will recommend it to my colleagues.
@CodingTutorialsAreGo
@CodingTutorialsAreGo Жыл бұрын
@@mihaiga I know what commutative means, but addition is also associative, i.e. (a + b) + c == a + (b + c). Therefore, order of summation does not make any difference.
@haroldpepete
@haroldpepete Жыл бұрын
that makes no sense, 2+3+5 is the same that 5+2+3 and the same as 3+5+2, whatever the order you use at the same element, sum is the same
@marklord7614
@marklord7614 2 жыл бұрын
Nice video. Thank you sir.
@foudilbenouci482
@foudilbenouci482 Ай бұрын
Aggregate extension method does the job instead of sum and you could have used it in your sum implementation
C# 11 - Checked Overload
14:46
Coding Tutorials
Рет қаралды 1,2 М.
C# Equality and Hashcodes
27:05
Coding Tutorials
Рет қаралды 9 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Why is C# Evolving This Way?
15:02
Zoran Horvat
Рет қаралды 24 М.
C# Covariance
17:27
Coding Tutorials
Рет қаралды 8 М.
Zig For the Uninitiated: Zig Interfaces
11:56
Tyler Calder
Рет қаралды 4,4 М.
Classes & Objects | C# | Tutorial 25
13:25
Giraffe Academy
Рет қаралды 178 М.
Stackalloc and Spans
30:17
Coding Tutorials
Рет қаралды 12 М.
Every single feature added in C# 11
27:07
Nick Chapsas
Рет қаралды 112 М.
Parallelization and PLINQ
20:43
Coding Tutorials
Рет қаралды 7 М.
WHY IS THE STACK SO FAST?
13:46
Core Dumped
Рет қаралды 191 М.
Every single feature of C# in 10 minutes
9:50
Train To Code
Рет қаралды 170 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.