AviFS / pip

Pip: an imperative code-golf language

Home Page:https://dloscutoff.github.io/pipdoc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pip

Pip is an interpreted, imperative code-golf language. See the GitHub wiki for an introduction to the language, or the documentation site for a language reference.

Why Pip?

Unlike most golfing languages, but like many practical languages, Pip is an imperative language with infix operators. It also uses plain ASCII instead of a custom codepage. These features make it a great introduction to golflangs for users of imperative languages like Python, JavaScript, and Perl.

In a survey of Code Golf StackExchange submissions, Pip scored slightly better than GolfScript and CJam, but not quite as good as Pyth.

Usage

You can run Pip at the following online interpreters:

  • Attempt This Online typically supports the latest release of Pip (but possibly not the latest commit). (Thanks to pxeger for adding Pip support to ATO!)
  • Try It Online supports version 0.18, aka Pip Classic, which is a few years out of date. (Thanks to Dennis for adding Pip support to TIO!)
  • Replit hosts the latest commit of Pip, with the downside that it uses a command-line interface and doesn't allow permalinking. Clicking the run button will drop you into an interactive session, which prompts for arguments and code and then executes the program. (Thanks to razetime for the idea of hosting Pip on Replit!)

You can also clone the Pip repository and run it from the command line. Pip is implemented in Python 3. The main interpreter is the pip.py file. It should run on most systems with Python 3 installed simply by invoking pip.py in the directory where you put it (for *nix systems, use ./pip.py). You may also wish to modify the PATH environment variable to include the path to Pip, so that you can invoke it from anywhere. Typical invocation patterns:

pip.py [flags] path/to/codefile.pip [args]

pip.py [flags] -e 'code' [args]

pip.py (interactive mode)

Execute pip.py --help for more detailed information.

What does the name refer to?

This fellow, of course.

Actually, the name "Pip" originated as a recursive acronym, though exactly what it stands for is open to debate. For some possibilities, see The Tao of Pip. The name was also chosen for its connotations of smallness.

Pip is not to be confused with pip.

About

Pip: an imperative code-golf language

https://dloscutoff.github.io/pipdoc/

License:MIT License


Languages

Language:Python 100.0%