~/talk

Mercury: An Odd Amalgam of Haskell and Prolog - Part 1 of 2

Talkat LambdaConf 2017 · 2017-05-25..05-27· [functional-programming]
links:none on file
slides:none on file

Shows Mercury as a concrete language that mixes Haskell-style strong types with Prolog-style rules, implementing an HTTP 1.0 parser and a fizzbuzz example to demonstrate unification, mode-driven determinism and unique types (destructive input). Uses the C backend (Erlang and JVM available), relies on the standard solutions helpers to collect nondeterministic results, and exercises determinism modes including committed-choice. Examples compile and have tests, though live demo tooling and Cody access cause hiccups; overall the examples run with the stated caveats.

AI-written summary · about

  1. 0:00Mercury language intro
  2. 1:21Syntax and rules in Mercury
  3. 6:21Predicates and modes in Mercury
  4. 14:30FizzBuzz in Mercury
  5. 26:38Q&A on syntax
  6. 35:13HTTP routing with Mercury
  7. 46:59Parsing HTTP requests
  8. 58:02Q&A and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.