Skip to content
0:00 / 0:00

#dlang#ranges#dsl

DConf 2019: Lessons from a DSL where all you have is ranges -- John Colvin

The D Language Foundation

2.1K subscribers • 6 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • A classic. People kept recommending it from 2019 to 2022.
  • Presented by John Colvin

Intermediate. Assumes working knowledge.

1.4K views7 years ago2 recommendations

Programming languagesSoftware designLanguage design and type systemsFunctional programming

John Colvin discusses building a domain-specific language around D's range concept and the lessons learned from its use.

Slides available at dconf.org/2019/talks/colvin.html. Ranges are so good, we semi-accidentally ended up developing software in a language where ranges were almost the only feature developed. Inspired heavily (cough cough) by D's ranges, we were able get moving fast with basic data processing before most of the language was complete. Over many months of writing code—including a lot by non-D users and people who weren't at the start active programmers—many lessons were learnt; some sweet, some bitter, some downright perplexing. Overall a picture emerged of what ranges are good for, what they aren't suited to, and what they could become good at given specific language and community attention.

Why it's here

2 people recommend this

What people say. Recommended by users as an interesting talk on using D in production and designing DSLs for non-technical users.

u/kal31dicin r/programming • Recommends

On “D Foundation is Beefing Up”

…things, I run technology across the firm at Symmetry Investments. Feel free to AMA about our use of an emerging programming language in production in a financial services environment. If there's enough interest I will ask some colleagues to join. I'm not the most polished speaker but you can see some links to past talks we gave at dconf here: link to this video link to this video link to this video I think Walter Bright, Andrei Alexandrescu Atila Neves and Michael Parker should be around also to answer questions about what this means for the D language community and its growing adoption. This is really about #dlang rather than Symmetry. But whilst it may be true that compared to C++, "there are no jobs in D", we ar…

u/kal31dicin r/programming • Recommends

On “dlang being used for autonomous driving research - Audi and Mercedes”

…company on it and four or five years later they have the world's fastest file system by far, with lots of features too. Every programming language has its flaws but Liran said it's hard to think how something else could have got them there The community is filled with people across multiple domains doing divers interesting things. Talks here link to this video link to this video…

u/moon-chilledj, bonsaiin r/ProgrammingLanguages • Recommends

On “Are there any successful examples of DSLs targeted at non-technical users?”

I worked adjacent to one. Interactive data processing by domain experts, designed to replace excel, but with the ability to 'scale up' a bit more and be maintainable and reproducible. Very high emphasis on integration with everything that can possibly be integrated. High emphasis on interactivity. Functional-lite: no mutable state (except global variables, manipulated from the repl) and lazy stream processing (a talk on it), but eager semantics in general and free access to side effects. It was dynamically typed then, but there were talks of adding a type system; I don't know what's happened since. IMO, mathematica is a very good, publicly available exemplar of the sort of thing you…