mercury

The Mercury logic programming system. (by Mercury-Language)

Mercury Alternatives

Similar projects and alternatives to mercury

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better mercury alternative or higher similarity.

mercury reviews and mentions

Posts with mentions or reviews of mercury. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-01-05.
  • Term for translating between enum switch vs map lookup?
    1 project | /r/Compilers | 31 Mar 2023
    The Mercury compiler uses all of these techniques and more. Start here in the source code, and read the comments: https://github.com/Mercury-Language/mercury/blob/master/compiler/switch_gen.m
  • Why Learn Prolog in 2021?
    8 projects | news.ycombinator.com | 5 Jan 2021
    I'm not convinced there's great utility in smart contracts, but if there is, I think there's a huge utility in contracts being declarative and statically typed, to avoid many of the problems we've seen with existing contracts. In that case, a statically typed Prolog dialect would be a good starting point. The contract would be a set of declarative rules describing acceptable next states of the contract. To make the contracts verifiable in linear time, the submitter would submit the next state of the contract, plus a compact binary representation of the path taken through the rules set, so no backtracking would occur in the verifier. You could allow recursion, as verification time would still be linear in the size of the submitted compact path representation, just not linear in the size of the contract. If you disallow recursion, then verification would also be linear in the size of the contract.

    Granted, many of the problems with Ethereum Solidity contracts are more to do with all of its use of implicit behavior (in a misguided attempt to hide the complexity of contracts) rather than directly consequences of Solidity being imperative.

    Here's a quick plug for Mercury[0], a statically typed dialect of Prolog with an optimizing native code compiler. Supposedly it's 5 to 10 times faster than commercial Prolog compilers or available interpreters.

    [0] https://github.com/Mercury-Language/mercury

Stats

Basic mercury repo stats
2
875
9.8
1 day ago

Mercury-Language/mercury is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

The primary programming language of mercury is Mercury.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com