Articles

(Feb 20) #programming-language-theory

In concurrent programming, a mutex provides a way to lock data that is being accessed by a thread to prevent other threads from accessing it simultaneously and potentially resulting in a data race. However, mutexes have a performance cost, the extent of which depends on the way that they are implemented. In this article, Edaqa Mortoray provides valuable insight into situations where the performance costs of mutexes could result in worse performance than a single-threaded process.



(Feb 25) #network-programming

When sending data over a computer network with TCP/IP, the protocol provides a series of mechanisms to ensure that the data packets arrive at the other end. However, network developers may not be familiar with exactly what goes on during the time that a packet traverses the network. In this article, Robert Graham explains what happens to data is sent over a TCP/IP network, including how and where data packets are acknowledged (or ACK'd) to protect the integrity of the data.



(Mar 04) #databases #postgresql

Index-only scans provide a way to speed up table reads that hit an index, and can make database operations considerably faster. However, in some cases, they can perform slightly worse than a normal index scan. In this article, David Conlin introduces index-only scans and describes when, why and how to use them to ensure that your database is working as efficiently as possible.







Programming language of the day: Dyvil. "Dyvil is a multi-paradigm, general purpose programming language that is based on Java and the JVM. It is compiled, statically and strongly typed and supports object-oriented, functional and imperative programming styles. The modern and extensible syntax is based on Swift, Kotlin and Scala. As a new programming language in active development, the main goals of the Dyvil project are the following: - to provide modern syntax and semantics - to avoid common boilerplate code - to achieve performance comparable to Java programs - to be fully compatible and interoperable with Java and other JVM languages like Scala, Kotlin or Groovy"



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 it by becoming a patron (Patreon), buying me a coffee (PayPal), donating anonymously (coinbase), or purchasing an MCC mug (RedBubble); it helps me keep this going.

Cheers,

Pek