3 ms·
It had caught my eye but never used it. What kind of problems can I use it for?
by fithisux 8y ago
It had caught my eye but never used it. What kind of problems can I use it for?
- marcosdumay 8y agoMercury is great at basically the same problems you would solve with Prolog, but has added purity markers that help your code not have exponential slowdowns caused by hard to discover bugs.
- YeGoblynQueenne 8y agoIt's a Turing complete programming language. There are, literally, no programs you can't write in it.
- jlturner 8y agoAnything, web servers, systems programming, video games, etc. Its more of a different way of programming and thinking, using logic variables and unification to solve problems. Once you wrap your head around logic programming, its pretty easy and very powerful. Mercury's selling poings are: - runtime performance (automatic parallelization, very efficient due to logic programming understanding and rewriting sequenced operations) - static typing (in an ml style / like OCaml) - logic programming (unification of lvars) As a language it fills an interesting niche as logic progamming language typically aren't dyanmically typed or high performance (ie Prolog, most miniKanren implementations). Paul Bone has some good talks on Mercury if youre interested (heres some slides from an intro talk to Mercury https://paul.bone.id.au/pub/pbone-2015-mercury.pdf https://paul.bone.id.au/pub/pbone-2015-mercury.pdf)