c2ffi
chibi-scheme
Our great sponsors
c2ffi | chibi-scheme | |
---|---|---|
4 | 7 | |
216 | 1,167 | |
- | - | |
5.7 | 7.3 | |
about 10 hours ago | about 1 month ago | |
C++ | Scheme | |
GNU Lesser General Public License v3.0 only | GNU General Public License v3.0 or later |
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.
c2ffi
-
sketch, sdl2, c2ffi on M1 Mac?
Quickloading :sketch or :sdl2 wants the c2ffi library which seems to be available on neither Quicklisp nor Homebrew. Downloading that library from source and following the build instructions (and several alternative variants found by Googling ) leads to errors like:
-
C Isn't a Programming Language Anymore
> C compiler based tool that outputs DWARF or DWARF-like debug output that actually lays out everything
That sounds like C2FFI: https://github.com/rpav/c2ffi
The only language ecosystem where I've seen it used is Common Lisp. But it emits plain JSON and depends only on LLVM (albeit a specific version thereof), and I don't see any reason why you couldn't build e.g. a Python auto-binding library on top of it.
-
Alternative to ECL?
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.
-
Installing c2ffi on Ubuntu
git clone https://github.com/rpav/c2ffi git checkout -b llvm-11.0.0 refs/remotes/origin/llvm-11.0.0 cd build cmake .. # -DBUILD_CONFIG=Release LIBRARY_PATH=/usr/lib/llvm-11/lib/ make # -j8 sudo checkinstall
chibi-scheme
-
Debugging Compilers in Clojure
Your core point is absolutely true about how Lisp is special in that it usually provides a read procedure to turn a textual type into a native object that can be evaluated (this is a side effect of homoiconicity, so any homoiconic language will have this property too), but I have one additional nitpick to make ontop of yours:
> [...] eval can take any lisp object and evaluate it.
eval cannot be generalized to accepting any Lisp object, only specifically symbolic expressions (symbols, or lists (potentially nested) of symbols). I discovered this because I thought Chibi Scheme was throwing a warning for valid code[0] to inject a value into an expression for eval, but Marc helped me understand that the warning was correct, because Scheme only specifies what eval does for symbolic values.
- Chibi-Scheme: a small library intended for in C programs
-
I don't want to go to Chel-C
I think a VM for a small, but highly abstract, language like Scheme might address the objections of the author(s) of this article. You might like Chibi-Scheme: https://github.com/ashinn/chibi-scheme
Having said that, IMO, if you're having fun with uxn and its retro 8-bit aesthetic, by all means keep going with that.
- Chibi Scheme – Minimal Scheme Implementation for Use as an Extension Language
-
Alternative to ECL?
I would also add [chibi scheme](https://github.com/ashinn/chibi-scheme) to the C-embedded alternatives.
-
Scheme for embedding in .NET application
This one? https://github.com/ashinn/chibi-scheme I notice it's intended to be embedded in C, so it's not a perfect match.
-
What is the definition of rational? in Scheme?
Chibi-Scheme's definition is interesting:
What are some alternatives?
cl-autowrap - (c-include "file.h") => complete FFI wrapper
mal - mal - Make a Lisp
c-mera - Next-level syntax for C-like languages :)
accesskit - UI accessibility infrastructure across platforms and programming languages
CMake - Mirror of CMake upstream repository
IronScheme - IronScheme
cl-sdl2-image - SDL_image 2.0 wrapper
schemy - A lightweight embeddable Scheme-like interpreter for configuration
cl-sdl2 - Common Lisp bindings for SDL2 using C2FFI.