HackerTube
HomeLongsLikedHistoryWatch laterCategoriesPlaylistsSettings

John Wiegley: Putting Lenses to Work

Bay Area Haskell4 HN recommenders · recommended in 4 months, 2020-2024
YouTube
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.

Functional programming#haskell#lens#functionalprogramming#bayhac

5 comments from Hacker News

@turboponyy2024 · in “Ask HN: What resources do you recommend for learning Haskell?”

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

Strongly recommendsView on HN
@lgas2022 · in “Ask HN: What piece of code/codebase blew your mind when you saw it?”

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.

RecommendsView on HN
@ParetoOptimal2022 · in “Lenses”

> 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

RecommendsView on HN
@ParetoOptimal2022 · in “Dhall: A Gateway Drug to Haskell”

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

RecommendsView on HN
@platz2020 · in “Haskell for a New Decade [pdf]”

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

Strongly recommendsView on HN
Lenses, Folds, and Traversals1:54:46

Lenses, Folds, and Traversals

Edward Kmett
54K views • 13 years ago
The Functional Programmer's Toolkit - Scott Wlaschin1:05:51

The Functional Programmer's Toolkit - Scott Wlaschin

NDC Conferences
79K views • 7 years ago
Gabriella Gonzalez – How to market Haskell to a mainstream programmer41:53

Gabriella Gonzalez – How to market Haskell to a mainstream programmer

Konfy
8K views • 6 years ago
Brian Beckman: Don't fear the Monad1:07:10

Brian Beckman: Don't fear the Monad

jasonofthel33t
415K views • 13 years ago
Lambda Calculus - Fundamentals of Lambda Calculus & Functional Programming in JavaScript1:02:15

Lambda Calculus - Fundamentals of Lambda Calculus & Functional Programming in JavaScript

Fullstack Academy
227K views • 9 years ago
Simon Peyton-Jones: Escape from the ivory tower: the Haskell journey1:04:16

Simon Peyton-Jones: Escape from the ivory tower: the Haskell journey

Churchill College, University of Cambridge
170K views • 9 years ago
The Next Five Years of ClojureScript - David Nolen1:00:58

The Next Five Years of ClojureScript - David Nolen

Metosin
19K views • 10 years ago
Alexis King -  “Effects for Less” @ ZuriHac 20201:17:07

Alexis King - “Effects for Less” @ ZuriHac 2020

Zürich Friends of Haskell
25K views • 6 years ago
Glenn Vanderburg - Cló: The Algorithms of TeX in Clojure42:25

Glenn Vanderburg - Cló: The Algorithms of TeX in Clojure

ClojureTV
9K views • 11 years ago
Effective ML1:09:24

Effective ML

Jane Street
30K views • 10 years ago
Lecture 7A: Metacircular Evaluator, Part 11:24:38

Lecture 7A: Metacircular Evaluator, Part 1

MIT OpenCourseWare
32K views • 7 years ago
Stephen Wolfram's Introduction to the Wolfram Language12:56

Stephen Wolfram's Introduction to the Wolfram Language

Wolfram
924K views • 12 years ago
Effective Programs - 10 Years of Clojure - Rich Hickey1:14:52

Effective Programs - 10 Years of Clojure - Rich Hickey

ClojureTV
176K views • 9 years ago
Clojure for Lisp Programmers Part 1 - Rich Hickey1:28:59

Clojure for Lisp Programmers Part 1 - Rich Hickey

ClojureTV
25K views • 13 years ago
Hey Underscore, You're Doing It Wrong!36:31

Hey Underscore, You're Doing It Wrong!

InfoQ
141K views • 13 years ago
JSON Parser 100% From Scratch in Haskell (only 111 lines)1:50:07

JSON Parser 100% From Scratch in Haskell (only 111 lines)

Tsoding
205K views • 6 years ago
Expert to Expert: Rich Hickey and Brian Beckman - Inside Clojure53:56

Expert to Expert: Rich Hickey and Brian Beckman - Inside Clojure

jasonofthel33t
119K views • 13 years ago
Depth-first search in APL11:32

Depth-first search in APL

Dyalog
11K views • 12 years ago
Breaking Down Programming Paradigms: APL's Surprising Learning Curve // Aaron Hsu // Dyalog '1759:03

Breaking Down Programming Paradigms: APL's Surprising Learning Curve // Aaron Hsu // Dyalog '17

Dyalog User Meetings
7K views • 9 years ago
Scala Collections: Why Not?45:42

Scala Collections: Why Not?

InfoQ
43K views • 12 years ago