Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Allen In Texas Hill Country
More explanation of CAR and CDR than you want, courtesy Wikipedia on LISP:

Chow for paragraph eater.

Lisp was first implemented by Steve Russell on an IBM 704 computer. Russell had read McCarthy's paper, and realized (to McCarthy's surprise) that the Lisp eval function could be implemented in machine code.[5] The result was a working Lisp interpreter which could be used to run Lisp programs, or more properly, 'evaluate Lisp expressions.'

Two assembly language macros for the IBM 704 became the primitive operations for decomposing lists: car (Contents of the Address part of Register number) and cdr (Contents of the Decrement part of Register number).[6] From the context, it is clear that the term "Register" is used here to mean "Memory Register", nowadays called "Memory Location". Lisp dialects still use car and cdr (/ˈkɑr/ and /ˈkʊdər/) for the operations that return the first item in a list and the rest of the list respectively... End Wikipedia

First I have seen of the origin of those terms.

Fight the Free Sh☭t Nation

44 posted on 03/23/2014 11:22:39 AM PDT by Mycroft Holmes (<= Mash name for HTML Xampp PHP C JavaScript primer. Programming for everyone.)
[ Post Reply | Private Reply | To 35 | View Replies ]


To: Mycroft Holmes

Thanks. Just don’t recall Lisp. I used SOAP on the IBM 650. Used my hands to plug 407 boards, sorter and punch/copier. Those were the days. Still have a handful of punch cards within reach.

Actually I think I do recall Lisp but never came in contact in my 44 years of progamming.


45 posted on 03/23/2014 11:34:11 AM PDT by Allen In Texas Hill Country
[ Post Reply | Private Reply | To 44 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson