Weblogs


AI Coding

2024-11-12

Sounds like a pipe dream, tell the computer what you want and the computer will write the program for you. Or like a nightmare, computers writing their own programming to the point of escaping their safeguards. Or job replacing, if you're a coder. Oh...


Four fors

2024-10-21

In Preval my goal is to reduce code overhead that is useless at runtime. In the previous post I talked about eliminating the finally keyword. In this post I'll discuss the elimination of all four cases of the for loop, in fa...


Finally no more

2024-10-12

Preval is a library I've been working on for a few years that attempts to eliminate and simplify code through static analysis. A big hurdle for me was the finally keyword. In fact, I've ignored try for a long time, too long ...


xorshift for rng

2024-04-03

I was creating a game in Rust and wanted access to an "RNG"; a random number generator. There are a few crates and options and what not but I wanted something super simple and something that could be seeded. It did not have to be crypto secure, it ju...


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...