Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Just out of curiosity. There are many open standards for data exchange, as well as standards for exchanging code (jsonp, for example).

But are there any standards for exchanging formulas/rules, for them to be executed on different platforms?

share|improve this question
3  
Please clarify: what rules do you mean? Business rules, artificial intelligence logic rules, ...? –  Deer Hunter Jun 15 '13 at 22:16
    
formulas - like SQL functions (e.g. IFNULL(a, 0) + 10) –  Howard Jun 15 '13 at 22:18
1  
Howard, I suppose you have answered your own question. You can use SQL standard stuff on a variety of platforms provided the implementations conform to the standard. –  Deer Hunter Jun 15 '13 at 22:27
4  
Rules are just a special kind of data. You just need to package it up somehow, json works, and parse/execute it on the other end. –  ConditionRacer Jun 15 '13 at 22:47
1  
jsonp doesn't pass code, it just wraps json to be client-side ajax request friendly until cross domain requests get properly worked out. –  Wyatt Barnett Jun 15 '13 at 23:05

1 Answer 1

up vote 0 down vote accepted

As suggested by Deer Hunter and Justin, current practices are:

  • Use DB language and its interpreter
  • Wrap rules using standard data exchange format and then interpret.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.