Mikail Khan

Blog Posts


Blog mosts, mostly about coding. Some of them are pretty old.

A Custom Static Site Generator with Elixir and Plug

2022-05-25

elixir

Most of the websites I build are simple, static, multi-page informational websites. I don't want to have to host a full backend, an...

Programming Languages I've Written

2022-05-20

programming-languages

Slang

I wrote my first programming language in March 2020. It was the second semester of my ...

A New Site Again

2022-05-19

blog

Seems like Hugo didn't last long. I didn't have any problems with it, but I wanted to write a blog engine with an Elixir static sit...

Representing Data Structures with First Class Functions

2021-10-11

functional-programming, data-structures

I was talking to my roommate about how all data structures can be emulated through function compositions the other day so I thought...

Writing a Simple API Wrapper in Elixir using GenServer

2021-06-13

elixir

Recently I've been writing an wrapper for the TD Ameritrade API. I've been learning Elixir as an alternative to Python recently, an...

Backfire G2

2021-06-01

misc

My Backfire G2 arrived today. I've been longboarding since quarantine started and inline skating since before then, but this is my ...

Modeling ASTs in Different Languages

2021-05-10

programming-languages, data-structures

Abstract Syntax Trees (ASTs) are an interesting data structure because their representation varies widely across type systems. Whil...

Writing a Tiny Stack VM in Rust

2021-04-06

rust, programming-languages

A few days ago I wrote a super simple postfix expression evaluator to demonstrate how stacks could be used to a friend. Afterwards,...

REPL

2021-03-08

cool-code-snippets, programming-languages

This one is really simple. Most people are familiar with REPLs for Python, JavaScript, or even repl.it but the term comes from Lisp...

Java Hello World

2021-02-22

cool-code-snippets, java

class HelloWorld {
  public static void main(String[] args) {
    System.out.println("Hello World");
  }
}

I'm...

Expression Evaluator

2021-02-22

cool-code-snippets, scala, programming-languages

I've been working with compilers and interpreters a lot recently, and I think people usually overstate the difficulty, so I wanted ...

Infinite Fibonacci List with Haskell ZipWith

2021-02-16

cool-code-snippets, haskell, functional-programming

For my first post in the cool-code-snippets series I'll write about one of my favorite pieces of code:

fibs = 1 : 1 : zipWi...

I Accidentally Wrote a Lua Game Engine

2021-01-04

lua, rust, gamedev

Lately I’ve been working on SIMple Physics, a set of educational physics simulators meant to help teach and learn physics intuitive...

What Makes a Programming Language too Complicated?

2020-08-04

programming-languages

One of the most important aspects of a programming language is its complexity. Languages that are too simple are often thought of a...

Leetcode

2020-06-01

I've written a number of reasonably sized projects, so I think I understand the basics of architecting a program. Figuring out how...

CSS Frameworks

2020-05-25

web

I remember the first time I used Bootstrap. It was during the summer between 8th and 9th grade; I had a simple website that looked ...

Pong tutorial with GGEZ Part 1

2020-05-19

rust, tutorial, gamedev

I saw a post on reddit asking for a simple game dev tutorial with Rust. Generally people encourage using ECS with any Rust game, so...

ssshmup

2020-05-18

rust, gamedev

A few weeks ago I wrote a super small shoot 'em up. I started because some friends of mine were making a similar shoot 'em up in Un...

Go

2020-05-15

web, go

I decided to buy mikail-khan.com a few days ago. I didn't really have anything in mind for it, but I tho...

Jekyll

2020-05-13

blog

I’ve decided to move everything to jekyll and maybe start writing stuff. I made a simple script to insta start a new post because...