npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pomagma

v0.2.5

Published

Client library for pomagma inference engine

Downloads

10

Readme

Build Status PyPI Version NPM Version NPM Dependencies

Pomagma

Pomagma is an inference engine for extensional untyped λ-calculus. Pomagma is useful for:

  • simplifying code fragments expressed in pure λ-join calculus
  • validating entire codebases of λ-terms and inequalities
  • testing and validating systems of inequalities
  • solving systems of inequalities

Pomagma has client libraries in python and node.js, and powers the Puddle reactive coding environment. The correctness of Pomagma's theory is being verified in the Hstar project.

Documentation

Installing

The server targets Ubuntu 14.04 and 12.04, and installs in a python virtualenv.

git clone https://github.com/fritzo/pomagma
cd pomagma
. install.sh
make small-test     # takes ~5 CPU minutes
make test           # takes ~1 CPU hour

Client libraries support Python 2.7 and Node.js.

pip install pomagma
npm install pomagma

Quick Start

Start a local analysis server with the tiny default atlas

pomagma analyze       # starts server, Ctrl-C to quit

Then in another terminal, start an interactive client session

pomagma connect       # starts client session

Alternatively, connect using the Python client library

python
from pomagma import analyst
with analyst.connect() as db:
    print db.simplify(["APP I I"])      # prints [I]
    print db.validate(["I"])            # prints [{"is_bot": False, "is_top": False}]

or the Node.js client library

nodejs
var analyst = require("pomagma").analyst;
var db = analyst.connect();
console.log(db.simplify(["APP I I"]));  // prints [I]
console.log(db.validate(["I"]));        // prints [{"is_bot": false, "is_top": false}]
db.close();

Get an Atlas to power an analysis server

Pomagma reasons about large programs by approximately locating code fragments in an atlas of 103-105 basic programs. The more basic programs in an atlas, the more accurate pomagma's analysis will be. Pomagma ships with a tiny default atlas of ~2000 basic programs.

To get a large prebuild atlas, put your AWS credentials in the environment and

pomagma pull                  # downloads atlas from S3 bucket

To start building a custom atlas from scratch

pomagma make max_size=10000   # kill and restart at any time

Pomagma is parallelized and needs lots of memory to build a large atlas.

| Atlas Size | Compute Time | Memory Space | Storage Space | |---------------|--------------|--------------|----------------------| | 1 000 atoms | ~1 CPU hour | ~10MB | ~1MB uncompressed | | 10 000 atoms | ~1 CPU week | ~1GB | ~100MB uncompressed | | 100 000 atoms | ~5 CPU years | ~100GB | ~10GB uncompressed |

License

Copyright 2005-2015 Fritz Obermeyer. All code is licensed under the Apache 2.0 License.