sábado, 13 de octubre de 2018

Roots of Lisp


This time will be about a Paul's Graham article  about John McCarthy and its list processing language that use lists of the data and code oof programs. As I said in a past program, this way of programming is more efficient than other languages. And in this point, he begins to talk why Lisp is important and efficient.

As the history of Lisp is given in the article, he mentions about the seven primitive operators, that are like the core of the language, because with that seven operators, you can create any function. They are quote, atom, eq, car, cdr, cons and cond.

Then, he starts to talk about functions and how they are composed (talking about order). And the example he gives is

 (lambda (p1 ... pn) e)

where "p's" are parameters and "e" an expression. 

And for now on, he gives a lot of expressions to show diffrerent ways of operators, to finally see, complex functions. And well I dont know if this is correct but the way I see Lisp use single operators to construct complex functions is like the phrase "divide and conquer", that is if you work with little pieces, in this case the operators, and then you join them, the result will be awesome

This is a new way to see this programming language, because is rare to see how a programming language works from its "core", and is very interesting to know that lisp works mainly with 7 operators, I had that idea more or less, and I think is important to know this to conclude this course of Clojure, Lisp. it is also relevant to say that this language is very efficient that other languages, but I think is harder to understand how it works, so it gives me more time to make an idea of how to make a program

No hay comentarios:

Publicar un comentario