Skip to main content
Deep Dive Exhibit · ~6 min

Client-Side Constraint Evaluation for Salesforce Revenue Cloud (RCA) Configurators

When every configurator click pays a server round-trip, move evaluation to the client - but do it with a real language runtime, not duplicated if-statements.

01 · Orientation

An exhibit, not an article

Seven layers, each with something to touch. Start anywhere - the path remembers where you are.

You are here: Orientation

Read the exhibit contract, then pick a layer.

You are about to watch a language come alive inside the browser - compiled, not called.

This exhibit traces a small constraint-language compiler: declarative product rules enter as text, a hand-written pipeline turns them into a typed tree, and a deterministic evaluator runs them in browser memory on two runtimes that must never disagree.

It is independent weekend work against a self-defined grammar, informed only by public documentation patterns. The verification harness is the real artifact - thousands of generated cases asserting identical outcomes on both targets.

How to use this exhibit:
  • Inspect each compiler stage to see what it guarantees
  • Step one rule from source text to evaluated result
  • Decide between generating code and interpreting trees
  • Break the grammar, then watch where each break lands
IF eligible AND NOT excluded OR tier >= goldparseORAND>=one typed treeCOMPONENTsandboxedSTOREFRONTheadlessSAME VERDICT
One grammar, two stages
1 / 7
“A well-architected system makes the right thing easier, and the wrong thing harder.”
— Kuldeep Singh