27 Feb 2018 08:38:55 UTC
- Distribution: Clownfish
- Module version: 0.006003
- Source (raw)
- Pod Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Testers (1318 / 0 / 7)
- KwaliteeBus factor: 0
- License: apache_2_0
- Perl: v5.8.3
- Download (230.31KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:2 non-PAUSE users
- The Apache Lucy Project <dev at lucy dot apache dot org>
Clownfish - Apache Clownfish symbiotic object system
The Apache Clownfish “symbiotic” object system pairs with “host” programming language environments and facilitates the development of high performance language extensions.
Support for multiple host languages.
Support for stand-alone C libraries and executables.
Subclassing and method overriding from the host language.
Support for host language idioms like named parameters or default argument values.
Highly performant object system with lazy creation of host language objects.
Runtime with classes for commonly used data structures like strings, dynamic arrays and hash tables.
Guaranteed ABI stability when adding or reordering methods or instance variables.
Support for more host languages.
Support for interfaces.
Clownfish consists of two parts, the Clownfish compiler “CFC” and the Clownfish runtime. CFC is a code generator that creates C header files, host language bindings, initialization code and documentation from a set of Clownfish header files. The generated code is compiled with other project code and linked with the Clownfish runtime.
Clownfish header files have a
.cfhextension and define classes used within the Clownfish object system. The object system is implemented in C and supports single inheritance and virtual method dispatch. CFC creates a C header file from each Clownfish header containing the C interface to Clownfish objects. Functions and methods of objects are implemented in normal C source files. Beyond the C level, CFC can generate host language bindings to make Clownfish objects accessible from other programming languages. The compiler also creates class documentation in various formats from comments contained in Clownfish header files and standalone Markdown files.
The Clownfish runtime provides:
The Obj class which is the root of the class hierarchy.
The Class metaclass.
Some helper classes.
Bindings for the following hosts are under development:
Perl 5 (feature-complete)
Python 3 / CPython (nascent)
Ruby / MRI (nascent)
The target audience for the current release of Clownfish is developers. Clownfish is developed by the Apache Lucy community, where it is used to provide host language bindings for the Lucy search engine library; we expect that as Clownfish matures it will eventually spin off as an independent project. If you would like to contribute to Clownfish, please join the Lucy developers mailing list.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|