Skip to main content
https://badge.fury.io/py/PLambda.svg https://img.shields.io/badge/License-MIT-blueviolet.svg https://travis-ci.org/SRI-CSL/PLambda.svg?branch=master https://img.shields.io/pypi/dm/plambda.svg

PLambda

An early prototype of a workable version of JLambda for Python. To be used mainly as a part of the IOP imaude system.

JLambda and PLambda are essentially network command and control languages. JLambda for controlling Java processes, and PLambda for python processes. JLambda is over 14 years old, whereas PLambda is just a pup.

Note that Python is not Java so there will be some differences, but hopefully the spirit will shine through.

PLambda, like JLambda, is a fast, efficient, minimalistic, call-by-value, lexically scoped Lisp or Scheme like language with closures built upon the underlying data structures of the language it rests upon. The interpreter is implemented via CPS (continuation passing style).

Guide for JLambda Afficionados

https://github.com/SRI-CSL/PLambda/blob/master/GUIDE.md

Install

There is a pip package, but that will move along at a lazier pace than developing directly from the repository.


pip install plambda

Dependencies

This master is currently using Python 3.7 but most recent Python 3 versions should work. Travis tests it on 3.5, 3.6, 3.7 and 3.8. I make no effort to support Python 2, but there is an old branch called 2.7 which might serve your twisted purpose. You will need the antlr4 runtime:


pip install antlr4-python3-runtime

Though this is done by doing make develop described next.

Develop

Checkout the repository and do:


make develop

To run the tests you can do:


make check

Manuals

The jlambda manual can be found here: https://github.com/SRI-CSL/iopc/blob/master/doc/jlambda_manual.pdf?raw=true

The iop manual can be found here: https://github.com/SRI-CSL/iopc/blob/master/doc/iop_manual.pdf?raw=true

Websites

The jlambda webpage lives over here: http://jlambda.com/~iop/jlambda.html

The iop webpage lives over here: http://jlambda.com/~iop/

The main client of the iop system is SRI International’s Pathway Logic: http://pl.csl.sri.com/

Recipe to add an operator

  1. Add it to the grammar plambda.antlr4.PLambda.g4

  2. Process the grammar with make antlr4

  3. Add the operator to the plambda.eval.SymbolTable

  4. Add the operator to the plambda.eval.Interpreter

  5. Add some tests to tests/language.py

Metadata

Release files for PLambda 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for PLambda 1.1.1
File Interpreter ABI Platform
PLambda-1.1.1-py3-none-any.whl Python 3 none any Details

Release files / PLambda-1.1.1-py3-none-any.whl

Download URL PLambda-1.1.1-py3-none-any.whl
Size 44.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f790700c53f4a1c2e277fe96b3328c3ad0ebd4e08c28fb6c19b5c263d475329
BLAKE2b-256 checksum
How to use checksums
8026ec63c0790f1570080e88a98d43b15fb0286b40596bed0f09f04503b7ac7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

Security for PLambda 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page