A Tour of Prolog

Channel:The Power of Prolog · Length:56:03 · Published:2022-04-03 · Views:33520

Watch on YouTube

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