Playbit runtime

https://lobste.rs/rss Hits: 18
Summary

Playbit Playbit is a software platform for making joyful personal-scale software Today we are sharing our first iteration of the Playbit runtime, our vision for building playful personal-scale software. Personal-scale software means programs by you, for you and for the people in your life. An app for your friends isn't very useful if only some of them can run it, so usually these projects have only one option: the web, an abstraction which many apps don't fit well into. We wanted a better solution, so that's what we're building. A runtime designed for highly dynamic graphical apps that are collaborative, with a really good set of developer tools. The Playbit runtime is a bit like an OS, but lives inside a host environment and gives guest code a small system layer to interface with. In practice it’s a minimal ABI-stable syscall interface with well-defined semantics. While we only support macOS in this initial release, our vision is for a powerful multimedia and collaborative platform which you can write your app for once, and run it on any platform, be it desktop, web, or mobile. Run your apps as WASM on the runtime or natively by linking the Playbit runtime as a native-code library. With love and a bit of code, Edward, Nick, Rasmus, and Julia The Playbit Team Things to try Run one of the examples by opening the Playbit app and pressing the ▶ buttons. There are several examples included. You can find them by selecting "Examples" in the toolbar Edit one of the examples in the Playbit app and run it Select "Command Line" in the toolbar and then run: pb run examples/tictactoe.c The C API is a good place to start. Look at the runtime docs if you want to dig deeper. Example #include <playbit/playbit.h> f32 x = 0, y = 0; void on_event(const PBEvent* eventHeader) { const PBEventAny* event = (const PBEventAny*)eventHeader; if (event->type == PBEventType_POINTER_MOVE) { x = event->pointer.x; y = event->pointer.y; } } void update_ui() { PBDrawRect(PBRectangleMake(x, y, x + 132...

First seen: 2026-03-24 01:14

Last seen: 2026-03-24 18:35