9 points · by linq936 · 4y ago · 7 comments
I am thinking to write a DSL, Domain Specific Language, to describe the system specification and that DSL will generate Python code which does the checking.
Before I do this, is there a ready tool/framework/technology/language I can leverage?
Someone mentioned TLA+, my first glimpse tells me it is not for my need. Like to hear your suggestions.
Thanks.
If you have a lot of constraints that are on the bit representation, then it is more likely that an SMT solver is a better solution. If on the other hand more of your constraints are arithmetic and perhaps some structural constraints, then it might be interesting to look into other types of solvers. It all depends on the specifics of your problem instances.
There are a couple of Coursera courses for modelling with MiniZinc that are quite nice (https://www.coursera.org/learn/basic-modeling is the first one) that are useful if you want to learn more about how to think when doing combinatorial modelling. These are usefule even if you end up using some other tool or technology, as the mindset is similar.
But I don't know what you mean by writing rules automatically. How would such framework figure out your business rules?