Articles

(Feb 19) #rust Save to Pocket

Strings are fundamental to how interact with computers, because it's how humans communicate with one another. But why is such a fundamental unit implemented differently across programming languages? In Amos' extensive (52 min read time) article, he does a thorough deep dive into Rust's string types String and &str, as well as C. He focuses on how to safely handle them and the potential security issues when they're handled incorrectly, with plenty of examples.

(Feb 17) #machine learning Save to Pocket

Organic brains function through neurons that send signals to one another in the form of electric voltage spikes, in the mV range. The neurons are turned on when these voltages are sent to them, propagating it onwards to other neurons, but otherwise are turned off. This behavior inspired a form of machine learning called spiking neural networks, which are presented and briefly discusses by Martijn van Wezel in this article. He outlines the energy saving benefits of their design, while also underlining some of the current limitations.

(Feb 16) #compilers #hardware Save to Pocket

A processor register (CPU register) is a quickly accessible location available to the CPU and often have a small amount of fast storage. If the CPU was a brick and mortar store, its processes customers, and main memory the stock in the back, then registers can be thought of as the shelves in the store. Fei Peng's article answers the titular question, by breaking up the cases where register selection does matter into four categories: special instructions, partial register stall, architecture bugs, and SIMD registers. Another special case is also mentioned at the end!

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