./optimizations


Bun

Yesterday, I spent half of the day moving the game and api server to run off the bun runtime instead of node. The main reason for this was so I could just run typescript natively without needing to transpile the game everytime I made an update in the game’s code. This also saved a lot of time when I just needed to test api endpoints outside of discord-exclusive code. But there ended up being a lot of benefits to moving the game over to bun that I hadn’t thought of, such as faster compile times and a decent reduction of dependencies because bun has them baked in and ready to go.

I am also glad I did this sooner than later, because it would have been a long and ardous migration down the road when the codebase is significantly larger. Another benefit is that the game and api server run on a VPS, which has limited resouces allocated to it. With bun’s optimizations we now have less downtime between codebase updates, and a runtime memory footprint that is half of what it was with node! Also, the response from the discord bot just feels… faster, which is great.

Also… hello.

I am working backwards here, but welcome to cyberelia. This is a part-time endeavor for me and my friend to make something we’d enjoy casually. The ideal approach here is to under-promise and over-deliver… but when it comes down to it, as long as the journey continues to be fun, we will continue working on this game.

There’s much to do, and in a way, I feel guilty taking a break to build this website, but hey: sometimes you need to do something else.

See you around,

-gnp