Тёмный

MuniHac 2016: Beautiful folds are practical, too 

TNG Technology Consulting GmbH
Подписаться 3,7 тыс.
Просмотров 9 тыс.
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@HerbMartin52
@HerbMartin52 4 года назад
A Beautiful Session on Beautiful Folds I am a beginner at Haskell and this talk was entertaining and enlightening but more importantly, it brought together a number of ideas (not just on folds) that I am only beginning to grok. Thank you so much. Please do more (I am going to search out all of your other sessions and lessons.) BTW, I am highly critical of most speakers -- you are superb.
@Tomyb15
@Tomyb15 6 месяцев назад
Really amazing stuff, and the speaker did a phenomenal job at explaining it. One question I have is whether mapping over a list/traversable just to apply a newtype data constructor could be avoided in some way via type coercion (which is always doable for newtypes) and whether it ends up making a difference. I'm not an experienced haskeller but I'm guessing it would require some type family magic.
@fordox4275
@fordox4275 8 лет назад
How can the average-fold be so efficient, if you basically create new list of `Average`s (thus you need extra iteration to copy the list)?
@3noch
@3noch 8 лет назад
In short, a very smart compiler. 1. All those "Average" constructors are erased at compile time by GHC. They are only used to determine how to do plumbing at the type level. 2. The folds are using stream fusion to compile to a single loop with no intermediate structures. The compiler makes heavy use of inlining to detect these cases, even when your folds are the composition of other folds across module, or even package, boundaries.
@123coolmik
@123coolmik 5 лет назад
Thanks, this was very enlightening
Далее
Haskell is Not For Production and Other Tales
38:19
Просмотров 100 тыс.
Monoidal Parsing-Edward Kmett
42:07
Просмотров 14 тыс.
МАЛОЙ ГАИШНИК
00:35
Просмотров 225 тыс.
КВН 2024 Встреча выпускников
2:00:41
George Wilson - The Extended Functor Family
21:57
Просмотров 16 тыс.
Simple Code, High Performance
2:50:14
Просмотров 252 тыс.
GEOMETRIC DEEP LEARNING BLUEPRINT
3:33:23
Просмотров 182 тыс.
In Haskell, less is more
57:51
Просмотров 22 тыс.
Production Haskell - Reid Draper
1:06:34
Просмотров 19 тыс.
Monad Transformers - Ben Kolera
57:22
Просмотров 10 тыс.
МАЛОЙ ГАИШНИК
00:35
Просмотров 225 тыс.