peridot VS metalang99

Compare peridot vs metalang99 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
peridot metalang99
13 42
388 765
- -
3.1 3.7
over 1 year ago 20 days ago
Haskell C
Mozilla Public License 2.0 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.

peridot

Posts with mentions or reviews of peridot. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-01.
  • Peridot Paper Preprint
    1 project | /r/ProgrammingLanguages | 5 Sep 2022
    I've mostly finished up a preprint of a research paper on Peridot, my programming language! It still needs some work, but I'm happy enough with it to post it. If you have any questions or suggestions don't hesitate to tell me here. I would love feedback :-)
  • September 2022 monthly "What are you working on?" thread
    10 projects | /r/ProgrammingLanguages | 1 Sep 2022
    I'm finishing up with Peridot! The research goals of the project are close to being accomplished, so I'll be wrapping up soon. I'm really satisfied with it as a proof-of-concept for the ideas it implements. The last main bit of the project is a research paper I'm writing which details the language and its applications in detail.
  • Peridot MVP
    2 projects | /r/ProgrammingLanguages | 8 Aug 2022
    Hey all! I've been working on my programming language Peridot for about six months, and it's finally at the point where I can call it an MVP! Peridot is a language in which the compiler backend is implemented in userspace via metaprogramming.
  • July 2022 monthly "What are you working on?" thread
    10 projects | /r/ProgrammingLanguages | 1 Jul 2022
    The Peridot MVP is feature-complete! All that's left to do are bugfixes, after which it will be a real, usable language. Here's the major features, in no particular order:
  • A Typed Foundation for Directional Logic Programming
    1 project | /r/ProgrammingLanguages | 27 Jun 2022
    I'm not aware of any current implementations, but I'll be implementing it in my language, Peridot. Unfortunately that won't be for a few months though.
  • How did you choose the name for your programming language?
    7 projects | /r/ProgrammingLanguages | 6 Jun 2022
    The second was called Konna. AFAIK it’s Finnish for “frog”, but sources seem to disagree? I don’t speak Finnish, I got the word from a Finnish video game. My third and current language is called Peridot. I’m pretty proud of this name, although it’s less searchable than the previous ones. The origin is pretty simple, I was just looking around at gemstones and thought peridot looked neat.
  • Peridot: A functional language based on two-level type theory
    1 project | /r/patient_hackernews | 10 May 2022
    1 project | /r/hackernews | 10 May 2022
    1 project | /r/functionalprogramming | 10 May 2022
    4 projects | /r/ProgrammingLanguages | 10 May 2022
    Hey! I'm Peridot's author. Peridot is a language based on two-level type theory which allows for the compiler backend to be written in userspace. The language is really two languages tied together: a logic language, and a dependently typed functional language. The former is built for metaprogramming - high-level optimizers and compilers can be written that translate the latter language into a target language of choice. An in-depth explanation of the language's rationale can be found here.

metalang99

