c-mera VS cl-autowrap

Compare c-mera vs cl-autowrap and see what are their differences.

c-mera

Next-level syntax for C-like languages :) (by kiselgra)

cl-autowrap

(c-include "file.h") => complete FFI wrapper (by rpav)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
c-mera cl-autowrap
7 8
383 206
- -
0.0 1.5
over 1 year ago 6 days ago
Common Lisp Python
GNU General Public License v3.0 or later BSD 2-clause "Simplified" 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.

c-mera

Posts with mentions or reviews of c-mera. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-07.
  • Submissions to Spring Lisp Game Jam 2023
    9 projects | /r/lisp | 7 Jun 2023
    Arguably Pacman Clone - it uses WISP (non s-exps syntax for any lisp) + C-Mera which is some kind of mix of C and CL, and is written mostly in CL.
  • Is there a language with lisp syntax but C semantics?
    7 projects | /r/lisp | 1 Mar 2023
    c-mera does exist.
  • jc - Meta-program C/C++ with JavaScript
    3 projects | /r/cpp | 11 Jan 2023
    Thanks, you're right. I chose JS because it is so well-known, but I think it does have some other advantages as well. For example, if you need to run a lot of compatibility test commands, or need to generate code via external programs, or even make network requests to get config values or something, you can do all of that in parallel with JS async instead of sequentially like configure. You might find https://github.com/kiselgra/c-mera interesting. It's similar to this project but uses Lisp and a unified syntax.
  • Generate C code
    2 projects | /r/lisp | 14 Jun 2022
    I used https://github.com/kiselgra/c-mera for this purpose and it worked very well.
  • Carp – A statically typed Lisp, without a GC, for real-time applications
    8 projects | news.ycombinator.com | 14 Oct 2021
    That's a Lisp preprocessor for a non-Lisp language.

    If you program in C using the Common Lisp c-mera preprocessor, or any of the other similar systems, it's the same thing.

    You're writing everything in S-exps, and the expansions use conses, but the output is C; so that of course cannot call cons at run time.

    https://github.com/kiselgra/c-mera

  • Syntatic Sugar that compiles to C
    7 projects | /r/ProgrammingLanguages | 7 Oct 2021
    even more interesting are the handful of projects layering lisp style macros on top of C. i've seen several go by over the years; a quick google search brought up c-mera and cmacro.
  • Alternative to ECL?
    5 projects | /r/lisp | 27 Apr 2021
    If you look for lisp-like syntax in C: - cmera https://github.com/kiselgra/c-mera

cl-autowrap

Posts with mentions or reviews of cl-autowrap. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-14.
  • Why Is Common Lisp Not the Most Popular Programming Language?
    8 projects | news.ycombinator.com | 14 Feb 2024
    > Lack of access to the C libraries.

    ???

    I recently started learning Common Lisp for fun (and fun it is!) and the ease of accessing C libraries was one of the things that surprised me in a positive way.

    Using https://github.com/rpav/cl-autowrap one can simply write (c-include "file.h") and the API defined in "file.h" is accessible from Lisp. I can't think of a simpler way.

    Even without cl-autowrap, FFI using https://cffi.common-lisp.dev/ seems simple enough.

  • An Idea for Piggybacking Python (language) ecosystem
    3 projects | /r/lisp | 5 Dec 2022
    I think the closest is cl-autowrap. I can imagine a higher level wrapper around it by which it can translate the python header file into the CL counterpart, although I'm not sure how much work the translation might entail. Also, because python and lisp semantics can differ considerably, the generated code might be trying to do weird things - again an issue of translation.
  • Why Functional Programming Should Be the Future of Software
    11 projects | news.ycombinator.com | 2 Nov 2022
    Common lisp has a "pretty OK" story for calling C code whenever some speed is needed [0,1]. In my opinion, they suffer from some of the documentation/quick start problems that common lisp has, but they're otherwise usable.

    Some of Naughty Dog's late 90's/early 2000's games (Jak and Daxter, Jak II) were written in a lisp called GOAL, Game Oriented Assembly Lisp [2]

    [0] https://github.com/rpav/cl-autowrap

  • Common Lisp language extensions wish list?
    2 projects | /r/Common_Lisp | 12 Oct 2022
    The closest thing to what you request, that I'm aware of, is cl-autowrap (to use C code from Lisp) but it is not standard in any way. CFFI is the de facto standard for using C from Lisp across different implementations.
  • I have bolted together ECL and the Irrlicht game library
    4 projects | /r/Common_Lisp | 27 Jan 2022
    :claw tracks back to 2017 as a fork of cl-autowrap with cl-autowrap/pull/83 feature.
  • Common Lisp
    18 projects | news.ycombinator.com | 2 Oct 2021
    If you're interested in FFI, then yeah CFFI is the standard. The other comments addressed speed, I also wanted to point out https://github.com/rpav/cl-autowrap which is built on top of CFFI and can help get a wrapper up and running faster. After using autowrap's c-include you can then use CFFI basically like normal or some useful autowrap/plus-c's helper functions -- e.g. in one project, I have an SDL_Event (https://wiki.libsdl.org/SDL_Event) and to access event.key.keysym.scancode I have a helper function that's just (plus-c:c-ref event sdl2-ffi:sdl-event :key :keysym :scancode). Last year I wanted to try out using FMOD, and even though it's closed source and has a (to me) "interesting" API things worked easily: https://gist.github.com/Jach/dc2ec7b9402d0ec5836a935384cacdc... More work would be needed to make a nice wrapper, type things more fully, etc. but depending on the C library you might find someone's already done that (or made a start) and made it available from quicklisp.
  • [Common Lisp] Best Libraries for Interfacing with UNIX-like Operating Systems?
    3 projects | /r/Common_Lisp | 6 Sep 2021
    In recent years there has also been cl-autowrap; caveats -
  • Alternative to ECL?
    5 projects | /r/lisp | 27 Apr 2021
    There is the cl-autowrap that can generate lisp packages from C header filesc- I am unsure if it sticks to ANSI C or goes beyond. It inturn depends on c2ffi for the first time around.

What are some alternatives?

When comparing c-mera and cl-autowrap you can also consider the following projects:

c2ffi - Clang-based FFI wrapper generator

cl-raylib - Common Lisp binding of raylib

cffi - The Common Foreign Function Interface

janet-benchmarksgame - Versions of the "Computer Language Benchmarks Game" benchmarks for the Janet language.

chibi-scheme - Official chibi-scheme repository

cl-rashell - Resilient replicant Shell Programming Library for Common Lisp

cmacro - Lisp macros for C

mal - mal - Make a Lisp

datatype99 - Algebraic data types for C99

claw - Common Lisp autowrapping facility for C and C++ libraries