janet VS moodycamel

Compare janet vs moodycamel and see what are their differences.

moodycamel

A fast multi-producer, multi-consumer lock-free concurrent queue for C++11 (by cameron314)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
janet moodycamel
79 11
3,296 8,808
1.3% -
9.4 3.9
4 days ago 10 months ago
C C++
MIT License GNU General Public License v3.0 or later
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.

janet

Posts with mentions or reviews of janet. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-20.
  • Scriptable Operating Systems with Lua [pdf]
    2 projects | news.ycombinator.com | 20 Apr 2024
    Seems like a perfect use-case for Janet. (https://janet-lang.org/) A fast minimal VM like Lua, but even more extensible than Lua by being a "Lisp" with macro and C extension capabilities. Not a true Lisp, it's very pragmatic and performance-oriented. But it keeps the good stuff.
  • Ask HN: A Lisp with Cargo/NPM like build system?
    1 project | news.ycombinator.com | 7 Mar 2024
    You might be looking for: https://janet-lang.org/

    It comes with a build tool `jpm` which installs dependencies globally by default, but you can have it be installed in your project folder as well.

  • Babashka: Fast native Clojure scripting runtime
    2 projects | news.ycombinator.com | 24 Jan 2024
    I like Clojure, but I never had any good opportunities to use it other than for a few small hobby projects. It is unfortunate that it is so huge with tons of dependencies and no simpler native implementation. I started looking at various LISPs and Schemes to find something lighter to use instead and ended up settling for Janet that I think is Clojure-like enough to be comfortable to use, but in a small native binary with no dependencies and can be embedded in other native programs. I am sure for big, real, projects that Clojure makes more sense, but for my hobby projects and scripts I do not think I will install it again. I am still happy for the things I learned from learning Clojure. It was a real eye-opener for an old OO-programmer.

    https://janet-lang.org/

  • Janet Language
    1 project | news.ycombinator.com | 15 Nov 2023
  • Why Fennel?
    12 projects | news.ycombinator.com | 13 Sep 2023
  • Embeddable Common Lisp 23.9.9
    4 projects | news.ycombinator.com | 9 Sep 2023
  • Sharpscript: Lisp for Scripting
    5 projects | news.ycombinator.com | 5 Aug 2023
    One might also check out Janet for quick scripting tasks.

    https://janet-lang.org

  • Red Programming Language
    5 projects | news.ycombinator.com | 17 Jul 2023
    Thanks!

    I thought about another multiplatform, homoiconic, highly compact language: https://janet-lang.org/ (takes 803 kb on my machine).

    It has no types though.

  • Systems Programming with Racket
    2 projects | news.ycombinator.com | 1 Jul 2023
    Racket is great, and if you like it you might find Rash interesting:

    https://rash-lang.org/

    Janet and Gerbil Scheme are also worth a look:

    https://janet-lang.org/

    https://cons.io/

  • how did you finally reach Lisp enlightenment?
    1 project | /r/lisp | 15 Jun 2023
    Point here is that, for instance Janet language does not have cons / pair type but tuple (and so is lispoid, not lisp), but clearly this is sufficient for macros & hence seamless language construction: all you need is to be a lispoid although being a lisp gives another useful feature.

moodycamel

Posts with mentions or reviews of moodycamel. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-21.
  • Professional Usernames
    1 project | /r/learnprogramming | 5 Aug 2022
    Other than that... if your stuff is good, that's a much better signal than a professional username. I've seen a lot of decently unprofessional usernames out there that get taken pretty seriously because of the good work behind them. My recent favorite is "moodycamel" who authored a great concurrent queue library in C++.
  • How should you "fix your timestep" for physics?
    1 project | /r/gamedev | 27 May 2022
    In c++ the moodycamel ConcurrentQueue is a good choice.
  • Efficient asynchronous programming -- search keywords/basic pointers (ha)/examples?
    1 project | /r/AskProgramming | 30 Apr 2022
    Here's a decent concurrent queue: moodycamel::ConcurrentQueue.
  • moodycamel VS lockfree_mpmc_queue - a user suggested alternative
    2 projects | 21 Apr 2022
  • Lockless Queue Not Working
    1 project | /r/cpp_questions | 8 Mar 2022
    Lock free programming is hard, and probably harder than you think. I would not even try something like that myself. I would look for existing solutions, something like https://github.com/cameron314/concurrentqueue for example.
  • Simple Blocking/Nonblocking Concurrent (thread-safe) Queue Adapter, header only library
    1 project | /r/cpp | 14 Feb 2022
    I needed a concurrent queue that would block when attempting to pop an empty queue, which allows the consuming thread to suspend while it's waiting for work. I found that using mutexes allowed me to develop a simple template adapter had several advantages with few drawbacks when compared to non-blocking queues: it can use a variety of containers, the code can be reviewed and verified as to its correctness (very hard to do with fancy concurrent programming that avoids mutexes), and it is only slightly slower than fancier solutions (when I benchmarked it originally, it was 4x slower than Moody Camel's concurrent queue, which to me is fine performance).
  • Matthias Killat - Lock-free programming for real-time systems - Meeting C++ 2021
    2 projects | /r/cpp | 22 Jan 2022
    Not literatue but an example. This is a lock-free (not wait-free!) multi-producer multi-consumer queue, not a FIFO, but access patterns should be similar - if not the same: https://github.com/cameron314/concurrentqueue
  • Learning Clojure made me return back to C/C++
    8 projects | /r/Clojure | 23 Jul 2021
    If I do implement it, the most likely route I'd take is make a compiler in Clojure/clojurescript that uses Instaparse (I have a more-or-less-clojure grammar written that I was tinkering with) and generate C++ code that uses Immer for its data structures and Zug for transducers and what my not-quite-clojure would support would be heavily dependent on what the C++ code and libraries I use can do. I'd use Taskflow to implement a core.async style system (not sure how to implement channels, maybe this but I'm unsure if its a good fit, but I also haven't looked). I would ultimately want to be able to interact with C++ code, so having some way to call C++ classes (even templated ones) would be a must. I'm unsure if I would just copy (and extend as needed) Clojure's host interop functionality or not. I had toyed with the idea that you can define the native types (including templates) as part of the type annotations and then the user-level code basically just looks like a normal function. But I didn't take it very far yet, haven't had the time. The reason I'd take this approach is that I'm writing a good bit of C++ again and I'd love to do that in this not-quite-clojure language, if I did make it. A bunch of languages, like Haxe and Nim compile to C or C++, so I think its a perfectly reasonable approach, and if interop works well enough, then just like Clojure was able to leverage the Java ecosystem, not-quite-clojure could be bootstrapped by leveraging the C++ ecosystem. But its mostly just a vague dream right now.
  • Recommendations for C++ library for shared memory (multiple producers/single consumer)
    3 projects | /r/cpp | 28 May 2021
    I would recommend https://github.com/cameron314/concurrentqueue as it's very battle tested and fast.
  • fmtlog: fastest C++ logging library using fmtlib syntax
    2 projects | /r/cpp | 6 May 2021
    This was explicitly considered for spdlog (using the moodycamel::ConcurrentQueue) but rejected for the above reason. I'm not involved in the development of spdlog but personally I agree, for me it's important that log output is not all mixed up.

What are some alternatives?

When comparing janet and moodycamel you can also consider the following projects:

Fennel - Lua Lisp Language

Boost.Compute - A C++ GPU Computing Library for OpenCL

get-started-with-clojure - Learn Clojure and Interactive Programming – Zero install

MPMCQueue.h - A bounded multi-producer multi-consumer concurrent queue written in C++11

babashka - Native, fast starting Clojure interpreter for scripting

Taskflow - A General-purpose Parallel and Heterogeneous Task Programming System

scheme-for-max - Max/MSP external for scripting and live coding Max with s7 Scheme Lisp

readerwriterqueue - A fast single-producer, single-consumer lock-free queue for C++

ferret - Ferret is a free software lisp implementation for real time embedded control systems.

RaftLib - The RaftLib C++ library, streaming/dataflow concurrency via C++ iostream-like operators

kaboom.js - 💥 JavaScript game library

libcds - A C++ library of Concurrent Data Structures