Elder data composition
Project description
Constellatus
Constellatus is an extension of the Eons APIE executable. It provides a RESTful API for storing, retrieving, and optimizing code written within the Eons framework.
Our goal is to automate the process of translation.
By refining our code for us, Constellatus allows us make succinct statements that are easy for others to use.
We make heavy use of astronomy metaphors.
Overview
Stars
are fully formedSelfRegistering
classes.- We measure the mass of code by its behavior. Well structured, well performing, easily repeatable behavior results in higher mass (e.g. one program has a deeper gravity well than another that does the same thing but is slower).
- We model matter as the quantity of code, regardless of its behavior.
- The "density" of a particular bit of code is measured by how well it behaves over how much code it contains.
- The Eons Error Resolution machinery (EER) is our corollary to nuclear fusion: it takes code that is not well behaved but could be (i.e. low mass) and improves its behavior, increasing its gravitational force and thus its mass.
To illustrate what "could be well behaved" means, imagine code which operates perfectly but is missing context, e.g. requires an additional include statement or a package to be installed. These kinds of errors, which are trivial to resolve, provide the fuel for the EER machinery. This is useful as it allows us as programmers to write only what is necessary, and have all dependencies automatically injected.
Stars
The minimum requirement for a SelfRegistering class to be a Star is that it possess enough well behaved code such that it requires no interaction with the Eons Error Resolution machinery to be instantiated. Stars may progress through a normal lifecycle of improvements, whereby they become increasingly dense. This process is similar to how a user might implement Cython: small, well behaved units of the Star are replaced with code from Biology, C++, C, or Assembly. Code that is not well behaved is refined through repeated application of the Eons Error Resolution machinery. A Star's lifecycle is entirely managed by Constellatus. Stars may be Formed and Destroyed but their updates are entirely automated. They key to making Constellatus work is the continual rewrite of the code of Stars so that each time it's Observed, it becomes more compact.
Installation
pip install constellatus
Usage
For now, refer to Apie for all configuration.
When running as a webserver, the default port is 1137, after the approximation for the fine structure constant: 1/137.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for constellatus-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 554aea2d1ed2f8bba565f560751a04f9d5ba177325c97484f27bc4acdd80bcb2 |
|
MD5 | 4f08b4c65c64ba4b86552ba1969fea12 |
|
BLAKE2b-256 | 01e8849737ad2c12470e70cf33822e8b00d056a800a975fc6643d128a65ddaf1 |