liveBook · Manning

Embedded domain-specific language

Also called EDSL

An embedded domain-specific language is a language tailored to a particular problem domain and expressed within a host programming language.

How 2 Manning books explain it

Functional Design and Architecture: Examples in Haskell

An embedded domain-specific language is a domain-focused language implemented within a host programming language and represented using the host's syntax or abstractions.

How it is used
Uses eDSLs to represent domain models and separate declarative scenarios from their implementations.
How deep it goes
Works through operation encoding and interpretation, including state and logging, while leaving Servant’s internals unexplained.
Examples
Uses smart-home sensor scripts, spacecraft hardware blueprints, and Servant HTTP schemas as examples.
What you can do after
Builds an interpretable eDSL from domain operations and separates its scripts from effectful execution.

Read how Functional Design and Architecture: Examples in Haskell explains embedded domain-specific language →

GPU Programming with Triton

An embedded domain-specific language is a domain-specific language expressed within a host programming language.

How it is used
Positions Python as the setting for writing GPU kernels while Triton handles much of the low-level complexity.
How deep it goes
Traces decorated functions through runtime compilation to backend-specific GPU code, while leaving register and thread management to Triton.
Examples
Uses a Python function decorated with @triton.jit and names PTX and AMDGPU IR as backend-specific outputs.
What you can do after
Build GPU kernels in Python while focusing on the algorithm rather than manually managing registers and threads.

Read how GPU Programming with Triton explains embedded domain-specific language →

Also covered in

What to know first

Related concepts

Questions about embedded domain-specific language

What is embedded domain-specific language?

An embedded domain-specific language is a language tailored to a particular problem domain and expressed within a host programming language.

Which Manning books explain embedded domain-specific language?

Functional Design and Architecture: Examples in Haskell and GPU Programming with Triton.

What should I know before learning embedded domain-specific language?

Manning books that teach embedded domain-specific language usually introduce algebraic data type and monad first.

What kinds of embedded domain-specific language are there?

Kinds of embedded domain-specific language include functional embedded domain-specific language, lens and Servant.

What is embedded domain-specific language a kind of?

Embedded domain-specific language is a kind of domain-specific language. A domain-specific language is a language or notation tailored to expressing concepts, operations, or solutions within a particular problem or application domain.

What is embedded domain-specific language also called?

Embedded domain-specific language is also called EDSL.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.