John Wiegley: Putting Lenses to Work
Bay Area Haskell4 HN recommenders · recommended in 4 months, 2020-2024
13K views · 9 years ago · talk · evergreen
John Wiegley's BayHac 2017 talk walks through Haskell lenses by example, showing many practical uses beyond simple record access. It is aimed at people who want to become productive with the lens library.
HN recommends it as the fastest way to learn lenses by example, with far-out examples later on.
1:54:46Lenses, Folds, and Traversals
Edward Kmett
54K views • 13 years ago
1:05:51The Functional Programmer's Toolkit - Scott Wlaschin
NDC Conferences
79K views • 7 years ago
41:53Gabriella Gonzalez – How to market Haskell to a mainstream programmer
Konfy
8K views • 6 years ago
1:07:10Brian Beckman: Don't fear the Monad
jasonofthel33t
415K views • 13 years ago
1:02:15Lambda Calculus - Fundamentals of Lambda Calculus & Functional Programming in JavaScript
Fullstack Academy
227K views • 9 years ago
1:04:16Simon Peyton-Jones: Escape from the ivory tower: the Haskell journey
Churchill College, University of Cambridge
170K views • 9 years ago
1:00:58The Next Five Years of ClojureScript - David Nolen
Metosin
19K views • 10 years ago
1:17:07Alexis King - “Effects for Less” @ ZuriHac 2020
Zürich Friends of Haskell
25K views • 6 years ago
42:25Glenn Vanderburg - Cló: The Algorithms of TeX in Clojure
ClojureTV
9K views • 11 years ago
1:09:24Effective ML
Jane Street
30K views • 10 years ago
1:24:38Lecture 7A: Metacircular Evaluator, Part 1
MIT OpenCourseWare
32K views • 7 years ago
12:56Stephen Wolfram's Introduction to the Wolfram Language
Wolfram
924K views • 12 years ago
1:14:52Effective Programs - 10 Years of Clojure - Rich Hickey
ClojureTV
176K views • 9 years ago
1:28:59Clojure for Lisp Programmers Part 1 - Rich Hickey
ClojureTV
25K views • 13 years ago
36:31Hey Underscore, You're Doing It Wrong!
InfoQ
141K views • 13 years ago
1:50:07JSON Parser 100% From Scratch in Haskell (only 111 lines)
Tsoding
205K views • 6 years ago
53:56Expert to Expert: Rich Hickey and Brian Beckman - Inside Clojure
jasonofthel33t
119K views • 13 years ago
11:32Depth-first search in APL
Dyalog
11K views • 12 years ago
59:03Breaking Down Programming Paradigms: APL's Surprising Learning Curve // Aaron Hsu // Dyalog '17
Dyalog User Meetings
7K views • 9 years ago
45:42Scala Collections: Why Not?
InfoQ
43K views • 12 years ago
5 comments from Hacker News
As with anything Haskell, one could simply reply with "here's the formal definition." But in easily digestible terms, it's a way to narrow your view over a collection to a subset that satisfies some property, and perhaps perform some operations on that subset. This video presentation (with a very humorous audience dynamic, might I add) serves as a great introduction by example: ▶ this video
Definitely agree on lenses being one of the more mind blowing things I've encountered and eventually grokked in programming. I would also recommend ▶ this video as a good video on lenses in part because the latter portion has some pretty far-out examples of that deep well you mentioned.
> Lenses let you do some amazing things, but I think most of their existence is just thanks to how truly horrible (nested) record field access and updates were. Only for the most basic uses. Architecting programs as folds or traversals can be powerful. One simple example of lenses i can think of being useful for more than record access is: > sumOf (folded . folded) [Just 1, Just 2] 3 More are in this presentation: ▶ this video
Good examples in "Putting lenses to work" by John Weigley: ▶ this video Then for a great book that gives a great understanding see Chris Penner's amazing and fun "Optics by example: link
and you can learn enough lens to be productive in 1 hours with this talk without reading docs at all. You can skip the theory and go straight to usage: ▶ this video