RAII: Compile-Time Memory Management in C++ and Rust

Reducing Logging Cost by Two Orders of Magnitude using CLP

Stop Optimizing for Tutorials

Issue #283



Hello darkness my old friend
Last issue before the weekend. Hope everyone has a good one.
Just wanted to say big thanks to all of you for subscribing and showing an interest in the newsletter. I know it's not always ran in the most professional of manners, but I appreciate you all for bearing with me and always being so supportive :)
Anyway, here's the issue.


Today's Sponsor: Could be you!

Are you or your company interested in sponsoring the newsletter? Feel free to reach out to me by replying to this email or clicking the link above.


RAII: Compile-Time Memory Management in C++ and Rust

Published: 11 October 2022
Tags: rust, compiler

Jimmy Hartzell discusses how Rust's RAII-centric compile-time memory management system compares to other run-time reference counting and garbage-collection technologies.
Some highlights:

  • RAII was originally designed to solve the problem of managing resources, and while it has some deficits, C++ has added features like move semantics and opt-in reference counting that help to close the gap
  • The biggest downside of the above memory management techniques is the performance implications and handling of cyclic data structures


Reducing Logging Cost by Two Orders of Magnitude using CLP

Published: 29 September 2022
Tags: big data, optimization

Jack (Yu) Luo and Devesh Agrawal describe how Uber integrated CLP into their logging library in order to save storage, memory, and disk/network bandwidth.
Some highlights:

  • CLP achieves a 169x compression ratio on their log data, which has allowed Uber to retain all logs at a fraction of the cost
  • Logs compressed with CLP can be searched without decompression


Stop Optimizing for Tutorials

Published: 21 October 2022
Tags: containers, docker, infosec, kubernetes, node, philosophy

Mathew Duggan presents the dangers of adopting new technology without due diligence. Mathew specifically focuses on containers, explaining how they're frequently used incorrectly from a security and best practice point of view.
Some highlights:

  • Don't run apps in containers as root
  • If you're using Docker in production, you should really understand how permissions work on the host OS
  • Use Docker Bench for Security for scanning containers to check if they're made securely and get recommendations if not
  • k8s is a bad choice for most businesses

How did I do?

5 4 3 2 1


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: 2992

Opens: 1387

Clicks: 485

Link Clicks Clicks % Unique Clicks Unique Clicks %
RAII: Compile-Time Memory Management in C++ and Rust 95 25.40% 104 25.55
Reducing Logging Cost by Two Orders of Magnitude using CLP 134 35.83% 144 35.38
Stop Optimizing for Tutorials 145 38.77% 159 39.07


Back to Issues