2015년 10월 10일 토요일

(E+K)The Roots of Lisp

May 2001

(I wrote this article to help myself understand exactly what McCarthy discovered. You don't need to know this stuff to program in Lisp, but it should be helpful to anyone who wants to understand the essence of Lisp-- both in the sense of its origins and its semantic core. The fact that it has such a core is one of Lisp's distinguishing features, and the reason why, unlike other languages, Lisp has dialects.)

나는  Lisp 을 만든  McCathy 가 Lisp 통해 실현하고자 하는 내용을 명확히 이해하기 위하여 이 사설을 정리한다. Lisp 프로그래밍을 하기위하여 그 내용을 꼭 알 필요는 없다. 하지만 Lisp 의 정수를 이해 한다면 유용할 것이다 -- 기원에 대한 이해와 의미를 이해하는 것. Lisp 만의 특징들과 다른언어와 달리 방언들이 많이 있는 것


In 1960, John McCarthy published a remarkable paper in which he did for programming something like what Euclid did for geometry. He showed how, given a handful of simple operators and a notation for functions, you can build a whole programming language. He called this language Lisp, for "List Processing," because one of his key ideas was to use a simple data structure called a list for both code and data.
1960 에 McCarthy 는 유클리드가 기하학에 한 것과 동일한 수준의 일에 대한 논문을 발표 하였다. 그는 간단한 오퍼래이터와 표기법 들로 새로운 언어를 만들 수 있도록 했다. 그리고 Lisp이라고 불렀는데 이는  List Processing 이라는 뜻이다.왜냐하면 Code 와 Data를 모두 list로 사용하는 것이다.

It's worth understanding what McCarthy discovered, not just as a landmark in the history of computers, but as a model for what programming is tending to become in our own time. It seems to me that there have been two really clean, consistent models of programming so far: the C model and the Lisp model. These two seem points of high ground, with swampy lowlands between them. As computers have grown more powerful, the new languages being developed have been moving steadily toward the Lisp model. A popular recipe for new programming languages in the past 20 years has been to take the C model of computing and add to it, piecemeal, parts taken from the Lisp model, like runtime typing and garbage collection.
McCarthy가 한 일을 이해하는 것은 가치가 있다,  단지 그가 한 것을 확인하는 것 뿐만이 아니라, 프로그래밍이 우리에게 어떤 영향을 주는지도 확인할 수 있다. 지금까지 프로그래밍에는 정말 분명하고, 대표격인 모델이 있다.C와 Lisp 이다. C -> Lisp 방향으로 진화해 가고 있다. runtime typing이나 garbage collection 이 그 예이다.


In this article I'm going to try to explain in the simplest possible terms what McCarthy discovered. The point is not just to learn about an interesting theoretical result someone figured out forty years ago, but to show where languages are heading. The unusual thing about Lisp-- in fact, the defining quality of Lisp-- is that it can be written in itself. To understand what McCarthy meant by this, we're going to retrace his steps, with his mathematical notation translated into running Common Lisp code.
이 사설에서는 McCarthy가 이야기 하고자 하는 것을 정말 간단하게 설명하고자 한다. 40년 전에 누군가가 이론적으로 만들어 놓은 결과물을 배우는 것이 아니라, 컴퓨터 언어 자체가 어디를 향하고 있는 지에 대한 이야기 이다. Lisp의 특이한 점은--Lisp의 수준--그 자신 안에 또 자신을 쓸 수 있다는 것이다. 이 얘기가 무슨 이야기 인지 이해하기 위하여 McCarthy 가 걸어갔던 길을 따라 가 보자, 수학적으로 표기된 것을  Common Lisp 으로 구현하고 실현시켜 보는 것이다.

댓글 없음:

댓글 쓰기