DConf '22: D Features in the D Standard Library - Ali Çehreli

Описание к видео DConf '22: D Features in the D Standard Library - Ali Çehreli

D offers many powerful compile-time and run-time features. One of the places to see how these features work together for great effect is Phobos, D’s standard library. This talk dissects some Phobos algorithms and types to present how it takes advantage of D.

The PDF slides are available here:
https://dconf.org/2022/slides/cehreli...

DConf '22 Homepage
https://dconf.org/2022/index.html

The D Programming Language Home
https://dlang.org/

#dlang #dconf #programming

TIMECODES:
00:00 Title and Introduction
02:13 D is excellent
04:25 The standard library is Phobos
06:07 Ranges (with iota example)
09:18 Explaining iota
10:34 Multiple iota definitions
12:43 CommonType
13:50 is(typeof(expr))
16:45 Unqual
17:49 parallel
23:44 Design by introspection
27:33 Pattern matching
30:01 Useful error messages
30:50 SumType
39:29 Conclusion
40:03 Q: Should SumType be part of the language rather than the library?
42:20 Comment on using SumType vs. Variant
43:24 Q: Would replacing is(typeof(...)) with __traits(compiles, ...) improve readability?
44:48 Q: Why do we have __traits and std.traits?
45:44 Q about Ali's opinion of built-ins vs. __traits
46:30 Comment: two overloads of iota are redundant
50:28 Outro

Комментарии

Информация по комментариям в разработке