freenode/#lisp - IRC Chatlog
Search
13:31:19
Selwyn
i don't actually know of any others. i used the most basic functionality a couple of times without problems
13:32:01
larryba
shka__, lets say that, hypothetically, strings were immutable, map could just return input given (map 'string (lambda (x) x) input)
13:33:41
Selwyn
margaritamike: with regard to Python vs. Common Lisp, Common Lisp is defined with regard to a fixed standard since 1994 (?), whereas Python is not and changes over time.
13:34:22
Selwyn
this means that you can use Common Lisp code written portably some time ago without problems, whereas in Python there are the python2 python 3 incompatibility issues to start off with
13:35:08
marvin2
last time I checked most python programmers were still using 2.x, refusing to switch. not sure if that has changed recently
13:36:02
Selwyn
one of my biggest surprises when i started to use CL was that old code would simply run fine, i remember previously never having to rely on python code that wasn't updated in the last few months
13:36:59
jackdaniel
it is not as apparent thanks to Xach work to test at least briefly each QL release
13:38:58
Selwyn
jackdaniel: i am looking forward to try out mcclim on my new laptop when it arrives this week
14:56:51
ogamita
minion: memo for jmercouris: you can use sedit, the sexp editor. http://informatimago.com/develop/lisp/com/informatimago/small-cl-pgms/sedit/index.html
15:00:29
ogamita
minion: memo for jmercouris: alternatively: (let ((plist (list :a "fish" :b "salmon"))) (let ((plist (list* :b "carp" plist))) (getf plist :b))) #| --> "carp" |# ; ie. functional style.
15:02:18
ogamita
beach: that said, person has two subclasses: moral-person and physical-person, so it'd be better if tax-payer was an OPTIONAL mixin… Just saying.
15:03:07
ogamita
or even, a reified association between a thug organization and a person, since a single person will often have to pay several thug organisation to avoid being molested.
15:04:36
ogamita
Some people, in particular biologists have used UML to modelize real systems (like, cell metabolism). Perhaps it'd be useful to study those models to give them as real-life examples :-)
18:28:13
pjb
So you could take the Molecule superclass, and its two direct subclasses Protein and Macromolecule.
19:03:44
asarch
Yesterder, TMA told me: "asarch: that does not mean that a function defined by DEFUN is unable to accept arguments of the desired type. it is just that there is no discrimination on the type of the passed argument, unless you write the discrimination yourself". In this context, what does "discrimination" mean?
20:05:58
dim
another term used for this concept is “dispatch”, in the context of generic functions and their methods
20:07:18
dim
asarch: maybe it's time for you to read http://www.gigamonkeys.com/book/object-reorientation-generic-functions.html and http://www.gigamonkeys.com/book/object-reorientation-classes.html
21:35:22
pfdietz
In asdf, would it be considered better form to write a method for around-compile-hook, or call-with-around-compile-hook?
21:57:46
pfdietz
Does this combinator have a name: (c f g) ==> (lambda (x) (funcall f (lambda () (funcall g x))))
21:59:09
pfdietz
f and g are hook functions. They have no return value that matters. They're executed to set up an environment in which to call their arg, which is a thunk.
22:01:23
jackdaniel
back at the question about sequence copies: subseq guarantees a copy of the same type
22:11:05
xsperry
pfdietz, g has no return value that matters, yet you are passing the return value of g as a second argument to f?
22:12:04
pillton
xsperry: The function f may invoke the function argument to obtain the return value.
23:09:19
asarch
In fact, I wrote a shell script to render it into PDF: https://github.com/asarch/pcl