A Byte of Coding Issue 399

A Byte of Coding Issue 399

A Byte of Coding

Hey hey hey,

Here’s dat issue.

Made possible through generous sponsorship by:

Published: 1 May 2024

Tags: go

Russ Cox discusses the introduction of math/rand/v2 in Go 1.22, a new version designed to address issues with the math/rand package while improving performance and flexibility for future upgrades.

Some highlights:

  • The math/rand/v2 package replaces the old pseudorandom number generator to fix repeatability issues and enhance performance.

  • The new version introduces breaking changes, including the removal of outdated methods and the adoption of a more secure default random generator.

  • It balances backward compatibility with the necessity of modern improvements.

Published: 23 April 2024

Tags: sdk

Jacob Bednarz discusses Cloudflare's development of an automated SDK pipeline, which enhances consistency and reduces manual efforts in SDK updates across programming languages using OpenAPI and the Stainless generation engine.

Some highlights:

  • The introduction of automated processes reduced the number of required pull requests and increased update frequency.

  • Emphasizes the importance of language-specific nuances in SDK generation to improve user experience.

  • Utilizes modern tools like codemods for large-scale code transformations and maintaining high quality across APIs.

Published: 27 October 2023

Tags: sponsored, auth, web

WorkOS has published a guide on how to best integrate single sign-on (SSO) in your app.

Some highlights:

  • SSO is a common requirement when organizations first start selling to enterprises

  • ​describes the general request flow for a user logging in with SSO

  • summarizes how to build SSO from scratch and how to use existing providers

Published: 14 April 2024

Tags: c++, optimization, memory

Chris Wellons discusses his approach to building custom strings and arenas in C++ by minimizing complexity and avoiding extensive use of C++ features, aiming to maintain simplicity and reduce potential errors.

Some highlights:

  • Advocates for the use of minimal template usage and simple memory allocation techniques to improve clarity and performance.

  • Outlines the benefits and limitations of modifying traditional C++ string handling to better suit specific programming needs.

  • Emphasizes practical, straightforward programming without overreliance on C++'s more complex features.

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.