Playing Codenames in Rust with word vectors

In a previous post I implemented the game of Codenames in Rust, allowing a human player to interact with the computer playing randomly. Now let’s implement a smarter computer agent, using word vectors. Word vectors (or word embeddings) are a way of conve… Read more


Rust Context Manager

In Python there is a thing called a context manager. It looks like this: with open('file.txt') as f: # setup code runs here print # teardown code runs here do_other_thing(f) # error: f is not bound here Inside the indented block t... (more…)

Read more »