shallow embedding

"Shallow embedding" is a technique used to represent one language or system within another, emphasizing simplicity and speed.

πŸ‡ΊπŸ‡Έ US Voice:
πŸ‡¬πŸ‡§ UK Voice:

Definition

C2Programming Languages

(technical, academic)A method where domain-specific languages are directly implemented using the constructs of a host language, without creating a separate abstract syntax tree.

Example

  • Shallow embedding allows quick interpretation using the host language's built-in features.

C2Logic and Formal Systems

(technical, academic)A technique of representing one formal system within another by directly mapping its syntax and semantics to the host system's constructs.

Example

  • Shallow embedding in logic often results in less expressive power compared to deep embedding.

Similar

Terms that have similar or relatively close meanings to "shallow embedding":

deep embeddingshallow end