Weblogs


Rust log macro

2024-03-20

I've been learning Rust and this language has macros. In my learner project I didn't touch much in this space though I did create one macro to help with debugging. The learner project is https://pvdz.ee/project/factini Factini , a Rust to WA...


About Factini

2024-03-16

This entry serves as the "about" page for Factini, my canvas based belt game written in Rust and compiled to WASM. https://pvdz.ee/project/factini [img]https://pvdz.ee/blogfiles/454_logo.png[/img] You can https://pvdz.ee/project/factini...


Factini internals

2024-03-08

Factini is a Rust-to-WASM driven html canvas game. The whole game lives in canvas, including the UI. So what does the architecture look like? In this post I'm going to dig into that! You can https://pvdz.ee/project/factini play the game here[/n...


Sprite animations

2024-03-05

Sprite animations of a game as similar to a hand drawn flipbook animation. You take a bunch of individual drawings, each with one frame of the animation, and you paint them in the same place with a tiny delay. Your brain will do the rest and give you...


Factini

2024-03-01

I wrote a game. In Rust. In html5 canvas through WASM. It's pretty cool and I figured I should write a couple of blog posts about it before releasing it because I tried to have as few dependencies as possible and no unsafe/unstable code etc. But that...


Neural Chess

2024-01-21

I've been trying to train a neural network to play chess. A few weeks ago I got nerd sniped, nay, inspired by this video titled "AI plays pokemon". It's a lovely exhibit on reinforcement learning and in particular a showcase of codin...


Road to 1500 elo

2023-12-29

About two months ago I started a challenge for myself: achieve a 1500 elo rating in chess. I have no training or history in chess whatsoever. I knew the common rules before I started, but not the nitty gritty about castling and en passant. Let alone ...


Elimination of continue

2023-12-29

I got back into working on my Preval project this year. The first step of Preval is to break down JS constructs into other constructs and eliminate variance in code. In a way it's an attempt to reduce JS to a MISC (a Minimal Instruction Set Computer)...


Normy JS IR AST

2021-09-02

Too many abbreviations there, sorry bout that. The IR, or "Intermediate Representation", AST that Preval uses is currently very similar to the regular EStree form. However, the IR kind of evolved out of nowhere without a concrete plan and while that ...