Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
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
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
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
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


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.