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

Is there a plan to release SML v3? #14

Open
liziyi75 opened this issue Sep 14, 2024 · 8 comments
Open

Is there a plan to release SML v3? #14

liziyi75 opened this issue Sep 14, 2024 · 8 comments

Comments

@liziyi75
Copy link

It seems that version 3 is more aligned with C++ itself, making it easier to express requirements and improving performance. Will there be support for features like orthogonal regions, on_entry/on_exit, etc.? I am very much looking forward to the release of version 3. Thank you!

@kris-jusiak
Copy link
Contributor

Yeah, there is a plan; currently there is one more design issue to be solved, mainly how to handle different return states in a more explicit way to avoid not being able to see potential transitions on the transition table, it's not a big issue and solution already exist, is just not ideal yet, so need some more thinking through but the plan is to add all UML-2.5 features eventually.

@liziyi75
Copy link
Author

That's cool, thanks!

@okvik
Copy link

okvik commented Nov 11, 2024

@kris-jusiak What is the current / near future plan for v3? I was looking forward to using SML on a new project but it seems the version that's currently on master is quite limited compared to v2 that I was evaluating earlier this year. My needs aren't that big, but having on_entry / on_exit would be of great value.

P.S. Please excuse me if this sounds like a request to receive even more free work from you, that is not my intent.

@kris-jusiak
Copy link
Contributor

Yeah, v3 is currently very limited and not production ready yet, there are some subtle use cases and design decisions to be still sorted out, it's mainly about the balance between declarative, performance and easy to use interface but yeah, it still requires more work which I'm planning to do still this year, after releasing some other project I'm currently working on. on_entry/on_exit will defo be part of it as well as composite states.

@okvik
Copy link

okvik commented Nov 12, 2024

Yeah, v3 is currently very limited and not production ready yet, there are some subtle use cases and design decisions to be still sorted out, it's mainly about the balance between declarative, performance and easy to use interface but yeah, it still requires more work which I'm planning to do still this year, after releasing some other project I'm currently working on. on_entry/on_exit will defo be part of it as well as composite states.

Nice, thanks for the answer. Looking forward to when the library is ready since it seems integrating it with various different project / code structures is going to be more straightforward and magic-less, but for this project I'll stick with the original SML.

On another note, seeing how small the library is at this time it encouraged me to try and understand how it works and ultimately implement on_entry / on_exit myself. It seemed natural to define these as built-in events whose handlers get called (if they are defined) automatically by the event dispatch that ends up switching the state. It's just an experiment, and I'm pretty sure there's lot of edge-cases and opportunities that I'm missing, but it was nice being able to understand what's going on a bit and get some working results :)

Thanks for all the work and all the great libraries!

@tsjung75
Copy link

tsjung75 commented Jan 6, 2025

Hello,

I am also impressed by this sml library and look forward to 3.0 release.

@kris-jusiak I have a few questions.

  1. Is the current main code working?

  2. Did you check against clang-tidy and clang statatic analyer?

@kris-jusiak
Copy link
Contributor

Hi @tsjung75

  1. yes, but code is neither complete nor production ready ATM, the main concepts are there though.
  2. I do have them setup locally and they are part of the releasing process but there is no github action doing it automatically ATM.

@liziyi75
Copy link
Author

Hi @kris-jusiak ,
Is there any news about the progress of SML v3? I’m really looking forward to seeing the v3 with on_entry/on_exit release soon. Thank you so much!

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

4 participants