Sponsor

How do you safeguard against ‘unlikely’ single points of DNS failure that can take down a service? Ably’s Head of Infrastructure shares five strategies, along with some general advice and further reading around service reliability.

Read the five strategies for removing single points of failure.

Articles

(Oct 22) #python #optimization #split annotations

Most about everyone uses external libraries to some extent in the projects they're working on, because it saves you a lot of time. However, combining libraries isn't very computationally efficient. Luckily, Shoumik Palkar and Matei Zaharia present a solution for python in this article in the form of Split Annotations (SAs). The first describe why SAs are necessary, then go on to explain how they work, and the resulting performance increases.

(Oct 03) #haskell #leftist heaps

A heap is a specialized tree-based data structure which satisfies the heap propertry: in max heaps the parent has a higher than or equal to value of the child, and the opposite in a min heap. In this extensive article, Mistral Contrastin covers a variety of topics, including: "leftist heaps as a purely functional alternative to array-based binary heaps, complexity analysis of operations on leftist heaps, a case study on the internalist approach to verifying data structures, a tutorial on most major features of type-level programming in Haskell, a commentary on the ergonomics of verification using fancy types in Haskell, and practical advice on avoiding pitfalls when using fancy types".

(Oct 04) #cpp #d #c

A sum type is a data structure used to hold a valu that could take on several different, but fixed, types. They're often used in functional programming as datatypes (AKA algebraic data types which are composite types formed from other types). In this article, Paul Backus tests the overhead cost of his SumType library in D against code written in C, the std::variant and std::visit version in C++, and D with Algebraic (its standard library).

(Oct 03) #clean swift #unit testing

Unit testing is the process of testing the functionality of every individual component that makes up your app, starting as small as the functions. It can be tedious to do, but is definitely reassuring to have. In this thorough article, Kevin Farst implements unit testing in Clean Swift following protocol-oriented programming principles for a simple app he made.

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 our Kickstarter campaign for our newest project Human Readable Magazine. If you like our newsletter, you'll definitely like our magazine!

Cheers,

Pek