Slope-intercept library design 05 April 2022 The equation y=mx+b defines a line in slope-intercept form. The line will intercept the y-axis at the value b and for each change in x its slope (the amount the line goes up or down) will change by m. Slope-intercept gives me a way to think about the design […]
Sixteen corners 06 August 2020 Last year I built a library called Picnic for rendering data tables in monospaced environments like your terminal. Part of rendering the table is calculating what character to use for each wall and each corner separating the cells. Here’s a representative output with a bunch of different corner styles: │ […]
R8 Optimization: Lambda Groups 30 April 2020 Note: This post is part of a series on D8 and R8, Android’s new dexer and optimizer, respectively. For an intro to D8 read “Android’s Java 8 support”. For an intro to R8 read “R8 Optimization: Staticization”. Lambda usage in Kotlin feels more pervasive than Java because of […]