Skip to content
HomeVideos
AllLongsCategoriesPlaylists
BooksBlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K

    Lexical Scanning in Go - Rob Pike

    GoogleFOSSSydney

    13 HN recommenders · recommended in 17 months, 2012–2025

    YouTube

    51:18 · 162K views · Aug 30, 2011

    Rob Pike shows how the Go text/template lexer is built, using state functions, goroutines and channels. The talk was given at a Google Technology User Group in Sydney in 2011.

    HN returns to it for years as an elegant introduction to writing a lexer that is easy to follow even without a parsing background.

    Software Engineering & LanguagesCompilers, interpreters & program analysisC, C++, Rust, Go & systems languages
    1. 51:27
      Google I/O 2012 - Go Concurrency PatternsGoogle for Developers894K views • 14 years ago
    2. 38:19
      Origins of Go Concurrency style by Rob Pikejasonofthel33t28K views • 14 years ago
    3. 23:12
      dotGo 2015 - Rob Pike - Simplicity is Complicateddotconferences172K views • 10 years ago
    4. 23:57
      GopherCon 2016: The Design of the Go Assembler - Rob PikeGopher Academy116K views • 10 years ago
    5. 1:07:00
      Sydney Golang Meetup - Rob Pike - Go 2 Draft SpecificationsMacquarie Group57K views • 7 years ago
    6. 12:31
      OSCON 2010: Rob Pike, "Public Static Void"O'Reilly119K views • 16 years ago
    7. 59:26
      The Go Programming LanguageGoogle TechTalks406K views • 16 years ago
    8. 1:00:40
      Dmitry Vyukov — Go scheduler: Implementing language with lightweight concurrencyHydra47K views • 7 years ago
    9. 0:27
      Rob Pike about the target group of the Go programming language (golang)f8C4G86p KbqEFe477K views • 6 years ago
    10. 22:29
      Gopherfest 2015 | Go Proverbs with Rob PikeThe Go Programming Language317K views • 10 years ago
    11. 31:23
      Concurrency is not Parallelism by Rob Pikegnbitcom191K views • 10 years ago
    12. 56:36
      GopherCon 2014 Opening Keynote by Rob PikeConfreaks38K views • 12 years ago
    13. 1:03:31
      Brian Goetz - Stewardship: the Sobering PartsClojureTV39K views • 11 years ago
    14. 1:00:29
      Google I/O 2012 - Meet the Go TeamGoogle for Developers108K views • 14 years ago
    15. 1:05:56
      Lang NEXT 2014 Panel Systems Programming in 2014 and Beyond25msr2.8K views • 8 years ago
    16. 38:38
      "Tree-sitter - a new parsing system for programming tools" by Max BrunsfeldStrange Loop Conference63K views • 8 years ago
    17. 1:07:22
      Invited Talk - Guy SteeleClojureTV39K views • 9 years ago
    18. 51:12
      Google I/O 2011: Writing Web Apps in GoGoogle for Developers135K views • 15 years ago
    19. 1:13:53
      Raymond Hettinger, Keynote on Concurrency, PyBay 2017SF Python161K views • 9 years ago
    20. 1:02:50
      The Language of the System - Rich HickeyClojureTV174K views • 13 years ago

    20 comments from Hacker News

    1. @groseOct 2016· in “Ask HN: What's your favorite tech talk?”

      Lexical Scanning in Go by Rob Pike this video I love everything about this talk. It walks you through building a lexer from scratch in a simple and elegant way, through a very interesting use of coroutines. I appreciate the bits of humor in the talk as well.

      Strongly recommendsView on HN
    2. @TomNomNomMay 2014· in “Templating in Go”

      Rob Pike did a really good talk entitled 'Lexical Scanning In Go'[0], which covers how the lexing for text/template works. It's far more interesting than it sounds, and even if you don't know much about lexing/parsing it's easy to follow. [0] this video

      Strongly recommendsView on HN
    3. @willvarfarJun 2012· in “Parsing huge XML files with Go”

      Personally, I have a penchant for writing my own pull parsers. Its a mind-expanding exercise. The neat thing about Go is that parsers can return functions that consume the next token. Rob Pike has an excellent video about this: this video

      Strongly recommendsView on HN
    4. @hu3Nov 2024· in “Rust for tokenising and parsing”

      Related, I love Rob Pike's talk about lexical Scanning in Go (2011). Educational and elegant approach. this video

      Strongly recommendsView on HN
    5. @etatobyMay 2016· in “Writing a Compiler in Go”

      I would like to mention that most, if not all, of the Go compiler and related utilities is written in Go itself, with high quality, open source code that can be found in the "go" package of the standard library: [LINK] I would recommend using that as a template for one's own compiler, because it's written in idiomatic Go (originally by the language creators) and is cleanly split across abstraction boundaries (packages "scanner", "parser", "ast", and so on.) There's also a smaller, simpler parser in the "text/template/parse" package, that is used to parse the templating languages in "text/template" and "html/template". As an introduction to it, I recommend the talk "Lexical Scanning in Go" by Rob Pike: this video

      RecommendsView on HN