Shout out to Jared Nielsen for featuring Morning Cup of Coding as one of the Best Newsletters for Web Developers in 2020. Thank you Jared!

Articles

(Dec 11) #math #probability #monte carlo

Solving definite Integrals is an integral (heh) part of rendering, specifically in all thing light related. Why? Because a lot of the characteristics that make up light can be modelled with the use of integrals. In this extensive first part article, Jacco Bikker covers the basic concepts of definite integrals and numeric integration, followed by a deeper dive into the Monte Carlo method and probability theory. Although heavy in math, Jacco does a good job of keeping it practical so it's easy to understand.

(Dec 13) #cpp

Asynchronous coroutines is a new addition to C++20 that promsie to give you more control over the data flow in your code. But with great asynchronous power, comes great resource management responsibility. In Raymond Chen's article that's part of a larger series, he takes a look at what happens if the async coroutine finished processing before the code meant to handle it finishing has been invoked. It's important because it can "result in quite a significant accumulation of stack frames if there are a lot of consecutive co_awaits of already-completed operations".

(Dec 13) #.net #intermedia language

Common Intermediate Language (CIL or IL) is the intermediate language binary instruction set defined within the Common Language Infrastructure (CLI) specification. This is the language C#, F# or VB.NET code is compiled into. Filip W's article focuses on how you can create projects directly in IL code using the .NET SDK. He then explores the micro-optimizations you can achieve using IL.

(Dec 12) #graphic design #constraint solver #python

Constraint solvers are neat because they fit for so many practical problems when there isn't one specific solution or hardcoded answer, but a number of them that can work as long as some constraints are met. Anish Athalye's lengthy article introduces Basalt; a domain-specific language Anish has written that allows designers to specify "figures in terms of relationships, which compile down to constraints that are solved automatically using an SMT solver to produce the final output". He then goes on to contrast the normal and Basalt approaches in a number of examples.

And that''s it for today! Discuss this issue at our subreddit r/morningcupofcoding.

Did you like what you read? Let us know by clicking one of the links below.

Liked - Disliked

I hope you enjoyed reading the latest issue of Morning Cup of Coding. If you did, consider supporting us by becoming a patron (Patreon) for perks like ad-free issues, or via a one-time donation via PayPal.

Interested in sponsoring our newsletter? Click here to send us an email.

Cheers,

Pek