Advent of Spacetime Day 6: spacetime dev: One command for a live rebuild cycle.
`spacetime dev` watches your module, rebuilds it, regenerates the client bindings, republishes and runs your client. See your changes immediately.
https://t.co/gaIOHPhwyL
#Spacetime#SpacetimeDB
Advent of Spacetime Day 5: spacetime.json: All your settings in one place.
Put the database name, module path and binding targets in one checked-in file, then publish and generate with no flags.
https://t.co/Tbpc0bZtpC
#Spacetime#SpacetimeDB
@hdorodev We came to the conclusion that you can't create this kind of system, and get the performance you need, by building on top of an existing database. We had to bite the bullet and build it from first principles.
Too a bit longer but it's worked out very well. ๐
Advent of Spacetime Day 4: Event Tables. Lightweight broadcast messaging. For notifications, typing indicators, hits landing - any momentary notification. Insert a row, every subscriber receives it, and nothing is stored. https://t.co/eoMoYBWemq #Spacetime#SpacetimeDB
Got bored of looking at my project-tracker, so I rebuilt it as a Minecraft-style ski slope.
New projects ride the lift up, active ones admire the view, neglected ones ski to the bar ๐ป
Not sure it'll make me more productive, but it's fun to watch. ๐
#SpacetimeDB#ThreeJS
Advent of Spacetime Day 3: Views.
Access control rules using ordinary code. Write a function that returns the rows a caller may see, and clients subscribe to it like any table.
https://t.co/zyK0Ew1FwD
#Spacetime#SpacetimeDB
Last month we were at @HackUTD to see what a talented bunch of builders could put together with Spacetime. The winners ranged from a collaborative 3D editor to an app that keeps your group together (and safe) on a night out.
Catch all the new ideas here: https://t.co/7auM0wfkN2
Broth & Bullets is my open-source survival MMO on @spacetimedb. Switch between 2D and WebGPU 3D mid-game, bring your own art, and reuse the inventory, crafting and quest UI. Custom auth supports Steam sign-in. Discord and Twitch are on the roadmap. https://t.co/dnDJeCWPy2
Advent of Spacetime Day 2: Procedures.
An easy split between long-running requests and high-speed transactions. Call external HTTP APIs with ctx.http.fetch, then open a transaction when it's time to store what came back.
https://t.co/XRgjgryCsl
#Spacetime#SpacetimeDB
Advent of Spacetime Day 1: Unit Testing.
Test your module against an in-memory copy of the real database. A fresh one starts in about a millisecond, so they're fast enough to run hundreds of tests.
https://t.co/iRxLmIVfXn
#Spacetime#SpacetimeDB
@spacetimedb It is a bit old and at some point this was going to be done with Go/Rust (WASM), wasmtime/wazero and SQLite, but spacetime provides the runtime that I had to otherwise try to build myself. It took me some time to (remember, learn and) realize this, even though it was so obvious.
I don't think Rust is necessarily a bad choice although C# and Go are great fits for that. The reason I wouldn't personally go with Rust is lack of experience and it's less productive, but both of these are less of an issue with AI. But in any case my current backend stack is SpacetimeDB with the Typescript runtime. It beats anything on earth and is such a breeze to work with using LLMs.
Keone Somers has spent the past year building an MMO, solo.
Elegon's been in a public playtest for months, and we wanted to see how it's put together. How does one person tackle a project this big? ๐ฎ
https://t.co/faOvI3WWDC