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

makam

v0.7.40

Published

The Makam metalanguage -- a tool for rapid language prototyping

Downloads

43

Readme

The Makam metalanguage -- a tool for rapid language prototyping

CircleCI

Copyright (C) 2012- Antonis Stampoulis

This program is free software, licensed under the GPLv3 (see LICENSE).

Introduction

Makam is a metalanguage that eases implementation of languages with rich type systems, supporting concise and modular language definitions, aimed at allowing rapid prototyping and experimentation with new programming language research ideas. The design of Makam is based on higher-order logic programming and is a refinement of the λProlog language. Makam is implemented from scratch in OCaml.

The name comes from the makam/maqam of traditional Turkish and Arabic music: a set of techniques of improvisation, defining the pitches, patterns and development of a piece of music.

The design and development of Makam started in 2012 at MIT, under the supervision of Prof. Adam Chlipala, and continues as a personal project at Originate NYC.

To read more about Makam, visit my homepage:

http://astampoulis.github.io/

Installation

There are multiple ways to install Makam: The easiest way is by using the makam Node.js package that includes a pre-compiled Makam binary.

  • Install through Node. This is the easiest way, as it requires only a Node.js installation; the package includes a pre-compiled Makam binary.
  • Install through OPAM. This requires both an OCaml and a Node.js installation, and compiles Makam from source.

Install through Node

TL;DR

Instructions

  • Install Node.js 12.x

    In Ubuntu/Debian Linux:

      curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
      sudo apt-get install -y nodejs

    In MacOS X:

      brew install node

    Windows are not supported through this method at this time, as there is no pre-compiled binary for this platform in the Node.js package. Compiling from source should work though.

  • Install the makam npm package globally (you might need sudo):

      npm install -g makam
  • Clone the Makam repository to have examples locally:

      git clone https://github.com/astampoulis/makam.git
      cd makam
  • Use makam to run the REPL:

      makam
  • If you git pull a newer version of the repository, make sure to also update your Makam installation with:

      npm install -g makam

(Alternatively, instead of installing Makam globally, you can install Makam under ./node_modules with npm install makam, in which case you'll have to use ./node_modules/.bin/makam to run makam, or add $(pwd)/node_modules/.bin to your path.)

Install through OPAM

TL;DR

Instructions

Clone the repository to get the Makam source code.

git clone https://github.com/astampoulis/makam.git

You then need to install OPAM, the OCaml Package Manager. Instructions are available at:

http://opam.ocaml.org/doc/Install.html

We have been testing using the OCaml 4.11.1 configuration. Creating a local switch is the recommended way to keep the OCaml compiler configuration and dependencies separate from other OCaml projects you might have. To create a local switch, install all dependencies, and set up the environment variables you need, do:

  • opam switch create ./ ocaml-base-compiler.4.11.1
  • eval $(opam config env)

Makam also depends on Node.js, which is used for optimized parser generation. Instructions are available at:

https://nodejs.org/en/download/

Most recent versions of Node.js should work. If you are on an old version (before 7.x), you can use nave to install a newer Node.js version:

npm install -g nave && nave use 12

(Other Node version managers like n and nvm should also work.)

Finally, compile Makam:

make

Now, when you want to run Makam, just issue:

./makam

Examples written in Makam are available in the same repository that you cloned above. Having a local copy is useful as a reference point, since there's no tutorial yet; look in the examples directory.

To update your version of Makam, you can do:

git pull
opam install . --deps-only
make

Using Makam

Unfortunately we do not have a Makam tutorial yet. I am in the process of writing introductory posts which will be available in my homepage:

http://astampoulis.github.io/makam/

Look into the files in the examples/ directory for sample developments in Makam.