On Coordinated Omission

Simple Scalable Unbounded Queue

Why would anyone need JavaScript generator functions?

Issue #292

11/15/2022

{{PreviewText}} 

Hi
Another beautiful day. I was thinking about adding little coding challenges to every issue in a different language. Like reverse this string using C or reorder an array using Java. Nothing too challenging, just something to brush up on syntax. Or maybe one specific challenge every week, but a different language for every day? What do you think? I haven't figured out how the infrastructure would work yet, but wanted to ask before I dedicated any time to it.
Anyway, here's the issue.

====================================================================

Today's Sponsor: Guardsquare

Without adequate mobile app security, threat actors can reverse engineer your app to block ads, bypass premium features, and access originally unavailable capabilities (causing you to lose revenue). To stop these attackers from distributing modded versions of your freemium app, join our webinar where we’ll explore practical suggestions for applying the right security measures.

====================================================================

On Coordinated Omission

Published: 1 November 2022
Tags: testing, web


Ivan Prisyazhynyy discusses how Coordinated Omission can be created and then resolved.
Some highlights:

  • In open-model systems new requests arrive independent of how quickly the system processes requests
  • In closed-model systems new job arrivals are triggered only by job completions
  • "The Queuing approach for a static schedule is the most reliable and correct"


====================================================================

Simple Scalable Unbounded Queue

Published: 4 November 2022
Tags: rust


Protty describes the properties of channels and how they are categorized. The author then goes on to talk about their implementation of an Unbounded, Non-Blocking, MPSC (Multi-Producer Single-Consumer) channel.
Some highlights:

  • "a 'channel' refers to a type of queue generally used in a programming language for passing data from one concurrent task to another with extra amenities"
  • Bounded or Unbounded describes whether or not the channel has a maximum capacity of stuff it can have in it which hasn't been dequeued
  • "Blocking channels will pause the caller until it can interact with the channel whereas non-blocking channels will return immediately with some sort of error"


====================================================================

Why would anyone need JavaScript generator functions?

Published: 7 November 2022
Tags: javascript


James Sinclair talks about generators in JavaScript, and demonstrates how they can be used for lazy iterators, infinite iterators, and message passing.
Some highlights:

  • Generators are rarely used
  • Laziness allows you to process large data sets by loading one item at a time into memory
  • There aren't a lot of built in iterator utility functions


How did I do?

5 4 3 2 1
Amazing


Bad

Want to help?

Thank you for reading! If you enjoy the newsletter, I would really appreciate you helping me spread the word by forwarding this to your friends and colleagues or sharing it on social media! Get cool stuff for your referrals using your link https://abyteofcoding.com.

Your referrals:


If you want to discuss or comment on this issue, head on over to this page at A Byte of Coding. You can also subscribe there if you're new!

Have comments or feedback? Just reply to this email or hit me up on Twitter @AByteOfCoding.

Email landed in your promotions tab? Please move it over to primary so you don't miss the latest issues in the future.
Thanks for your Support! 

Big thanks to all of the Patreon supports and company sponsors. If you want to support the newsletter you can checkout the Patreon page. It's not necessary, but it lets me know that I'm doing a good job and that you're finding value in the content.


Stats (updated daily)

Sent: 3003

Opens: 1389

Clicks: 248

Link Clicks Clicks % Unique Clicks Unique Clicks %
On Coordinated Omission 35 19.02% 39 19.02
Simple Scalable Unbounded Queue 71 38.59% 81 39.51
Why would anyone need JavaScript generator functions? 78 42.39% 85 41.46

Previous

Back to Issues

Next