support basic math operations
I'd like to express conditions like |fcr001 - fcr002| > 0.5, so the two math. operations Sub and Abs could do the start :)
@flosse I was just looking at the compare module. Could pub enum Comparator be renamed pub enum Operator and used as such? I.e. Operator::Sub, Operator::Abs.
Side note: How active is this project? I think it's interesting, and looking for maybe doing some simple PR but I'm not sure whether anyone is using it? :slightly_smiling_face:
@flosse I was just looking at the compare module. Could
pub enum Comparatorbe renamedpub enum Operatorand used as such? I.e.Operator::Sub,Operator::Abs.
I'd rather replace the whole module with something else that already exists because I don't want to reinvent the wheel and I don't want to create a new programming language ;-)
Side note: How active is this project? I think it's interesting, and looking for maybe doing some simple PR but I'm not sure whether anyone is using it? :slightly_smiling_face:
We're currently working on a new version (it's not opensourced yet) that won't be compatible with the current msr version but it will be much more powerful :smile:
Would you mind to share your use case? What are you going to build?
I'd rather replace the whole module with something else that already exists because I don't want to reinvent the wheel and I don't want to create a new programming language ;-)
I agree :slightly_smiling_face:
We're currently working on a new version
Okay, I'll just wait and see what the next version brings then, no point in working on the old one :+1: I don't have a use case right now, I'm just very interested in the PLC/Automation/Rust intersection/combo. I think it could have a lot to offer :smile:
Great to see a new version come together. Please post any entry level issues if you like, and keep up the good work 👍