I cannot believe I hadn't noticed the absence of the word "sponsor" in our sponsor spot for so long. I apologize to our readers for having this slip. I have now corrected it.

Sponsor

Improve devops workflows and self-host Docker, Grafana, GitLab, OpenFaaS and more on the simplest cloud platform. Spin up preconfigured cloud servers with the growing library of 1-Click Apps on DigitalOcean Marketplace.

Get started with a new user credit for Morning Cup of Coding readers.

Articles

(Jun 10) #swift

We recently mentioned that for SwiftUI to perform some of its magic, the Swift language had to add support for certain new features. One such feature is Opaque Return Types introduced in Swift 5.1. In short, it allows us to define a method that returns a protocol but the returned value is treated as the actual concrete type that was returned. Bruno Rocha explains this better than I can summarize in this article.

(Jun 08) #mathematical-logic #smt

One of the challenges of creating a Gameboy game is its limited color palette. If you are creating art assets from scratch, you will have probably defined the palette ahead of time and so it wouldn't be much of an issue. However, if you are using existing images that need to be converted into the GBA format, then you have a bit of a problem. You could manually convert it pixel by pixel, but we are programmers; why do anything manually when we can write a tool to do it for us? And so our author set out to do just that. In this short article we see how the author used an Satisfiability Modulo Theories (SMT) solver to solve the combinatorial problem of finding the color in the palette data type given an image.

(Jun 08) #golang

Resumable exceptions allows one to catch an exception and have the ability to lookup the call stack to determine the best course of action, and in some cases, have the ability to essentially "auto-fix" an error. While in theory this is not possible in Go due to lack of exceptions, Robert A. Uhl posits that one might be able to implement resumable exceptions by abusing Go's panic , defer , and recover . In this short article the author lays out his ideas.

-- * --

Programming language of the day: easylang.online. "An easy programming language that runs in the browser"

-- * --

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.

Cheers,

Pek