01:28:57 Quadrescence [~quad@unaffiliated/quadrescence] has joined #ccl 02:43:50 alms_ [~alms_@cpe-67-240-52-75.nycap.res.rr.com] has joined #ccl 03:41:19 -!- alms_ [~alms_@cpe-67-240-52-75.nycap.res.rr.com] has quit [Quit: alms_] 04:16:42 bzzbzz [~franco@modemcable216.122-57-74.mc.videotron.ca] has joined #ccl 04:42:27 -!- maxm [~user@unaffiliated/maxm] has quit [Read error: Connection reset by peer] 04:42:34 maxm [~user@unaffiliated/maxm] has joined #ccl 12:46:22 alms_ [~alms_@cpe-67-240-52-75.nycap.res.rr.com] has joined #ccl 12:46:49 -!- alms_ [~alms_@cpe-67-240-52-75.nycap.res.rr.com] has quit [Client Quit] 12:57:53 chitofan [dcff029f@gateway/web/freenode/ip.220.255.2.159] has joined #ccl 12:58:07 hi 13:05:21 anyone here 13:05:24 and learning land of lisp? 13:42:30 Well, I read land of lisp for the fun. What do you expect to learn with it? 14:19:49 -!- sellout42 [~Adium@75-25-126-88.lightspeed.sjcpca.sbcglobal.net] has quit [Quit: Leaving.] 14:20:32 sellout42 [~Adium@75-25-126-88.lightspeed.sjcpca.sbcglobal.net] has joined #ccl 14:45:58 -!- bzzbzz [~franco@modemcable216.122-57-74.mc.videotron.ca] has quit [Ping timeout: 245 seconds] 14:48:16 -!- sellout42 [~Adium@75-25-126-88.lightspeed.sjcpca.sbcglobal.net] has quit [Quit: Leaving.] 14:57:11 sellout42 [~Adium@75-25-126-88.lightspeed.sjcpca.sbcglobal.net] has joined #ccl 16:03:45 pjb 16:03:55 could i ask you a question? 16:04:00 or anyone here 16:14:49 Sure. The first rule of irc is not to ask to ask. Just ask. 16:14:55 The second rule is not to leave. 16:15:41 im using lispbox 16:15:52 i read somewhere its outdated 16:15:56 and i got an error earlier 16:16:24 um actually let me get to the point where i got the error 16:16:30 redoing the whole thing 16:16:37 seems a lil bit rude to me not to ask first 16:39:48 use http://paste.lisp.org/new to paste lisp code and backtraces 17:18:31 http://paste.lisp.org/display/131095 17:19:12 i don't understand how at-loc-p works 17:19:24 where is the variable obj coming from? 17:21:20 at-loc-p is a function that takes one argument and binds it to the parameter named OBJ. 17:21:33 So the variable OBJ comes from the source of this program. 17:21:53 The values bound to that variable however come from the calls to this AT-LOC-P function. 17:22:25 Since the function at-loc-p is passed as argument to the function remove-if-not, we may suppose it is called from remove-if-not (or some other function called from remove-if-not. 17:22:35 Perhaps now would be a good time to read the specifications of remove-if-not? 17:22:38 clhs remove-if-not 17:22:54 <19:22:49> http://www.lispworks.com/reference/HyperSpec/Body/f_rm_rm.htm 17:23:23 pnpuff [~pnpuff@gateway/tor-sasl/pnpuff] has joined #ccl 17:30:30 i think i understand now 17:31:06 the function remove-if-not will read through the list objs and pass it through the function at-loc-p 17:31:54 yes. 17:32:00 i dont know why it didnt seem obvious to me at first 17:32:04 i was reading from top to bottom 17:32:07 It's an higher order function: a function that takes another function as parameter. 17:32:36 ok thanks :) 17:33:11 since it's used only once, we could have used an anonymous function and written: 17:33:43 (defun objects-at (loc objs obj-locs) (remove-if-not (lambda (obj) (eq loc (cadr (assoc obj obj-locs)) )) objs)) 17:34:37 i think thats a lesson for another day 17:34:42 lambda functions are chapter 6.5 17:34:56 and i will keep your rewritten code to compare later when i get an understanding of that :P 17:38:27 oh 17:38:47 and to answer your previous question 17:38:47 i expect to create a website from scratch with lisp 17:38:48 i dont have a clue now 17:56:53 6,5 of  Land of Lisp ? 17:59:09 yeah 17:59:22 if yes it's a good book in your opinion? 17:59:32 i wouldn't know 17:59:44 ? 17:59:57 heard of this book on hacker news.. so i got it at my library 18:00:00 why not? 18:00:02 and im going through the exercises 18:00:10 i haven't finished it yet 18:01:03 OH DARN 18:02:24 lol 18:02:44 i mistyped a function 18:02:50 http://psg.com/~dlamkins/sl/contents.html <-- I started from this book :) 18:02:57 the previous time i did that i had to retype everything 18:03:10 ooh 18:03:17 so that is your recommended starter book? 18:03:37 noo 18:04:04 it's my starting book, not reccommended :) 18:04:49 okay :D 18:04:51 never seen it before 18:04:57 off it goes to my programming bookmarks :) 18:05:31 Practical Common Lisp http://www.gigamonkeys.com/book/ is highly praised to programmers. To non programmer newbies I recommend: Common Lisp: A Gentle Introduction to Symbolic Computation http://www.cs.cmu.edu/~dst/LispBook/ http://www-cgi.cs.cmu.edu/afs/cs.cmu.edu/user/dst/www/LispBook/index.html 18:07:00 lol, im going to have way too many online books on my to-read list and never get down to it 18:10:02 how do you edit functions when you have a typo in them? 18:10:19 Either you use ibcl, or you edit them in a text file first. 18:10:34 http://www.informatimago.com/develop/lisp/com/informatimago/small-cl-pgms/ibcl/index.html 18:11:01 But since ibcl doesn't keep newlines and comments, #+/#-, etc, for now it'd be better to start with a text file. 18:11:19 Read about InterLisp: http://larry.masinter.net/interlisp-ieee.pdf 18:11:25 ibcl tries to do something similar. 18:12:07 how about emacs? 18:12:22 Well, to edit text files, indeed, I'd advise emacs. 18:12:27 (and to do everything else too). 18:12:48 That said, ccl on MacOSX also has Hemlock. 18:13:00 So just evaluate: (ed) 18:13:33 i didnt understand any of that :( 18:13:50 i dont really know how to describe my situation 18:13:53 im just using the REPL 18:14:04 what editor do you prefer chitofan? 18:14:20 i don't know enough to have a preference 18:14:34 We're in the channel specific to Clozure CL (ccl), which is an implementation that works nicely on MacOSX (and also on linux and windows). But on MacOSX, it has an integrated editor similar to emacs named Hemlock. 18:14:44 i just really want to learn without all these getting in the way 18:14:51 cl:ed is the standard function to call an editor when there's one in an implementation. 18:15:09 It's you who mentionned emacs. I just told you to edit a text file. 18:15:44 cl:-( 18:16:05 No, you cannot intern random symbols in the CL package. 18:16:05 oh nooo --> cl:! ql:-( 18:16:08 Neither. 18:16:21 :-) 18:16:47 Try: (defpackage :my-cl (:export "-("))) my-cl:-\( 18:16:52 Try: (defpackage :my-cl (:export "-("))) 'my-cl:-\( 18:16:59 or :-\) 18:17:14 ( and ) are terminating macro characters, so you can't use them like this. 18:17:21 :|-)| or :-\) 18:19:38 (eql :-\) :|-)|) 18:19:50 yes 18:26:51 ok so  'cl\:-\) 'ql\:-\( :-) 18:33:38 how would I go to check, I say, the similarity: ql ~ semi-useful-package-manager ? 18:33:38 ok 18:33:42 thanks for helping me out guys 18:33:45 its 2:30 am here 18:33:47 im off to sleep 18:34:05 thanks to you 20:43:04 -!- pnpuff [~pnpuff@gateway/tor-sasl/pnpuff] has quit [Quit: Bye.] 20:44:17 rme [~rme@50.43.186.34] has joined #ccl 21:23:58 -!- Vivitron` [~Vivitron`@pool-98-110-213-33.bstnma.fios.verizon.net] has quit [Ping timeout: 246 seconds] 21:45:17 Vivitron [~Vivitron@pool-98-110-213-33.bstnma.fios.verizon.net] has joined #ccl 21:50:24 -!- Vivitron [~Vivitron@pool-98-110-213-33.bstnma.fios.verizon.net] has quit [Ping timeout: 276 seconds] 21:51:43 Vivitron [~Vivitron@pool-98-110-213-33.bstnma.fios.verizon.net] has joined #ccl 22:07:59 -!- Quadrescence [~quad@unaffiliated/quadrescence] has quit [Quit: Leaving] 22:49:42 -!- sellout42 [~Adium@75-25-126-88.lightspeed.sjcpca.sbcglobal.net] has quit [Read error: Connection reset by peer] 22:50:00 sellout42 [~Adium@75-25-126-88.lightspeed.sjcpca.sbcglobal.net] has joined #ccl 22:53:12 -!- rme [~rme@50.43.186.34] has quit [Quit: rme] 23:37:50 alms_ [~alms_@cpe-67-240-52-75.nycap.res.rr.com] has joined #ccl 23:39:52 -!- alms_ [~alms_@cpe-67-240-52-75.nycap.res.rr.com] has quit [Client Quit]