percival VS mangle

Compare percival vs mangle and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
percival mangle
12 9
571 1,038
- 0.9%
0.0 6.7
about 1 year ago 16 days ago
Rust Go
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

percival

Posts with mentions or reviews of percival. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-21.
  • Learn Datalog Today
    8 projects | news.ycombinator.com | 21 Jan 2024
    Souffle and Cozo mentioned below already implement the whole of "traditional" datalog.

    Percival (https://github.com/ekzhang/percival) has some very nice examples showing how you can interactively write and test rules on top of a datalog interpreter.

    Bud (http://bloom-lang.net/bud/) is Hellerstein's proof of concept playground. It has bit-rotted in the past few years, but the examples are readable even if you can't easily get it working.

    The complexity can be quite good. You can syntactically determine when you've written linear recursion (equivalent to a for loop) vs not. Otherwise, the complexity is what you'd expect from incremental view maintenance in a normal SQL database. Which is to say O(n^k) with k being the number of relations joined, but usually much, much less with appropriate indexes and skew in the data. All the usual tricks concerning data normalization and indexes from databases apply.

  • SoufflĂ©: A Datalog Synthesis Tool for Static Analysis
    5 projects | news.ycombinator.com | 30 Nov 2022
    I've worked on percival a bit, it compiles (transpiles?) the datalog ast into javascript code on demand and executes it to get the results, see [1]. Percival's creator, Eric, also submitted a 10m presentation about the project [2] to the HYTRADBOI 'virtual conference' earlier this year [2]. They also submitted a Show HN that received a couple comments [3]. The Have You Tried Rubbing A Database On It conference included several awesome presentations featuring datalog, which readers may find interesting [4].

    [1]: https://github.com/ekzhang/percival/blob/main/crates/perciva...

    [2]: https://www.hytradboi.com/2022/percival-a-reactive-language-...

    [3]: https://news.ycombinator.com/item?id=29521975

    [4]: https://www.hytradboi.com/

  • Chumsky, a Rust parser-combinator library with error recovery
    8 projects | news.ycombinator.com | 8 Jul 2022
    I haven't written a parser with Chumsky, bit I've played with a little one a bit if you wanna see an example syntax. The error reporting for this project is implemented with `ariadne` which is also really slick.

    Parser: https://github.com/ekzhang/percival/blob/main/crates/perciva...

    Error reporting: https://github.com/ekzhang/percival/blob/main/crates/perciva...

    Datalog playground: https://percival.ink/

    To see an error report, delete some punctuation from one of the Datalog code blocks then press shift-return.

  • Show HN: Percival – Web-based reactive Datalog notebooks, made with Rust+Svelte
    1 project | news.ycombinator.com | 11 Dec 2021
  • Percival: Web-based, reactive Datalog notebooks for data analysis and visualization, written in Rust and Svelte
    1 project | /r/webdev | 11 Dec 2021
    1 project | /r/functionalprogramming | 11 Dec 2021
    1 project | /r/visualization | 11 Dec 2021
    1 project | /r/programming | 11 Dec 2021
    2 projects | /r/ProgrammingLanguages | 11 Dec 2021
    1 project | /r/sveltejs | 11 Dec 2021

mangle

Posts with mentions or reviews of mangle. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-21.
  • Learn Datalog Today
    8 projects | news.ycombinator.com | 21 Jan 2024
    Mangle https://github.com/google/mangle is an open-source implementation in golang, it was an explicit goal to make it easy to learn. Meaning: it is easy to recognize the pure datalog part, the syntax is following the good old course material.

    It was discussed here: https://news.ycombinator.com/item?id=33756800

  • Prolog for Data Science
    4 projects | news.ycombinator.com | 7 May 2023
    Logic programming offers a good foundation for anything that people call "rule engines." Within logic programming, there is some variation on the degree of declarativeness.

    Datalog is arguably the minimal core logic programming, similar to what the lambda calculus achieves for functional programming. Unfortunately, it has been forgotten outside of database and query processing realm. A resurgence has happened in recent years, as PL researchers and also industry have discovered the virtues of datalog (e.g. Flix, DataFun). My own attempt at making this more widely known is here https://github.com/google/mangle, a language from the datalog family and its implementation as a go library.

    As the example shows: plain "rules" (or: plain datalog) is rarely enough to capture everything that one wants to express: the question then is, how to combine a pure declarative "kernel" with more general purpose programming (e.g. mapping a list).

    PROLOG offered one answer, already in the 1980s, but I fully reject it: the fact that the writing a program in the wrong order with negation and recursion makes it non-terminating is not something we'd want everyone to deal with. Datalog with stratified recursion is somewhat better, as "layers of rules" is a concept that is easy to understand.

    In mainstream programming languages, the possibility of writing non-terminating programs also exists, but is rarely an issue. That is why I believe a good combination of declarative and general-purpose has to make it really easy to recognize which parts of a program are in the declarative, terminating, safe kernel and which parts require more attention from the programmer.

  • Maps and structs in Mangle datalog
    1 project | /r/datalog | 6 Dec 2022
  • Mangle, a programming language for deductive database programming
    1 project | /r/patient_hackernews | 26 Nov 2022
    1 project | /r/hackernews | 26 Nov 2022
    1 project | /r/hypeurls | 26 Nov 2022
    12 projects | news.ycombinator.com | 26 Nov 2022
  • Mangle: Programming language for deductive database programming
    1 project | news.ycombinator.com | 26 Nov 2022

What are some alternatives?

When comparing percival and mangle you can also consider the following projects:

codeql - CodeQL: the libraries and queries that power security researchers around the world, as well as code scanning in GitHub Advanced Security

biscuit-go

crepe - Datalog compiler embedded in Rust as a procedural macro

pengine - pengines (SWI Prolog) client for Go

modus - A language for building Docker/OCI container images

go - Trealla Prolog embedded in Go using WASM

cclyzerpp - cclyzer++ is a precise and scalable pointer analysis for LLVM code.

OPA (Open Policy Agent) - Open Policy Agent (OPA) is an open source, general-purpose policy engine.

souffle - Soufflé is a variant of Datalog for tool designers crafting analyses in Horn clauses. Soufflé synthesizes a native parallel C++ program from a logic specification.

logica - Logica is a logic programming language that compiles to SQL. It runs on Google BigQuery, PostgreSQL and SQLite.

async-observable - Async & reactive synchronization model to keep multiple async tasks / threads partially synchronized.

dex-lang - Research language for array processing in the Haskell/ML family