-
Notifications
You must be signed in to change notification settings - Fork 6
Installing and using Pipefish
To install Pipefish, download and unzip the Pipefish repository, then install Go, and then in your terminal go into the main pipefish folder and go build. You now have a working copy of Pipefish. Start using it with ./pipefish tui to open up the TUI, the Text User Interface; the first time you do this it will take a second or two to build some auxiliary files.
And then you will see something like this in your terminal:
This is a REPL. Even though no service is running yet, it will still evaluate expressions using the built-in features of Pipefish.
You can stop it with hub quit, or Ctrl+C. We will discuss what the hub is later on.
We have supplied Pipefish with a VSCode extension which highlights Pipefish code and takes care of indentation for you. You can add this to VSCode with cp -r <Main folder of the Pipefish distribution>/pipefish-highlighter ~/.vscode/extensions. If VSCode is already running, it may be necessary to restart it.
We intend to add support for other editors, but until then, the best way to code in Pipefish is probably to edit your scripts in VSCode while running the Pipefish TUI in a terminal in the bottom panel, like this. We will use this format to demonstrate Pipefish's features in the rest of this wiki.
If you are using VSCode for the first time, note that it ships with autosave turned off. We recommend that you turn it on.
🧿 Pipefish is distributed under the MIT license. Please steal my code and ideas.
- Getting started
- Language basics
- The type system and built-in functions
- Functional Pipefish
- Encapsulation
- Imperative Pipefish
-
Imports and libraries
- The files library
- The fmt library
- The html library
- The math library
- The math/big library
- The math/cmplx library
- The math/rand library
- The path library
- The path/filepath library
- The reflect library
- The regexp library
- The sql library
- The strings library
- The terminal library
- The time library
- The unicode library
- Advanced Pipefish
- Developing in Pipefish
- Deployment
- Appendices