uglylispcode.wordpress.com
An Object in Lisp. Part 5 | (defun ugly-lisp-code? () ())
https://uglylispcode.wordpress.com/2008/12/18/an-object-in-lisp-part-5
Lisp cargo cultist trying to lamda. An Object in Lisp. Part 5. 8230; binds the variables specified in lambda-list to the corresponding values in the tree structure resulting from the evaluation of expression; then destructuring-bind evaluates forms. 8216; is a wonderful macro. The first thing you do is hand it a lambda list and a list of values. It acts like a pattern matcher. If the list of values does not match up to the lambda list it will throw an error. Here is what I’m talking about:. You can follo...
uglylispcode.wordpress.com
WORDLE | (defun ugly-lisp-code? () ())
https://uglylispcode.wordpress.com/wordle
Lisp cargo cultist trying to lamda. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). You are commenting using your WordPress.com account. ( Log Out. You are commenting using your Twitter account. ( Log Out. You are commenting using your Facebook account. ( Log Out. You are commenting using your Google account. ( Log Out. Notify me of new comments via email. Rules Engine or Event Collaboration. Lisp Programming Trick #2.
uglylispcode.wordpress.com
Event Driven Architecture Programming in Lisp Part 1 | (defun ugly-lisp-code? () ())
https://uglylispcode.wordpress.com/2008/12/03/event-driven-architecture-programming-in-lisp-part-1
Lisp cargo cultist trying to lamda. Event Driven Architecture Programming in Lisp Part 1. What is Event Driven Architecture Programming? It is the ability to inform interested objects (consumer/subscriber/sink) of changes of state from other objects (producer/subscriber/source) with events. Why use this architecture? There are two reason to use this architecture. One is to loosely couple the interacting objects. The second is that it is best-suited for use in an asynchronous context. From your own site.
uglylispcode.wordpress.com
An Object in Lisp. Part 4 | (defun ugly-lisp-code? () ())
https://uglylispcode.wordpress.com/2008/12/03/an-object-in-lisp-part-4
Lisp cargo cultist trying to lamda. An Object in Lisp. Part 4. What does it mean to be an object? A [computer] language mechanism for binding data with methods that operate on that data. Object (Computer Science). Binding is the creation of a simple reference. To something that is larger and more complicated and used frequently. Binding (Computer Science). Refers to a collection of facts usually collected as the result of […] processes within a computer system […]. Data. Right now, I’m pretty comfo...
uglylispcode.wordpress.com
Object Programming in Lisp Observation #1 | (defun ugly-lisp-code? () ())
https://uglylispcode.wordpress.com/2009/01/05/object-programming-in-lisp-observation-1
Lisp cargo cultist trying to lamda. Object Programming in Lisp Observation #1. When developing with the object framework, I end up excreting all the side-effect-free (SEF) code from the object. Remember the reason for an object is to encapsulate state. Asserts passes errors elapses ). Assert pass error elapse ). In result-totals summing assert into asserts summing pass into passes summing error into errors summing elapse into elapses finally (. Asserts passes errors elapses ). From your own site. You are...
uglylispcode.wordpress.com
My Top Posts | (defun ugly-lisp-code? () ())
https://uglylispcode.wordpress.com/my-top-posts
Lisp cargo cultist trying to lamda. Dog-fooding a Domain Specific Language (DSL); creating an extension to Lisp-Unit. Rules Engine or Event Collaboration. Event Driven Architecture Programming in Lisp Part 1. Lisp Programming Trick #1. Genetic Algorithms – Lisp Style. Lisp Programming Trick #2. Object Oriented Programmer in Crisis. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). Notify me of new comments via email.
uglylispcode.wordpress.com
Update to test-fixture | (defun ugly-lisp-code? () ())
https://uglylispcode.wordpress.com/2008/11/18/update-to-test-fixture
Lisp cargo cultist trying to lamda. An update to test-fixtures was required to handle setup code. Specifically, LET* and variable loading from LET*:. This entry was posted on Tuesday, November 18th, 2008 at 04:50 and is filed under Lisp Developement Tool. You can follow any responses to this entry through the RSS 2.0. Feed You can leave a response. From your own site. Laquo; Previous Post. Next Post ». Leave a Reply Cancel reply. Enter your comment here. Address never made public). Black Grit, Inc.
uglylispcode.wordpress.com
An Object in Lisp. Part 1 | (defun ugly-lisp-code? () ())
https://uglylispcode.wordpress.com/2008/10/31/an-object-in-lisp-part-1
Lisp cargo cultist trying to lamda. An Object in Lisp. Part 1. I’ve had a long road to understanding Lisp and OOP. Closures are the key. Closures allow variables to be encapsulated. Let ( counter 0) (defun inc-counter () (incf counter) ). This code encapsulates a variable such that every time the function inc-counter is used it will increment the value stored in the variable counter. The function inc-counter would be considered global. Defun make-counter () (let ( counter 0) (lambda () (incf counter) ).
uglylispcode.wordpress.com
An Object in Lisp. Part 2 | (defun ugly-lisp-code? () ())
https://uglylispcode.wordpress.com/2008/11/18/an-object-in-lisp-part-2
Lisp cargo cultist trying to lamda. An Object in Lisp. Part 2. DO NOT USE THIS EXAMPLE! THE MACROS DO NOT IMPLEMENT PARAMETERS PROPERLY. I WILL BE ADDING AN ADDENDUM TO SUPPLEMENT THIS POST WITH-IN THE WEEK. In Part 1, we described different implementations of objects in lisp. In this part we will delve into creating an abstraction so that we don’t have to deal with repetitive code. Here is the abstraction I want for creating an object:. To create an instance all we will then need is this:. On our defobj...