Milan Todorović
Create DSL (Domain Specific Language) on top of Swift
#1about 2 minutes
Defining a Domain Specific Language (DSL)
A Domain Specific Language is a high-level programming language optimized to solve problems within a specific business domain.
#2about 2 minutes
Classifying internal vs external DSLs
DSLs can be classified as external (built from scratch with a new compiler) or internal (built on top of a host language like Swift).
#3about 3 minutes
Common examples and best practices for DSLs
Effective DSLs often use English-like syntax for clarity, with common examples including HTML, CSS, SQL, and various markup languages.
#4about 4 minutes
Analyzing SwiftUI as a powerful DSL in Swift
SwiftUI serves as a prime example of a DSL built on Swift, using structures for nouns and modifier methods for verbs to describe user interfaces declaratively.
#5about 4 minutes
Key Swift syntax features for building DSLs
Swift enables powerful DSL creation through key features like result builders, trailing closures, property wrappers, and modifier-style methods.
#6about 7 minutes
Live coding a simple drawing DSL in Xcode
This live coding session demonstrates how to build a simple drawing DSL from scratch using a result builder, protocols, and structures for custom commands.
#7about 4 minutes
Applying DSLs and leveraging the host environment
A DSL allows you to focus on the problem domain while leveraging the host environment's features like version control, debugging, and UI tools.
Related jobs
Jobs that call for the skills explored in this talk.
tree-IT GmbH
Bad Neustadt an der Saale, Germany
€54-80K
Intermediate
Senior
Java
TypeScript
+1
Matching moments
04:22 MIN
Why you should create a domain-specific language
Langium: Design Your Own Language in Node.js and VS Code
01:59 MIN
Understanding domain-specific languages and their use cases
Langium: Design your own language in Node.js and VS Code
02:29 MIN
Key principles for designing an effective DSL
Langium: Design your own language in Node.js and VS Code
03:16 MIN
The business benefits of creating a custom DSL
Langium: Design your own language in Node.js and VS Code
04:35 MIN
Understanding the benefits of domain-specific languages
How to become an AI toolsmith
07:49 MIN
Create a domain-specific language for readable tests
TDD for Vue.js Developers
02:46 MIN
A four-step recipe for building your own DSL
How to become an AI toolsmith
04:29 MIN
The value of understanding language internals
Making Sense of Programming Languages
Featured Partners
Related Videos
Mobile at a Crossroads: The Declarative UI App Revolution
Peter Steinberger
What do language models really learn
Tanmay Bakshi
Server Side Serverless in Swift
Sebastien Stormacq
Let your iOS app read texts
Milan Todorovic
Langium: Design your own language in Node.js and VS Code
Irina Artemeva
Langium: Design Your Own Language in Node.js and VS Code
Miro Spönemann
Making Sense of Programming Languages
Aleksandra Sikora
Harnessing Apple Intelligence: Live Coding with Swift for iOS
MIlan Todorović
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Code Healers LLC
Hinesville, United States of America
Remote
€40-50K
Intermediate
Senior
PHP
.NET
React
+2



DeepL
Charing Cross, United Kingdom
Remote
API
React
Python
.NET Core

DeepL
Charing Cross, United Kingdom
Remote
API
React
Python
TypeScript
+1


DeepL
Charing Cross, United Kingdom
Remote
Senior
React
Python
Next.js
FastAPI
+2

DeepL GmbH
Berlin, Germany
Remote
API
React
Python
.NET Core

DeepL
Amsterdam, Netherlands
Remote
API
React
Python
.NET Core