Plurrrr

Wed 15 Jul 2020

Understanding and Decoding a JPEG Image using Python

Today we are going to understand the JPEG compression algorithm. One thing a lot of people don’t know is that JPEG is not a format but rather an algorithm. The JPEG images you see are mostly in the JFIF format (JPEG File Interchange Format) that internally uses the JPEG compression algorithm. By the end of this article, you will have a much better understanding of how the JPEG algorithm compresses data and how you can write some custom Python code to decompress it.

Source: Understanding and Decoding a JPEG Image using Python, an article by Yasoob Khalid.

Let's make a Teeny Tiny compiler

It is a beautiful day outside, so let's make a compiler. You don't need any knowledge of how compilers work to follow along. We are going to use Python to implement our own programming language, Teeny Tiny, that will compile to C code. It will take about 500 lines of code and provide the initial infrastructure needed to customize and extend the compiler into your own billion dollar production-ready compiler.

Source: Let's make a Teeny Tiny compiler, part 1, an article by Austin Z. Henley.