Articles

(Jan 14) #dotnet

.NET Developers usually use standard object references when writing code, which essentially point to the beginning of the object. However, using a managed pointer, which points to a specific location within an object, can often be a clearer and more efficient approach. In this article, Konrad Kokosa provides an overview of managed pointers, focusing on the well-known 'ref' keyword which utilizes a managed pointer underneath.



(Jan 25) #cpp

In 2011, an article covering generic, type-safe delegates and events in C++ emerged on the web and became very popular, and its approach formed the basis for many delegate implementations found on Github. However, since then, the C++ language has improved and acquired new features that make it possible to do more. In this useful and informative article, Michele Caini demonstrates an implementation of delegates that offers new capabilities the original article did not even consider.



(Jan 29) #databases

JOIN algorithms are an important class of operations in databases and data pipelines for merging distinct sets of data. However, a naive JOIN algorithm that uses nested loops can be slow and negatively impact the performance of an application. In this article, Felipe Oliveira Carvalho provides an in-depth exploration of the concept of JOIN algorithms, and shows how, in certain cases, they can be made much faster using hash tables.







Programming language of the day: Flix. "Flix is a principled and opinionated functional programming language that takes inspiration from F#, Go, OCaml, Haskell, Rust, and Scala.

Flix visually resembles Scala, but its type system is closer to that of OCaml and Haskell. Its concurrency model is inspired by Go-style processes and channels.

Flix compiles to JVM bytecode and runs on the Java Virtual Machine. Flix supports full tail call elimination which means that tail calls (even to other functions) never overflow the stack.

Flix performance is typically within 1-3x of equivalent Scala code.

Research on Flix explores connections between functional and logic programming in the area of declarative fixpoint computations."



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