Coder Social home page Coder Social logo

lispy's Introduction

Lispy. The almost lisp machine in almost 200 lines of C++

I have three reasons to write this thing:

  • Lisp is special. It is not the ordinary programming language. Instead it is the mathematical lambda calculus implemented in the form we can run on modern computers. And thus it already contains all the ideas we can find in any programming language until now and in the future. These features include but are not limited to: high order functions, lexical closures, objects and interfaces, co-routines, monads and many more dangerous and scientific looking words. Writing your own lisp machine lets you touch this magic of science.
  • If Greenspun's 10th rule is correct, it would be good idea to develop from scratch an ad-hoc informally specified bug ridden slow implementation of lisp in advance to just reuse it in all my ongoing projects.
  • Once a life every programmer writes their own programming language, text editor, operation system and lisp machine. It is strange but suddenly I realized that I missed that item in my bucket list.

Lisp machine is an ambiguous term. It's might refer two a full-scale standard implementation of Common Lisp or Scheme or just a small subset of vital built-in functions and macros combined with the a small parser-interpreter loop. All three mentioned reasons guide me to prefer the last variant: not the full standard implementation but an open-ended code open for any sorts of experiments and modifications.

So my goal is: an s-expression parser and a lambda evaluator in 200 lines of C++ code. I will write it in portions adding code system-by-system and describing it in the series of publications.

High-level plan:

lispy's People

Contributors

karol11 avatar

Stargazers

Alexey Subbotin avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.