ArticleslgStudy

science

PicoLisp

PicoLisp is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand PicoLisp rather than just read about it. In short: PicoLisp is a programming language, a dialect of the language Lisp. It runs on operating systems including Linux and others that are Portable Operating System Interface (POSIX) compliant.

PicoLisp — main illustration
PicoLisp — illustration

Key takeaways

  • PicoLisp belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect PicoLisp to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of PicoLisp from memory before moving on to harder problems.

Reference excerpt

PicoLisp is a programming language, a dialect of the language Lisp. It runs on operating systems including Linux and others that are Portable Operating System Interface (POSIX) compliant. Its most prominent features are simplicity and minimalism. It is built on one internal data type: a cell. On the language level, a programmer can use three different data types (numbers, symbols, and lists) being represented by cells and differentiated by bits at the end of the cell. It is free and open-source software released under an MIT License (X11).

Features Functions can accept arbitrary types and numbers of arguments. Macros are needed only in rare cases and are implemented using the quote function. PicoLisp does not include Lisp's lambda function. This is because the quote function is changed to return all its arguments unevaluated, not only the car of the first. A special feature is the intrinsic create, read, update, and delete (CRUD) functioning. Persistent symbols are first-class citizens (objects), they are loaded from database files automatically when accessed, and written back when modified. Applications are written using a class hierarchy of entities and relations. Other features include: Prolog engine, database engine and database queries, distributed databases, inlining of C language functions and native C function calls, child process management, interprocess communication, browser graphical user interface (GUI), and internationalization and localization.

History The design of PicoLisp is most similar to the first version of MacLisp, Interlisp and mainly Portable Standard Lisp. It was ported to DOS and SCO Unix. Since 1993, it was used mainly on Linux. In the mid-1990s, database functions were added. The first versions were written in a mix of C and assembly language. In 1999, a first rewrite from scratch was done, fully in C. In 2002, that version was released under a GNU General Public License (GNU GPL). In 2010, it changed to an MIT/X11 license. In 2009, the 64-bit version was released, another rewrite, this time written in generic assembly, which in turn is implemented in PicoLisp. This version adds support for coroutines. In December 2010, a Java version named Ersatz PicoLisp was released. In September 2014, Burger announced the PilMCU project on the PicoLisp development listserv, an effort with George Orais to implement PicoLisp in hardware directly. In July 2015, Burger announced PilOS - The PicoLisp Operating System, a minimal prototype based on the modification of PilMCU targeting embedded applications. It runs on standard x86-64 PC hardware, directly off the BIOS and includes all the features of 64-bit PicoLisp (minus native function calls, due to the fact there is no other native environment such as the C standard library); in principle, it works as its own operating system. In the summer of 2016, development of PilBox ("PicoLisp Box") – a generic Android app allowing to write apps in pure PicoLisp – was started. It is still being developed and maintained. In 2021, PicoLisp was re-implemented in LLVM and released as pil21. The source language which is compiled to LLVM-IR is also in PicoLisp syntax.

References

External links Official website Picolisp on C2 wiki A blog on functional programming in PicoLisp Rolling Release of PicoLisp PicoLisp Repository on GitHub

Illustrations

PicoLisp illustration

Worked examples

Example 1 — a first encounter with PicoLisp

Start with the simplest possible case. Write down what PicoLisp claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to PicoLisp before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about PicoLisp ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of PicoLisp

In research
PicoLisp appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses PicoLisp in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
PicoLisp is common in secondary-school and first-year university syllabi. It links to neighbouring topics Dynamically scoped programming languages, Dynamically typed programming languages, Lisp programming language family, so understanding it makes those chapters shorter.
In everyday life
Look for PicoLisp outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “PicoLisp” →

How to study PicoLisp in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what PicoLisp means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain PicoLisp out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is PicoLisp in simple terms?

PicoLisp is a programming language, a dialect of the language Lisp. It runs on operating systems including Linux and others that are Portable Operating System Interface (POSIX) compliant.

Why does PicoLisp matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study PicoLisp?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on PicoLisp.

Tags

  • Dynamically scoped programming languages
  • Dynamically typed programming languages
  • Lisp programming language family
  • Programming languages created in 1988

Keep exploring