Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

higher-level app shim #165

Open
david-vanderson opened this issue Nov 22, 2024 · 0 comments
Open

higher-level app shim #165

david-vanderson opened this issue Nov 22, 2024 · 0 comments

Comments

@david-vanderson
Copy link
Owner

@MichaelBelousov has been building an app on top of dvui that functions with multiple backends, including web. One of the pain points is that the web stuff was not written in a way that makes building on top of it work well. In particular merging dvui changes is annoying.

This issue is about a possible way to make this better by adding a higher-level "app" api that inverts control of the mainloop. The app code would expose a few functions (init/deinit/frame) and pass them to some dvui "app runner" interface.

The advantage is more separation between app code and dvui code. The disadvantage is less control over the mainloop.

To be clear this would only be an addition - an extra way to structure apps where this tradeoff makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant