A Tour of Prolog
Channel:The Power of Prolog · Length:56:03 · Published:2022-04-03 · Views:33520
Summary
Markus Triska tours Prolog's most distinctive features, including its use as a database and query language, rule processing, constraint solving and compile-time rewriting. It also covers concise meta-interpreters.
Why HN recommends it
HN recommends it as the best short introduction to what makes Prolog unique.
check out this video introduction by Markus Triska about what makes Prolog unique — HN, 2023
Programming language design · Databases & storage · Logic & formal methods
Subtitles (excerpt)
what are the major attractions of prolog well maybe most strikingly prolog is an extremely versatile language for example polar can be used as a database and query language and this can be very useful in practice for instance if you search for the unicode character database and go to the unicode site and there to the latest unicode version then in ucd we find a file called unicode data.txt this file is a database with information about each unicode code point and it has more than 30 000 entries now for start let's convert this file to prolog syntax and we can easily do this with emacs by defining a macro with ctrl x left parenthesis and now we can simply store a key sequence for instance in our case let's use a key sequence that relates the code point on this line to its name so the code point is almost a valid product number in hexadecimal notation we only need to preface it with 0 and x and from the remaining line we only need the name ideally as a string so that we can easily reason about the name so we use double quotes for a list of characters then we search to the next semicolon remove it and close the double quotes for the string and that's all we need the code point and the name so we can simply remove the rest
On Hacker News
The Power of Prolog [0] is a fantastic blog/video series covering everything from basic syntax, theoretical basis, modern features and idiomatic constructs. I highly recommend it if you want to get the gist of Prolog and its modern features. If you want a tour of Prolog, you can watch the video with the same name [1]. [0]: [LINK] [1]: [VIDEO] — ggzor, 2022-12
I think that Prolog will rise again. If you have an hour to kill, check out this video introduction by Markus Triska about what makes Prolog unique: [VIDEO] Recently I have been working on getting Trealla Prolog to run in WebAssembly. Support is quite good now, with an easy-to-use JS library[1], Go library[2], and is now one of the best-supported languages for the Spin runtime[3]. I think it's pa… — grose, 2023-04
I was watching some of the videos and in the intro Markus mentioned some of the most popular Prolog systems [VIDEO] SICStus, GNU Prolog, XSB, Ciao, Scryer, Traella, Tau but does not mention at all of SWI-Prolog. I remember using SWI-Prolog back in the day, did it somehow fall out favor, or is there some animosity between implementation and Markus is just not in the SWI-Prolog camp? — rdtsc, 2024-10
Related videos
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- DjangoCon 2022 | From React to htmx on a real-world SaaS product: we did it, and it's awesome! · DjangoCon Europe · 26:45
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- "Testing Distributed Systems w/ Deterministic Simulation" by Will Wilson · Strange Loop Conference · 40:20
- The Value of Values with Rich Hickey · InfoQ · 31:43
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09
- Maybe Not - Rich Hickey · ClojureTV · 1:03:28
- Conway's Game Of Life in APL · Dyalog · 7:47
- Lecture 1A | MIT 6.001 Structure and Interpretation, 1986 · MIT OpenCourseWare · 1:12:55
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- Growing a Language, by Guy Steele · Bill Pugh · 53:31
- Effective Programs - 10 Years of Clojure - Rich Hickey · ClojureTV · 1:14:51
- Brian Goetz - Stewardship: the Sobering Parts · ClojureTV · 1:03:30
- AWS re:Invent 2018: Amazon DynamoDB Deep Dive: Advanced Design Patterns for DynamoDB (DAT401) · Amazon Web Services · 59:56
- JavaScript: The Good Parts · Google TechTalks · 1:03:47
- Brian Beckman: Don't fear the Monad · jasonofthel33t · 1:07:10