egglog VS libclc

Compare egglog vs libclc 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
egglog libclc
4 1
337 8
3.3% -
9.5 10.0
5 days ago almost 6 years ago
Rust C
MIT License -
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.

egglog

Posts with mentions or reviews of egglog. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-08.
  • Towards a New SymPy
    5 projects | news.ycombinator.com | 8 Sep 2023
    The herbie project using egraphs to explore different ways of rewriting floating point expressions. https://herbie.uwplse.org/ One can also write custom rulesets in egglog (a new egraph rewriting system / language / datalog) https://egraphs-good.github.io/egglog/?example=herbie

    The approach is not yet anywhere near being able to touch all the domains sympy can handle. Destructive term rewriting tends to be a bit more forgiving to unsoundness in the rules and still returning roughly meaningful results. EGraph rewriting (and other automated reasoning systems) tend to just return junk as soon as you aren't careful about your semantics. Associativity and commutativity are ubiquitous in CAS applications and encoding these concepts in general purpose terms is rather unsatisfying. The post above emphasizes specialty methods for polynomials, which it would be desirable to find a clean way to integrate into egraph techniques. Variable binding (which is treated in a rather mangled form in CAS systems) is seemingly important for treating summation, differentiation, and integration correctly. The status of doing variable binding efficiently and correctly in egraphs is also unclear imo.

  • What is the state of the art for creating domain-specific languages (DSLs) with Rust?
    7 projects | /r/rust | 21 Jun 2023
    For semantic analyzers, check out egg and egglog. They're custom data structures for representing compiler rewrite rules in a non-destructive way.
  • Ask HN: What is new in Algorithms / Data Structures these days?
    15 projects | news.ycombinator.com | 10 May 2023
    The recent work on relational, datalog-inspired egraphs in PLDI this year ("Unifying Datalog and Equality Saturation") is actually interesting because it can solve cases like the y/x*x -> y identity example, by the power of an interval analysis on x (among other things.) Sort of like adding a postulate but instead it's by adding relations between terms in the graph.

    https://github.com/egraphs-good/egglog

    https://arxiv.org/pdf/2304.04332.pdf

  • Better Together: Unifying Datalog and Equality Saturation
    2 projects | news.ycombinator.com | 18 Apr 2023
    Close, but the link is on Page 13, and it points here: https://github.com/mwillsey/egg-smol

    Unfortunately the naming is all a bit confusing, isn't it....

libclc

Posts with mentions or reviews of libclc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-10.
  • Ask HN: What is new in Algorithms / Data Structures these days?
    15 projects | news.ycombinator.com | 10 May 2023
    This is something I planned (2015) on sharing at some point but then years flew by and here we are .. :}

    It is a cacheline sized 'container' (CLC) of machine-word length records, with one record used to store the record order and remaining bits for metadata. So you can project different kinds of container semantics, such as FIFO or LRU -- any ordered set semantics -- on this meta record. Using arrays of CLCs you can create e.g. a segmented LRU, where the overhead per item is substantially less than a conventional pointer-based datastructure, and, is naturally suited for concurrent operations (for example by assigning a range to distinct worker threads), and ops require a few or couple of lines to be touched. The LRU (or whatever) semantics in aggregate will be probabilistic, as the LRU order is deterministic per unit container only. It is very fast :)

    https://github.com/alphazero/libclc/blob/master/include/libc...

    https://github.com/alphazero/libclc/blob/master/include/libc...

    As for the non-deterministic aspects: Since container semantics e.g. LRU order is only applied at unit level, the overall cache is ~LRU. We can strictly quantify the 'ordering error' by observing the age of items in FIFO mode as they are removed: for a deterministic container the age of the item is equal to the total capacity of the queue, for a segmented (array) composed of FIFO queues, the age will have a effectively gaussian distribution around the capacity (number of units x unit capacity). But since these containers can use as few as 9 bits per entry vs 24 or more bytes for pointer based solutions (which use linked-lists), for the same allocation of memory, the capacity of the array of CLCs will be much greater, so, the distribution tail of 'short-lived' items will actually be longer lived than items in a strict queue for the same exact memory. Additional techniques, such as n-array hashing, and low order 'clock' bits at container level, can tighten this distribution significantly (i.e. ~LRU -> LRU) via better loading factors.

What are some alternatives?

When comparing egglog and libclc you can also consider the following projects:

ezno - A JavaScript compiler and TypeScript checker written in Rust with a focus on static analysis and runtime performance

highfleet-ship-opt - A c/c++ module and python extensions for automatic optimization of Highfleet ship modules. Try it live at https://hfopt.jodavaho.io

scryer-prolog - A modern Prolog implementation written mostly in Rust.

clingo - 🤔 A grounder and solver for logic programs.

flix - The Flix Programming Language

yjs - Shared data types for building collaborative software

rfcs - RFC process for Bytecode Alliance projects

mpack - MPack - A C encoder/decoder for the MessagePack serialization format / msgpack.org[C]

ann-benchmarks - Benchmarks of approximate nearest neighbor libraries in Python

ntfy-android - Android app for ntfy.sh

peritext - A CRDT for asynchronous rich-text collaboration, where authors can work independently and then merge their changes.