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

Consider using ragel to generate state machine for wlc #26

Closed
Cloudef opened this issue Jul 24, 2015 · 4 comments
Closed

Consider using ragel to generate state machine for wlc #26

Cloudef opened this issue Jul 24, 2015 · 4 comments
Labels

Comments

@Cloudef
Copy link
Owner

Cloudef commented Jul 24, 2015

wlc's main job is mainly abstracting away various backends and APIs (x11, drm, libinput, udev, etc...), but it also has lots of manual code for state (when view should be drawn, what is the state of view, when to commit, damages, etc...) which could probably be abstracted as a state machine.

I'm not yet sure how this idea would work, but if ragel is up to the task, all the "moving parts" in wlc are easily graphed and generated, and debugging is easier. It also would increase reliability, that is, wlc works as described in state machine.

@Cloudef
Copy link
Owner Author

Cloudef commented Aug 15, 2015

This would decrease test coverage area a lot as well.

@Cloudef
Copy link
Owner Author

Cloudef commented Sep 30, 2015

My local prototyping seemed promising. Going to start experimenting with this on ragel-fsm branch.

@Cloudef
Copy link
Owner Author

Cloudef commented Apr 18, 2016

This may be worth doing for wlc2 if that ever happens (being API compatible with wlc though)

@Cloudef Cloudef closed this as completed Apr 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant