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

Add compile-time known design path #74

Open
ProgramMax opened this issue Jul 4, 2023 · 0 comments
Open

Add compile-time known design path #74

ProgramMax opened this issue Jul 4, 2023 · 0 comments

Comments

@ProgramMax
Copy link
Owner

Is your feature request related to a problem? Please describe.
Currently, maxGUI works for systems that don't know their UI at compile-time and need to change things at run-time. This is good for situations where reading a file or fetching data from a server dictates how the UI should look.

But many apps do not need this flexibility. And they currently pay a bit of a price for it.

Describe the solution you'd like
There should be a compile-time-known-design path (perhaps using type lists instead of type erasure, for example).

Describe alternatives you've considered
The current path uses very little memory and performance overhead. It seems to beat many other GUI libraries already. So perhaps this optimization is not needed. However, it is still wasteful. (And as a side note: A programming pet peeve of mine is how much we know at compile-time but defer to run-time at great cost.)

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