multiversion-concurrency-contro VS clojure

Compare multiversion-concurrency-contro vs clojure and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
multiversion-concurrency-contro clojure
16 97
- 10,282
- 0.3%
- 7.9
- about 12 hours ago
Java
- -
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.

multiversion-concurrency-contro

Posts with mentions or reviews of multiversion-concurrency-contro. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-18.
  • CRDT-richtext: Rust implementation of Peritext and Fugue
    17 projects | news.ycombinator.com | 18 May 2023
    https://github.com/samsquire/multiversion-concurrency-contro...

    And I implemented a 3 way text diff with myers algorithm based on https://blog.jcoglan.com/2017/02/12/the-myers-diff-algorithm...

    https://github.com/samsquire/text-diff

    I implemented an eventually consistent mesh protocol that uses timestamps to provide last write wins

  • A collection of lock-free data structures written in standard C++11
    7 projects | news.ycombinator.com | 10 May 2023
    I think I lean towards per-thread sharding instead of mutex based or lock free data structures except for lockfree ringbuffers.

    You can get embarassingly parallel performance if you split your data by thread and aggregate periodically.

    If you need a consistent view of your entire set of data, that is slow path with sharding.

    In my experiments with multithreaded software I simulate a bank where many bankaccounts are randomly withdrawn from and deposited to. https://github.com/samsquire/multiversion-concurrency-contro...

    I get 700 million requests per second due to the sharding of money over accounts.

  • The “Build Your Own Database” book is finished
    5 projects | news.ycombinator.com | 22 Apr 2023
    If you want some sample code to implement MVCC, I implemented MVCC in multithreaded Java as a toy example

    https://github.com/samsquire/multiversion-concurrency-contro...

    First read TransactionC.java then read MVCC.java

  • Let's write a setjmp
    4 projects | news.ycombinator.com | 12 Feb 2023
    I wrote an unrolled switch statement in Java to simulate eager async/await across treads.

    https://github.com/samsquire/multiversion-concurrency-contro...

    The goal is that a compiler should generate this for you. This code is equivalent to the following:

       task1:
  • Structured Concurrency Definition
    2 projects | news.ycombinator.com | 6 Feb 2023
    https://doc.rust-lang.org/book/ch16-00-concurrency.html

    I've been working on implementing Java async/await state machine with switch statements and a scheduling loop. If the user doesn't await the async task handle, then the task's returnvalue is never handled. This is similar to the Go problem with the go statement.

    https://github.com/samsquire/multiversion-concurrency-contro...

    If your async call returns a handle and

  • Small VMs and Coroutines
    3 projects | news.ycombinator.com | 19 Jan 2023
    yield value2++

    https://github.com/samsquire/multiversion-concurrency-contro...

    I am still working on allowing multiple coroutines to be in flight in parallel at the same time. At the moment the tasks share the same background thread.

    I asked this stackoverflow question regarding C++ coroutines, as I wanted to use coroutines with a thread pool.

    https://stackoverflow.com/questions/74520133/how-can-i-pass-...

  • Hctree is an experimental high-concurrency database back end for SQLite
    5 projects | news.ycombinator.com | 18 Jan 2023
    This is very interesting. Thank you for submitting this and thank you for working on this.

    I am highly interested in parallelism and high concurrency. I implemented multiversion concurrency control in Java.

    https://github.com/samsquire/multiversion-concurrency-contro...

    I am curious how to handle replication with high concurrency. I'm not sure how you detect dangerous reads+writes to the same key (tuples/fields) across different replica machines. In other words, multiple master.

    I am aware Google uses truetime and some form of timestamp ordering and detection of interfering timestamps. But I'm not sure how to replicate that.

    I began working on an algorithm to synchronize database records, do a sort, then a hash for each row where hash(row) = hash(previous_row.hash + row.data)

    Then do a binary search on hashes matching/not matching. This is a synchronization algorithm I'm designing that requires minimal data transfer but multiple round trips.

    The binary search would check the end of the data set for hash(replica_a.row[last]) == hash(replica_b.row[last]) then split the hash list in half and check the middle item, this shall tell you which row and which columns are different.

  • Tail Call Optimization: The Musical
    2 projects | news.ycombinator.com | 8 Jan 2023
    https://github.com/samsquire/multiversion-concurrency-contro...

    I want to redesign the architecture of the async/await to be easier to understand. I want to use a state machine somehow.

  • Rust Atomics and Locks: Low-Level Concurrency in Practice
    3 projects | news.ycombinator.com | 6 Jan 2023
    I wrote an unrolled state machine for my async/await in Java. This models a simple async/await program and runs tasks on other threads - without locks. I use a design I call token ring parallelism, where threads take turns and are linked together in a ring structure.

    https://github.com/samsquire/multiversion-concurrency-contro...

    I wrote a own lock free algorithm here that I use to do message passing between actor threads. My goal is high throughput performance and low latency.

    https://github.com/samsquire/multiversion-concurrency-contro...

    With 11 threads (on a 12 core processor, deliberately left one core for Windows)

  • A Compiler Writing Playground
    3 projects | news.ycombinator.com | 26 Nov 2022
    I then started writing a parser for a high level language and then code generation from the AST to the imaginary assembly. My interpreter is multithreaded and can send integers between interpreters. It is very early and doesn't do much.

    Code is at https://github.com/samsquire/multiversion-concurrency-contro...

    The high level language looks similar to Javascript except I tried to parse everything as an expression. I need to parse functions as expressions.

    I was experimenting with Protothreads in C recently to try understand how it worked and I wrote a giant switch statement and a while loop in Java to simulate async/await. It would be interesting to do codegen for coroutines.

    here's that giant switch statement and scheduler https://github.com/samsquire/multiversion-concurrency-contro...

    One idea for a stackless design I had was to preallocate memory for each method call for a call to that function and avoid a stack altogether. This would allow coroutines between methods and avoid the function colour problem because everything is a coroutine.

    Is there any communities for programming language developers? Where do all the language developers meet up and talk theory and implementation? I am on eatonphil's discord and we talk there.

    One problem I am trying to understand how to solve is how you would write a multithreaded interpreter and language that allowed parallel interpretation similar to C# and Java. If the allocator is thread safe and you share an object pool between interpreters and you hash object equality by sourcecode, then you could send objects between threads with only a synchronization cost.

    I believe Python has the problem that object identity is different in each subinterpreter so you need to marshall the data.

