Generator

Generator is a component in a language workbench that produces code or other artifacts based on a Domain Specific Language (DSL) definition. It's like a fancy template engine on steroids that can spit out anything from Java classes to HTML documentation, all while sipping a virtual latte.

How to use it in a sentence

  • "I just whipped up a new generator in my language workbench to convert our product catalog DSL into a React component. Now the marketing team can stop bugging me every time they want to change the font."

  • "Yo, did you see the new generator in MPS? It can take our trading algorithm DSL and generate both Java and Python code. Finally, we can stop arguing about which language is better and just use both!"

If you actually want to learn more...

  • Language Workbenches: The Killer-App for Domain Specific Languages? by Martin Fowler dives into the purpose and benefits of generators in language workbenches. It covers topics like binding to different frameworks, exploring implementation trade-offs, and generating human-readable documentation. Read more here.

  • A Language Workbench in Action - MPS by Martin Fowler demonstrates how to use JetBrains's Meta-Programming System (MPS) to define a DSL and generate code. It showcases a sample code generation for posting rules and explains MPS's generator language. Check it out here.

  • Viaweb's First Business Plan by Paul Graham discusses the concept of network-based software and introduces Webgen, a system that generates catalogs and supports ordering. While not directly related to language workbenches, it highlights the importance of code generation in web-based applications. Take a look here.

Note: the Developer Dictionary is in Beta. Please direct feedback to skye@statsig.com.

Join the #1 experimentation community

Connect with like-minded product leaders, data scientists, and engineers to share the latest in product experimentation.

Try Statsig Today

Get started for free. Add your whole team!

What builders love about us

OpenAI OpenAI
Brex Brex
Notion Notion
SoundCloud SoundCloud
Ancestry Ancestry
At OpenAI, we want to iterate as fast as possible. Statsig enables us to grow, scale, and learn efficiently. Integrating experimentation with product analytics and feature flagging has been crucial for quickly understanding and addressing our users' top priorities.
OpenAI
Dave Cummings
Engineering Manager, ChatGPT
Brex's mission is to help businesses move fast. Statsig is now helping our engineers move fast. It has been a game changer to automate the manual lift typical to running experiments and has helped product teams ship the right features to their users quickly.
Brex
Karandeep Anand
President
At Notion, we're continuously learning what our users value and want every team to run experiments to learn more. It’s also critical to maintain speed as a habit. Statsig's experimentation platform enables both this speed and learning for us.
Notion
Mengying Li
Data Science Manager
We evaluated Optimizely, LaunchDarkly, Split, and Eppo, but ultimately selected Statsig due to its comprehensive end-to-end integration. We wanted a complete solution rather than a partial one, including everything from the stats engine to data ingestion.
SoundCloud
Don Browning
SVP, Data & Platform Engineering
We only had so many analysts. Statsig provided the necessary tools to remove the bottleneck. I know that we are able to impact our key business metrics in a positive way with Statsig. We are definitely heading in the right direction with Statsig.
Ancestry
Partha Sarathi
Director of Engineering
We use cookies to ensure you get the best experience on our website.
Privacy Policy