Posts with mentions or reviews of metalang99. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-30.
  • How to convert an enum to string in C++
    4 projects | news.ycombinator.com | 30 Sep 2023
    There are also other approaches. Macro variants making use of `__VA_ARGS__` would be probably the best trade-off. If you want a slightly more ergonomic syntax, something like Metalang99 [1] will help (and the author even wrote a post about this exact subject [2]). Codegen is another option which may work better than other options depending on the situation and exact implementation strategy. And there is always the Reflection TS [3], which may or may not be incorporated to C++26...

    [1] https://github.com/Hirrolot/metalang99

    [2] https://hirrolot.github.io/posts/pretty-printable-enumeratio...

    [3] https://en.cppreference.com/w/cpp/experimental/reflect

  • Few lesser known tricks, quirks and features of C
    2 projects | /r/programming | 20 Feb 2023
    I went down the rabbit hole with C99 metaprogramming after reading through the list. For reference: https://metalang99.readthedocs.io/en/latest/, https://github.com/Hirrolot/metalang99
  • Boost:Unordered_flat_map
    2 projects | news.ycombinator.com | 19 Nov 2022
    Honestly I have to disagree. There is nothing particularly special about what Super Template Tetris(STT) is doing.

    At its core, template metaprogramming is just functional programming at compile time. STT is just a template and a runtime function which do the following:

    1, take an input via compile time flag (the `-D DIRECTION`)

    2. take a type input from an included header file containing the current state (`#include "current_game.h"`)

    3. via functional programming, compute the results of a single step of the game.

    4. specialise a single function using the results of step 3. this function prints the computed result to the screen and the computed game state to a file (`./current_game.h`).

    5. gcc/clang exits. compilation is complete.

    6. call the compiled binary.

    7. the binary runs the specialised function and prints the outputs.

    Sure it's fucky and you shouldn't do that in production but what sane individual is writing a piece of code that at runtime (after compiling) seeks out one of its own source files and modifies that file?

    To prevent this from being possible you'd have to remove runtime file IO from the language. The other potential solutions wouldn't work:

    1. Remove templates entirely: Still would be possible using https://github.com/Hirrolot/metalang99 which solely uses the preprocessor. Given that the pre-processor is literally just term substitution(a glorified copy/paste engine), if you removed that as well, you'd have to accept no form of metaprogramming at all.

    2. Remove the ability to #include other files: Could still be done by doing everything inline. `#include` is just copy-paste anyways so it's more an abstraction than anything else to the compiler and preprocessor, it's basically the same as if all the code was pasted into the same file.

    That leaves you with removing file IO. Without IO a programming language is basically useless, particularly as a systems programming language.

  • What does the ??!??! operator do in C?
    2 projects | news.ycombinator.com | 5 Oct 2022
  • Metalang99: Full-blown preprocessor metaprogramming for C/C++
    1 project | /r/cpp_instruments | 9 Aug 2022
  • Learning HTML was too hard so I made a compiler instead
    1 project | /r/programmingcirclejerk | 30 Jun 2022
    P.S. I wrote Metalang99 BTW.
  • How did you choose the name for your programming language?
    7 projects | /r/ProgrammingLanguages | 6 Jun 2022
    Metalang99, a metalanguage for C99. Simple :)
  • Rust is hard, or: The misery of mainstream programming
    9 projects | /r/rust | 2 Jun 2022
    Just wait until you see some other things by the same author, like https://github.com/Hirrolot/metalang99
  • Conditional preprocessor macro, anyone?
    3 projects | /r/C_Programming | 27 Apr 2022
    I did get a few great responses there as well, though. One was a link to this impressive piece of work: https://github.com/Hirrolot/metalang99/blob/master/examples/lambda_calculus.c
  • What are the minimal changes required to turn C into a functional programming language?
    1 project | /r/functionalprogramming | 18 Apr 2022
    Some preprocessor nonsense: https://github.com/Hirrolot/metalang99/blob/master/examples/lambda_calculus.c

What are some alternatives?

When comparing peridot and metalang99 you can also consider the following projects:

Hacking-F117A - My investigation into mission generation in the Stealth Fighter games by Microprose.

Windows11DragAndDropToTaskbarFix - "Windows 11 Drag & Drop to the Taskbar (Fix)" fixes the missing "Drag & Drop to the Taskbar" support in Windows 11. It works with the new Windows 11 taskbar and does not require nasty changes like UndockingDisabled or restoration of the classic taskbar.

cane - A small MIDI sequencer DSL designed around vectors and euclidean rhythms

monkeytype - The most customizable typing website with a minimalistic design and a ton of features. Test yourself in various modes, track your progress and improve your speed.

schmu - A WIP programming language inspired by ML and powered by LLVM

porth

elaboration-zoo - Minimal implementations for dependent type checking and elaboration

map-macro - A recursive C preprocessor macro which performs an operation on each element of a list

cognate - A human readable quasi-concatenative programming language

libexpat - :herb: Fast streaming XML parser written in C99 with >90% test coverage; moved from SourceForge to GitHub

ramen - A stream processing language and compiler for small-scale monitoring

5d-diplomacy-with-multiverse-time-travel - 5D Diplomacy With Multiverse Time Travel