clojure

Posts with mentions or reviews of clojure. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-06.
  • Top Paying Programming Technologies 2024
    19 projects | dev.to | 6 Mar 2024
    5. Clojure - $96,381
  • A new F# compiler feature: graph-based type-checking
    9 projects | news.ycombinator.com | 5 Nov 2023
    I have a tangential question that is related to this cool new feature.

    Warning: the question I ask comes from a part of my brain that is currently melted due to heavy thinking.

    Context: I write a fair amount of Clojure, and in Lisps the code itself is a tree. Just like this F# parallel graph type-checker. In Lisps, one would use Macros to perform compile-time computation to accomplish something like this, I think.

    More context: Idris2 allows for first class type-driven development, where the types are passed around and used to formally specify program behavior, even down to the value of a particular definition.

    Given that this F# feature enables parallel analysis, wouldn't it make sense to do all of our development in a Lisp-like Trie structure where the types are simply part of the program itself, like in Idris2?

    Also related, is this similar to how HVM works with their "Interaction nets"?

    https://github.com/HigherOrderCO/HVM

    https://www.idris-lang.org/

    https://clojure.org/

    I'm afraid I don't even understand what the difference between code, data, and types are anymore... it used to make sense, but these new languages have dissolved those boundaries in my mind, and I am not sure how to build it back up again.

  • Ask HN: Why does the Clojure ecosystem feel like such a wasteland?
    3 projects | news.ycombinator.com | 2 Sep 2023
    As an analogy - my face hasn't changed all that much in a past few years, and I haven't changed my profile picture in those few years. Does it really mean that I'm unmaintained/dead?

    > Where can I find latest documentation [...]?

    The answer is still https://clojure.org/. And https://clojuredocs.org/ but it's community-maintained so might occasionally be missing some things right after they're released. E.g. as of this moment Clojure 1.11 is still not there since the maintainer of the website has some technical issues deploying the updated version of the website.

    For me personally, the best API-level documentation is the source code.

    > Where can I find [...] tools / libraries in a easy to use page or section?

    There's no central repository of all the available things since they can be loaded from many places (Clojars, Maven Central, other Maven repositories, S3, Git, local files).

    But there are community-maintained lists, like the one you've mentioned at https://www.clojure-toolbox.com (fully manual, AFAIK) or the one at https://phronmophobic.github.io/dewey/search.html (automated but only for GitHub). Perhaps there are others but I'm not familiar with them - most of the time, I myself don't find that much value in such services as I'm usually able to find things with a regular web search engine or ask the community when I need something in particular.

  • Why Lisp Syntax Works
    5 projects | news.ycombinator.com | 5 Jun 2023
    They are written in Java, and implement a bunch of interfaces, so the implementation looks complicated, but they are basically just classes with head and tail fields.

    https://github.com/clojure/clojure/blob/master/src/jvm/cloju...

  • Clojure compiler workshop
    1 project | /r/Clojure | 5 Jun 2023
  • If Clojure is immutable, how does atom work?
    1 project | /r/Clojure | 13 May 2023
    Like this.
  • Best implementation of CL for learning purposes
    3 projects | /r/lisp | 28 Mar 2023
    As a Java/Scala user you should check out Clojure! It is highly recommended (https://clojure.org)
  • Why I decided to learn (and teach) Clojure
    5 projects | dev.to | 20 Mar 2023
    Lisp is not a programming language, but a family of languages ​​with many dialects. The most famous dialects include Common Lisp, Clojure, Scheme and Racket. So after deciding that I was going to learn Lisp, I had to choose one of its dialects.
  • 8 Meta-learning Tips To Grow Your Skills as a Software Engineer
    1 project | dev.to | 2 Mar 2023
    I learned Clojure to implement a plugin for Metabase (the tool my former company used for creating business dashboards). I probably won’t ever use the language anymore in the future, but learning functional programming was fun and eye-opening.
  • Clojure Turns 15 panel discussion video
    24 projects | news.ycombinator.com | 13 Feb 2023
    I thought you might be trolling. But then when I looked at the Clojure repo on Github https://github.com/clojure/clojure the last commit was 2 months back. There is some merit in your arguments.

What are some alternatives?

When comparing multiversion-concurrency-contro and clojure you can also consider the following projects:

electric - Local-first sync layer for web and mobile apps. Build reactive, realtime, local-first apps directly on Postgres.

racket - The Racket repository

swift - the multiparty transport protocol (aka "TCP with swarming" or "BitTorrent at the transport layer")

malli - High-performance data-driven data specification library for Clojure/Script.

supercollider - An audio server, programming language, and IDE for sound synthesis and algorithmic composition.

trufflesqueak - A Squeak/Smalltalk VM and Polyglot Programming Environment for the GraalVM.

dictomaton - Finite state dictionaries in Java

scala - Scala 2 compiler and standard library. Bugs at https://github.com/scala/bug; Scala 3 at https://github.com/scala/scala3

hamt - A hash array-mapped trie implementation in C

nbb - Scripting in Clojure on Node.js using SCI

multiversion-concurrency-control - Implementation of multiversion concurrency control, Raft, Left Right concurrency Hashmaps and a multi consumer multi producer Ringbuffer, concurrent and parallel load-balanced loops, parallel actors implementation in Main.java, Actor2.java and a parallel interpreter

criterium - Benchmarking library for clojure