HUB
Sign inSign up

progit/pil-enhanced

By progit

•Updated over 9 years ago

64-bit picoLisp in a custom 64-bit Buildroot image enhanced with a tool from the language creator.

Image
0

1.0K

progit/pil-enhanced repository overview

⁠64-Bit picoLisp in a custom-built, 64-Bit Buildroot image, enhanced!

This is version 16.12 of the picoLisp programming language along with Vim and zsh. This version is enhanced with a fun and educational Vi-style editor written by the language creator Alexander Burger, called vip, written in picoLisp. The latest stable version of picoLisp will be maintained in this image.

Much thanks to Alexander Williams, Alexander Burger, and the whole picoLisp community for helping me get the latest source and vip compiled! (vip uses libncurses but for unknown reasons the shared library object file contains a pointer to somewhere rather than the actual .so file.) After some hacking I managed to get it running in the minimal container

With Vim, vip, and zsh added size has grown to just under 32MB however now when you (edit 'sym) in picoLisp it works! This has the benefit of exploring not only your code but symbol values, browsing databases live as well. All of these tools while still coming in at around 30MB is pretty lightweight for all of the tools available. Now on to how to use this image.


Simply run:

docker pull progit/pil-enhanced

Then...

docker run -it --rm progit/pil-enhanced pil +

... and you'll be immediately dropped into the REPL.


To start in Z shell (you can use /bin/sh if you prefer): docker run -it --rm progit/pil-enhanced

To share one of your local directories you can run:

docker run -it --rm -v /home/picolisp-rocks/src/my-cool-project:/home/pil/my-cool-project progit/pil-enhanced /bin/zsh

Now you have read/write access to the contents of the /home/picolisp-rocks/src/my-cool-project directory in your container. There are more ways to get permanent storage in docker containers but that is beyond the scope of this appliance. See data volumes and data persistence in containers.


Perhaps you'd like to use a fun and helpful tool called vip written by Alexander Burger, creator and maintainer of picoLisp. The program itself is written in picoLisp and can be used to edit your code efficiently. The source code for vip is also a very helpful learning tool demonstrating the power and expressiveness the language is capable of, able to create a feature-rich-Vi-like editor in 1,000 lines of code! Documentation for vip can be found here:⁠

Simply start with zsh:

docker run -it --rm progit/pil-enhanced

then to edit and explore the vip code run:

vip /home/pil/picoLisp/bin/vip

...and just like that you're editing a picoLisp program with a picoLisp program so that you run your picoLisp programs :)


Taken from (PDF) PicoLisp: The Scalpel of Programming A Radical Approach to Software Development⁠:

If some programming languages claim to be the "Swiss Army Knife of Programming", then PicoLisp may well be called the "Scalpel of Programming": Sharp, accurate, small and lightweight, but also dangerous in the hand of the inexperienced. Less is more! - The maxim is: Keep it simple, and the programmer in control!


PicoLisp is one of the best kept secrets of development. It includes a database, web application framework, and a Prolog engine all as part of the language. Now it's available in a container for OS agnostic development. I moved from 64-Bit Tinycore to a custom Buildroot image so that I could include Vim, vip, and zsh while still keeping in line with some of PicoLisp's values of small and simple.

Happy hacking!

Tag summary

Content type

Image

Digest

Size

9.6 MB

Last updated

over 9 years ago

docker pull progit/pil-enhanced