RSSAmplifier

Blog

Racket Raccoon

It's a Bird... It's a Plane... It's yet another blog!

racket-raccoon.github.ioRSS feed ↗11 posts

Latest posts

Same Threading Syntax but Less Allocation

This is a small braindump on why you might want to use ebb/threading as a drop-in replacement for threading-lib . Same familiar ~> shape, but with ebb/forms it can avoid some intermediate list allocation.

Leetcode #347: Top K Frequent Elements

Just finished "Top K Frequent Elements" and wanted to write down my thought process while it is still fresh. I also use this blog as a quick reference, so I wanted to add some notes on data/heap to my little cheatsheet.

Math for Gamedev 101: Trigonometry

This is part two of the "Math for Gamedev 101" series. You can read part one here: Math for Gamedev 101: Vectors . As before, these are my notes from Simon's course on Math for Game Developers . This part is dedicated to basic trigonometry. The first GIF is from the Wikipedia article on radians , and the second one was generated with ImageMagick from this Racket snippet .

Math for Gamedev 101: Vectors

Recently I bought Simon's course on Math for Game Developers and as I finally found some time to go through the first couple of chapters I would like to share my lecture notes here. I used Racket for mathematical functions and comments for plain English, a lot of stuff is also borrowed from the wiki page on Euclidean vectors .

Leetcode #844: Backspace String Compare

I'm gonna try to trick my brain into doing some leetcode challenges over the course of this year, so let's start with something simple like "Backspace String Compare" .

Ultimate Scheme and Racket podcast guide

Dive into the lore of Scheme and Racket with these awesome podcast episodes – where coding stories and functional wisdom come to life. I've hand-picked each one to create the ultimate listening guide for Lisp enthusiasts.

When DSLs Shine: Processing JSON in Racket and Beyond

What started as a simple fitness data export turned into a perfect illustration of why domain-specific languages can be so powerful. A brief journey from Racket to jsonquerylang.

Named Let and Mutual Recursion

A quick introduction to the named let , why you might want to use letrec , and what "mutually recursive functions" are. To learn more about the let family, consult The Racket Guide and The Racket Reference .

Threading and Function Composition

One of the features I started using extensively this year is a threading macro. Also, I wanted to give an honorable mention to some higher-order functions we have out of the box from Racket.

Memoization: A Primer

Anyways, function memoization , amiright? "Top-down" dynamic programming. Before attempting to calculate the function result for a particular set of parameters, we look up the table first to avoid doing the same work twice.

Yet another dev blog? Oh no

In your first post, you're expected to uncover the motivation behind this whole project and justify its very existence. I'll give it a try — but I won't try too hard, that's for sure.