00:05:26 adeht [n=death@bzq-84-110-248-225.red.bezeqint.net] has joined #lisp 00:06:12 glogic [n=glogic@97.76.48.98] has joined #lisp 00:06:56 -!- Yuuhi [i=benni@84.131.211.31] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 00:10:21 Xach, http://nostdal.org/lnostdal/always-here/sw/on-resize-vecto-proper-font-and-text.ogv .. finally .. no more CSS madness wrt. usage of text as _labels_ in widgets :) 00:10:49 ..it's not 100% there yet, but it'll get there 00:11:11 -!- Nshag [i=user@Mix-Orleans-106-3-48.w193-248.abo.wanadoo.fr] has quit ["Quitte"] 00:12:28 red is html .. blue border and text is vecto (lisp) .. point is combining these two things and getting a pixel perfect fit 00:15:10 pixel5 [n=pixel@copei.de] has joined #lisp 00:17:22 -!- dstatyvka [i=ejabberd@pepelaz.jabber.od.ua] has left #lisp 00:18:04 (FLET ((! (MAKE-FACTORIAL) <--- that doesn't work too well, how do I force the evaluation? 00:18:53 myrkraverk: http://www.lispworks.com/documentation/HyperSpec/Body/s_flet_.htm 00:19:12 it looks like you're trying to use flet wrong :P 00:19:58 (flet ((! (n) "An abbreviated version of fac" (factorial n))) (! 5)) 00:21:12 I think I shall make a past, bbiap 00:21:22 if you're trying to define ! recursively, though, you'll need to use labels instead of flet. 00:22:43 -!- Adrinael [i=adrinael@rib4.kyla.fi] has quit [Read error: 104 (Connection reset by peer)] 00:23:14 myrkraverk pasted "Failure at making closure" at http://paste.lisp.org/display/86633 00:24:20 myrkraverk: use WHEN/UNLESS for single-result ifs 00:24:34 err, single-branch (the other one being nil) 00:25:00 ah, but that doesn't make my falure go away ;) 00:25:06 and no, that's not going to work because flet works like a function definition 00:25:30 what do I use instead? 00:25:39 if you want to use (make-factorial), you'll need to do (funcall (make-factorial) 5) 00:25:48 Adrinael [n=adrinael@barrel.rolli.org] has joined #lisp 00:25:59 every time? 00:26:03 (let ((! (make-factorial))) (funcall #'! 5)) 00:26:14 if you're going to treat it as a closure, yes, pretty much. 00:26:29 if what you want is to be able to do (! 5), then you can still use flet 00:26:41 -!- tcr [n=tcr@host146.natpool.mwn.de] has quit ["Leaving."] 00:26:53 like... (flet ((! (n) (funcall (make-factorial) n))) (! 5)) 00:27:33 ah, ok 00:28:30 -!- nha [n=prefect@17-70.61-188.cust.bluewin.ch] has quit ["Stay hungry, stay foolish!"] 00:35:40 Adlai` [n=adlai@unaffiliated/adlai] has joined #lisp 00:36:10 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 00:36:14 -!- Adlai` is now known as Adlai 00:37:17 -!- merus [n=merus@c-67-175-45-120.hsd1.in.comcast.net] has quit [Connection timed out] 00:38:28 -!- kejsaren [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has quit [Read error: 110 (Connection timed out)] 00:41:24 -!- adeht [n=death@bzq-84-110-248-225.red.bezeqint.net] has quit [Remote closed the connection] 00:42:37 <_3b> you probably don't want to funcall (make-factorial) directly though, since you get a new closure every time 00:43:16 You probably just want something like (defun foo (...) (let ((cache ...)) (labels ((! ...)) ...))) 00:44:08 yes, and yes 00:44:09 -!- coderdad [n=coderdad@ip72-200-214-240.ok.ok.cox.net] has quit [Remote closed the connection] 00:44:36 but, still toying with the closure, how do I use it? 00:45:01 coderdad [n=coderdad@ip72-200-214-240.ok.ok.cox.net] has joined #lisp 00:45:10 <_3b> (let ((foo (make-factorial))) (funcall foo ..)) 00:45:56 <_3b> or if you really want to avoid funcall, (let ((foo (make-factorial))) (flet ((! (n) (funcall foo n)))) (! ...))) 00:46:34 <_3b> with some parens adde/removed/moved/etc 00:47:01 (parse-example 00:47:01 " 00:47:01 const abc = 123, 00:47:02 pi=3.141592e+0; 00:47:06 var a,b,c; 00:47:09 procedure gcd; 00:47:12 begin 00:47:15 while a # b do 00:47:19 begin 00:47:21 bytecolor, erm? 00:47:22 if a if a>b then a:=a-b 00:47:26 end 00:47:28 end; 00:47:29 Sometimes I wish I had ops. 00:47:30 what happened to paste.lisp.org? 00:47:32 begin 00:47:35 a:=42; 00:47:38 b:=30.0; 00:47:42 call gcd 00:47:45 end.") 00:47:45 And then I remember /ignore. 00:47:45 minion: lisppaste for bytecolor 00:47:45 To use the lisppaste bot, visit http://paste.lisp.org/new/lisp and enter your paste. 00:47:47 *_3b* wishes clients wouldn't default do slow pasting :p 00:47:51 wow, sorry people 00:48:42 bytecolor: Everybody makes mistakes, just DON'T DO IT AGAIN (as the kindergarden teacher said) 00:49:09 peddie [n=peddie@c-67-170-201-38.hsd1.ca.comcast.net] has joined #lisp 00:49:12 well, you can easily do that by accidentally pasting 00:49:15 -!- glogic [n=glogic@97.76.48.98] has left #lisp 00:49:24 so, you cannot really control accidentallity 00:49:39 true, that's why you need an IRC client that stops you from accidentally pasting. 00:49:40 <_3b> sure you can, just keep input focus in a nother window :) 00:49:54 I was mouse scrolling with the middle button and pushed it (paste) 00:49:54 <_3b> (or turn off flood protection so you get kicked by the server automatically) 00:50:08 another reason the unplug my mouse forever ;) 00:50:44 -!- Rick_Astley is now known as ausente 00:50:47 hmm I still need to disable my touchpad... although I don't think there's a way to click "button 2" from the touchpad itself. 00:50:57 I wouldnt have minded a kick for that 00:51:01 *stassats* once copied ERC buffer, and it looked exactly like the original 00:51:02 (my mouse sometimes makes strange motions when I rest my hands...) 00:51:21 ManateeLazyCat [n=user@119.141.228.206] has joined #lisp 00:54:49 mcfoobar [n=mc@unaffiliated/agf] has joined #lisp 00:56:01 how are you lispers? 00:56:37 mcfoobar: good. How are you? 00:56:48 mixed feelings 00:57:04 a bit drunk, a bit happy, a bit depressed 00:57:16 how was your day Adlai 00:57:22 -!- schoppenhauer [n=css@unaffiliated/schoppenhauer] has quit [] 00:59:23 mcfoobar: it passed :) 01:00:15 Adlai: well, doesn't sound too great 01:00:48 it was ok. thanks for asking :) 01:01:02 I'm doing something that seems logical to me: I found some source that uses the clisp specific package REGEXP. So instead of rewriting each call to regexp, I shadowed the calls with wrapped calls to cl-ppcre. Is that umm normal? 01:01:34 I'm using sbcl, not clisp 01:02:06 It's only a havl dozen or so calls to regexp. 01:02:18 Adlai: just cause I'm bored and drunking, are you a professional sw-developer? 01:02:53 #lisp isn't a good place for "bored and drunk" discussions 01:02:58 mcfoobar: I would say "define professional", but that's a bit of a harsh thing to lay upon a drunk person... 01:03:21 well I'm not that drunk 01:03:25 only a bit 01:03:32 and how comes that you know that? 01:03:50 caching fact, moved it from line 1, to line 11; and shortened the sampling time from 1.43 sec to 1.01 sec; for permutations of length 9 01:03:51 With professionaly I mean: do you do it for a living 01:04:04 it seems to break the profiler to try 10 01:04:17 <_3b> bytecolor: using cl-ppcre to implement a REGEXP compativility layer sounds reasonable to me 01:04:36 *yay to profiling* 01:04:43 mcfoobar: i advise you to stick to the topic 01:05:47 -!- slash_ [n=Unknown@p5DD1C97D.dip.t-dialin.net] has quit [Client Quit] 01:07:24 stassats: sorry, I do not want to disturb this channel. But there is not going on much now, so I thought people would not mind a litte off-topic chatting. Though If it really bothers you I'll stop it immediately. 01:07:44 <_3b> mcfoobar: many of us would prefer silence to off-topic 01:07:46 mcfoobar: you can stop then :) 01:08:16 since 13! < 2^32-1, can I optimize for 32bit integers in that case? 01:08:30 _3b: My reasoning being if there is a problem, it is more than likely with my code as I haven't touched the original code. 01:08:47 myrkraverk: you can 01:09:06 _3b: sykopomp alright, thanks for being that nice, and sorry for me being drunk and joining this channel, I hope I didn't annoy anyone too much, have a nice day :) 01:09:31 what do I want to read, about such optimizations? 01:10:09 <_3b> myrkraverk: if you need to optimize for factorials less than 13, it sounds like something is wrong 01:10:20 dacrawford [n=user@c-98-217-128-192.hsd1.ma.comcast.net] has joined #lisp 01:10:29 -!- hidlukjadetel [n=lukjadOO@unaffiliated/lukjad007] has quit [Remote closed the connection] 01:10:50 is chapter on optimization in PAIP suitable? i haven't read it 01:10:55 memoize them instead? 01:11:04 _3b, no, nothing is wrong, I'm just trying to squeeze performance 01:11:12 <_3b> (defun f (n) (if (< n 20) (aref #(1 1 2 6 24 120 720 5040 ...)) (expensive-factorial n))) 01:11:12 in general, there is no one reading, you need experience 01:11:27 <_3b> myrkraverk: i mean something is wrong if there is performance there to squeeze 01:11:32 _3b, I've already cached fact, it's not fact I'm optimizing 01:11:40 just tried building commonqt on a fresh clbuild install with a clbuild-built sbcl 01:12:05 . o O (why do I have to go through what I'm doing everytime someone new comes along?) 01:12:07 and I'm getting '#\# is not a dispatch char.' in reader 01:12:21 <_3b> myrkraverk: ah, in that case, declare types, optionally set up the calculations so they cannot overflow 2^32-1 01:12:24 -!- carlocci [n=nes@93.37.221.98] has quit ["eventually IE will rot and die"] 01:12:27 myrkraverk: perhaps because you are doing something too wrong? 01:12:42 stassats, if making permutations is wrong, then yes 01:13:01 maybe your way is wrong? 01:13:10 why? 01:13:18 what makes one way more wrong than another? 01:14:03 <_3b> myrkraverk: being too slow sounds 'more wrong' :) 01:14:05 if it unjistifyingly takes more resources to implement or execute 01:14:10 minion: logs 01:14:10 logs: #lisp logs are available at http://ccl.clozure.com/irc-logs/lisp/ (since 2008-09) and http://tunes.org/~nef/logs/lisp/ (since 2000) 01:14:23 _3b, it's not too slow; actually quite faster than I dared to expect 01:14:55 *_3b* is confused then, if it isn't too slow, why not work on features instead of optimization? 01:15:17 because I want to learn to optimize lisp 01:15:22 and I don't need features 01:15:33 I can already make all the permutations I want 01:16:36 <_3b> in that case, paste some specific code, and we can give hints... 01:16:47 do I have anything else than macros, to make "generic code" like I do with C++ templates? 01:16:53 _3b, ok 01:16:57 functions 01:17:18 <_3b> on the subject of optimizing for 32 bit math, see http://www.sbcl.info/manual/Modular-arithmetic.html 01:17:26 You'll spend nearly all your time in bignum functions. 01:18:41 I think it's a flaw in ERC that pasting immediately sends lines. It's clearly possible to fix; slime-repl distinguishes multiline input 01:19:10 myrkraverk pasted "Making permutations" at http://paste.lisp.org/display/86637 01:20:08 actually that commonqt error isn't in compiling reader.lisp, but in the loading of reader.fasl right after 01:20:17 pkhuong, that depends on the size of the n, I"m making permutations for 01:21:04 if n > 12 or 20. 01:21:56 myrkraverk: please convert tabs to spaces first. (M-x untabify on the relevant regions) 01:22:34 -!- sciendan [n=dan@69.250.212.245] has quit [Read error: 113 (No route to host)] 01:22:40 <_3b> myrkraverk: which part the code is 'exactly this algorithm' referring to? 01:23:09 optimizing lisp includes selecting a better algorithm 01:23:19 merus [n=merus@c-67-175-45-120.hsd1.in.comcast.net] has joined #lisp 01:23:36 _3b, the meat is in the label (next) in (permute) 01:23:40 myrkraverk: why are you caching calls to fact if it's only called once? 01:23:44 stassats, that's not my assignment, in this case 01:23:52 pkhuong, it isn't 01:23:54 <_3b> myrkraverk: like do you need to store the symbols in a list, and rearrange it with list ops, etc? 01:24:00 so, this is your homework? 01:24:08 no 01:24:19 I had an inflammation in my jaw and wasn't treated because I didnt have 10 euros with me. 01:24:34 oops. wrong channel. 01:24:45 basically, to start on this project, I'm to start by implementing this algo 01:24:57 I chose lisp to do it 01:25:08 _3b, yes 01:25:51 Sure it is. You know exactly the range on which you'll compute the factorial. There's no reason to introduce a check there. Just fill a lexically bound (dynamic-extent even) vector with the values iteratively. 01:26:12 ah, I think I know what changed with readtable stuff and commonqt. Has the api on named-readtables changed since commonqt? ... 01:26:34 <_3b> myrkraverk: including calling append all over the place? 01:26:53 _3b, that is one thing I'm not sure how to optimise 01:27:10 <_3b> didn't someone tell you about push + nreverse yesterday? 01:27:21 or use a vector. 01:27:21 if a two-char :dispatch-macro-char uses a primary that isn't already valid, it needs to be defined as a macro-char with :macro-char in the defreadtable .. and commonqt doesn't do that 01:27:34 _3b, yes, but "not sure" doesn't mean I don't know it can be done 01:27:53 _3b, plus, by profiling, it was my fact that was the bottleneck, not append 01:28:13 stassats` [n=stassats@wikipedia/stassats] has joined #lisp 01:28:15 *_3b* thought you were done fixing fact? 01:28:17 pkhuong, that's what I'm considering now 01:28:20 myrkraverk: first (declare (optimize speed)). Otherwise, you're just analysing noise. 01:28:23 _3b, yes, I am 01:28:35 pkhuong, ok 01:28:43 <_3b> yeah, actually telling the compiler to optimize the code would be a good start :) 01:29:00 speed 3 :D 01:29:13 where do I put that? 01:29:13 <_3b> speed = (speed 3) 01:29:33 Then, once you're done with the obvious things, you'll likely want to define two variants of the next function, one for n-1! a fixnum (or (unsigned-byte 32/64)), and another for the general case. 01:29:41 <_3b> myrkraverk: first form of the function you want to optimize, or in declaim to set it globally 01:30:10 declaim? 01:30:10 <_3b> (defun foo name (args) (declare (optimize speed)) ...) 01:30:12 You know that the values for n-1 are monotone decreasing, so it makes sense to hoist that check outside the loop. 01:30:27 *n-1! 01:31:30 -!- kpreid [n=kpreid@cpe-67-249-56-101.twcny.res.rr.com] has quit [] 01:32:50 pkhuong, ah 01:33:32 are there 64 bit versions of sbcl? 01:33:40 yes 01:33:57 is there one for solaris x86? ;-D 01:34:06 <_3b> x86 is 32 bit :p 01:34:13 ;) 01:34:18 amd64 if you insist then 01:35:02 <_3b> not listed on http://sbcl.sourceforge.net/platform-table.html 01:35:41 it matters whether the OS is 32 bits or 64 bits not the CPU 01:36:29 <_3b> OmniMancer: only for 64bit CPUs :p 01:37:04 % isainfo -k 01:37:04 amd64 01:37:08 well yes because 64 bit OSs have a strange aversion to running on 32 bit CPUs 01:37:27 OmniMancer, yes, total fascists 01:39:33 hmm... isainfo... Solaris? 01:39:37 -!- hefner [n=hefner@ppp-58-9-116-20.revip2.asianet.co.th] has quit [Read error: 110 (Connection timed out)] 01:39:42 <_3b> though it looks like there was one posted to the sbcl list recently 01:39:53 hefner [n=hefner@ppp-58-9-114-225.revip2.asianet.co.th] has joined #lisp 01:40:25 p_l, yes 01:40:42 -k is what the kernel is running 01:40:45 <_3b> http://article.gmane.org/gmane.lisp.steel-bank.devel/13792 01:41:29 *p_l* ponders if he could install CDE from Solaris 10 on Solaris 11 01:41:56 gnome was rather annoying 01:42:27 *_3b* needs to look for a new WM one of these days, sawfish keeps crashing :( 01:42:28 yes, gnome is annoying 01:42:41 noone likes gnome? 01:42:48 I'm always meaning to install fvwm 01:42:52 *p_l* would rather go with CDE than GNOME 01:43:05 -!- stassats [n=stassats@wikipedia/stassats] has quit [Read error: 110 (Connection timed out)] 01:43:06 *_3b* will probably try eclipse, just to stay on topic 01:43:15 Irishmanluke, an interface that's dumbed down to "protect the user" is annoying 01:43:38 myrkraverk: I've been using fvwm2 for quite a long time, it's a wonderful WM (I only switched to XMonad circa two years ago) 01:43:42 sure is offtopic in here 01:44:02 sykopomp, nono, we'll come to window managers written in lisp in no time 01:44:14 stumpwm pisses me off 01:44:17 there's even one written in elisp; don't recall the name though 01:44:23 :O 01:44:28 how did they do that? 01:44:36 it's called emacs :P 01:44:46 xlib interface, or ffi, don't know the details 01:45:26 <_3b> sykopomp: so use eclipse then :) 01:45:57 I do have an incomplete bindings for OpenGL for zsh lying around -- I should complete that, one day 01:46:18 _3b: I don't like floaters. 01:46:34 myrkraverk: o_O 01:46:49 *dacrawford* been writing too much in zsh recently 01:46:57 p_l, I implemented enough to make a proof of concept opengl script 01:47:15 (and why do I keep calling you pl1 in my head?) 01:47:29 with glut and everything ;-P 01:47:59 .. great, I became PL/I =3= 01:48:44 -!- blackened` [n=blackene@ip-89-102-28-224.karneval.cz] has quit [Remote closed the connection] 01:51:44 fusss [n=chatzill@115.128.36.42] has joined #lisp 01:52:12 so emacs can be used as a WM? 01:52:54 afaiu, yes 01:53:12 does it make everything look emacsy? 01:53:20 I don't know; never used it 01:53:44 saikat_ [n=saikat@c-98-210-13-214.hsd1.ca.comcast.net] has joined #lisp 01:54:56 on another subject, do I have CL interfaces to the big sql databases? oracle, db2, ... 01:55:44 <_3b> as far as i know, only xemacs has a wm, none for gnu emacs :( 01:55:57 :(:(:(:(:(:( 01:56:36 Is there a library for writing state machines in lisp? 01:56:59 -!- salva [n=salva@105.11.117.91.dynamic.mundo-r.com] has quit [] 01:57:18 afaik no, but you could write one with tagbody :D 01:57:37 but we need a macro for that :P 01:57:53 so? 01:58:03 google gives me something I think is a CL interface to oracle -- is there none for db2, mysql, sqlite, postgres, ...? 01:58:05 salva [n=salva@105.11.117.91.dynamic.mundo-r.com] has joined #lisp 01:58:19 -!- cornucopic [n=r00t@202.3.77.180] has quit [Remote closed the connection] 01:58:25 *OmniMancer* is not knowledgeable enough. 01:58:39 there is for general SQL 01:59:12 yes, found that -- for odbc at least 01:59:24 <_3b> minion: clsql 01:59:25 clsql: CLSQL is a Database interface Library for Common Lisp that can access a number of different SQL database engines. http://www.cliki.net/clsql 01:59:31 <_3b> minion: postmodern 01:59:31 postmodern: Postmodern is a library for interacting with PostgreSQL databases through SQL. http://www.cliki.net/postmodern 01:59:33 there is one that will do the sql ones including sqlite, that be it 02:00:03 <_3b> or more generally: 02:00:07 <_3b> minion: database 02:00:07 database: Database-related software; RDBMS glue, OO databases, etc. http://www.cliki.net/database 02:01:15 how are C++ libs usually bound for lisp? 02:01:28 Adlai` [n=adlai@unaffiliated/adlai] has joined #lisp 02:01:48 OmniMancer: painfully 02:01:59 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 02:02:00 you have to write C linkage wrappers? 02:02:01 -!- Adlai` is now known as Adlai 02:03:35 OmniMancer: pretty much. 02:04:43 bdowning_ [n=bdowning@mnementh.lavos.net] has joined #lisp 02:04:51 -!- bdowning [n=bdowning@mnementh.lavos.net] has quit [Remote closed the connection] 02:05:41 -!- bdowning_ is now known as bdowning 02:06:20 kpreid [n=kpreid@216-171-189-244.northland.net] has joined #lisp 02:08:32 is there a "the best way" when I need to pop a random element from a list? 02:08:44 dys` [n=andreas@krlh-5f72e9a8.pool.mediaWays.net] has joined #lisp 02:09:08 <_3b> 'not needing to do that' would probably be the best option :) 02:09:08 random and list doesn't combine well 02:09:18 ;-D 02:09:53 stassats`, why's that? 02:09:54 <_3b> popping first and assigning to random location in an array for example might be an alternative 02:09:57 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has quit [Remote closed the connection] 02:10:17 <_3b> DeusExPikachu: you need to traverse a random amount of the array to get a random element 02:10:23 no, I need to clear a random element *from* the list 02:10:40 or, the nth element 02:10:44 array or list? I thought we were talking about lists 02:11:00 both work equally bad, is all I can see 02:11:04 <_3b> DeusExPikachu: sorry, list 02:11:18 k, cause arrays should be indexable by a random number 02:11:20 I need the nth element, and afterwords, I need that element not to be in the list anymore 02:11:30 <_3b> myrkraverk: this is part of the 'must be done a specific slow way' thing? 02:11:39 in array, you can mark an element with 0 or some other value, instead of removing it 02:11:52 this is a classic which data structure do you want problem right? 02:12:06 _3b, looks like it; but since the lists are generally of length < 20; optimising it is only of academic interests ;) 02:12:31 then just do an array or list and be done :) 02:12:34 double-linked would be my preferred if it was easily available 02:12:37 stassats`, then I need to traverse the array anyway, to find the new "nth" element, since the index has changed 02:13:19 but since traverse is necessary in a linked setup , you already have the previous, relink it to the next. modulo destructive/copying 02:14:18 how's double better than single when you only need to traverse one way? 02:14:27 I'm now using the delete-nth macro in http://paste.lisp.org/display/86637 02:14:34 the next line was a nvm for double 02:14:49 oh 02:14:56 which probably should be named pop-nth 02:15:05 myrkraverk: if list is of length 20, and your function is called few times, why are you worrying about the speed at all? 02:15:07 minion: replacd 02:15:07 Sorry, I couldn't find anything in the database for ``replacd''. 02:15:12 minion: rplacd 02:15:13 Sorry, I couldn't find anything in the database for ``rplacd''. 02:15:23 clhs rplacd 02:15:24 http://www.lispworks.com/reference/HyperSpec/Body/f_rplaca.htm 02:15:28 yeah that 02:15:39 stassats`, because the outer function is generally called n! times 02:16:17 n grows pretty quickly, so you can stop worrying too 02:16:28 felideon [n=user@adsl-074-186-235-232.sip.bct.bellsouth.net] has joined #lisp 02:16:32 *_3b* still thinks optimizing bad algorithms is silly :p 02:16:53 In elisp, how to test if a swank server is available on port 4005? 02:17:04 _3b, do you have a better algorithm? 02:18:31 leo2007: well, connect to it? 02:18:35 and also, given a better algorithm for doing all n! permutations, is it better for the special case of giving the kth one? 02:18:45 Good morning everyone. 02:19:13 beach, g'morning 02:19:37 myrkraverk: i'd look at the vector of length n as a number in base n, then doing k-th permutations is just converting k-th from base 10 to base n 02:20:34 myrkraverk: if it's called n! time, use another algorithm. 02:21:16 -!- dys [n=andreas@krlh-5f706e3d.pool.mediaWays.net] has quit [No route to host] 02:21:24 myrkraverk: With an array, you exchange the chosen element with the last element and shorten the array by one element, so it is constant time. No traversal. 02:21:53 beach, I can't rearrange the elements 02:22:06 why is that? 02:22:28 beach, I need them in order, after popping-nth 02:22:48 so they are sorted? 02:22:48 um 02:22:57 yes 02:23:13 are they sorted or just order is important? 02:24:24 more like the order has to stay the same 02:24:49 <_3b> do you actually just mean you need to get the same results as your current code for the same input? 02:24:55 stassats`, how does that work for n=3 k=0 (or k=1 if you prefer it that way) 02:25:10 I assume this is just theoretical, but you could use a doubly-linked list to maintain the order, and store the links in a vector and use the delete-and-exchange-with-last as I suggested. 02:25:12 <_3b> since that would be a reasonable requirement we could work around 02:25:27 antgreen [n=user@205.232.189.231] has joined #lisp 02:26:58 beach, I'll have to draw that up ;-) 02:28:09 clhs ensure-function 02:28:09 Sorry, I couldn't find anything for ensure-function. 02:28:21 -!- bdowning [n=bdowning@mnementh.lavos.net] has quit [Read error: 60 (Operation timed out)] 02:28:30 bdowning [n=bdowning@mnementh.lavos.net] has joined #lisp 02:28:47 Adlai, you'll have to buy your function an insurance first 02:29:01 myrkraverk: :P 02:29:15 Adlai: it's an alexandria thing. 02:29:34 -!- ManateeLazyCat [n=user@119.141.228.206] has quit [Read error: 131 (Connection reset by peer)] 02:35:29 _3b, what I'm actually doing, is I start with a list (1 2 3 4), calculate the number I want first in my permutation, which is 3 for n=4 k=14, then my list is (1 2 4), and I calculate I need 2nd element, (1st for 0 based) and have (1 4) left, and so on; to give me (3 2 1 4) as the permutation 02:36:23 here (1 2 3 4) can be any list of 4 distinct elements 02:36:49 -!- GreatPatham [n=dan@c-24-19-169-87.hsd1.wa.comcast.net] has quit [] 02:37:12 <_3b> myrkraverk: right, the question is why you need to do that 02:37:21 _3b, I was asked to 02:37:34 _3b, and, what else do you think is better? 02:37:36 <_3b> were you asked to optimize it too? :) 02:37:51 no, but if I continue to use lisp, I'll need to know how 02:37:56 can someone help explain what (apply #'mapcar #'list m) does? 02:37:59 -!- OmniMancer [n=OmniManc@122-57-9-204.jetstream.xtra.co.nz] has quit ["Leaving."] 02:38:19 <_3b> right, but the first step in optimizing should always be to improve the algorithms 02:38:57 leo2007: That's an idiom. It transposes a matrix represented as a list of lists. 02:39:05 of course, though, even if I find a better algorithm for all n! permutations, it's not given that it's better for the special case of the kth one 02:39:35 myrkraverk: But why do you need to preserve the order after each random element? 02:39:37 so, as in the extreme-programming style: if there's more than ony way to do it, implement all and test 02:39:38 <_3b> myrkraverk: well, actually, i guess the /first/ step should be defining the requirements :) 02:40:03 -!- bytecolor [n=user@32.154.94.121] has left #lisp 02:40:22 I don't understand past "then my list is (1 2 4)" 02:40:40 beach, because otherwise I'd get a random permutation, not the kth one 02:40:53 beach: but it is not the same as (mapcar #'list m) 02:41:03 <_3b> who defines 'the kth permutation' 02:41:03 leo2007: m is a list of lists, say (l1 l2 .. ln), it is as if you did (mapcar #'list l1 l2 .. ln), so it generates a list of all the first elements, then all the second elements, etc. 02:41:15 DeusExPikachu, I start with a list of elements (1 2 3 4) and calculate what I need to take from it, for my first element, 3 in my example 02:41:23 next is 2, then 1, then 4 02:41:42 _3b, lexicographical order 02:41:46 -!- salva [n=salva@105.11.117.91.dynamic.mundo-r.com] has quit [] 02:41:55 (1 2 3 4) < (1 2 4 3) 02:42:05 <_3b> ok, so is the requirement 'kth permutation in lexicographical order' or 'implement what you have so far'? 02:42:07 if the list is long, can you delay operations, that'll optimize it a bit 02:42:29 _3b, kth in lexicographical order 02:42:41 <_3b> ok, now we have progress :) 02:42:41 beach: thank you for the explanation 02:42:49 leo2007: No problem. 02:42:56 _3b, that is also what sage gives you, when you ask it for Permutations(4)[14] 02:42:57 <_3b> we can change anything in your code, as long as it produces the same results for the same input, right? 02:43:42 -!- ole4 [n=user@82.113.121.151] has quit [Remote closed the connection] 02:43:53 ole4 [n=user@82.113.121.151] has joined #lisp 02:44:13 _3b, yes, I was asked to use this algoritm, which I've done; so I'll be happy to see a more efficient noe 02:46:36 _3b, for my convenience, I used letters for n>9, and I don't really expect to use this on anything with n>26 02:48:06 and, actually, for a better algo, the first thing I'd do, is to read knuth 02:48:12 only I don't have that book here 02:48:22 *_3b* was considering reaching for that :p 02:49:07 ;-D 02:49:45 come to mention it, I'd like to know what I do have here ;) 02:49:58 has anyone here looked at named-readtables recently? 02:50:38 myrkraverk, when you pull the next item, is the calculation for the index effectively completely random? 02:50:53 hah, I *do* have v4 fasc2 : generating all tuples and permutations ;) 02:51:09 DeusExPikachu, no 02:51:52 because the indexes get jacked up when you squeeze 02:52:12 no, not the indexes, the symbols 02:52:27 I want the kth item in each case 02:52:50 _3b, no need for you to reach; I have mine ;) 02:53:15 <_3b> yeah, i don't have the fasc, so it wouldn't do me any good anyway 02:53:39 haha ;) 02:53:48 does anyone in here love whiskey 02:54:17 the liquor 02:54:18 ? 02:54:31 mcfoobar: again, please take offtopic elsewhere 02:54:41 sykopomp: sorry 02:54:45 sykopomp: was making sureit wasn't a CL library ;) 02:55:05 felideon: but you were right 02:55:11 felideon: quite alright :) 02:55:19 there sould beh something like #lisp-offtopic 02:55:33 mcfoobar: go make ##lisp-offtopic, then. 02:55:43 problem is nobody in lisp would be there 02:55:55 theorem: let w be a word in a dictionary, then w is also a name of a CL library. Proof: ... 02:55:56 -!- sohail [n=sohail@unaffiliated/sohail] has quit ["Leaving."] 02:56:04 -!- redblue [i=star@ppp045.108-253-207.mtl.mt.videotron.ca] has quit [""You cannot do a kindness too soon because you never know how soon it will be too late." -RWE"] 02:56:20 sykopomp: well, I dont need to be in a channel so that I can talk to myself xD 02:57:04 sohail [n=sohail@CPE001839a305c5-CM000a73a081a5.cpe.net.cable.rogers.com] has joined #lisp 02:57:08 mcfoobar: please spam #haskell-blah instead. 02:58:00 nonono, let him spam #fortran; they're all afk anyway 02:58:21 too busy coding boilerplate? 02:58:42 oooo burn..... 03:00:06 redblue [i=star@207.253.108.61] has joined #lisp 03:00:32 haha, you guys really should chill out, there isn't anythin important going on in the channe, anyways I dont want to disturb you guys, thanks for being kind, have a nice day all together 03:00:34 -!- mcfoobar [n=mc@unaffiliated/agf] has left #lisp 03:01:36 well, have book, will sleep -- good night guys, and thanks for all the comments and help 03:01:42 ... we should make a ton of libraries with weird names like "whisky", "scotch", "LSD"... and then put them into CLtL3 so that they get "official" ;P 03:01:53 myrkraverk: night 03:02:07 p_l: we need a git interface called clit, to go along with climacs. 03:02:31 lol 03:02:47 sounds edgy, maybe we can market it to ruby people 03:03:07 *p_l* recalls a guy with a nick "RORgasm" 03:03:40 Not to step too far into ot territory myself, but I wonder if _why ever reappeared. 03:04:11 the one responsible for chunky bacon obsessed foxes? 03:04:45 yeah 03:04:51 *stassats`* doesn't get all this attention to _why disappearance 03:05:16 dunno, I thought I had seen him sometimes, but I don't really care 03:05:45 it's just strange, is all. 03:05:53 Mongrel's author made me rather disillusioned with RoR part of the Ruby community 03:05:55 fwiw, the _why dude is cool, but fuck me dead, i can't take the rubyists' drama 03:06:38 fusss: afaik there were some S-grade assholes related to RoR some time ago. Drama Ensued 03:06:59 p_l: I don't know anything about the RoR community, but Zed Shaw isn't the person I would take advice on "who is an asshole" from 03:07:10 unless he was willing to finger himself as one :P 03:07:14 certain opinions of DHH & 37signals make me go ZOMGLOLWTFBBQ 03:07:49 Adlai` [n=adlai@unaffiliated/adlai] has joined #lisp 03:08:32 Adamant: Oh, I did recognize his style, sure. But he did present some sensible arguments, and even without them I get the feeling that Lispers are no longer the main "smug weenies" around :P 03:08:53 Python and Ruby are full of smug weenies 03:09:05 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 03:09:08 -!- Adlai` is now known as Adlai 03:09:10 Linus seems determined to become a smug weenie anytime security is mentioned 03:09:20 STFU about drama queens and get working on giving me a cl-typesetting daemon that converts (x)html to PDF and delivers everything to my public lighttpd data directory, you magots! 03:09:27 haha 03:09:34 "If you didn't deal with the circle of trust, what you were doing wasn't security, it was... uh... masturbation." 03:09:38 fusss: you forgot to ask for 20 pushups as part of the bargain 03:09:39 - Linus @ Google 03:10:00 Linus is hilarious 03:10:06 funny that he called the obsd people masturbating monkeys 03:10:12 (wrt being smug about security) 03:10:25 *p_l* doesn't run vanilla kernel anymore, especially wrt security, so.. 03:10:43 Adamant: Given the track record Linus has on topics I'm interested in, I tend to trust his opinions, however opinionated they may be expressed. 03:11:03 I think he just has fun saying stuff that way, because he knows he can get away with it 03:11:25 pkhuong: I don't 03:12:07 "Backups are for wimps. Real men upload their data to an FTP site and 03:12:07 have everyone else mirror it." -Linus Torvalds 03:12:40 showing up at google and telling them their shit sucks is pretty amusing 03:12:41 this isn't ##old-linus-quotes 03:12:55 no but it provides some concrete details 03:13:12 stassats`: sorry, I forgot it was ##bored-and-drunk 03:14:36 -!- bgs100 [n=ian@unaffiliated/bgs100] has quit [] 03:16:41 he just has his opinionated knob cranked way up, it makes for interesting conversation wrong or right, it exposes issues really fast 03:20:42 *fusss* is very happy decoupling a monolithic web app into a bunch of web services, each running on a separate ht-process 03:21:26 at least I can drop in a perl PDF printer in 1 hour without having to mess with run-program :-) 03:21:58 GreatPatham [n=dan@c-24-19-169-87.hsd1.wa.comcast.net] has joined #lisp 03:22:02 the phptards get to use my stuff as i go too, without me having to write a friken php class for them 03:23:27 how do they interface with you? 03:23:40 they get back XML from your services? 03:23:48 yep 03:24:19 because I'm sure they think XML is the best thing since sliced bread 03:24:44 -!- sohail [n=sohail@unaffiliated/sohail] has quit ["Leaving."] 03:24:52 really, not my problem 03:25:16 at least nobody is sitting around for 24 hours before they can use whatever i write that day 03:25:54 what do you mean 03:26:23 I'm convinced XML is someone's idea of a sick joke. 03:26:37 well, my name was on the line. i wrote a good chunk of the app in lisp, and when the phpers came on board they wanted to use whatever code i wrote. 03:27:03 i spent weeks implementing my project for a few hour a day, then spending the rest of the day figuring out ways they could use it from php 03:27:16 oh, gotcha. 03:27:36 they were accessing my database directly; they wanted a complete data model, table names, passwords, etc. 03:27:59 then i spent a week being their personal bitch sysadmin; installing packages for them and configuring apache to their tastes. 03:28:52 fusss: I sense that you didn't LART them soon enough :D 03:29:45 politics suck; i am in individual programmer and they're a team at an outsourcing company, who do you think looks less professional if they "can't do anything"? 03:31:01 true 03:31:16 -!- felideon [n=user@adsl-074-186-235-232.sip.bct.bellsouth.net] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 03:37:22 *p_l* would love for someone to replace his last three months with a sysadmin job 03:37:39 *sykopomp* would love to have a job. 03:38:19 -!- dreish [n=dreish@minus.dreish.org] has quit [] 03:38:56 I'm convinced XML is someone's idea of a sick joke. <----- I hear this from different people all the time, could you say what it is you dislike about it so much? 03:39:20 emma: I'll let you figure it out, with a little example. 03:39:23 emma: it does what s-exps do, but it sucks at it in comparison. 03:39:28 *Adlai* concocts example. 03:39:44 Adlai: just link her that paper about that joke lisp. 03:39:52 emma: XML is what happens when you take a good system (SGML) and start promoting misusing it horribly 03:39:58 datou [n=datou@124.205.137.21] has joined #lisp 03:40:01 sykopomp: I actually don't like how phosphorus handles xml... 03:40:03 you can only realize it when you are dealing with it on your own, examples wouldn't help 03:40:20 -!- datou [n=datou@124.205.137.21] has quit [Client Quit] 03:40:31 datou [n=datou@124.205.137.21] has joined #lisp 03:40:44 emma: and XML by itself isn't as bad as, what appears to be common, directly dumping datastructures into XML 03:40:51 Adlai pasted "Nice lispy example" at http://paste.lisp.org/display/86642 03:42:15 -!- ace4016 [i=ace4016@cpe-76-87-84-207.socal.res.rr.com] has quit ["night"] 03:42:38 iwaki [n=hide@PPPa13.osaka.acca.dti.ne.jp] has joined #lisp 03:42:47 Adlai annotated #86642 "Now in XML" at http://paste.lisp.org/display/86642#1 03:44:58 this example is like "why microscope is bad for hammering nails" 03:45:06 emma: saying that XML is verbose and ugly would be an injustice to how I feel about XML 03:45:11 xml.... *rattle of revolver drum/bang!* 03:45:48 pixel5: when you hear the words "XML", you reach for your revolver? 03:46:15 stassats`: from what I've read, it seems as though many code analysis tools communicate the AST and metasyntactic information using similar XML 03:46:16 Adamant: sometimes I'd love to for quick pain relief. 03:46:31 pixel5: you and Goering :P 03:46:50 Adlai: you're right, sadly 03:46:52 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Read error: 54 (Connection reset by peer)] 03:47:34 p_l annotated #86642 "I think XML will look more like this..." at http://paste.lisp.org/display/86642#2 03:47:41 raptelan [n=Casey@c-68-49-132-34.hsd1.md.comcast.net] has joined #lisp 03:48:06 simplechat [n=simple@unaffiliated/simplechat] has joined #lisp 03:48:10 hugod [n=hugod@bas1-montreal50-1279442411.dsl.bell.ca] has joined #lisp 03:48:13 Adamant: you're so far off. 03:48:18 Adamant: he had morphine. 03:48:28 pixel5: he did make that quote IIRC :P 03:48:36 -!- hugod [n=hugod@bas1-montreal50-1279442411.dsl.bell.ca] has quit [Client Quit] 03:48:41 hugod [n=hugod@bas1-montreal50-1279442411.dsl.bell.ca] has joined #lisp 03:48:43 I want to be able to publish mathematics easily on the Internet. The way it SHOULD work is that you just type (type your LaTeX here) and it shows up in the browser. But what w3c has done instead is make MATHML which is a subset of XML and it's neither human readable nor writable. :( 03:49:07 Adlai [n=adlai@unaffiliated/adlai] has joined #lisp 03:49:25 emma: and it exists afaik in two versions, + there's another standard for sharing equations in "semantic" way 03:50:28 yes you are right. It's really annoying. It's so convoluted and byzantine. And it's an absolute shame. Of all things, the Internet should be friendly to expressing mathematics and technical information. Why does the worlds greatest vector for information fail so badly at publishing mathematics directly. 03:51:10 I was so disappointed with mathml (subset of XML) when it ought to be clean and easy: LaTeX 03:51:15 probably because no one can ever agree with anything. 03:51:19 actually, let's scratch that 03:51:24 because microsoft can never agree with anyone else* 03:51:57 sykopomp: nah, even MS isn't as bad as XML infestation :P 03:52:03 microsoft at least gave us the X in AJAX, so that we can have interactive web content 03:52:16 *Adlai* just kids... but not really. 03:52:21 though they should get a kick where sun doesn't shine for SOAP 03:52:32 the web sucks 03:52:37 I'll stick to desktop applications 03:52:38 hear hear 03:52:50 y'all can pretend we're living in the time of the time-sharing system again. 03:53:15 -I- would rather live in a time where people actually own their own computers, as opposed to giving their souls away to google :) 03:53:21 sykopomp: haven't you heard? it's web 2.0 time. soon your desktop will be running google chrome OS and your files will be surfing on a wave into the googleplex. 03:53:27 *pixel5* grabs some popcorn. 03:53:31 ianmcorvidae [n=ianmcorv@student165-245.hampshire.edu] has joined #lisp 03:53:35 yeah, screw that 03:53:40 ianmcorvidae: hey! o/ 03:54:01 sykopomp: IMHO "Web 2.0" doesn't feel even similar to timesharing 03:54:07 hello! I am back at hampshire and my main computer is set up again so I'm back to freenode 03:54:12 I'd rather go with timesharing, users were less bitchy 03:54:58 p_l: I'd rather own my own computer. 03:55:04 if I understand correctly, back in the days of timesharing, users weren't "third grade punk[s] with a PC", to quote the (not so) great author Dan Brown 03:55:06 or rather, computers. 03:55:42 ianmcorvidae: awesome. Has the campus imploded yet? 03:55:56 not yet; most of the students arrive Monday 03:56:02 I got to show up early (last Monday) 03:56:06 you're doing orientation? 03:56:11 or IT? 03:56:30 I'm working at a five college office which emailed the housing office to get me permission, lol 03:56:44 that works, too, I guess. 03:56:54 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Read error: 104 (Connection reset by peer)] 03:56:58 five college center for the study of world languages; I'm getting some preliminary stuff done there because it would be crazy to start after classes with some of what I'm doing 03:57:05 (essentially, creating course materials) 03:57:27 TDT [n=dthole@254.91.248.216.dyn.southslope.net] has joined #lisp 03:57:31 is there a 5-college degree in languages, now? 03:57:50 anyways, you'll have to find a new ride to the lisp meetings, seeing as I'm in the midwest now :P 03:58:01 oh, really 03:58:05 yeah 03:58:09 oh well XD 03:58:11 what has you there? 03:58:28 but to answer your question it's a center that's been around a while 03:58:29 a place to live that doesn't cost any rent, so I'm not homeless in my joblessness. 03:58:44 they're the people that put the flyers with lists of languages pages long out every semester telling people to come do them independently with them 03:58:48 ah 03:58:53 good reason, I suppose 03:59:07 ianmcorvidae: the fiancée being here helps a bit, too, I guess. 03:59:08 :P 03:59:10 basically it's the center that does all the obscure languages 03:59:16 that does also constitute a good reason :P 03:59:21 Adlai [n=adlai@unaffiliated/adlai] has joined #lisp 03:59:26 it's hilarious, too 03:59:39 the twin cities lisp meeting started the week after I moved here. 04:00:18 I only went to the first one, but my impression is that it's quite nice compared to the boston one :D 04:01:49 heh 04:01:58 well, that makes a certain degree of sense 04:02:14 you didn't like the boston one that much what with all the schemers :) 04:02:46 it was more the awkwardness and how everything seemed to go *whoosh* over my head. 04:02:48 :\ 04:03:06 not good things either, no 04:03:33 common lisp is wonderful .. the support wrt. numbers and, stuff, is so nice :) http://nostdal.org/lnostdal/always-here/sw/on-resize-vecto-proper-string.ogv pixel perfect "real vector fonts" using no plugins :) 04:04:46 -!- SandGorgon [n=OmNomNom@122.173.247.98] has quit [Read error: 104 (Connection reset by peer)] 04:05:58 Moe111 [n=Moe111@modemcable067.226-21-96.mc.videotron.ca] has joined #lisp 04:07:42 Moe111 pasted "loop code" at http://paste.lisp.org/display/86643 04:07:54 any recommendations on how to avoid that double intern? 04:08:20 and in general, is there a better way to access a property list element dynamically (i.e. without calling intern) 04:08:21 ? 04:10:02 lexa_ [n=lexa_@seonet.ru] has joined #lisp 04:10:29 -!- lexa_ is now known as Guest59056 04:10:35 -!- holycow [n=new@69.67.174.130] has quit [Read error: 104 (Connection reset by peer)] 04:10:41 -!- TDT [n=dthole@254.91.248.216.dyn.southslope.net] has quit [] 04:11:22 you can write your own GETF which can compare using string= 04:11:56 interesting. 04:12:08 or use alist instead of plist 04:12:15 just roll out an entirely new getf? 04:12:54 alists \o/ 04:13:04 or you can use a hash table for extra laziness. 04:13:08 btw, just how expensive is an (intern )? 04:13:23 like insertion into a hashtable 04:13:28 for some reason, I'm smitten to plists. I don't know why 04:13:44 so not something I should worry about 04:13:48 (re: intern) 04:14:00 *p_l* recalls some version of scheme having generalized property lists added to every variable 04:14:10 well, you can use hastables directly, not through packages 04:14:38 thing is, you can't inline declare hash table contents. Or can you? 04:14:47 stuff like combining dynamic and static data: 04:14:58 (append (list :key "Static") (dynamic-data)) 04:16:08 with existing functions, no, but you can always write your own 04:16:40 antgreen` [n=user@rrcs-24-103-9-35.nyc.biz.rr.com] has joined #lisp 04:18:07 sbahra [n=sbahra@c-68-34-110-14.hsd1.dc.comcast.net] has joined #lisp 04:18:15 You could write a macro :) 04:19:51 but I guess we've established that doing two interns will not kill me in the end. I'll leave as is for now and concentrate on real work =) 04:20:39 you can always optimize post-mortem 04:22:33 html2ps | ps2pdf seems to be working great for me so far :-) 04:22:52 where you guys from anyways? 04:23:45 Solar System 04:27:14 pocket universe 04:30:30 heh. good to know 04:30:39 I ask because it's a saturday night at 12.30 where I am 04:31:05 I'm surprised to see there are others inhabiting the channel at this hour. (I'm simply a workaholic) 04:31:28 -!- davazp [n=user@56.Red-79-153-148.dynamicIP.rima-tde.net] has quit [Remote closed the connection] 04:32:14 -!- antgreen [n=user@205.232.189.231] has quit [Read error: 113 (No route to host)] 04:32:37 Adlai` [n=adlai@unaffiliated/adlai] has joined #lisp 04:33:11 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 04:33:14 -!- Adlai` is now known as Adlai 04:36:32 -!- Guest59056 [n=lexa_@seonet.ru] has left #lisp 04:36:44 hah. Think I fixed named-readtables merging in defreadtable 04:37:21 <_3b> Moe111: for title = (getf ...) when title collect ( ... :title title) ? 04:38:07 *_3b* would probably reimplement getf or search by hand rather than interning though 04:38:27 <_3b> or use a hash table 04:38:38 or alists 04:40:58 lexa_ [n=lexa_@seonet.ru] has joined #lisp 04:41:02 _3b: that works. I also never cease to be amazed by loop 04:41:26 -!- lexa_ is now known as Guest74149 04:41:44 dacrawford pasted "named-readtable change" at http://paste.lisp.org/display/86644 04:42:30 I'll email the diff to trittweiler at some point 04:45:29 |stern| [n=seelenqu@pD9E44477.dip.t-dialin.net] has joined #lisp 04:45:39 yeah! now I have little tutorial qt windows showing :) 04:48:09 -!- hugod [n=hugod@bas1-montreal50-1279442411.dsl.bell.ca] has quit [] 04:49:50 envi^home [n=envi@220.121.234.156] has joined #lisp 04:50:58 OmniMancer [n=OmniManc@125.236.55.43] has joined #lisp 04:52:15 -!- slyrus_ [n=slyrus@adsl-68-121-172-169.dsl.pltn13.pacbell.net] has quit [Read error: 110 (Connection timed out)] 04:58:36 -!- seisatsu [n=seisatsu@adsl-99-54-9-28.dsl.pltn13.sbcglobal.net] has quit ["Ex-Chat"] 04:59:07 v86 [n=v86@unaffiliated/v86] has joined #lisp 04:59:44 isismelting1 [n=jo@ip72-197-226-227.sd.sd.cox.net] has joined #lisp 05:01:01 -!- ianmcorvidae [n=ianmcorv@fsf/member/ianmcorvidae] has quit ["rebooting for timezone fixage"] 05:03:50 -!- seelenquell [n=seelenqu@pD9E47A37.dip.t-dialin.net] has quit [Read error: 110 (Connection timed out)] 05:04:56 SandGorgon [n=OmNomNom@122.173.247.98] has joined #lisp 05:12:23 cornucopic [n=r00t@202.3.77.180] has joined #lisp 05:13:02 -!- v86 [n=v86@unaffiliated/v86] has quit ["Leaving"] 05:13:08 benny` [n=benny@i577A15C5.versanet.de] has joined #lisp 05:13:28 -!- benny [n=benny@i577A1941.versanet.de] has quit [Nick collision from services.] 05:13:30 -!- benny` is now known as benny 05:14:41 -!- arbscht [n=arbscht@unaffiliated/arbscht] has quit [Read error: 60 (Operation timed out)] 05:15:02 arbscht [n=arbscht@unaffiliated/arbscht] has joined #lisp 05:16:37 -!- sbahra [n=sbahra@c-68-34-110-14.hsd1.dc.comcast.net] has quit [Connection timed out] 05:17:06 ianmcorvidae [n=ianmcorv@student165-245.hampshire.edu] has joined #lisp 05:21:02 quek [n=read_eva@router1.gpy1.ms246.net] has joined #lisp 05:24:03 cpc26 [n=cpc26@72.170.156.242] has joined #lisp 05:25:24 -!- cpc26 [n=cpc26@72.170.156.242] has quit [Client Quit] 05:25:45 cpc26 [n=cpc26@72.170.156.242] has joined #lisp 05:33:09 -!- arbscht [n=arbscht@unaffiliated/arbscht] has quit [Remote closed the connection] 05:33:34 arbscht [n=arbscht@unaffiliated/arbscht] has joined #lisp 05:45:59 i have a web service taking too long to run, how did one increase timeouts? 05:46:36 -!- isismelting1 [n=jo@ip72-197-226-227.sd.sd.cox.net] has left #lisp 05:46:50 I am sure I must have echoed something to /proc/sys/net/* 05:47:05 or is there a hunchentoot or usocket configuration I am missing? 05:47:18 slyrus_ [n=slyrus@adsl-68-121-172-169.dsl.pltn13.pacbell.net] has joined #lisp 05:47:36 nvoorhies [n=nvoorhie@adsl-75-36-204-63.dsl.pltn13.sbcglobal.net] has joined #lisp 05:48:17 there is hunchentoot ACCEPTOR-(READ|WRITE)-TIMEOUT for starters 05:52:13 -!- arbscht [n=arbscht@unaffiliated/arbscht] has quit [Remote closed the connection] 05:52:51 -!- iwaki [n=hide@PPPa13.osaka.acca.dti.ne.jp] has quit [Read error: 104 (Connection reset by peer)] 05:52:59 arbscht [n=arbscht@unaffiliated/arbscht] has joined #lisp 05:57:23 -!- cpc26 [n=cpc26@72.170.156.242] has quit [Client Quit] 05:57:44 -!- mikezor_ is now known as mikezor 05:58:41 never mind, it's a pathname bug lurking somewhere, the actual service runs fast enough actually 06:01:20 Soulman [n=kvirc@154.80-202-254.nextgentel.com] has joined #lisp 06:04:07 ManateeLazyCat [n=user@116.4.216.181] has joined #lisp 06:04:39 we are happy to provide the rubber duck service 06:09:17 -!- OmniMancer [n=OmniManc@125.236.55.43] has quit ["Leaving."] 06:10:05 -!- stassats` [n=stassats@wikipedia/stassats] has quit [Read error: 113 (No route to host)] 06:14:09 -!- ausente is now known as dalton 06:16:01 -!- raptelan [n=Casey@c-68-49-132-34.hsd1.md.comcast.net] has quit ["leaving"] 06:17:20 mle [n=emily@kuu.accela.net] has joined #lisp 06:31:42 c|mell [n=cmell@p14220-ipngn1701marunouchi.tokyo.ocn.ne.jp] has joined #lisp 06:33:35 -!- sykopomp [n=sykopomp@unaffiliated/sykopomp] has quit [Remote closed the connection] 06:33:59 -!- GreatPatham [n=dan@c-24-19-169-87.hsd1.wa.comcast.net] has quit [Read error: 110 (Connection timed out)] 06:34:25 -!- Guest74149 [n=lexa_@seonet.ru] has left #lisp 06:34:26 sykopomp [n=user@unaffiliated/sykopomp] has joined #lisp 06:36:27 -!- c|mell [n=cmell@p14220-ipngn1701marunouchi.tokyo.ocn.ne.jp] has quit [Remote closed the connection] 06:37:21 -!- dacrawford [n=user@c-98-217-128-192.hsd1.ma.comcast.net] has quit [Read error: 110 (Connection timed out)] 06:40:09 kiuma [n=kiuma@93-36-11-54.ip57.fastwebnet.it] has joined #lisp 06:45:29 mrSpec [n=Spec@unaffiliated/mrspec] has joined #lisp 06:45:44 hello 06:49:47 lexa_ [n=lexa_@seonet.ru] has joined #lisp 06:50:15 -!- lexa_ is now known as Guest40740 06:51:43 daniel [i=daniel@unaffiliated/daniel] has joined #lisp 06:52:51 -!- daniel_ [i=daniel@unaffiliated/daniel] has quit [Read error: 60 (Operation timed out)] 06:53:00 -!- ASau [n=user@83.69.240.52] has quit [Remote closed the connection] 06:54:56 ASau [n=user@83.69.240.52] has joined #lisp 06:56:36 -!- Moe111 [n=Moe111@modemcable067.226-21-96.mc.videotron.ca] has quit [] 07:01:13 arbscht_ [n=arbscht@unaffiliated/arbscht] has joined #lisp 07:03:02 jewel [n=jewel@dsl-242-129-207.telkomadsl.co.za] has joined #lisp 07:03:06 Athas [n=athas@80.161.87.214] has joined #lisp 07:08:06 -!- arbscht [n=arbscht@unaffiliated/arbscht] has quit [Read error: 60 (Operation timed out)] 07:10:45 -!- cornucopic [n=r00t@202.3.77.180] has quit ["so long.."] 07:11:23 spilman [n=spilman@ARennes-552-1-36-251.w92-135.abo.wanadoo.fr] has joined #lisp 07:17:56 -!- arbscht_ [n=arbscht@unaffiliated/arbscht] has quit [Remote closed the connection] 07:21:38 kejsaren [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has joined #lisp 07:30:14 arbscht [n=arbscht@unaffiliated/arbscht] has joined #lisp 07:33:34 sepult` [n=user@xdsl-87-78-128-235.netcologne.de] has joined #lisp 07:33:41 -!- nvoorhies [n=nvoorhie@adsl-75-36-204-63.dsl.pltn13.sbcglobal.net] has quit [Read error: 54 (Connection reset by peer)] 07:33:53 nvoorhies [n=nvoorhie@adsl-75-36-204-63.dsl.pltn13.sbcglobal.net] has joined #lisp 07:39:07 -!- spilman [n=spilman@ARennes-552-1-36-251.w92-135.abo.wanadoo.fr] has quit [Remote closed the connection] 07:43:48 -!- kejsaren [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has quit [Read error: 110 (Connection timed out)] 07:44:54 -!- Guest40740 [n=lexa_@seonet.ru] has left #lisp 07:46:41 -!- sepult [n=user@xdsl-87-78-122-70.netcologne.de] has quit [No route to host] 07:46:50 ljames [n=ln@unaffiliated/ljames] has joined #lisp 07:48:34 -!- arbscht [n=arbscht@unaffiliated/arbscht] has quit [Read error: 60 (Operation timed out)] 07:49:05 yaroslav_h [n=yaroslav@79-126-11-43.dynamic.mts-nn.ru] has joined #lisp 07:50:37 lexa_ [n=lexa_@seonet.ru] has joined #lisp 07:51:04 -!- lexa_ is now known as Guest15447 07:52:48 arbscht [n=arbscht@unaffiliated/arbscht] has joined #lisp 07:52:53 trebor_home [n=email@dslb-084-058-246-104.pools.arcor-ip.net] has joined #lisp 07:53:49 -!- quek [n=read_eva@router1.gpy1.ms246.net] has left #lisp 07:53:50 angerman [n=angerman@host41.natpool.mwn.de] has joined #lisp 07:55:16 guaqua: you have no idea how great the #lisp rubber duck service is 07:55:33 i pretty much grew up as a web app developer in this channel 07:56:09 it's like a peer-reviewed TODO list with distributed archiving :-) 08:00:05 -!- arbscht [n=arbscht@unaffiliated/arbscht] has quit [Remote closed the connection] 08:00:15 yoos [n=quassel@c-67-169-211-13.hsd1.or.comcast.net] has joined #lisp 08:03:47 Hello. 08:04:19 waddup easyE 08:04:45 NIL 08:17:40 how times have changed 08:17:47 I grew up as a compiler hacker in #lisp 08:18:07 "web app developer" just makes me feel old 08:18:54 compiler hacker has way more street cred 08:19:14 (on Crazy St., nevertheless, but that's where I live.) 08:20:35 -!- nvoorhies [n=nvoorhie@adsl-75-36-204-63.dsl.pltn13.sbcglobal.net] has quit [] 08:21:15 hehe, how long are you guys Lisp hackers? ;) 08:22:37 -!- S11001001 [n=sirian@pdpc/supporter/active/S11001001] has quit ["Leaving."] 08:25:40 cschreiner [n=cp@cm-84.209.69.164.getinternet.no] has joined #lisp 08:26:56 -!- r0bby_ is now known as r0bby 08:30:12 -!- dalton is now known as ausente 08:30:21 nha [n=prefect@17-70.61-188.cust.bluewin.ch] has joined #lisp 08:37:49 -!- fusss [n=chatzill@115.128.36.42] has quit [Read error: 110 (Connection timed out)] 08:38:48 -!- jewel [n=jewel@dsl-242-129-207.telkomadsl.co.za] has quit [Read error: 113 (No route to host)] 08:42:51 legumbre_ [n=user@r190-135-36-229.dialup.adsl.anteldata.net.uy] has joined #lisp 08:42:54 Adlai` [n=adlai@unaffiliated/adlai] has joined #lisp 08:43:28 -!- Athas [n=athas@80.161.87.214] has quit [Remote closed the connection] 08:44:56 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 08:44:59 -!- Adlai` is now known as Adlai 08:48:12 -!- yoos [n=quassel@c-67-169-211-13.hsd1.or.comcast.net] has quit [Remote closed the connection] 08:50:19 -!- Guest15447 is now known as lexa_ 08:50:49 -!- lexa_ is now known as Guest1602 08:51:34 csmerlin [n=smileymy@99-31-211-124.lightspeed.sntcca.sbcglobal.net] has joined #lisp 08:52:07 Has anyone used a LISP based on linear typing? (EG "Lively Linear LISP" Baker92) 08:52:29 -!- Guest1602 is now known as lexa_ 08:52:59 -!- lexa_ is now known as Guest73523 08:53:59 Davidbrcz [n=david@212-198-78-230.rev.numericable.fr] has joined #lisp 08:55:36 -!- Guest73523 [n=lexa_@seonet.ru] has left #lisp 08:57:19 addled_ [n=adl@77.208.158.166] has joined #lisp 09:02:55 -!- legumbre [n=user@r190-135-4-171.dialup.adsl.anteldata.net.uy] has quit [Read error: 110 (Connection timed out)] 09:04:26 kejsaren [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has joined #lisp 09:05:05 -!- dto [n=user@pool-98-118-1-212.bstnma.fios.verizon.net] has quit [Read error: 110 (Connection timed out)] 09:05:54 -!- redblue [i=star@207.253.108.61] has quit [Read error: 145 (Connection timed out)] 09:09:05 -!- Davidbrcz [n=david@212-198-78-230.rev.numericable.fr] has quit [Client Quit] 09:13:00 -!- kiuma [n=kiuma@93-36-11-54.ip57.fastwebnet.it] has quit ["Bye bye ppl"] 09:20:05 redblue [i=star@ppp029.108-253-207.mtl.mt.videotron.ca] has joined #lisp 09:22:35 OmniMancer [n=OmniManc@122-57-9-204.jetstream.xtra.co.nz] has joined #lisp 09:27:48 tcr [n=tcr@host146.natpool.mwn.de] has joined #lisp 09:43:52 question: how do i use slime to examine the public contents of a package? 09:44:08 external rather, not public 09:45:00 M-x slime-apropos-package 09:45:13 thanks :) 09:45:56 isn't there a way to do that with the inspector as well? 09:47:48 Geralt [n=Geralt@p5B32EEEB.dip.t-dialin.net] has joined #lisp 09:48:38 letexpx [n=letexpx@abo-223-141-68.bdx.modulonet.fr] has joined #lisp 09:51:25 guys, sorry for offtopic, but which version of flash player works properly on amd64? 09:51:40 the one in debian doesn't allow fullscreen and pause on JewTube 09:51:44 *_3b* uses the amd64 version 09:52:11 i have this one: libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz, but it's broken on JewTube 09:53:06 <_3b> actually, now that i think about it, i ended up using the 32bit version in virtualbox for some stuff 09:54:52 dstatyvka [i=ejabberd@pepelaz.jabber.od.ua] has joined #lisp 09:56:05 -!- addled_ [n=adl@77.208.158.166] has quit [Client Quit] 10:03:24 Edico [n=Edico@unaffiliated/edico] has joined #lisp 10:04:44 -!- cschreiner [n=cp@cm-84.209.69.164.getinternet.no] has quit [] 10:08:19 -!- merus [n=merus@c-67-175-45-120.hsd1.in.comcast.net] has quit [Read error: 110 (Connection timed out)] 10:09:27 kejsaren_ [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has joined #lisp 10:10:34 Athas [n=athas@shop3.diku.dk] has joined #lisp 10:10:45 -!- letexpx [n=letexpx@abo-223-141-68.bdx.modulonet.fr] has quit [Client Quit] 10:11:02 ehu` [n=chatzill@82-170-33-173.ip.telfort.nl] has joined #lisp 10:11:39 -!- ehu` changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language . New: ABCL 0.16.0, SBCL 1.0.31, Osicat 0.6.0, CFFI 0.10.5, trivial-features 0.5, Hunchentoot & Drakma 1.0.0, usocket 0.4.1, yason-0.1, series 2.2.10, CMUCL 19f. 10:12:05 topic shift: mention ABCL 0.16.0 instead of 0.15.0 10:12:36 boyscared: C-c I (find-package :foo) 10:12:58 ehu`: finally! 10:13:46 tcr: yup. the holidays are over and I found some time between the todo's of getting married :-) 10:14:36 congrats 10:14:48 een noorderbuur ! 10:15:43 ehu`: I think you should have mentioned the synchronization stuff in your release mail. I'll blog about it. 10:18:47 ehu`: Another idea for your release announcements is to include a roadmap 10:19:13 it's in the release notes, I hope people consult them. 10:19:41 right. I assume you mean more then just mentioning the release moments, not? 10:20:07 The formatting of the release notes page is detrimental to the readability 10:20:17 Too much bold 10:20:18 boyscared: have a look at lspack in http://darcs.informatimago.com/darcs/public/lisp/common-lisp/interactive.lisp 10:20:48 (That said, I also find the main page too crowded, but it's okish) 10:20:57 -!- saikat_ [n=saikat@c-98-210-13-214.hsd1.ca.comcast.net] has quit [] 10:21:09 -!- plan9 [n=stian@arachnotron.sletner.com] has quit [Read error: 110 (Connection timed out)] 10:21:14 Everyone is a critic. . . ;) 10:21:30 But, point taken. 10:21:46 tcr: I've been looking at the formatting of the release notes before. however, without the bold, it wasn't really ok either. 10:22:20 -!- ASau [n=user@83.69.240.52] has quit [Remote closed the connection] 10:23:02 ehu`: Add
s after the headlines, and list the items in each section via
    10:23:36 the front page used to be less crowded but in that age, it also used to be too long. 10:23:49 I'd probably use org-mode for release notes, that can produce quite readable html pages 10:23:50 maybe some information needs to move to its own page. 10:24:14 -!- kejsaren [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has quit [Read error: 110 (Connection timed out)] 10:25:41 ehu`: Most annoying is the download link on the main page because that formatting is inconsistent with the rest 10:26:00 A blue background line is used as section header, but for the download link you use it to highlight the download 10:26:29 ASau [n=user@83.69.240.52] has joined #lisp 10:26:59 Additionally, try to make the font size of the description one level bigger. 10:27:16 Perhaps that's all that's needed 10:27:57 -!- ASau [n=user@83.69.240.52] has quit [Remote closed the connection] 10:27:59 -!- tobetchi [n=tobetchi@p923e7d.sagant01.ap.so-net.ne.jp] has quit [Client Quit] 10:28:09 ASau [n=user@83.69.240.52] has joined #lisp 10:28:41 On the description I'd try to highlight buzz words with bold. I'd just have the description there, and then add a new paragraph containing a list of the buzz wordy features 10:28:54 I would _not_ try to highlight via bold 10:31:53 arbscht [n=arbscht@unaffiliated/arbscht] has joined #lisp 10:32:06 I'll come to #abcl 10:33:18 tagac [n=user@121.36.221.87.dynamic.jazztel.es] has joined #lisp 10:35:44 Davse_Bamse [n=davse@4306ds4-soeb.0.fullrate.dk] has joined #lisp 10:37:50 -!- tcr [n=tcr@host146.natpool.mwn.de] has quit [Excess Flood] 10:38:08 tcr [n=tcr@host146.natpool.mwn.de] has joined #lisp 10:39:15 I am beginning to suspect that the problem with the black band at the end of a scroller pane in McCLIM is due to the code for coordinate-swizzling. 10:43:47 -!- arbscht [n=arbscht@unaffiliated/arbscht] has quit [Remote closed the connection] 10:44:05 -!- kejsaren_ [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has quit [Read error: 110 (Connection timed out)] 10:44:49 ignas [n=ignas@ctv-79-132-160-221.vinita.lt] has joined #lisp 10:46:41 kerc [n=riise@31.84-49-151.nextgentel.com] has joined #lisp 10:46:44 Davse_Ba1se [n=davse@4306ds4-soeb.0.fullrate.dk] has joined #lisp 10:48:00 Yuuhi [i=benni@p5483F49B.dip.t-dialin.net] has joined #lisp 10:49:56 -!- antgreen` [n=user@rrcs-24-103-9-35.nyc.biz.rr.com] has quit [Remote closed the connection] 10:51:51 x2cast [n=alvaro@226.232.218.87.dynamic.jazztel.es] has joined #lisp 10:52:09 beach, is mcclim actively maintained? 10:52:50 antgreen [n=user@205.232.189.231] has joined #lisp 10:52:57 logBot3118 [n=logBot@59.96.205.173] has joined #lisp 10:54:18 -!- x2cast [n=alvaro@226.232.218.87.dynamic.jazztel.es] has left #lisp 10:54:19 It's actively maintained but not actively worked on :) 10:54:20 arbscht [n=arbscht@unaffiliated/arbscht] has joined #lisp 10:55:12 -!- Davse_Bamse [n=davse@4306ds4-soeb.0.fullrate.dk] has quit ["Lost terminal"] 10:55:49 nvoorhies [n=nvoorhie@adsl-75-36-204-63.dsl.pltn13.sbcglobal.net] has joined #lisp 10:56:06 kerc pasted "untitled" at http://paste.lisp.org/display/86647 10:56:56 HG` [n=HG@xdslej062.osnanet.de] has joined #lisp 10:57:00 dto [n=user@pool-98-118-1-212.bstnma.fios.verizon.net] has joined #lisp 10:57:02 yes, I wondered what is wrong with my foreign function FormatMessage - windows -- clozure c 10:57:06 l 10:57:37 in paste number 86647 10:57:58 iwaki [n=hide@PPPa13.osaka.acca.dti.ne.jp] has joined #lisp 11:01:21 zuby13 [n=zuby13@122.167.44.138] has joined #lisp 11:02:52 itz zuby herer 11:03:09 i want know about lisp 11:03:50 how can i get a lisp compiler 11:04:37 www.sbcl.org 11:05:33 can i convert C into lisp by anu converter sofware?? 11:06:03 ... if you write it. Why would you want to? 11:06:32 coz i dont know lisp 11:06:39 zuby13, there *might* (or you could write one) but I doubt you really want to 11:07:03 ruepel0r [n=rue@77-22-58-33-dynip.superkabel.de] has joined #lisp 11:07:05 ... it wouldn't (in practice) produce readable or maintainable code 11:07:37 whatever....thankz sirt 11:07:57 is lisp easy to learn 11:08:12 kerc: you probably won't have much luck getting people to debug random FFI stuff for you here, and even less luck when that needs to be done windows. 11:08:14 kerc: having said that, FormatMessageA is an stdcall function, not a cdecl function, and plain cffi:cdefcun uses cdecl. 11:08:16 to me it was 11:08:35 -!- arbscht [n=arbscht@unaffiliated/arbscht] has quit [Remote closed the connection] 11:08:46 ok myrk.. 11:09:12 so whre r u from myrk?? 11:10:14 n where r u working?? 11:10:28 i m from india...banglore 11:10:37 <_3b> kerc: cffi:foreign-string-to-lisp looks like it takes optional args, not keywords 11:11:03 ok 11:11:29 zuby13: how much programming have you done before? 11:11:35 what are the books to learn lisp?? 11:11:44 minion: pcl-book for zuby13 11:11:44 zuby13: look at pcl-book: "Practical Common Lisp", an introduction to Common Lisp by Peter Seibel, available at http://www.gigamonkeys.com/book/ and in dead-tree form from Apress (as of 11 April 2005). 11:12:06 that's definitely the first book you should look at, if you're interested in using CL 11:12:07 Also "Successful Lisp" http://www.psg.com/~dlamkins/sl/ 11:12:13 thankz adlai... 11:12:19 csmerlin: minion knows about successful-lisp 11:12:37 so where r u from? 11:12:39 -!- dto [n=user@pool-98-118-1-212.bstnma.fios.verizon.net] has quit [Read error: 113 (No route to host)] 11:12:42 dto` [n=user@pool-98-118-1-212.bstnma.fios.verizon.net] has joined #lisp 11:13:03 <_3b> kerc: or maybe not, autodoc disagrees with manual 11:13:06 i want to be in touch who9 is a real techie.... 11:13:18 -!- dto` is now known as dto 11:13:56 zuby13: people in this channel are spread out all over the world. I don't know if anybody is near you geographically, but there are people online almost all the time. Just ask here if you have questions. 11:14:05 arbscht [n=arbscht@unaffiliated/arbscht] has joined #lisp 11:14:10 thom_ [n=thom@173.51.164.80] has joined #lisp 11:15:37 lichtblau, _3b: thanks I shall have a look at the calling convention 11:15:41 ok can i be in touch wid u.... 11:15:57 may we become goog frenz 11:16:42 i mean gud frnz 11:17:05 minion: memo for zuby13: You can leave people a memo like this, and it will be delivered when they next talk. 11:17:05 Remembered. I'll tell zuby13 when he/she/it next speaks. 11:17:23 -!- Davse_Ba1se [n=davse@4306ds4-soeb.0.fullrate.dk] has quit ["Lost terminal"] 11:17:31 zuby13: you're in touch with everybody who is on the channel right now. 11:17:42 alinp [n=alinp@89.137.98.94] has joined #lisp 11:17:55 Ah, a subliterate has broken through the defenses ... 11:18:11 iwaki1 [n=hide@PPPa282.osaka.acca.dti.ne.jp] has joined #lisp 11:18:57 zuby13: what Zhivago tried to say is that most people in this channel prefer that you not tlk liek u txtn on ur mobil fone kk? thx 11:20:17 kejsaren [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has joined #lisp 11:20:18 weirdo: I was thinking of activating it, but it is pretty hard. 11:21:01 but vowels are so overrated 11:21:03 koay man .....this is my firt time on any of the ircs.....i'll learn gradually.... 11:21:03 zuby13, memo from Adlai: You can leave people a memo like this, and it will be delivered when they next talk. 11:21:06 thankz 11:22:19 zuby13: no problem, I hope you enjoy learning Lisp. 11:22:27 zuby13: it is spelled "thanks". 11:22:55 yes man....thankz m leavin bye. 11:23:31 It is going to take a long time for zuby13 to learn Lisp, given how hard it is for him/her to spell a single English word right. 11:23:53 Probably has a nasty case of stupidity to get over. 11:24:00 -!- arbscht [n=arbscht@unaffiliated/arbscht] has quit ["leaving"] 11:24:11 arb [i=3cea85ad@gateway/web/freenode/x-ddqpqseahkpdcdjm] has joined #lisp 11:24:34 Zhivago: I have a feeling we might find out in the near future. 11:24:43 :-) 11:24:53 -!- zuby13 [n=zuby13@122.167.44.138] has left #lisp 11:25:20 well, he gave me a good laugh :) 11:26:36 the whole "ok can i be in touch wid u.... may we become goog frenz" thing was a bit odd 11:27:00 -!- alinp [n=alinp@89.137.98.94] has quit [] 11:27:41 I tracerouted him as I was hoping someone was joking 11:28:00 Adlai: he was probably copypasting english from nigerian spammessages 11:28:09 it is funny that "zuby" in Hebrew means something along the lines of flipping you off 11:28:59 -!- Athas [n=athas@shop3.diku.dk] has quit [Remote closed the connection] 11:29:04 it's the physical gesture of flipping somebody off 11:29:09 clhs advise 11:29:09 Sorry, I couldn't find anything for advise. 11:29:21 yaroslav_h_ [n=yaroslav@79.126.57.75] has joined #lisp 11:29:47 OmniMancer: advising functions isn't in the spec, but many implementations provide a way to do it. Are you using a specific implementation? 11:30:19 I use sbcl but was just curious what it was 11:30:49 the idea of "advising" a function is basically to wrap code around it... it's like a poor man's CLOS method combination 11:31:14 -!- yaroslav_h_ [n=yaroslav@79.126.57.75] has quit [Read error: 131 (Connection reset by peer)] 11:31:36 although many of the builtin functions aren't generic functions, so you have no choice if you do need to add method-combination behavior to one of them. 11:32:05 -!- thom_ [n=thom@173.51.164.80] has quit ["This computer has gone to sleep"] 11:32:33 -!- ehu` [n=chatzill@82-170-33-173.ip.telfort.nl] has left #lisp 11:32:40 so what does it do? 11:33:01 well, it would vary from Lisp to lisp... 11:33:04 -!- nvoorhies [n=nvoorhie@adsl-75-36-204-63.dsl.pltn13.sbcglobal.net] has quit [] 11:33:35 -!- iwaki [n=hide@PPPa13.osaka.acca.dti.ne.jp] has quit [Connection timed out] 11:33:51 -!- yaroslav_h [n=yaroslav@79-126-11-43.dynamic.mts-nn.ru] has quit [Read error: 60 (Operation timed out)] 11:34:56 on CCL, for example, just doing (apropos "advise" :ccl) coughs up a bunch of functions and macros, and if you're in SLIME, you can M-. in and look at what they do. They don't seem too complicated (glanced at them quickly just now) 11:35:49 yaroslav_h [n=yaroslav@93-120-148-97.dynamic.mts-nn.ru] has joined #lisp 11:36:28 Does advise work something like setting a symbol's symbol-function to new function which wraps the old one? It doesn't seem to be present in the CL implementation I'm currently using (SBCL). 11:37:16 ljames: that's the idea, as far as I can tell. I've never used it though. 11:37:21 ah 11:37:21 -!- dto [n=user@pool-98-118-1-212.bstnma.fios.verizon.net] has quit [Remote closed the connection] 11:38:19 it's fairly simple to write a naive advising facility... the trick is to make one where you can undo previous advice, and for that, I think you need to use implementation-dependant trick 11:38:23 *tricks 11:40:05 quek [n=read_eva@router1.gpy1.ms246.net] has joined #lisp 11:40:20 I once tried to just directly set a symbols symbol-function to a memoized variant, it worked, but only if the speed optimization was under 3 or so (otherwise the function call would be inlined and it wouldn't work) 11:40:49 Might not be inlining, but same-file calls. 11:40:55 you could (declare (notinline your-function)) 11:41:11 -!- simplechat [n=simple@unaffiliated/simplechat] has quit [Remote closed the connection] 11:41:17 you could choose like-yoda to-speak! 11:41:30 hmm, inline might be the wrong term, but basically if one examines the disassemble, it was a call *offset* instead of call dword ptr [symbol-function.symbol] or something 11:41:34 -!- ausente is now known as dalton 11:41:40 so it was a direct call the the function offset 11:42:01 *to the 11:42:08 hmm, I don't think that's inlining. 11:45:26 -!- ruepel0r [n=rue@77-22-58-33-dynip.superkabel.de] has quit [Remote closed the connection] 11:47:40 lukjad007 [n=lukjadOO@unaffiliated/lukjad007] has joined #lisp 11:49:13 thom_ [n=thom@pool-173-51-164-80.lsanca.fios.verizon.net] has joined #lisp 11:49:14 dto [n=user@pool-98-118-1-212.bstnma.fios.verizon.net] has joined #lisp 11:49:50 dio 11:50:20 -!- ASau [n=user@83.69.240.52] has quit [Remote closed the connection] 11:50:36 ASau [n=user@83.69.240.52] has joined #lisp 11:53:39 -!- ASau [n=user@83.69.240.52] has quit [Remote closed the connection] 11:54:02 ASau [n=user@83.69.240.52] has joined #lisp 11:57:09 -!- HG` [n=HG@xdslej062.osnanet.de] has quit [Client Quit] 12:04:28 kickaha [n=user@92.250.108.254] has joined #lisp 12:05:34 does lisp have something akin to static variables in C? that is, preserved across function calls 12:07:14 -!- dto [n=user@pool-98-118-1-212.bstnma.fios.verizon.net] has quit [Remote closed the connection] 12:08:56 make a closure 12:08:57 Anyone using atdoc (the documentation generation thingy)? I'm trying to use it to document a method which has defaults for it's keys, but then it seems that atdoc doesn't understand that they are the same keys as declared in the defgeneric and thus they get added to the lambda list twice in the atdoc generated html... 12:08:59 unless I misunderstood what you meant, you could accomplish something like that by wrapping your defun in a let binding? 12:09:06 -!- Symmetry- [n=thezog@host-static-92-114-165-252.moldtelecom.md] has quit [Read error: 110 (Connection timed out)] 12:09:21 yea 12:09:25 i.e. I get: "set-server (client &key host port path (host localhost) (port 3312))" 12:09:41 make your function a closure the closed values are preserved across calls 12:09:48 Am I doing something wrong, or is this a (known) bug? 12:09:54 thank you 12:10:33 is there a common lisp for mocrocontrollers? 12:10:41 microcontrollers 12:10:46 ECL ? 12:11:11 the E in ECL means the other kind of embeddable? 12:11:31 thunk__ [n=user@74-130-88-36.dhcp.insightbb.com] has joined #lisp 12:11:37 it compiles to C code 12:12:05 although I do not know the memory footprint of the generated code and if it is useful for embedded systems 12:12:14 -!- thunk__ [n=user@74-130-88-36.dhcp.insightbb.com] has left #lisp 12:12:17 I some how don't quite believe that the runtime system is scalable enough 12:12:51 dto [n=user@pool-98-118-1-212.bstnma.fios.verizon.net] has joined #lisp 12:14:40 bye 12:15:04 -!- OmniMancer [n=OmniManc@122-57-9-204.jetstream.xtra.co.nz] has quit ["Leaving."] 12:18:03 hmmm.. seems it's actually swank that returns that arg list... 12:19:36 fiveop [n=fiveop@g229110179.adsl.alicedsl.de] has joined #lisp 12:19:36 -!- Geralt [n=Geralt@unaffiliated/thegeralt] has quit [Connection timed out] 12:23:14 Well some microcontrolers have enough memory and power to run ecl or clisp... 12:24:51 I should test it, we have some arduinos I think 12:25:58 -!- yaroslav_h [n=yaroslav@93-120-148-97.dynamic.mts-nn.ru] has quit [Read error: 104 (Connection reset by peer)] 12:30:09 -!- ManateeLazyCat [n=user@116.4.216.181] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 12:31:03 yaroslav_h [n=yaroslav@79-126-31-90.dynamic.mts-nn.ru] has joined #lisp 12:31:47 ace4016 [i=ace4016@cpe-76-87-84-207.socal.res.rr.com] has joined #lisp 12:34:26 PissedNumlock: arduinos are based on that 8-bit atmel avr controllers. not much to test... 12:36:59 -!- kickaha [n=user@92.250.108.254] has quit [Remote closed the connection] 12:37:31 -!- hypno [n=hypno@impulse2.gothiaso.com] has quit ["leaving"] 12:37:41 well I don't have much (read any) experience with embedded stuff 12:37:50 might try it just for fun 12:41:35 is the sbcl manual available in pdf anywhere? 12:42:32 c|mell [n=cmell@p14220-ipngn1701marunouchi.tokyo.ocn.ne.jp] has joined #lisp 12:42:59 lichtblau: I sent you an email about the above problem I had, together with a diff that solves it for me... not sure if that's the solution to use, but it seems to work for me... 12:43:05 girzel [n=user@221.223.16.50] has joined #lisp 12:44:51 magius_pendragon [n=alokbaik@cpe-075-182-122-126.nc.res.rr.com] has joined #lisp 12:45:40 -!- quek [n=read_eva@router1.gpy1.ms246.net] has left #lisp 12:46:34 -!- antgreen [n=user@205.232.189.231] has quit [Read error: 110 (Connection timed out)] 12:47:59 Last couple days, (format t "whatever") has not been outputting to the screen in slime. Just tested it in sbcl on command line, and that worked. 12:48:29 I also get a error when starting slime about different versions (2008-12-09 slime vs 2009-09-03 swank), and I just tried a fresh cvs checkout of slime 12:48:32 any ideas? 12:48:55 Sikander [n=soemraws@oemrawsingh.xs4all.nl] has joined #lisp 12:50:13 clhs unsigned-byte 12:50:13 http://www.lispworks.com/reference/HyperSpec/Body/t_unsgn_.htm 12:50:31 magius_pendragon, maybe has something to do with this http://common-lisp.net/project/slime/doc/html/Global-IO-Redirection.html 12:50:45 magius_pendragon: are you on debian? 12:51:03 pkhuong: nope, OS X using MacPorts 12:51:45 girzel` [n=user@123.121.250.125] has joined #lisp 12:53:04 Or aquamacs? 12:53:11 pkhuong: Aquamacs yes 12:53:32 francogrex [n=franco@91.179.242.159] has joined #lisp 12:53:33 And you did the checkout from inside aquamacs? 12:53:36 bgs100 [n=ian@unaffiliated/bgs100] has joined #lisp 12:53:39 pkhuong: no, terminal 12:53:56 right, but inside aquamacs.app? 12:53:58 Is asdf supposed to work similar to a makefile, in the sense that if one of the source files has changed it recompiles them? 12:54:18 Sikander: yes. 12:54:23 thanx 12:54:31 pkhuong: nope, but i have a line in my aquamacs config that points at it...i thought.. 12:54:58 hi, anyone knows if loop is cltl2? because i'm using gcl 2.4.0 (2001) for windows mobile and it doesn't recognize "loop" 12:55:22 not even sure gcl2.4.0 was cltl2 12:55:42 The first problem to fix is that your aquamacs isn't using the SLIME you checked out (but is sending the new SWANK to SBCL, which is strange). 12:55:52 pkhuong: have (add-to-list 'load-path "path-to-slime") and "path-to-slime-contrib" in my preferences.el 12:55:59 francogrex: try (require 'loop) 12:56:16 ok will try thanks 12:56:44 bombshelter13_ [n=bombshel@76-10-149-209.dsl.teksavvy.com] has joined #lisp 12:57:05 magius_pendragon: did you restart aquamacs after the checkout? 12:57:10 pkhuong: trying that now 12:57:23 pkhuong: yup, that seems to have done it, thanks 12:57:27 should have tried that first 12:57:34 fe[nl]ix: it doesn't seem to work 12:57:42 rstandy [n=rastandy@net-93-144-197-107.t2.dsl.vodafone.it] has joined #lisp 12:58:14 i think it's missing 12:58:34 -!- magius_pendragon [n=alokbaik@cpe-075-182-122-126.nc.res.rr.com] has quit ["leaving"] 12:59:36 -!- dalton is now known as ausente 12:59:54 no prob; i will install "iterate" instead 13:00:22 -!- ignas [n=ignas@ctv-79-132-160-221.vinita.lt] has quit [Read error: 110 (Connection timed out)] 13:00:26 -!- francogrex [n=franco@91.179.242.159] has quit ["Leaving"] 13:00:38 quek [n=read_eva@router1.gpy1.ms246.net] has joined #lisp 13:01:55 gee, g++ is a clusterfuck 13:02:09 just try compiling anything that wasn't released this week 13:03:01 blackened` [n=blackene@ip-89-102-28-224.karneval.cz] has joined #lisp 13:05:49 hugod [n=hugod@bas1-montreal50-1279442411.dsl.bell.ca] has joined #lisp 13:06:33 -!- arb [i=3cea85ad@gateway/web/freenode/x-ddqpqseahkpdcdjm] has quit [Ping timeout: 180 seconds] 13:08:48 -!- girzel [n=user@221.223.16.50] has quit [Read error: 110 (Connection timed out)] 13:10:39 zeroish` [n=zeroish@135.207.174.50] has joined #lisp 13:10:54 salva_ [n=salva@105.11.117.91.dynamic.mundo-r.com] has joined #lisp 13:12:29 ArtVandalae [n=SuperUnk@220-253-112-234.VIC.netspace.net.au] has joined #lisp 13:12:31 -!- dto [n=user@pool-98-118-1-212.bstnma.fios.verizon.net] has quit [Remote closed the connection] 13:12:59 Hi guys, I've tried searching on Google, but Google appears to have trouble recognising the star character. What is the difference between do and do*? 13:15:24 clhs do 13:15:25 http://www.lispworks.com/reference/HyperSpec/Body/m_do_do.htm 13:16:55 ArtVandalae, download hyperspec-lookup.el by naggum 13:17:24 isn't that default with slime + emacs? 13:17:29 C-C C-d h 13:17:37 weirdo LOL 13:18:29 ausente: Why is that funny? 13:18:39 mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has joined #lisp 13:19:08 ArtVandalae: If you just want to know the difference, click on the URL that specbot showed you. 13:19:16 -!- fe[nl]ix [n=algidus@88-149-212-10.dynamic.ngi.it] has quit ["Valete!"] 13:19:20 beach the nick, man 13:19:54 weirdo from muppets 13:19:57 Thanks guys 13:20:03 in brazil was calling gonzo 13:20:23 *PissedNumlock* still doesn't get it 13:20:39 -!- htk_ [n=htk___@188.3.226.250] has quit [Remote closed the connection] 13:20:55 -!- kejsaren [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has quit [Read error: 110 (Connection timed out)] 13:21:27 htk_ [n=htk___@188.3.226.250] has joined #lisp 13:22:35 fe[nl]ix [n=algidus@88-149-209-148.dynamic.ngi.it] has joined #lisp 13:24:23 anyone here using postmodern for object persistance? 13:24:46 i'm having conceptual difficulty resolving having multiple 'generations' of objects using the same table. 13:25:04 ThomasI [n=thomas@unaffiliated/thomasi] has joined #lisp 13:25:40 *weirdo* used cl-perec and it had problems with redefining classes 13:26:07 well, i'm working with a file format that has grown over time... always adding fields, never removing 13:26:15 and i need multiple generations of data in the same table 13:26:36 -!- bgs100 [n=ian@unaffiliated/bgs100] has quit [] 13:27:21 tahts the crux... i suppose when i can build the table off of the latest object revision 13:29:04 adeht [n=death@84.110.255.102] has joined #lisp 13:29:26 it makes sense to me that the newer objects would inherit off the old... no problem there 13:29:30 in fact, that all makes sense. 13:29:35 bgs100 [n=ian@unaffiliated/bgs100] has joined #lisp 13:29:48 its the backend storage, dumping objects to SQL that is the issue 13:29:52 since they all have to be normalized 13:30:57 -!- quek [n=read_eva@router1.gpy1.ms246.net] has left #lisp 13:34:12 ignas [n=ignas@78-60-73-85.static.zebra.lt] has joined #lisp 13:34:14 can I declare the return type of functions? 13:34:50 clhs ftype 13:34:50 http://www.lispworks.com/reference/HyperSpec/Body/d_ftype.htm 13:34:50 clhs ftype 13:34:51 http://www.lispworks.com/reference/HyperSpec/Body/d_ftype.htm 13:34:56 haha 13:36:34 Is there a function like cons, but that puts the elements at the end of the list? Not append. I mean If the function is call X, then: (X '(3 4) '((1 2))) => ((1 2) (3 4)) 13:36:48 *called X 13:36:50 -!- bgs100 [n=ian@unaffiliated/bgs100] has quit [] 13:37:19 ArtVandalae: (lambda (x y) (append y (list x))) ? 13:38:50 -!- ThomasI [n=thomas@unaffiliated/thomasi] has quit ["Bye Bye!"] 13:39:43 in other words, no, not really, but it shouldn't be hard to write it. It's a bit harder if you want to modify the list, though -- ie, the equivalent of push, but at the end. 13:39:49 Thanks Adlai :) I was hoping there might be a built-in though 13:40:17 ArtVandalae: the closest CL has to a builtin for that is the :COLLECT clause of LOOP 13:41:03 ArtVandalae: People already complain that CL is too big as it is. Providing all possible functions on lists that people might want, but that would be easy to write, would make it even bigger. 13:41:42 *Adlai* grumbles about the lack of an open-source tree-shaking CL image dumper. 13:42:19 stassats` [n=stassats@wikipedia/stassats] has joined #lisp 13:42:51 Adlai: afaik there is some shake-tree-and-die thingy in sbcl 13:42:54 *beach* instead blames the stupid OSes we have had ever since Unix was invented. 13:43:04 Nshag [i=user@Mix-Orleans-106-3-25.w193-248.abo.wanadoo.fr] has joined #lisp 13:43:06 pixel5: really? never heard of it. 13:44:20 dacrawford [n=user@c-98-217-128-192.hsd1.ma.comcast.net] has joined #lisp 13:44:59 isn't it just (save-lisp-and-die file-path)? 13:46:14 redline6561 [n=redline@c-66-56-16-250.hsd1.ga.comcast.net] has joined #lisp 13:46:25 ArtVandalae: sure, it's called snoc. The only problem is that conversion from snoc-lists to cons-lists takes linear time. 13:46:43 Ah okay 13:47:14 I won't bother in that case, coz I need as much speed as I can get in this application 13:47:21 kejsaren [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has joined #lisp 13:48:08 DeusExPikachu: most Lisps support that -- that's just a raw image dump, and it can get pretty big... some of the commercial lisps do "tree shaking" where they leave out parts of the image which are unnecessary to your program, and it leads to smaller image sizes. 13:48:27 -!- ole4 [n=user@82.113.121.151] has quit [Remote closed the connection] 13:48:38 ole4 [n=user@82.113.121.151] has joined #lisp 13:48:48 Adlai, oh, I see, seems implementation dependent 13:49:03 ArtVandalae: In most cases it is sufficient for the programmer to imagine that lists are drawn from right to left instead, and just use cons. 13:49:43 can I clear all definitions from sbcl/slime ? 13:50:00 -!- c|mell [n=cmell@p14220-ipngn1701marunouchi.tokyo.ocn.ne.jp] has quit [Remote closed the connection] 13:50:28 ArtVandalae: I once had a student who was supposed to write a program to accumulate text into lines and words, and he used (the equivalent of) append intead, not realizing that the order of the characters within a word and the words within a line was just a matter of conventions. Plus, in the worst case, one could reverse them once in the end. 13:51:10 ArtVandalae: So tell us again why you wanted to place the thing at the end of the list? 13:51:11 isn't reversing them once as slow as appending each word? 13:51:17 PissedNumlock: No 13:51:34 PissedNumlock: Reversing once in the end is linear, using append for each element is quadratic. 13:51:59 oh yes, reverse is lineair :) 13:52:05 he could have kept a lastpointer though 13:52:14 c|mell [n=cmell@p14220-ipngn1701marunouchi.tokyo.ocn.ne.jp] has joined #lisp 13:52:16 beach, just for reading clarity. 13:52:34 ArtVandalae: As I have said a few times now, just reverse at the end then. 13:52:36 loop's collect clause uses a tail pointer, fyi. 13:52:49 Adlai: really? How can you tell? 13:53:06 Adlai: there is a proof-of-concept, primitive tree-shaker that ran on older version of SBCL 13:53:12 pkhuong: macroexpansion -- so true, it's not guaranteed, but on the implementations that I use, it does :) 13:53:19 ArtVandalae: You said you need all the speed you can get. Programmers typically sacrifice "reading clarity" in that case. 13:53:26 "guaranteed" = in the clhs 13:54:16 ArtVandalae: Besides, what makes using append improve the reading clarity? 13:54:20 yeah. hit the gas pedal and loosen he handbrake only if the mill is about to wind up :p 13:57:09 can I make the literal 1 be of type (unsigned-byte 32) ? 13:58:05 it already is 13:58:33 (typep 1 '(unsigned-byte 32)) => t 13:58:38 dreish [n=dreish@minus.dreish.org] has joined #lisp 13:58:39 ah 13:59:16 then why if I start with (declaim (type (vector (unsigned-byte 32) 12) cache)) can I not do (setf cache (vector 1 1 2 6 24 120 720 5040 40320 362880 3628800 39916800)) ? 13:59:47 myrkraverk, use COERCE 13:59:56 clhs coerce 13:59:56 http://www.lispworks.com/reference/HyperSpec/Body/f_coerce.htm 14:00:07 clhs vector 14:00:07 http://www.lispworks.com/reference/HyperSpec/Body/a_vector.htm 14:00:29 vector---a vector of type (vector t *). 14:01:07 weirdo pasted "for myrkraverk" at http://paste.lisp.org/display/86648 14:01:16 -!- Sikander [n=soemraws@oemrawsingh.xs4all.nl] has quit ["Leaving"] 14:01:21 myrkraverk: What pkhuong said. The function VECTOR returns a vector which is not the type you want. 14:01:34 ah, I see 14:01:40 and thank you weirdo 14:02:59 Oh, no! Fibonacci! 14:03:02 this is so sweet. i just installed sbcl and emacs, M-x slime worked despite a completely different linux distro 14:03:08 slackjaw [n=jolyonw@124-168-253-144.dyn.iinet.net.au] has joined #lisp 14:03:13 No wait, factorial. 14:03:13 then, all my libraries run as usual after just rm -rf ~/.fasls 14:06:26 -!- slackjaw [n=jolyonw@124-168-253-144.dyn.iinet.net.au] has quit [Client Quit] 14:07:12 hmm there's factorial algorithm complexity. is there fibonacci complexity too? 14:07:34 xvx [n=user01@189.139.217.193] has joined #lisp 14:08:25 thatdavidmiller [n=david@cpc1-rdng1-0-0-cust988.winn.cable.ntl.com] has joined #lisp 14:10:41 weirdo: iirc, the fibonacci sequence grows roughtly exponentially, so "fibonacci complexity" is basically the same as saying O(k^n) complexity 14:10:51 metawilm [n=willem@kabel-9-126.kabel.netvisit.nl] has joined #lisp 14:11:16 (the ratio between two consecutive fibonacci numbers approaches 1.618..., phi) 14:12:28 Adamant, even any two numbers, iirc 14:12:41 though mayb one has to be odd 14:12:52 the ratio between any two numbers approaches 1.618? 14:12:57 you should write that discovery up 14:13:05 it's well known 14:13:39 myrkraverk: you talking to me? 14:13:48 Adlai, yes, sorry 14:13:58 what do you mean by "any two numbers"? 14:14:12 (float (/ 42 96)) => 0.4375; oops 14:14:21 how does lisp address method overloading? ie: parent object has a method, child object builds on said method. in other languages you could call the parent object method first in your child method, followed by your new child code. i don't see that you can address that. 14:14:28 probably "two successive numbers in the series with x_0 = a, x_1 = b and the Fibonacci recurrence" 14:14:32 add 65 128, and continue like you do fibonacci, then you should get the ratio phy 14:14:41 stassats`: yes, but limit as 42 approaches 160... 14:14:44 but there was a serious lack of clarity which I was mocking 14:15:21 Demosthenes: first, object do not have methods 14:15:23 Demosthenes: in Common Lisp, the object system has a sophisticated method combination protocol. 14:15:33 objects 14:15:45 demo: See call-next-method. 14:15:49 and now, food; then math, and no lisp ;-D 14:15:52 see you guys 14:15:55 myrkraverk, Krystof: I see, interesting. 14:15:59 see you, myrkraverk. 14:16:40 isn't the fibonacci sequence the best integer approximation, though? 14:17:17 hm, my number theory is rusty. 14:18:39 I'm not sure "best" is desperately well-defined 14:19:11 is there a way to get the ERC prompt to stay at the bottom of the pane instead of popping to the middle when a new line comes in? 14:19:35 #emacs should know 14:19:47 Demosthenes: That is usually the wrong approach though. Use method combinations instead. 14:19:59 arbscht [n=arbscht@unaffiliated/arbscht] has joined #lisp 14:20:20 adding a class specific :after? 14:20:53 Demosthenes: Sometimes! Sometimes you would go different method combination altogether, like progn or append. 14:20:57 or an :around, or ... 14:21:02 -!- dwh [n=dwh@ppp118-208-171-218.lns10.mel4.internode.on.net] has quit [Read error: 110 (Connection timed out)] 14:22:11 i'm just thinking in a perl object you would call the parent's method explicitly, and then your own code. here we can't do that, so you use :after isntead 14:22:13 Demosthenes: I found PCL's chapter on this stuff fairly clear. 14:22:33 oh, you could call the parent method explicitly if you wanted to 14:22:39 like they said, look up call-next-method 14:22:54 Demosthenes: It's the other way around. You can do that with call-next-method, but in Perl you are forced to using this inferior solution. 14:23:04 if you wanted to call a specific method, you can dig it out of generic-function objects or class objects, and then call it. 14:23:53 Krystof: I don't know if you saw it, but I suspect the code responsible for the black band at the end of a scroller pane is the coordinate-swizzling code (by gilberth, I believe). I am not entirely sure yet, though. 14:25:23 coderdad_ [n=coderdad@ip72-200-214-240.ok.ok.cox.net] has joined #lisp 14:25:25 -!- coderdad [n=coderdad@ip72-200-214-240.ok.ok.cox.net] has quit [Read error: 104 (Connection reset by peer)] 14:25:50 I can see one practical use of explicit constructors like make-window-repaint-event (which would just call make-instance with 'window-paint-event), namely that I could trace such a constructor. 14:27:43 you could add an initialize-instance :before/:after method on window-paint-event 14:31:43 -!- logBot3118 [n=logBot@59.96.205.173] has quit [Read error: 60 (Operation timed out)] 14:32:21 *blink* stumpwm? 14:32:56 Demosthenes: they're discussing McCLIM 14:32:57 clhs vector-pop 14:32:58 http://www.lispworks.com/reference/HyperSpec/Body/f_vec_po.htm 14:34:23 -!- coderdad_ is now known as coderdad 14:39:51 -!- thom_ [n=thom@pool-173-51-164-80.lsanca.fios.verizon.net] has quit ["This computer has gone to sleep"] 14:40:17 Symmetry- [n=thezog@host-static-92-114-165-252.moldtelecom.md] has joined #lisp 14:41:47 Moe111 [n=Moe111@modemcable067.226-21-96.mc.videotron.ca] has joined #lisp 14:43:33 spilman [n=spilman@ARennes-552-1-36-251.w92-135.abo.wanadoo.fr] has joined #lisp 14:45:12 Krystof: I could do that. 14:47:13 -!- weirdo [n=sthalik@c142-5.icpnet.pl] has quit [Read error: 104 (Connection reset by peer)] 14:53:26 Davse_Bamse [n=davse@4306ds4-soeb.0.fullrate.dk] has joined #lisp 14:59:07 -!- rtoym [n=chatzill@user-0c8hpll.cable.mindspring.com] has quit ["ChatZilla 0.9.85 [Firefox 3.5.2/20090729211433]"] 15:02:10 weirdo [n=sthalik@c142-5.icpnet.pl] has joined #lisp 15:06:01 carrl_ [n=carl@61-64-164-206-adsl-tai.STATIC.so-net.net.tw] has joined #lisp 15:06:11 -!- carrl [n=carl@61-64-164-206-adsl-tai.STATIC.so-net.net.tw] has quit [Remote closed the connection] 15:06:37 ehu` [n=chatzill@82-170-33-173.ip.telfort.nl] has joined #lisp 15:12:06 sohail [n=sohail@CPE001839a305c5-CM000a73a081a5.cpe.net.cable.rogers.com] has joined #lisp 15:13:31 -!- guaqua [i=gua@xob.kapsi.fi] has quit [Remote closed the connection] 15:14:12 postamar [n=postamar@x-132-204-255-106.xtpr.umontreal.ca] has joined #lisp 15:15:29 kenpp [n=kenpp@84.92.70.37] has joined #lisp 15:15:56 -!- kejsaren [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has quit [Read error: 110 (Connection timed out)] 15:18:21 -!- redblue [i=star@ppp029.108-253-207.mtl.mt.videotron.ca] has quit [Connection timed out] 15:18:32 felideon [n=user@adsl-074-186-235-232.sip.bct.bellsouth.net] has joined #lisp 15:18:37 -!- prip_ [n=_prip@host147-194-dynamic.17-79-r.retail.telecomitalia.it] has quit [Read error: 110 (Connection timed out)] 15:19:17 antgreen [n=user@205.232.189.231] has joined #lisp 15:20:04 prip_ [n=_prip@host185-130-dynamic.42-79-r.retail.telecomitalia.it] has joined #lisp 15:20:50 hello... I installed UCW through clbuild, and I can't find /ucw/etc or /ucw/bin in /clbuild/source/ucw 15:21:35 -!- mgm [n=none@p84-72.acedsl.com] has quit ["Leaving"] 15:22:24 what am i missing? 15:24:09 mcspiff [n=user@drmons0501w-142068078072.pppoe-dynamic.ns.aliant.net] has joined #lisp 15:25:30 -!- trsh [n=beeb@78.0.252.136] has quit [Nick collision from services.] 15:25:47 trsh [n=cons@93-141-37-226.adsl.net.t-com.hr] has joined #lisp 15:27:05 kejsaren [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has joined #lisp 15:28:30 -!- sepult` [n=user@xdsl-87-78-128-235.netcologne.de] has quit [Remote closed the connection] 15:28:44 sepult` [n=user@xdsl-87-78-128-235.netcologne.de] has joined #lisp 15:30:05 mgm [n=none@p84-72.acedsl.com] has joined #lisp 15:30:31 -!- mgm [n=none@p84-72.acedsl.com] has left #lisp 15:31:01 mgm [n=none@p84-72.acedsl.com] has joined #lisp 15:31:37 -!- sepult` is now known as sepult 15:31:58 -!- mgm [n=none@p84-72.acedsl.com] has left #lisp 15:38:14 -!- tagac [n=user@121.36.221.87.dynamic.jazztel.es] has left #lisp 15:41:47 -!- weirdo [n=sthalik@c142-5.icpnet.pl] has quit [Remote closed the connection] 15:42:16 -!- Tordek [n=tordek@host41.190-138-160.telecom.net.ar] has quit [Remote closed the connection] 15:42:27 weirdo [n=sthalik@c142-5.icpnet.pl] has joined #lisp 15:43:06 -!- mcspiff [n=user@drmons0501w-142068078072.pppoe-dynamic.ns.aliant.net] has quit [Remote closed the connection] 15:43:54 guaqua [i=gua@xob.kapsi.fi] has joined #lisp 15:46:42 -!- carrl_ [n=carl@61-64-164-206-adsl-tai.STATIC.so-net.net.tw] has quit [Remote closed the connection] 15:46:48 is there someone here who uses cffi and knows what's the more portable way to declare an intptr_t type? 15:46:53 mgm [n=none@p84-72.acedsl.com] has joined #lisp 15:46:54 carrl [n=carl@61-64-164-206-adsl-tai.STATIC.so-net.net.tw] has joined #lisp 15:47:35 oh I'm just stupid, it's already in cffi 15:47:38 not in the doc though 15:49:15 -!- mgm [n=none@p84-72.acedsl.com] has left #lisp 15:49:37 -!- Moe111 [n=Moe111@modemcable067.226-21-96.mc.videotron.ca] has quit [] 15:50:08 mcspiff [n=user@drmons0501w-142068078072.pppoe-dynamic.ns.aliant.net] has joined #lisp 15:51:41 -!- pem [n=pem@159.226.35.246] has quit [Remote closed the connection] 15:52:42 mgm [n=none@p84-72.acedsl.com] has joined #lisp 15:53:18 -!- mgm [n=none@p84-72.acedsl.com] has quit [Client Quit] 15:53:19 pem [n=pem@159.226.35.246] has joined #lisp 15:53:39 mgm [n=none@p84-72.acedsl.com] has joined #lisp 15:55:24 letexpx [n=letexpx@abo-223-141-68.bdx.modulonet.fr] has joined #lisp 15:56:17 -!- iwaki1 [n=hide@PPPa282.osaka.acca.dti.ne.jp] has quit [Read error: 104 (Connection reset by peer)] 16:00:00 iwaki [n=hide@PPPa282.osaka.acca.dti.ne.jp] has joined #lisp 16:01:16 deleted #P"/home/csr21/sbcl/obj/from-xc/src/code/fd-stream.lisp-obj-tmp" 16:01:16 grr 16:01:26 my workflow needs improving 16:02:48 bgs100 [n=ian@unaffiliated/bgs100] has joined #lisp 16:02:54 bgs101 [n=ian@unaffiliated/bgs100] has joined #lisp 16:03:49 -!- bgs101 [n=ian@unaffiliated/bgs100] has quit [Client Quit] 16:03:57 -!- Adamant [n=Adamant@unaffiliated/adamant] has quit [] 16:04:03 these mit videos are good, but on occasion boring ;] 16:04:37 -!- girzel` [n=user@123.121.250.125] has quit [Read error: 110 (Connection timed out)] 16:05:56 dcrawford: yes? 16:09:17 -!- |stern| [n=seelenqu@pD9E44477.dip.t-dialin.net] has quit ["When two people dream the same dream, it ceases to be an illusion. KVIrc 3.4.2 Shiny http://www.kvirc.net"] 16:09:24 -!- letexpx [n=letexpx@abo-223-141-68.bdx.modulonet.fr] has quit [Client Quit] 16:11:56 letexpx [n=letexpx@abo-223-141-68.bdx.modulonet.fr] has joined #lisp 16:13:12 -!- slyrus_ [n=slyrus@adsl-68-121-172-169.dsl.pltn13.pacbell.net] has quit [Read error: 110 (Connection timed out)] 16:13:28 schoppenhauer [n=css@unaffiliated/schoppenhauer] has joined #lisp 16:18:33 Odin- [n=sbkhh@130.208.131.159] has joined #lisp 16:20:02 -!- felideon [n=user@adsl-074-186-235-232.sip.bct.bellsouth.net] has quit [Read error: 110 (Connection timed out)] 16:20:54 -!- emma [n=em@unaffiliated/emma] has quit [Read error: 110 (Connection timed out)] 16:22:39 -!- _mfm_ [n=mfm@c-98-239-97-203.hsd1.ca.comcast.net] has quit ["ERC Version 5.2 (IRC client for Emacs)"] 16:23:58 tcr: set you an email with a patch for named-readtables 16:24:54 Athas [n=athas@shop3.diku.dk] has joined #lisp 16:28:20 tcr: until sbcl is patched, I also looked into putting a check if the character is defined as a dispatch char already around the call to make-dispatch-m-c , but for now I just noop-ed the sbcl error call 16:29:21 -!- Athas [n=athas@shop3.diku.dk] has quit [Read error: 104 (Connection reset by peer)] 16:29:31 Athas [n=athas@192.38.109.188] has joined #lisp 16:31:19 So, assuming the problem is in the coordinate-swizzling code, should we try to find the problem and fix it, or replace coordinate-swizzling with something else? 16:32:06 carlocci [n=nes@93.37.222.23] has joined #lisp 16:32:51 -!- dmiles [n=dmiles@c-76-104-220-73.hsd1.wa.comcast.net] has quit [Read error: 113 (No route to host)] 16:33:14 -!- Odin- [n=sbkhh@130.208.131.159] has quit [] 16:33:30 dmiles [n=dmiles@c-76-104-220-73.hsd1.wa.comcast.net] has joined #lisp 16:35:11 -!- yaroslav_h [n=yaroslav@79-126-31-90.dynamic.mts-nn.ru] has quit [Read error: 104 (Connection reset by peer)] 16:35:35 Krystof: needs details 16:39:49 galdor, the correct way is to use some groveller 16:39:55 iolib-alien-grovel or cffi-grovel 16:40:09 -!- alexsuraci [n=alex@pool-71-188-133-67.aubnin.fios.verizon.net] has quit ["Leaving."] 16:40:10 don't under any circumstance just hardcode sizes 16:40:18 Perhaps someone should give a tutoral at ELS2010 about debugging. I find myself very frustrated every time I need to find a problem. As usual, I suspect I am doing it wrong, and that a right way exists, so it would be great to have someone tell me how. 16:40:29 alexsuraci [n=alex@pool-71-188-133-67.aubnin.fios.verizon.net] has joined #lisp 16:40:29 yaroslav_h [n=yaroslav@79-126-31-90.dynamic.mts-nn.ru] has joined #lisp 16:41:16 beach, about CLIM, perhaps the best way to debug it would be to trace XLIB calls 16:41:28 and note the stack trace each time they're called 16:42:03 weirdo: Usually, that generates too much information though. 16:42:11 -!- mcspiff [n=user@drmons0501w-142068078072.pppoe-dynamic.ns.aliant.net] has quit [Remote closed the connection] 16:42:12 yeah :| 16:42:20 it's even worse with unix programs 16:42:23 -!- Davse_Bamse [n=davse@4306ds4-soeb.0.fullrate.dk] has quit ["leaving"] 16:42:32 Is it? 16:42:45 yeah, requires explicit compilation with debugging symbols 16:42:51 gilberth [n=gilbert@d076128.adsl.hansenet.de] has joined #lisp 16:42:56 same with profiling 16:43:03 hey gilberth! 16:43:26 How did you know I was looking into your coordinate-swizzling code? 16:43:46 gilberth: I guess you have a permanent grep in the logs for you nick? 16:44:11 No, I don't. 16:44:22 gilberth: What a coincidence then! 16:44:26 So what is the problem with my code? 16:45:15 I don't know for sure it's your code, but I have a test case that exposes the problem of the black band at the end of a scroller pane, and it turns out it has to do with the window-repaint-event that is generated by X11. 16:45:22 -!- antgreen [n=user@205.232.189.231] has quit [Read error: 104 (Connection reset by peer)] 16:45:26 antgreen` [n=user@205.232.189.231] has joined #lisp 16:46:01 beach, what program is that? 16:46:12 Hold on, I'll lisppaste it. 16:47:57 beach pasted "McCLIM scroller pane problem" at http://paste.lisp.org/display/86654 16:48:46 Odin- [n=sbkhh@s121-302.gardur.hi.is] has joined #lisp 16:49:33 For a while, I thought the entire scrolled pane was shown and that there was just extra stuff at the end, which would have indicated a scroll-bar calculation problem, but as it turns out, The amount of stuff shown is correct; it is just that repaint is never called on the last part of the scrolled pane. 16:49:55 -!- qidush [n=qidush@c83-252-27-42.bredband.comhem.se] has quit [Remote closed the connection] 16:50:01 gilberth: Actually, I am being unfaire to submit a problem to you right away before wishing you welcome back. 16:50:07 gilberth: How are things these days? 16:50:30 beach: Not really better. 16:50:38 Ouch! 16:51:07 gilberth: Is your company at least making some money? 16:51:13 Hmm, when i resize the application frame, everything seems to turn out right. 16:51:16 *hefner* thought the pane sizes were coming out wrong, always wondered if there wasn't some madness with the asynchronous nature of configure-notify events, never really looked into it 16:51:30 gilberth: Yeah, but when you resize it back, the problem sometimes re-appears. 16:51:42 -!- letexpx [n=letexpx@abo-223-141-68.bdx.modulonet.fr] has quit [Client Quit] 16:51:59 re-appears? is there some caching? 16:53:01 dacrawford: No, it is just that if you make the frame smaller again, the problem occasionally re-appears. 16:53:41 ah, as in it's not a once-it-is-fixed-it-never-happens-again problem 16:54:28 dcrawford: that issue is probably known to me (haven't look at the patch), and I also sent it upstream to no avail so far. We'll talk later. 16:54:30 -!- envi^home [n=envi@220.121.234.156] has quit ["Leaving"] 16:54:31 weirdo: link to iolib-alien-grovel? 16:54:33 -!- ASau [n=user@83.69.240.52] has quit [Remote closed the connection] 16:54:38 also, is it supposed to work with cffi? 16:55:03 OmniMancer [n=OmniManc@122-57-9-204.jetstream.xtra.co.nz] has joined #lisp 16:55:27 mathrick, apparently it's obsolete now 16:55:52 with the inclusion of cffi-grovel 16:56:32 oh 16:57:01 ASau [n=user@83.69.240.52] has joined #lisp 16:57:13 well, I guess that for what I'm interested in, gobject-introspection is really the good way and grovelling would be just a painful way of doing the wrong thing 16:57:28 it just needs to land upstream in all the libs 16:57:45 beach: Please see http://common-lisp.net/pipermail/mcclim-devel/2005-December/006036.html 17:00:01 gilberth: Excellent: I assume that code is not committed? 17:00:26 beach: No, it is not. 17:01:31 -!- salva_ [n=salva@105.11.117.91.dynamic.mundo-r.com] has quit [] 17:02:55 -!- metawilm [n=willem@kabel-9-126.kabel.netvisit.nl] has quit [] 17:03:42 only figured out four years ago :P 17:05:59 mishoo [n=mishoo@86-124-78-239.iasi.cablelink.ro] has joined #lisp 17:06:19 cheers 17:06:35 -!- ASau [n=user@83.69.240.52] has quit [Remote closed the connection] 17:07:06 ASau [n=user@83.69.240.52] has joined #lisp 17:07:55 hello mishoo 17:10:15 -!- ASau [n=user@83.69.240.52] has quit [Remote closed the connection] 17:10:45 ASau [n=user@83.69.240.52] has joined #lisp 17:13:54 -!- adeht [n=death@84.110.255.102] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 17:14:38 -!- yaroslav_h [n=yaroslav@79-126-31-90.dynamic.mts-nn.ru] has quit [Read error: 113 (No route to host)] 17:16:34 -!- ASau [n=user@83.69.240.52] has quit [Remote closed the connection] 17:17:52 ASau [n=user@83.69.240.52] has joined #lisp 17:21:01 -!- rstandy [n=rastandy@net-93-144-197-107.t2.dsl.vodafone.it] has quit [Remote closed the connection] 17:23:30 -!- seangrove [n=user@cpe-76-90-50-75.socal.res.rr.com] has quit [Connection timed out] 17:25:14 raptelan [n=Casey@c-68-49-132-34.hsd1.md.comcast.net] has joined #lisp 17:25:20 slash_ [n=Unknown@p5DD1DE9E.dip.t-dialin.net] has joined #lisp 17:27:22 metawilm [n=willem@kabel-9-126.kabel.netvisit.nl] has joined #lisp 17:28:19 -!- thatdavidmiller [n=david@cpc1-rdng1-0-0-cust988.winn.cable.ntl.com] has quit ["Leaving"] 17:30:45 -!- metawilm [n=willem@kabel-9-126.kabel.netvisit.nl] has quit [Client Quit] 17:31:46 mcspiff [n=user@drmons0501w-142068078072.pppoe-dynamic.ns.aliant.net] has joined #lisp 17:32:15 is there a way in cffi to define a struct member array whose size is defined by the value of an enum element value? 17:32:51 ie., when I have an enum member ALLEGRO_KEY_MAX, then in a struct, unsigned int __key_down__internal__[(ALLEGRO_KEY_MAX + 31) / 32]; 17:33:02 cschreiner [n=cp@cm-84.209.69.164.getinternet.no] has joined #lisp 17:33:37 huangjs [n=user@p3045-ipbf2908marunouchi.tokyo.ocn.ne.jp] has joined #lisp 17:34:40 I'd like to start reading news in Emacs. What's your favourite reader you'd suggest I start with? Plain old gnus? Or are there better ones? 17:35:06 Damn, wrong channel. 17:35:12 mutt! 17:36:20 I use mutt for e-mail. 17:36:32 Somehow never got to like the nntp mode. 17:36:38 (for reasons I don't remember now) 17:36:41 -!- ole4 [n=user@82.113.121.151] has quit [Remote closed the connection] 17:36:48 I use mutt for emails, slrn for nntp 17:36:52 ole4 [n=user@82.113.121.151] has joined #lisp 17:37:00 one tool for one job is kinda nice 17:37:21 antoszka: i use gnus for news. it works well enough. 17:37:28 OK. 17:37:43 antoszka: i use wanderlust for mail though, so have been considering moving news over to it as well. 17:37:50 Aha. 17:38:16 try both! :) 17:38:27 Yeah, I might 17:39:35 deech [n=user@24-107-144-116.dhcp.stls.mo.charter.com] has joined #lisp 17:39:40 Wanderlust from CVS? 17:39:49 The release seems somewhat dated... 17:40:47 Has anyone here used Qi? 17:44:21 -!- iwaki [n=hide@PPPa282.osaka.acca.dti.ne.jp] has quit [Read error: 104 (Connection reset by peer)] 17:44:45 -!- ArtVandalae [n=SuperUnk@220-253-112-234.VIC.netspace.net.au] has quit ["Leaving"] 17:45:56 -!- blackened` [n=blackene@ip-89-102-28-224.karneval.cz] has quit [] 17:46:36 blackened` [n=blackene@ip-89-102-28-224.karneval.cz] has joined #lisp 17:51:21 Davidbrcz [n=david@212-198-78-230.rev.numericable.fr] has joined #lisp 17:53:17 -!- OmniMancer [n=OmniManc@122-57-9-204.jetstream.xtra.co.nz] has quit [Read error: 54 (Connection reset by peer)] 17:53:19 Davse_Bamse [n=davse@4306ds4-soeb.0.fullrate.dk] has joined #lisp 17:53:45 -!- Ginei_Morioka [i=irssi_lo@78.112.57.218] has quit [Nick collision from services.] 17:53:49 OmniMancer [n=OmniManc@122-57-9-204.jetstream.xtra.co.nz] has joined #lisp 17:53:53 Ginei_Morioka [i=irssi_lo@78.112.71.223] has joined #lisp 17:59:06 Adamant [n=Adamant@c-68-51-134-164.hsd1.ga.comcast.net] has joined #lisp 17:59:19 -!- legumbre_ is now known as legumbre 18:00:44 Good evening! 18:01:38 gilberth: So you don't think there is anything fundamentally wrong with the coordinate-swizzling code? 18:02:07 Well, I believe what I wrote in that posting is still true. 18:02:13 hmm 18:02:31 since pathnames are deliberately underspecified, is it non-portable to hardcode any namestring in the program? 18:02:56 beach: We might consider to commit that patch of mine. 18:03:19 -!- antgreen` [n=user@205.232.189.231] has quit [Read error: 104 (Connection reset by peer)] 18:03:31 gilberth: Sure, that would be a start. 18:03:48 gilberth: I guess you are still to busy to dig into this and find the real problem? 18:04:10 beach: busy is not so much the problem. 18:04:31 I see. 18:04:38 gilberth2 [n=gilbert@d076128.adsl.hansenet.de] has joined #lisp 18:05:12 -!- gilberth2 [n=gilbert@d076128.adsl.hansenet.de] has left #lisp 18:06:01 beach: Well, I guess we ought to commit that and add a note that we miss some opportunities for doing less work. 18:06:15 deech: I considered it, but dismissed due to license 18:06:53 -!- ace4016 [i=ace4016@cpe-76-87-84-207.socal.res.rr.com] has quit [Nick collision from services.] 18:06:55 and now it's dead 18:06:55 -!- Adamant [n=Adamant@unaffiliated/adamant] has quit [] 18:07:01 _ace4016_ [i=ace4016@cpe-76-87-84-207.socal.res.rr.com] has joined #lisp 18:07:23 -!- _ace4016_ is now known as ace4016 18:09:03 Geralt [n=Geralt@p5B32C8B9.dip.t-dialin.net] has joined #lisp 18:09:17 Adamant [n=Adamant@unaffiliated/adamant] has joined #lisp 18:10:15 gilberth: If in your commit you could give some more clues (more than in the messge you cited) that would be great! 18:10:39 beach: OK, I see want I can do. 18:11:19 dcrawford: Thanks for your mail. Unfortunately your patch isn't right, I think, the conditionals were there on purpose. This needs some thinking. 18:12:14 gilberth: As usual in the beginning of the academic year, I have some resolutions about working on some interesting stuff during the year, and since I often get back to McCLIM, this time I was thinking of fixing some bugs in it. This one was the first one I investigated. But I know from experience that things will rapidly make it impossible for me to continue. 18:12:33 tcr: I figured there had to be some reason, but it makes the simple case defreadtable :merge horribly broken 18:13:15 lispm [n=joswig@g224121125.adsl.alicedsl.de] has joined #lisp 18:13:45 tcr: if you do make-readtable with a :merge keyword that does an initial copy of standard, then it works .. but that's not what's done with defreadtable because that's more special case 18:13:50 kleppari_ [n=spa@bitbucket.is] has joined #lisp 18:13:53 dcrawford: The reason is the following: Say readtable :A install a non-standard macro-character on #\(, and readtable :B installs some reader-macro on #\!. Now if you (:merge :STANDARD :A :B), the #\( in :B would overwrite the custom one in :A. 18:14:03 dcrawford: I really should have put in a comment on that point. 18:14:10 faux [n=user@1-1-4-21a.gkp.gbg.bostream.se] has joined #lisp 18:14:38 -!- kleppari [n=spa@bitbucket.is] has quit [Read error: 104 (Connection reset by peer)] 18:15:05 dacrawford: That's what DEFREADTABLE used to do until yesterday. 18:15:26 tcr: figures I got the code yesterday 18:15:57 -!- lispm [n=joswig@g224121125.adsl.alicedsl.de] has quit [Client Quit] 18:16:04 -!- bombshelter13_ [n=bombshel@76-10-149-209.dsl.teksavvy.com] has quit [Read error: 104 (Connection reset by peer)] 18:16:06 I'll close this window now and try to come up with a solution. I'll say you when you can pull. 18:16:07 tcr: because now (:merge :standard :A :B) is equivalent to (:merge :A :B) 18:16:23 bombshelter13_ [n=bombshel@76-10-149-209.dsl.teksavvy.com] has joined #lisp 18:16:55 Yes, the obvious thing is to test for *STANDARD-READTABLE* in merge-readtables-into. Perhaps there's something better, though. 18:19:05 -!- kleppari_ [n=spa@bitbucket.is] has quit [Remote closed the connection] 18:19:10 kleppari [n=spa@bitbucket.is] has joined #lisp 18:19:17 tcr: the added make-dispatch-m-c is still needed though I think 18:19:25 -!- pkhuong [n=pkhuong@modemcable238.100-176-173.mc.videotron.ca] has quit [Read error: 110 (Connection timed out)] 18:22:26 hmm, profiles usually have one problem 18:22:27 tcr: instead of testing for :standard you might be able to see if the char exists in the result table, and only do the unless if it exists, otherwise just add it 18:22:36 profilers* 18:22:40 Tordek [n=tordek@host41.190-138-160.telecom.net.ar] has joined #lisp 18:22:52 they don't account time spent in system calls as spent in the function that calls it 18:23:11 perl's profiler shows absurd results because of it 18:23:17 and sbcl's ones aren't that better :( 18:23:35 weirdo: what about using whole-system profiling, then? :) 18:23:46 p_l, what's that? 18:23:57 p_l: Like oprofile? 18:24:18 -!- mcspiff [n=user@drmons0501w-142068078072.pppoe-dynamic.ns.aliant.net] has quit [Remote closed the connection] 18:24:34 oh wait. lisp profilers have no way of knowing 18:24:46 p_l: Does SBCL allow you to make an image that presents its symbols in the right way? 18:24:46 -!- Odin- [n=sbkhh@s121-302.gardur.hi.is] has quit [] 18:24:53 if one traced the lisp wrapper that calls the system call, it would crash and burn if the profiler itself runs system calls 18:25:00 which it typically does, since it allocates memory 18:25:18 francogrex [n=franco@91.179.242.159] has joined #lisp 18:30:36 -!- Geralt [n=Geralt@unaffiliated/thegeralt] has quit [Read error: 110 (Connection timed out)] 18:30:57 Odin- [n=sbkhh@s121-302.gardur.hi.is] has joined #lisp 18:31:58 -!- schoppenhauer [n=css@unaffiliated/schoppenhauer] has quit [] 18:34:12 -!- sepult [n=user@xdsl-87-78-128-235.netcologne.de] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 18:35:24 weirdo: that's why you usually dump tracing data to another system 18:35:57 has anyone read this: "Common LISP Modules: Artificial Intelligence in the Era of Neural Networks and Chaos Theory" ? 18:36:53 francogrex: Sounds like one to skip. 18:37:17 is there a predicate to check if a variable is declared (globally) special? 18:37:25 francogrex: The ratio between buzzwords and information is way to high! 18:37:38 *too 18:37:56 mathrick: cltl2:variable-information 18:38:07 aha, not in the standard? 18:38:09 thanks 18:38:11 beach: what buzzwords? 18:38:34 mathrick: yes, not in the standard, sbcl has it under sb-cltl2 package 18:38:41 francogrex: Common Lisp, Module, Artificial Inteligence, Neural Networks, Chaos Theory. 18:38:42 ccl in the CCL package 18:38:42 writing a perl program was a mistake to begin with. i should consider doing everything aside from shell scripting in lisp 18:38:55 francogrex: practically only the conjuctions left. 18:39:13 i wrote "foo $file && bar" when i should have written "foo $file and bar". crap. 18:39:17 stassats`: I know this much :) 18:39:19 MrSmiley909 [n=Mr@r37h66.res.gatech.edu] has joined #lisp 18:39:32 well, maybe not about the ccl: bit, but sb-cltl2 is known to me 18:39:54 weirdo: and what's the difference/ 18:39:55 ? 18:40:19 mathrick, precedence. "and" binds looser 18:40:24 aha 18:40:24 Is there a function that returns if an atom is in a list? 18:40:33 MrSmiley909: find 18:40:44 clhs member 18:40:45 http://www.lispworks.com/reference/HyperSpec/Body/a_member.htm 18:41:00 stassats`: oh, right, member 18:41:05 it's hard to find NIL with find 18:41:30 speaking of operators, are there standard non-shortcircuiting versions of AND and OR in the standard? 18:41:50 shortcircuiting? 18:42:17 dacrawford: make-d-m-c should not be needed because the dispatch reader macro function itself is supposed to be copied 18:42:20 stassats`: (or 10 (error "no shortcircuiting")) 18:43:06 -!- deech [n=user@24-107-144-116.dhcp.stls.mo.charter.com] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 18:43:21 deech [n=user@24-107-144-116.dhcp.stls.mo.charter.com] has joined #lisp 18:43:41 (some #'identity (list 10 (error "bah"))) 18:43:48 letexpx [n=letexpx@abo-223-141-68.bdx.modulonet.fr] has joined #lisp 18:43:52 -!- Odin- [n=sbkhh@s121-302.gardur.hi.is] has quit ["Am I missing an eyebrow?"] 18:44:57 -!- deech [n=user@24-107-144-116.dhcp.stls.mo.charter.com] has quit [Read error: 54 (Connection reset by peer)] 18:45:03 Odin- [n=sbkhh@s121-302.gardur.hi.is] has joined #lisp 18:46:10 lispm [n=joswig@g224121125.adsl.alicedsl.de] has joined #lisp 18:46:16 stassats`: I know I can build my own, I was asking about the standard 18:46:28 this is standard 18:46:58 -!- ASau [n=user@83.69.240.52] has quit [Remote closed the connection] 18:47:17 ikki [n=ikki@189.139.217.193] has joined #lisp 18:48:04 stassats`: taken this way, everything you can possibly code in CL is "standard" 18:48:18 uhm, why does (and 10) expand to (the t 10) in SBCL? 18:48:28 what's the point of emitting (the t whatever)? 18:49:13 differentiating between boolean and generalized boolean 18:49:26 oh THE? 18:50:21 perhaps some obscure point wrt multiple values 18:50:31 might be 18:50:40 what's the point in writing (and 10) ? 18:50:50 Edward_ [n=Ed@AAubervilliers-154-1-71-110.w81-249.abo.wanadoo.fr] has joined #lisp 18:50:50 merus [n=merus@c-67-175-45-120.hsd1.in.comcast.net] has joined #lisp 18:50:56 stassats`: it expands to the ONLY in the singular case 18:51:16 -!- kpreid [n=kpreid@216-171-189-244.northland.net] has quit [] 18:51:19 ONLY? 18:51:44 oh, "to THE only" 18:52:09 kpreid [n=kpreid@216-171-189-244.northland.net] has joined #lisp 18:52:29 ;; Preserve non-toplevelness of the form! `(the t ,(first forms))) 18:52:32 stassats`: right, my fault for not capitalising it properly 18:52:41 oh, I see 18:53:07 ASau [n=user@83.69.240.52] has joined #lisp 18:53:13 otherwise 10 might be mistaken for a tag in a tagbody 18:53:52 piso: is there any changelog for XCL? 18:54:04 stassats`: sadly no 18:54:14 davazp [n=user@56.Red-79-153-148.dynamicIP.rima-tde.net] has joined #lisp 18:54:44 diff to the rescue 18:54:58 stassats`: do you have a specify issue? 18:55:04 specific 18:55:40 i'm just curious 18:56:23 btw, when will it support networking, if not already? 18:56:35 networking? 18:56:49 sockets, etc. 18:56:51 it already supports sockets (and has for a long time) 18:56:51 stassats` probably wants to write a swank backend 18:57:00 tcr: right 18:57:16 I've had a functioning slime-for-j for ages 18:58:01 Well, hand it over to stassats` so he can polish it up and commit it to the upstream version 18:58:03 -!- hugod [n=hugod@bas1-montreal50-1279442411.dsl.bell.ca] has quit [] 18:58:04 xcl may not have quite enough clos for slime-for-emacs, but I'm not sure how much is required 18:58:12 glogic [n=glogic@97.76.48.98] has joined #lisp 18:58:24 slime-for-j is really quite different internally from slime-for-emacs 18:59:01 well it needs some way to create a customized socket stream 18:59:16 that is missing 18:59:42 ramus`_ [n=ramus@99.23.140.245] has joined #lisp 19:00:49 -!- glogic [n=glogic@97.76.48.98] has left #lisp 19:01:16 -!- letexpx [n=letexpx@abo-223-141-68.bdx.modulonet.fr] has quit [Client Quit] 19:01:43 Well, it does not necessarily have to involve clos. If streams are structure, we can inherit by means of :include in DEFSTRUCT 19:01:53 Geralt [n=Geralt@p5B32C8B9.dip.t-dialin.net] has joined #lisp 19:01:55 but in case of XCL that's probably all c++? 19:02:12 streams are not structures in xcl 19:02:33 they are instances of a C++ class 19:02:43 and hence opaque to Lisp 19:02:51 Good night! 19:03:08 -!- ramus` [n=ramus@adsl-99-23-146-96.dsl.chcgil.sbcglobal.net] has quit [Read error: 60 (Operation timed out)] 19:03:28 but I could provide a slime-[input|output]-stream, as abcl has (or used to have) 19:03:32 sbahra [n=sbahra@c-68-34-110-14.hsd1.dc.comcast.net] has joined #lisp 19:04:11 yes it still does have 19:04:20 sepult [n=user@xdsl-87-78-128-235.netcologne.de] has joined #lisp 19:04:31 then that would suffice for xcl as well? 19:04:50 sure, please do so if you want more people to try out xcl 19:05:05 eww, that's hacky 19:05:15 piso: that strategy doesn't really work well with Gray streams. 19:05:28 as it's impossible to make CLOSE a generic function. 19:05:40 (ouch) 19:05:44 why not? 19:05:44 hmm 19:05:58 schoppenhauer [n=css@unaffiliated/schoppenhauer] has joined #lisp 19:06:11 because the compiler will be called when calling CLOSE, but the compiler uses CLOSE itself too. 19:06:17 at least in ABCL. 19:06:47 _Pb [n=Pb@75.131.194.186] has joined #lisp 19:06:50 well, I could do slime-[input|output]-stream in an hour or two, but proper gray streams would take a lot longer 19:06:58 ehu`: Heh 19:08:01 I have been thinking about a scheme where the compilers' use of CLOSE can be eliminated; for example by distinguishing between internal and external streams, but that's just as tricky. 19:08:10 does slime use gray streams in addition to slime-[input|output]-streams, or instead of them? 19:08:20 piso: It's your decision. If you say xcl is far enough for the cynical-yet-unhelpful eyes of the intertubes, do so. It'll probably make more people try out xcl. 19:08:58 tcr: when doing merge-readtables-into with an empty/fresh starting result-table, sbcl errors w/o m-d-m-c when merging :standard into it. 19:08:59 piso: as far as I understand, if you support gray streams, that's what SLIME will use itself. 19:09:03 piso: Instead; cmucl uses the :include defstruct route, abcl the ext:make-slime-output-stream, all else use gray streams 19:09:38 well, in the fullness of time, I expect xcl to have a decent implementation of gray streams, but I'm not ready to work on that right now 19:10:11 -!- _Pb [n=Pb@75.131.194.186] has left #lisp 19:10:12 but I'll do slime-streams later this week (I'm going on vacation for a few days first) 19:10:16 tcr: the char would only have set-macro-character applied to it yet, and that's not enough for a call to set-dispatch-macro-character to not fail 19:10:18 piso: Of course, I imagine lots of people will try out xcl and just comment that it's not prime time yet. (Just a guess, I haven't ever looked at it, so I don't know how far it is.) 19:10:32 dacrawford: Right 19:10:42 xcl's big achievement is that it can build sbcl 19:10:49 what is xcl?+ 19:10:57 minion: xcl? 19:10:58 xcl: XCL is a Common lisp implementation licensed under GPL. http://www.cliki.net/xcl 19:11:04 ole4: http://armedbear.org/ 19:11:11 Bah what a bad description 19:11:12 minion: what does XCL stand for? 19:11:12 Xanthene Common Lisp 19:11:21 It's really GPL? The interesting thing is that it's written in C++. 19:11:28 a Q i have about ABCLs running of compiled code vs interpreted code.. ABCL starts faster when its internal libraries are compiled.. but wondering if it runs faster 19:11:32 it's temporarily GPL 19:11:52 has anyone looked at LW's (or was it Franz's?) alternative extensible streams? 19:11:53 -!- Edward_ [n=Ed@AAubervilliers-154-1-71-110.w81-249.abo.wanadoo.fr] has quit [Read error: 54 (Connection reset by peer)] 19:11:56 macdice [n=user@78-86-162-220.zone2.bethere.co.uk] has joined #lisp 19:12:04 how well do they compare to gray streams? 19:12:16 will xcl's c++ nature make it ffi better against c++ libraries? 19:12:26 Franz. They're less terrible than Gray streams, but even less well-specified 19:12:31 -!- kejsaren [n=kejsaren@111.25.95.91.static.ras.siw.siwnet.net] has quit [Read error: 110 (Connection timed out)] 19:12:32 dmiles: abcl runs much faster when its code is compiled; startup time is a completely different issue 19:12:38 piso: it's really confusing that armedbear.org points at xcl 19:12:55 mathrick: my apologies! 19:13:18 Krystof: aha, that's a pity 19:13:20 dacrawford: I doubt it 19:13:37 piso: no need to apologise, but it is 19:13:43 xcl.org would be good 19:14:02 I think all the xcl.* domains are in the hands of squatters 19:14:23 (and xcl is not necessarily its final name, in any case) 19:14:39 isn't the "classpath exception" for lisp basically Lisp LGPL ( LLGPL ) 19:14:49 dacrawford: yeah, more or less 19:16:01 tmh [n=thomas@pdpc/supporter/sustaining/tmh] has joined #lisp 19:16:07 piso: ah, right, squatters :( 19:16:09 Greetings. 19:16:43 -!- faux [n=user@1-1-4-21a.gkp.gbg.bostream.se] has quit [Remote closed the connection] 19:17:49 piso: A cool thing to show off would be to make M-. jump to the internal c++ sources. 19:18:15 slime-for-j does that now :) 19:18:44 *kpreid* suggests that armedbear.org ought to at least link to xcl 19:18:44 So how do you create the source locations while compiling the c++ sources? 19:18:47 er, to abcl 19:18:57 what is so special about that xcl/abcl thing? 19:19:26 ole4: Nothing special, their plattform is just peculiar for Lisp implementations 19:20:10 tcr: the C++ sources contain tag tokens in comments 19:20:22 ferada [n=user@e179235129.adsl.alicedsl.de] has joined #lisp 19:20:37 / ### cons 19:20:38 rwiker [n=rwiker@73.84-48-40.nextgentel.com] has joined #lisp 19:20:53 /// ### cons 19:21:04 one more try: /// ### cons 19:21:08 Ah now I get the reason for that in the abcl sources! 19:21:19 wow, there's no way to get exactly two slashes in xchat 19:21:19 dto [n=user@pool-98-118-1-212.bstnma.fios.verizon.net] has joined #lisp 19:21:19 you could also use macrology 19:21:31 // foo 19:21:35 sure there is 19:21:41 \/\/ bar 19:21:43 at least it's two slashes for me 19:21:56 // baz 19:21:58 \/\/ ### cons 19:22:10 piso: nah, you say /// ### cons 19:22:16 just // foo works for me 19:22:17 rread_ [n=rread@c-98-234-219-222.hsd1.ca.comcast.net] has joined #lisp 19:22:22 one / escapes the following / 19:22:30 everything else is literal then 19:22:31 tmh pasted "Format Foo" at http://paste.lisp.org/display/86659 19:22:43 mathrick: yeah, so you'd need 4 to get 2, but that doesn' t work for me 19:22:54 piso: no, you need 3 19:23:08 trying 3: /// ### cons 19:23:08 -!- Davse_Bamse [n=davse@4306ds4-soeb.0.fullrate.dk] has quit ["leaving"] 19:23:09 did '// baz' look right above? that was only 2 / for me 19:23:12 only one escape 19:23:13 piso: That's kind of a hack, though. Do you use something like new Primitive in XCL, too? 19:23:15 -!- rread [n=rread@nat/sun/x-annkbgadecphzkym] has quit [Read error: 60 (Operation timed out)] 19:23:15 -!- rread_ is now known as rread 19:23:31 piso: heh, that's only the case at the beginning of the line 19:23:37 tcr: no, you don't need that in C++ 19:23:41 maybe it depends on your client, I'm in erc 19:23:57 might be 19:23:59 -!- merus [n=merus@c-67-175-45-120.hsd1.in.comcast.net] has quit ["Leaving"] 19:24:17 dacrawford: how do you make it produce one literal / at the beginning of line then? 19:24:17 // 19:24:22 / 19:24:36 / foo 19:24:53 ah '/bar' did unknown command' 19:24:55 in xchat it's simple, use one extra / to escape a /command 19:25:00 //bar 19:25:08 tcr: lots of hacks are still needed to set up the connection between symbols and their functions, however 19:25:12 / baz 19:25:30 #\/bar 19:25:30 i thought Lisp had lots of parenthesis, not slashes 19:25:46 not if you write it in C++! 19:25:47 pdenno [n=pdenno@208-58-10-214.c3-0.gth-ubr2.lnh-gth.md.cable.rcn.com] has joined #lisp 19:26:25 piso: I guess so. In case of ABCL, I thought of using the cpp to introduce a DEFUN macro which expands to new Primitive and adds __FILE__, and __LINE__ as last arguments 19:26:30 I've actually seem someone do a mix of macros and templates to make something like Lisp and then claim it was a good way to do it 19:26:43 What is the proper way to execute two commands in one block? 19:26:49 MrSmiley909: PROGN 19:26:58 put a space before the / 19:27:00 tcr: using cpp on Java source is cheating! 19:27:04 MrSmiley909: Your terminology is way off. What ressource do you use to learn Lisp from? 19:27:57 tcr: I'm learning it today. Kinda just googling things. 19:28:09 piso: You could get at the same information at runtime by Thread.getStackTrace(), but you can't abstract it away :) 19:28:17 minion: tell MrSmiley909 about pcl 19:28:17 (erc-cmd-QUOTE "/bar") 19:28:18 MrSmiley909: direct your attention towards pcl: pcl-book: "Practical Common Lisp", an introduction to Common Lisp by Peter Seibel, available at http://www.gigamonkeys.com/book/ and in dead-tree form from Apress (as of 11 April 2005). 19:28:18 minion: tell MrSmiley909 about PCL 19:28:40 MrSmiley909: Use that one. 19:28:41 successful lisp seems to be good too 19:28:50 what about winston and horn? 19:28:50 piso: *nod* what is odd is the ASNI-TESTS take 70% longer in compiled mode 19:28:58 http://www.psg.com/~dlamkins/sl/contents.html "Successful Lisp" 19:29:02 I like the that-dead-sexy-book minion keyword better 19:29:10 i hread the thrid edition uses ansi 19:29:26 piso: (load "doit.lsp") vs (load "compileit.lsp") 19:29:32 -!- rwiker [n=rwiker@73.84-48-40.nextgentel.com] has quit ["Leaving"] 19:29:33 Thanks! 19:29:36 ole4: that book is out of fashion for over a decade 19:29:36 seangrove [n=user@cpe-76-90-50-75.socal.res.rr.com] has joined #lisp 19:29:41 MrSmiley909, are you from the Inland Empire, just curious because of the 909 19:29:59 tcr: xcl's startup code launches a thread that processes the C++ source files and generates a tags file from them, which is used by ED (and slime-for-j) 19:30:02 but i should gfind a way to shave off the time invlved in compolking 19:30:13 DeusExPikachu: Nope 19:30:22 piso: Well, I actually did once start at writing an ETAGS parser in CL; for ECL. 19:30:34 piso: on every startup? 19:30:54 dacrawford: yeah, on every startup, but it's a separate thread, so it doesn' t really slow things down much 19:31:30 if you have more than one core 19:31:32 dmiles: abcl's compiler is pretty slow 19:32:08 stassats`: I got nothin' but cores here :) 19:32:24 tcr: what do you mean by "can't abstract it away"? 19:32:35 -!- ASau [n=user@83.69.240.52] has quit [Remote closed the connection] 19:33:18 mathrick: You can't make it create that information implicitly 19:33:35 piso: Uh, is there no way to involve the cpp? 19:34:03 piso: I found why you're using a variable for local functions in ABCL: you get recursiveness issues if you don't, because 2 functions can't refer recursively, it seems. 19:34:13 tcr: I don't know; the CL code to generate the tags file is trivial, so I never looked any further 19:34:31 ehu`: right 19:34:49 felideon [n=user@adsl-074-186-235-232.sip.bct.bellsouth.net] has joined #lisp 19:35:05 piso: and you probably wrote a parser for TAGS in Java for J years ago :) 19:35:06 just reading about objc's thread-local gc. it has new objects assumed thread local and move out into the general set when necessary, then the thread-gcs gc only their local objects w/o having to do sync with other threads 19:35:12 tcr: wouldn't it be implicit in the implementation of M-.? 19:35:38 hi, i have a question about code style: if you have a pair of equivalent functions, one of which takes a list of values as a single argument, and other of which takes them as a &rest parameter, is there any convention for naming the two functions? 19:35:39 tcr: j builds tag files for all source files on the fly as they are modified in the editor (using a separate thread, of course) 19:36:17 mathrick: M-. merely asks the implementation 19:36:41 macdice: why do you need a pair of such functions? 19:36:48 tcr: (I'm not sure that j's tags files are in the official tag file format, though) 19:36:50 tcr: sure, and xcl:find-source or whatever would do it, no? 19:37:17 mathrick: The discussion is about how to implement that for non-lisp internal functions 19:37:27 how to conveniently register the source information 19:37:32 ASau [n=user@83.69.240.52] has joined #lisp 19:37:40 well, then I'd do it with CPP 19:38:19 thom_ [n=thom@pool-173-51-164-80.lsanca.fios.verizon.net] has joined #lisp 19:38:19 make a DEFUN macro that registers the __FILE__ and __LINE__, then declares the actual function 19:38:24 stassats, well i find myself wanting to use certain functions in both ways quite often, and get sick of writing 'apply ...' to call a &rest-style function when i have a list, so i wanted to support bother styles explicitly, but i wondered if there was an established convention for naming such a pair of functions 19:38:35 s/bother/both/ 19:39:01 piso: I don't think there's an official format. It's just what etags / emacs does. It's sufficiently described in its wikipedia article. 19:39:02 well, you can call non-rest functions with (function (list args)) 19:39:13 sepult` [n=user@xdsl-87-78-72-90.netcologne.de] has joined #lisp 19:39:16 jcowan [n=jcowan@cpe-74-68-154-139.nyc.res.rr.com] has joined #lisp 19:39:25 piso: OTOH: 19:39:36 stassats`: more like (function args) 19:39:56 mathrick: no 19:40:08 the (list ) is when args is (func (list a1 a2 a3 ...)) 19:40:09 howso? ARGS is already a list 19:40:12 piso: If you process the source files at startup, there's no need to create a separate TAGS file, though. Just save off the filename/line number in some hash-table. 19:40:24 mathrick: who said that? see what dacrawford said 19:40:33 keithmantell [n=user@cpc2-sout4-0-0-cust13.sotn.cable.ntl.com] has joined #lisp 19:41:29 stassats`: you have &rest and non-&rest functions. The non-&rest variant takes a list. Thus to call it from the &rest version, you want to say (defun foo (&rest args) (foo-list args)) 19:41:37 -!- datou [n=datou@124.205.137.21] has quit [Read error: 60 (Operation timed out)] 19:42:09 (foo-list (list args)) is incorrect, as it will pack it into one extra level of listiness 19:42:15 macdice: Seems a bit bogus that you end up doing that so often. 19:42:30 mathrick: no, you misunderstood 19:42:36 mathrick: but when you are talking about direct calls, not the impl of foo 19:42:46 ah 19:42:47 mathrick: again, what dacrawford said 19:42:48 then yes 19:42:57 tcr: that's a good point. I think I might have originally written out the file for j's use, but I'm not sure j actually uses it any more. 19:43:20 It's been a long time since I've revisited that code. 19:43:22 mathrick: it was overloading on args-the-variable and args-the-specification-name 19:43:37 piso: If you do the slime-stream stuff, perhaps it's time to revisit it? :) 19:43:43 dacrawford: yeah 19:43:50 tcr: yeah, I'll take another look 19:44:09 piso: Cool. 19:44:30 newbie [n=kvirc@130.225.192.232] has joined #lisp 19:44:32 Your holidays don't include a flight to hamburg (eclm), do they? 19:44:42 no, just a drive to Las Vegas :) 19:45:03 hotel rooms are free this time of year 19:45:06 -!- ausente is now known as Homeless 19:45:29 huh, didn't know that 19:45:34 If I wish to compile a file that requires some nonstandard readtable syntax, does it suffice to say (eval-when :compile-toplevel (progn (setq *readtable* (copy-readtable *readtable*)) )) ? 19:45:35 jcowan, memo from Riastradh: After reviewing the R5RS and the R6RS, QUOTIENT and REMAINDER correspond with the TRUNCATE prefix, ? and MODULO correspond with the FLOOR prefix, DIV and MOD correspond with the EUCLIDEAN prefix, and I have never before seen DIV0 and MOD0. The CEILING prefix is not represented. 19:45:35 jcowan, memo from Riastradh: Moreover, now that I have my own mnemonics for these division operations, I have rendered myself thoroughly unable to remember what the mnemonically void names QUOTIENT ? DIV DIV0 and REMAINDER MODULO MOD MOD0 mean. 19:45:35 jcowan, memo from Riastradh: Here is a more complete, but still brief, summary of division operators, nicely laid out with easy definitions and important properties exhibited by the different operations: . 19:45:37 jcowan, memo from eli: No, there is no vendor lock-in with PLT, because "PLT" != "Scheme", "PLT Scheme" != "Scheme", and that's true for any other Scheme implementation since Scheme is undefined enough compared to CL, to the point that a CLer will claim that *any* implementation is a lock-in. 19:45:41 tcr: well maybe it's bogus. it's for a database interface, and i find myself wanting to write (execute db "INSERT ...blah... VALUES ($1, $2)" foo bar) in some places, but (execute-list db "INSERT ...blah... VALUES ($1, $2)" (something-that-generates-a-list-of-values-or-whatever)) quite often too 19:45:43 whoosh 19:45:51 tcr: well, not all hotel rooms... 19:46:02 -!- weirdo [n=sthalik@c142-5.icpnet.pl] has quit [Remote closed the connection] 19:46:07 minion about to get flood blocked lol 19:46:09 Sorry about all that. 19:46:30 It so happens that I didn't say anything on #scheme yet, and minion isn't smart enough to remember the channel. 19:46:47 manuel_ [n=manuel@gprs-inet-65-13.elisa.ee] has joined #lisp 19:46:52 -!- newbie [n=kvirc@130.225.192.232] has left #lisp 19:46:55 ruediger [n=the-rued@p508B695D.dip.t-dialin.net] has joined #lisp 19:47:09 jcowan: http://common-lisp.net/~trittweiler/named-readtables.html 19:48:22 ol3 [n=user@82.113.106.86] has joined #lisp 19:48:56 jcowan: Uh unfortunately, I yesterday broke the version in the darcs repository. I'll fix it tomorrow. But yeah, named-readtables is basically some sugar on top of what you wrote above. 19:49:37 tcr: when you break something, you break it _good_ lol 19:49:50 It's a nice API design. 19:50:37 -!- sepult [n=user@xdsl-87-78-128-235.netcologne.de] has quit [Nick collision from services.] 19:50:56 -!- sepult` is now known as sepult 19:51:06 Come to think of it, you can drop the PROGN. 19:52:35 -!- dto [n=user@pool-98-118-1-212.bstnma.fios.verizon.net] has quit [Remote closed the connection] 19:52:41 any reason why I can/ucw/etc/start.lisp? 19:52:47 I can't find* 19:52:56 i installed it with clbuild 19:52:57 jcowan: just :compile-toplevel is not enough, you need :execute, too. I'm not sure about :load-toplevel; my in-readtable does include it, too. I guess I thought about it and came to the conclusion that it's necessary. 19:53:00 -!- spilman [n=spilman@ARennes-552-1-36-251.w92-135.abo.wanadoo.fr] has quit ["Quitte"] 19:53:35 I thought I would only need :execute to make the syntax available at run time, which I don't want -- it's just a hack to compile the (somewhat) non-CL file. 19:54:22 what if you'd want to LOAD it? 19:54:26 jcowan: :EXECUTE is important for when you LOAD a .lisp file without having compile-filed it before 19:54:38 *jcowan* nods. 19:54:43 Yeah, that would be the general case. 19:54:49 -!- schoppenhauer [n=css@unaffiliated/schoppenhauer] has quit [] 19:55:01 doesn't LOAD also trigger :LOAD-TOPLEVEL? 19:55:10 No 19:55:11 on fasls 19:55:32 jcowan: You may need :load-toplevel for something like (defvar *foo* (get-macro-char #\()) 19:55:47 keithman` [n=user@cpc2-sout4-0-0-cust13.sotn.cable.ntl.com] has joined #lisp 19:56:02 -!- francogrex [n=franco@91.179.242.159] has quit ["Leaving"] 19:57:37 dacrawford: I'm totally to blame. A test suite is on my todo. I decided to release it as 0.9 without test suite. 19:58:50 metawilm [n=willem@kabel-9-126.kabel.netvisit.nl] has joined #lisp 20:00:07 -!- ole4 [n=user@82.113.121.151] has quit [Read error: 110 (Connection timed out)] 20:01:42 schoppenhauer [n=css@unaffiliated/schoppenhauer] has joined #lisp 20:06:55 tcr:Yesterday I asked about suppressing compiler output with script and you suggested posting to the ML. It's on sbcl-help and the final code was posted at http://redlinernotes.com/sbcl/ if you're curious. 20:07:31 -!- Odin- [n=sbkhh@s121-302.gardur.hi.is] has quit [] 20:09:38 redline6561: instead of make-string-output-stream use (make-broadcast-stream), that's the CL idiom for /dev/null 20:10:17 tcr: Awesome! Thanks. :) 20:10:23 -!- keithmantell [n=user@cpc2-sout4-0-0-cust13.sotn.cable.ntl.com] has quit [Read error: 110 (Connection timed out)] 20:11:05 and you should still probably wrap the (let (...) (require)) in an (:eval-when (:compile-toplevel :load-toplevel :execute) ...) 20:11:22 -!- ferada [n=user@e179235129.adsl.alicedsl.de] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 20:11:41 dto [n=user@pool-98-118-1-212.bstnma.fios.verizon.net] has joined #lisp 20:12:10 tcr: The only other thing that bugs me a little is that the only non-portable parts are the "script hacks". Except for maybe changing requires to (asdf:oos 'asdf:load-op ...) 20:12:17 tcr: Oh, well. 20:12:26 tcr: Why's that? 20:13:38 otherwise it will fail if compiled 20:14:04 stassats`: Aha. 20:14:27 stassats`: I'm not sure about that; afacs, he doesn't use any explicit package qualified, but :uses the packages 20:14:41 -!- _rey [n=ikke@igwe19.vub.ac.be] has quit [Read error: 113 (No route to host)] 20:15:03 tcr: But wrap it anyway just in case? 20:15:23 -!- hyperboreean [n=none@unaffiliated/hyperboreean] has quit [Remote closed the connection] 20:15:37 -!- PissedNumlock [n=resteven@igwe19.vub.ac.be] has quit [Read error: 113 (No route to host)] 20:16:08 tcr: can fail too 20:17:25 stassats`: Of course, it'll fail regardless because of the shebang line if I try to compile it...I suppose there's no way to sanely wrap that? 20:18:16 hyperboreean [n=none@unaffiliated/hyperboreean] has joined #lisp 20:22:06 -!- thom_ [n=thom@pool-173-51-164-80.lsanca.fios.verizon.net] has quit ["This computer has gone to sleep"] 20:24:09 -!- ikki [n=ikki@189.139.217.193] has quit [Remote closed the connection] 20:25:46 dacrawford: I think I'll get rid of the conditionals, just as your patch does. 20:25:50 ikki [n=ikki@189.139.217.193] has joined #lisp 20:26:36 People must be cautious wrt the order of merging anyway. If they want maximum control, they should use (:SYNTAX-FROM). 20:26:41 -!- Homeless [n=user5442@189-19-118-137.dsl.telesp.net.br] has quit ["EJECT"] 20:26:44 Odin- [n=sbkhh@s121-302.gardur.hi.is] has joined #lisp 20:27:36 nvoorhies [n=nvoorhie@adsl-75-36-204-63.dsl.pltn13.sbcglobal.net] has joined #lisp 20:30:08 sad0ur [n=sad0ur@psi.cz] has joined #lisp 20:30:34 jgracin [n=jgracin@vipnet114-83.mobile.CARNet.hr] has joined #lisp 20:31:14 -!- ve [n=a@94-193-95-252.zone7.bethere.co.uk] has quit [Read error: 110 (Connection timed out)] 20:32:22 -!- keithman` [n=user@cpc2-sout4-0-0-cust13.sotn.cable.ntl.com] has quit [Read error: 110 (Connection timed out)] 20:32:29 -!- angerman [n=angerman@host41.natpool.mwn.de] has quit [] 20:32:31 -!- ia [n=ia@89.169.161.244] has quit [Read error: 60 (Operation timed out)] 20:32:54 tcr: Thanks again for the help yesterday. Later. 20:33:03 -!- redline6561 [n=redline@c-66-56-16-250.hsd1.ga.comcast.net] has quit ["Leaving."] 20:36:08 fisxoj [n=fisxoj@149.43.116.8] has joined #lisp 20:36:42 -!- ol3 [n=user@82.113.106.86] has quit [Read error: 110 (Connection timed out)] 20:38:08 Does someone know of an extended version of FORMAT with added directives? 20:38:55 thom_logn [n=thom@pool-173-51-164-80.lsanca.fios.verizon.net] has joined #lisp 20:38:56 clhs 22.3.5.4 20:38:57 http://www.lispworks.com/reference/HyperSpec/Body/22_ced.htm 20:39:45 stassats`: Yes, that might do the trick. Thanks. 20:42:06 -!- legumbre [n=user@r190-135-36-229.dialup.adsl.anteldata.net.uy] has quit [Read error: 104 (Connection reset by peer)] 20:43:03 -!- pdenno [n=pdenno@208-58-10-214.c3-0.gth-ubr2.lnh-gth.md.cable.rcn.com] has quit [Read error: 60 (Operation timed out)] 20:45:04 ia [n=ia@89.169.161.244] has joined #lisp 20:45:38 -!- postamar [n=postamar@x-132-204-255-106.xtpr.umontreal.ca] has quit [] 20:46:27 -!- dys` is now known as dys 20:46:37 -!- jgracin [n=jgracin@vipnet114-83.mobile.CARNet.hr] has quit [Remote closed the connection] 20:51:23 -!- Ginei_Morioka [i=irssi_lo@78.112.71.223] has quit [Nick collision from services.] 20:51:30 Ginei_Morioka [i=irssi_lo@78.112.71.223] has joined #lisp 20:52:40 -!- Davidbrcz [n=david@212-198-78-230.rev.numericable.fr] has quit [Client Quit] 20:53:11 manuel___ [n=manuel@gprs-inet-65-14.elisa.ee] has joined #lisp 20:54:07 Bah, no joy. 20:55:01 -!- prip_ [n=_prip@host185-130-dynamic.42-79-r.retail.telecomitalia.it] has quit [Read error: 60 (Operation timed out)] 20:55:03 kickaha [n=user@89.214.143.196] has joined #lisp 20:55:44 prip [n=_prip@host185-130-dynamic.42-79-r.retail.telecomitalia.it] has joined #lisp 20:56:11 What do you want exactly? 20:56:41 dralston [n=dralston@S010600212986cca8.va.shawcable.net] has joined #lisp 20:57:57 Something like (delimit destination delimiter "Commas~!~{~!~A~}~%" list-of-stuff) where ~! is replaced by the delimiter. 20:58:17 ~! is just for the example, although I'm thinking of using it as the directive. 20:59:14 That's actually the signature for the function I'm going to write. I was initially trying to do it with FORMAT directives, but I think it will work better to write a wrapper function. 20:59:41 mhuber [n=huber@ppp-93-104-36-90.dynamic.mnet-online.de] has joined #lisp 21:00:41 -!- mhuber [n=huber@ppp-93-104-36-90.dynamic.mnet-online.de] has left #lisp 21:02:36 -!- metawilm [n=willem@kabel-9-126.kabel.netvisit.nl] has quit [] 21:03:24 -!- manuel_ [n=manuel@gprs-inet-65-13.elisa.ee] has quit [Read error: 110 (Connection timed out)] 21:03:51 You probably forgot a ~^ in that format string 21:04:39 in haskell's pretty-printing library such a function is called `punctuate' (for adding the delimeter at the end), and `accentuate' (for adding the delimeter at the beginning) 21:05:14 Edward_ [n=Ed@AAubervilliers-154-1-29-157.w90-3.abo.wanadoo.fr] has joined #lisp 21:06:01 tcr: I don't see where I forgot the ~^ 21:06:17 -!- felideon [n=user@adsl-074-186-235-232.sip.bct.bellsouth.net] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 21:06:28 -!- fisxoj [n=fisxoj@149.43.116.8] has quit ["Ex-Chat"] 21:07:57 You can write a function which you could call by ~';/DELIMIT/, remember that you have to quote character parameters with a quote character in format strings 21:08:05 -!- gilberth [n=gilbert@d076128.adsl.hansenet.de] has quit ["Leaving"] 21:08:26 (defun delimit (stream list &optional colon? at-sign? delimiter) ...) 21:09:57 Ok, I didn't realize that I could pass anything beyond the 4 arguments to a function call in the control string. 21:10:31 -!- Nshag [i=user@Mix-Orleans-106-3-25.w193-248.abo.wanadoo.fr] has quit [Remote closed the connection] 21:10:53 But, that still doesn't solve my problem, the delimiter is specified in the control string, I want it to be an argument. 21:10:57 -!- Odin- [n=sbkhh@s121-302.gardur.hi.is] has quit ["Am I missing an eyebrow?"] 21:11:05 how would it be different from just putting ;? 21:11:29 Odin- [n=sbkhh@s121-302.gardur.hi.is] has joined #lisp 21:11:38 you could do V, but the problem is with arguments inside ~{~} 21:11:53 I was playing with that -> (format t "~?~%" (concatenate 'string "~{" '(#\,) "~A~}") '((1 2 3 4 5))) 21:12:17 Which could be (format t "~?~%" (concatenate 'string "~{" (list delimiter) "~A~}") '((1 2 3 4 5))) 21:13:44 stassats`: That's exactly the problem and why I think I need a wrapper function to generate the control string. 21:15:18 laynor [n=laynor@93.107.215.0] has joined #lisp 21:15:39 is there a way to ask the lisp environment if a variable is special? 21:15:54 cltl2:variable-information 21:15:54 http://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node102.html 21:15:56 tmh: so use ~v/DELIM/ 21:16:34 stassats`: great, thanks :) 21:16:56 the next question would be: "where to get cltl2?" 21:17:26 sbcl has variable-information function in sb-cltl2 contrib, CCL has it in the CCL package 21:17:41 ^^ 21:17:53 so, it's not standard 21:19:05 stassats`: no problem for that, I'm just exploring the semantics of the language :) 21:19:16 -!- kickaha [n=user@89.214.143.196] has quit [Remote closed the connection] 21:19:41 ve [n=a@94-193-95-252.zone7.bethere.co.uk] has joined #lisp 21:20:14 laynor: the actual ANSI standard which specifies the language ANSI Common Lisp does not include variable-information 21:20:22 But it was in CLtL2? 21:20:28 it was 21:20:31 laynor: So you're actually exploring the semantics of a particular implementation 21:21:15 well, special variables, on other hand, are part of ANSI CL 21:21:22 i think, laynor is exploring them 21:21:32 stassats` is right :) 21:21:45 and the global environment too 21:21:48 Yeah stupid me for not looking at the context 21:22:05 tcr: I'm particularly dense today, but I can't find ~v/name/ in any documentation. 21:22:17 clhs ~v 21:22:17 http://www.lispworks.com/reference/HyperSpec/Body/22_c.htm 21:22:45 tmh: 22.3, ninth paragraph 21:23:21 but it still won't help with ~{ 21:24:15 He should replace the ~{~} by a call to ~v/FOO::DELIM/ 21:25:47 -!- tcr [n=tcr@host146.natpool.mwn.de] has quit ["Leaving."] 21:25:52 -!- ehu` [n=chatzill@82-170-33-173.ip.telfort.nl] has quit [Read error: 104 (Connection reset by peer)] 21:28:44 by the way, let and friends are the only way to define bindings in a lexical environment right? is there anything like a (defsomething a b) that operates on the inner environment? ex. (progn (let () (defsomething a 10)) a) <- a unbound 21:29:16 -!- OmniMancer [n=OmniManc@122-57-9-204.jetstream.xtra.co.nz] has quit ["Leaving."] 21:29:58 no, there isn't such thing 21:30:09 legumbre [n=user@r190-135-29-251.dialup.adsl.anteldata.net.uy] has joined #lisp 21:30:55 Demosthenex [n=demo@206.180.154.148.adsl.hal-pc.org] has joined #lisp 21:31:34 stassats`: it would make semantics kind of strange I think. 21:31:35 -!- Demosthenes [n=demo@206.180.154.148.adsl.hal-pc.org] has quit [Read error: 60 (Operation timed out)] 21:32:23 every environment would behave kind of like the global environment 21:32:50 well, i don't think semantics would be different, just syntax 21:33:22 laynor: scheme's define works like this 21:33:45 only in the beginning of the variable introducing forms 21:34:04 -!- manuel___ [n=manuel@gprs-inet-65-14.elisa.ee] has quit [Connection timed out] 21:34:23 or rather environment introducing 21:35:24 Any use of non-top-level DEFINE can be explained in terms of FLET, or rather FLET*. 21:35:44 I doubt it 21:35:47 michaelw: i'm not a scheme hacker, but I was trying half an hour ago, and it seems define forms must all be at the top of the let form, and can't happen in the middle 21:36:04 (because the top-level defines still have their own bindings in scope, don't they? They can self-recurse) 21:36:19 r5rs define 21:36:19 http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-8.html#%_idx_190 21:36:21 -!- ve [n=a@94-193-95-252.zone7.bethere.co.uk] has quit [Connection timed out] 21:36:38 pkhuong [n=pkhuong@173.176.100.238] has joined #lisp 21:36:51 doesn't SICP discuss this? 21:37:06 -!- pkhuong is now known as Guest92027 21:37:16 "Definitions may occur at the beginning of a (that is, the body of a lambda, let, let*, letrec, let-syntax, or letrec-syntax expression or that of a definition of an appropriate form)." 21:38:17 laynor: Quite right. 21:38:28 ole1 [n=user@82.113.121.144] has joined #lisp 21:38:43 Krystof: Right, I should have said LABELS, except not quite. 21:40:17 In Scheme, at least, letrec right-sides can be evaluated in any order, whereas letrec* right-sides must be evaluated in LTR order. 21:40:25 So I guess that is LABELS at that. 21:41:16 letrec* ((a ...) (b ...)) ...) is (letrec ((a ...)) (letrec ((b ...)) ...), as similarly for LET* vs LET. 21:42:07 So in a letrec you can refer to the other names being bound, but you cannot invoke them; in a letrec* you can. 21:42:45 -!- Athas [n=athas@192.38.109.188] has quit [Remote closed the connection] 21:42:45 -!- Guest92027 is now known as pkhuong 21:43:08 it's quite different still..(assuming lisp1) (let () (def f (lambda (x) (+ x a))) (print "gianni") (def a 5) (f 5)) what should it do? a proper closure should say a is undefined, but that would mean enclosing an actual copy of the enviornment instead of using a reference to it.. mhm 21:43:12 ignotus [n=ignotus@unaffiliated/ignotus] has joined #lisp 21:43:18 is letrec* part of r6rs? 21:43:41 ok, so i'm stuck. this is architectural... given a file format that has changed repeatedly (20 versions), but successive formats only ADD new information, and multiple formats that have to be coordinated together as a set by version, should i top-down create an object to model that revision and make it go read the data it needs, or bottom up read all files and do event driven parsing into objects? this is in terms of maintenance and long t 21:43:47 stassats`: It is. 21:44:05 hi, I get the following error from cffi: "The value :POINTER is not of type (SIGNED-BYTE 32)." why is that? I try to call a verronazo generated function, it has :pointer declared as return type 21:44:09 because r5rs doesn't have it 21:44:30 R5RS letrec is ambiguous between R6RS letrec and R6RS letrec*. 21:44:38 Implementations may do either. 21:46:13 -!- nvoorhies [n=nvoorhie@adsl-75-36-204-63.dsl.pltn13.sbcglobal.net] has quit [] 21:47:19 laynor: The behavior is undefined by R5RS, because you have used DEFINE in an invalid place. 21:47:45 jcowan: yeah, I'm not talking about scheme indeed :) 21:48:23 -!- dralston [n=dralston@S010600212986cca8.va.shawcable.net] has quit ["Leaving"] 21:48:25 jcowan: I'm implementing a lisp interpreter to explore lisp's semantics and meanwhile refresh C++ for a technical test 21:48:27 jcowan: your translation above doesn't reflect the semantics of letrec*. 21:49:30 pkhuong: You're right, it doesn't. My grasp of the subject is feeble, I confess. 21:50:02 laynor: I tried 4 schemes, and got one that treats the stray DEFINE as top-level, one that treats it as local, and two more that report syntax errors. 21:50:09 -!- ruediger [n=the-rued@p508B695D.dip.t-dialin.net] has quit ["This computer has gone to sleep"] 21:50:12 s/schemes/Schemes 21:50:54 jcowan: I just have one scheme implementation installed :) 21:51:19 plt, and I only tried the r5rs language 21:51:58 letrec* basically ensures that the only way to implement the full semantics is through assignment (great for static analyses and compilation). 21:52:15 if I have &rest in a foreign functions arglist, how am I supposed to provide the parameters when calling that function? I mean, simply (foo 1 2 3) can't be good because the ffi can't know the types of the parameters, hmm 21:53:29 -!- tessier [n=treed@kernel-panic/sex-machines] has quit [Read error: 104 (Connection reset by peer)] 22:00:04 OmniMancer [n=OmniManc@202.36.179.65] has joined #lisp 22:00:27 -!- ramus`_ [n=ramus@99.23.140.245] has quit [Read error: 104 (Connection reset by peer)] 22:00:45 -!- KatrinaTheLamia [n=root@S0106001cdfcd44c1.ed.shawcable.net] has quit [Read error: 60 (Operation timed out)] 22:01:20 KatrinaTheLamia [n=root@S0106001cdfcd44c1.ed.shawcable.net] has joined #lisp 22:02:20 -!- mishoo [n=mishoo@86-124-78-239.iasi.cablelink.ro] has quit [Read error: 110 (Connection timed out)] 22:02:41 merus [n=merus@c-67-175-45-120.hsd1.in.comcast.net] has joined #lisp 22:02:49 -!- Edico [n=Edico@unaffiliated/edico] has quit ["Ex-Chat"] 22:02:51 ramus` [n=ramus@adsl-99-23-147-8.dsl.chcgil.sbcglobal.net] has joined #lisp 22:06:17 -!- KatrinaTheLamia [n=root@S0106001cdfcd44c1.ed.shawcable.net] has quit [Read error: 131 (Connection reset by peer)] 22:06:34 how different is SBCL from CMUCL? 22:06:47 KatrinaTheLamia [n=root@S0106001cdfcd44c1.ed.shawcable.net] has joined #lisp 22:07:43 Homeless [n=user5442@189-19-118-137.dsl.telesp.net.br] has joined #lisp 22:08:27 in what units do you measure difference? 22:08:30 -!- KatrinaTheLamia [n=root@S0106001cdfcd44c1.ed.shawcable.net] has quit [Read error: 104 (Connection reset by peer)] 22:08:41 what differences does it have 22:08:53 seisatsu [n=seisatsu@adsl-63-198-106-143.dsl.snfc21.pacbell.net] has joined #lisp 22:09:04 -!- ignotus [n=ignotus@unaffiliated/ignotus] has left #lisp 22:09:42 -!- macdice [n=user@78-86-162-220.zone2.bethere.co.uk] has quit ["dormir"] 22:09:43 Homeless2 [n=user5442@189-19-118-137.dsl.telesp.net.br] has joined #lisp 22:09:43 SBCL is sanely bootstrappable 22:10:00 and CMUCL? 22:10:09 insanely 22:10:12 -!- Homeless2 [n=user5442@189-19-118-137.dsl.telesp.net.br] has quit [Success] 22:10:15 weirdo [n=sthalik@c142-5.icpnet.pl] has joined #lisp 22:10:20 SBCL has native threads, and so on. 22:10:41 so on? 22:11:02 and so on, yes 22:11:04 And many others which no one can be bothered to mention. 22:11:18 http://common-lisp.net/~dlw/LispSurvey.html 22:11:20 What is more, changes are usually not ported from one to the other. 22:11:36 *jcowan* adds this to his Canonical List of Permanent Open Source Forks 22:11:48 -!- fiveop [n=fiveop@g229110179.adsl.alicedsl.de] has quit ["humhum"] 22:13:15 -!- Demosthenex [n=demo@206.180.154.148.adsl.hal-pc.org] has quit ["leaving"] 22:13:41 OmniMancer: the sbcl project started 10 years ago and has gotten a lot of developer attention. threads, unicode, OS/hardware platforms and many other things have been added, and few of these changes have made the jump back to cmucl 22:13:56 mostly because there are so few people taking care of cmucl these days 22:14:13 ah 22:14:24 cmucl has some development lines that sbcl hasn't followed, too 22:14:25 and also because a 10-year development history following a huge refactoring of the source code tends to leave a few incompatibilities (: 22:14:27 doubledouble floats 22:14:48 Is cmucl in its death throes? 22:14:50 no 22:14:59 What about GNU CL? 22:15:02 also no 22:15:15 they never quite die :P 22:15:39 *Krystof* wins: working OUTPUT-REPLACEMENT and INPUT-REPLACEMENT restarts for fd-stream decoding errors 22:17:02 -!- Homeless is now known as ausente 22:17:18 redline6561 [n=redline@c-66-56-16-250.hsd1.ga.comcast.net] has joined #lisp 22:17:26 Krystof: better just name both replace-char or something similar, since those two conditions are exclusive 22:18:09 they are exclusive for a single operation but not for a sequence of stream operations 22:18:18 streams can be bidirectional 22:18:28 what is the minimum specs needed for SBCL to run? 22:18:54 also, I say "working" and "wins" but of course this is fd-streams we're talking about 22:18:58 KatrinaTheLamia [n=root@S0106001cdfcd44c1.ed.shawcable.net] has joined #lisp 22:19:03 Demosthenes [n=demo@206.180.154.148.adsl.hal-pc.org] has joined #lisp 22:19:14 Assuming x86, 486 class and ~128-256 MB RAM, I guess? 22:19:26 not x86? 22:19:52 I've run sbcl on a mid-90s parisc with 32MB RAM 22:19:59 -!- Soulman [n=kvirc@154.80-202-254.nextgentel.com] has quit [Read error: 110 (Connection timed out)] 22:20:00 admittedly, I wouldn't want to do that again 22:20:08 would it be infeasible to attempt to turn SBCL into a cross compiler? 22:20:14 no 22:20:29 OmniMancer: it already is, to bootstrap itself. 22:20:50 would it be infeasible to attempt to get it to run on something with 4kbytes of ram? 22:20:52 I've built on an E4500, for an even less useful data point. 22:20:53 Krystof: in a sequence of stream ops, you can distinguish those two cases by signaling different error conditions 22:20:57 OmniMancer: yes. 22:20:58 OmniMancer: yes 22:21:25 fe[nl]ix: that's true, but why do you then want the same-named restart? 22:21:26 I don't think you can even fit all the symbols in CL inside 4 KB. 22:21:36 -!- ASau [n=user@83.69.240.52] has quit [Remote closed the connection] 22:21:46 you would need to dispense with certain pleasantries 22:21:47 ASau [n=user@83.69.240.52] has joined #lisp 22:21:47 pkhuong: in a compressed trie, maybe? 22:22:04 possibly even dispense with stuff like eval... 22:22:15 the longer names are the first to go 22:22:17 ILTWYS"possibly" 22:22:18 -!- KatrinaTheLamia [n=root@S0106001cdfcd44c1.ed.shawcable.net] has quit [Read error: 104 (Connection reset by peer)] 22:22:24 so no update-instance-for-redefined-class 22:22:34 *jcowan* finally realizes that "sudo apt-get install gcl" does not install GCL. 22:22:49 has there ever been a lisp compiler written in forth? 22:23:10 Krystof: just my usual past-midnight bikeshedding :D 22:24:49 antifuchs: that'd be quite the compression factor. 11.3k chars 22:25:15 turn all symbols into addresses? 22:25:50 pkhuong: ok, that's nice. 22:26:02 1% of the RAM available in my first PC (: 22:27:22 OmniMancer: I think without a major miracle, no full (or even reduced) CL will fit into memory this small. /maybe/ an embeddable scheme will 22:27:34 pkhuong: um, isn't that easy? You only need 5 bits per character for CL symbol names :-) 22:27:47 why? 22:28:29 Krystof: careful, once you get 5-bit characters, memory vendors may start adjusting their scale (-: 22:29:22 Krystof: that's still a bit more than 4KB ;) With a compressed trie, you need 12 bits for the linkage, and 5 for the character. 17 bits * 978 symbols is ~2KB, and that's a pretty generous lower bound. 22:29:29 -!- Odin- [n=sbkhh@s121-302.gardur.hi.is] has quit [Read error: 54 (Connection reset by peer)] 22:29:40 I thought that there was 96 characters in BASE-CHARACTER... 22:29:57 OmniMancer: there are 978 symbols in CL. how large are your addresses? 22:30:04 Odin- [n=sbkhh@s121-302.gardur.hi.is] has joined #lisp 22:30:15 KatrinaTheLamia [n=root@S0106001cdfcd44c1.ed.shawcable.net] has joined #lisp 22:30:26 That said you can always define a subset of CL. 22:30:29 OmniMancer: CL was never designed to run on small systems. Even in the 80s, it only ran on relatively expensive workstations. 22:30:42 pjb: probably simpler to define a superset of r4rs. 22:30:50 you can run it on your relatively expensive phone nowadays 22:30:50 bzip2 manages 4202 bytes 22:31:01 but no word yet on inexpensive ones (: 22:31:02 eno__ [n=eno@adsl-70-137-171-124.dsl.snfc21.sbcglobal.net] has joined #lisp 22:31:08 pkhuong: the point of defining a subset, is that you can easily use CL implementations as development environment. 22:31:11 -!- eno [n=eno@nslu2-linux/eno] has quit [Read error: 60 (Operation timed out)] 22:31:32 anyway, does anyone other than me care about these nifty fd-streams restarts, or is everyone using tower-of-babel stream layers these days? 22:31:50 pjb: STANDARD-CHAR is a set of 96 chars 22:31:55 Krystof: I only do ASCII IO (: 22:31:59 Krystof: nope, that's pretty neat 22:32:26 antifuchs: right, I mixed it with base-character. Thanks. 22:32:51 ofcourse the 4k of ram type things won't have keyboards attached :P 22:33:06 so actual development things on them is kinda pointless 22:33:30 My first computer had a keyboard and only 1K of RAM. 22:33:43 Was it pointless? 22:33:49 OmniMancer: indeed. so why did you want a language that's extremely well-suited for interactive development again? (: 22:33:55 -!- sbahra [n=sbahra@c-68-34-110-14.hsd1.dc.comcast.net] has quit [Read error: 110 (Connection timed out)] 22:34:01 I am not talking about first computers 22:34:07 pjb: with a superset, you can easily use a scheme implementation as a development environment. I expect most the extensions will be for IO or convenience definitions. Worked well for PICOBIT. 22:34:07 ;-) 22:34:07 because is a nice language... 22:34:08 OmniMancer: Rees was running Scheme on small robots, with interactive development 22:34:23 right. 22:34:38 pkhuong: but a superset requires more work to implement than a subset. 22:34:54 scheme is probably better for microcontrollers then 22:35:09 -!- redline6561 [n=redline@c-66-56-16-250.hsd1.ga.comcast.net] has quit [Client Quit] 22:35:25 also, you need just a couple of forth words to get an interactive development environment over a serial line 22:36:06 (eq :forth :common-lisp) => nil 22:36:25 (equalp forth common-lisp) => nil 22:36:50 pkhuong: (defpackage :subset (:use) (:import-from :cl :car :cdr :cons :lambda :cond :null :nil)) is all you have to write to get a subset... (in-package :subset) #|have fun|# 22:37:02 *jcowan* builds gcl from source 22:37:21 pjb: a subset requires more thinking than a superset to get things right. The work for the superset will have to be done for actual deployment anyway, and using a superset completely eliminates the possibility of using (directly or indirectly) a construct that isn't supported. 22:38:03 Pfui. It won't even compile. 22:38:07 of course streams and file IO are not particularly useful on something with no filesystem 22:39:00 antifuchs: if I've done things right, http://common-lisp.net/~crhodes/tmp/sbcl contains a git repository with an external-formats branch 22:39:07 Joreji_ [n=thomas@43-078.eduroam.RWTH-Aachen.DE] has joined #lisp 22:39:16 night night 22:39:24 -!- Joreji [n=thomas@43-078.eduroam.RWTH-Aachen.DE] has quit [Read error: 104 (Connection reset by peer)] 22:39:35 you need to run git-update-server-info (: 22:39:49 no, I just did that 22:40:02 maybe my git is too old 22:40:08 will check out tomorrow 22:40:13 good night (: 22:40:34 Krystof: put it into public_html/git/ 22:41:14 Krystof: I get the same update-server-info error 22:42:23 how much is needed for a scheme? 22:42:51 and is it bad to want to talk about scheme in the #lisp channel? 22:43:11 there is #scheme 22:43:59 why does scheme have the requirement of tail call optimisation? 22:45:17 that's a #scheme question 22:45:18 OmniMancer: it's much friendlier to tree shaking (since it doesn't have as much standardised support for introspection and interactive development) and doesn't include heavy stuff like CLOS or TYPEP. I've seen small programs compile down to a couple dozen bytes of bytecode + a 1-2K runtime. 22:46:40 why the tail call opt requirement though? 22:47:11 -!- Adamant [n=Adamant@unaffiliated/adamant] has quit [] 22:48:07 OmniMancer: to answer you, because tail calls are a fundamental part of the language semantics (LAMBDA = RENAME + GOTO) and not an optimization. 22:49:03 does anyone have any idea what the kitten of death quote thing on the windows sbcl? 22:50:02 OmniMancer: you're missing a verb. I'll assume that verb is "means". The win32 port is still fairly unstable/incomplete in some corners. 22:50:22 yes it was means 22:50:25 sorry 22:51:06 -!- davazp [n=user@56.Red-79-153-148.dynamicIP.rima-tde.net] has quit [Remote closed the connection] 22:51:47 Just to throw it out there: I've started work on an api for sphinx search for CL, repo here: http://github.com/thijs/cl-sphinx-search/ 22:52:28 still very early, and a rather 1-on-1 port of the perl api from cpan. Still missing a lot of functionality, but at least I got some results out of it with my trivial test database... 22:52:37 is there any readable tiny scheme thing that I could read to learn from? 22:52:50 and now, off to bed 22:53:19 OmniMancer: #scheme might know this better 22:53:39 OmniMancer: Teach Yourself Scheme In Fixnum Days is quite good: http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme.html 22:54:25 OmniMancer: foof's chibi-scheme is pretty clean (but also young) 22:54:38 gah, wrong window 22:55:22 thijso: nice! sphinx = <3. 22:57:54 -!- Krystof [n=csr21@84-51-132-95.christ977.adsl.metronet.co.uk] has quit [Read error: 113 (No route to host)] 22:59:23 ltriant [n=ltriant@lithium.mailguard.com.au] has joined #lisp 23:00:20 fixnums can get pretty big... 23:00:56 also scheme is usually the lisp used as an embedded scripting engine? 23:02:52 Adamant [n=Adamant@c-68-51-134-164.hsd1.ga.comcast.net] has joined #lisp 23:03:01 -!- lispm [n=joswig@g224121125.adsl.alicedsl.de] has quit [Read error: 110 (Connection timed out)] 23:03:50 -!- Geralt [n=Geralt@unaffiliated/thegeralt] has quit [Read error: 110 (Connection timed out)] 23:04:32 OmniMancer: (expt 2 60) is not that big any more... :) 23:05:12 but (expt 2 60) days is a loooong time... 23:05:41 recently, we had to introduce bignums to count states in a C-based tool, ULL was overflowing :) 23:05:59 lol 23:06:22 is there a group theory package I can use in CL? 23:06:28 Greenspun's Tenth Law rulez 23:11:12 -!- carlocci [n=nes@93.37.222.23] has quit [Read error: 54 (Connection reset by peer)] 23:13:08 carlocci [n=nes@93.37.222.23] has joined #lisp 23:13:17 -!- MrSmiley909 [n=Mr@r37h66.res.gatech.edu] has quit ["If you can't laugh at yourself, make fun of other people."] 23:16:04 -!- cschreiner [n=cp@cm-84.209.69.164.getinternet.no] has quit [] 23:18:47 -!- nha [n=prefect@17-70.61-188.cust.bluewin.ch] has quit ["Privacy rights are not to protect you from the government you know, they're to protect you from the future government you don] 23:21:19 Or from the government employees you don't know. 23:21:50 I don't think I've ever seen a for loop like this in CL before: (do ((i 0 (+ i 1)) (n (length some-list)) p) ((= i n)) (setq p (nth i some-list)) ...) 23:23:31 ugh 23:25:45 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has quit [Remote closed the connection] 23:25:51 sellout: wtf? 23:25:52 -!- Edward_ [n=Ed@AAubervilliers-154-1-29-157.w90-3.abo.wanadoo.fr] has quit ["L'oignon fait la farce."] 23:26:56 pkhuong: I dunno, man. It's crazy. I only found it because it had a bug that led to an infinite loop if a particular branch was taken. 23:27:28 ruediger [n=the-rued@p508B695D.dip.t-dialin.net] has joined #lisp 23:27:39 no wonder it had a bug 23:43:16 Is there something like a conditional LET in LISP? 23:43:59 no 23:44:32 -!- pixel5 [n=pixel@copei.de] has quit ["Lost terminal"] 23:44:38 :/ 23:45:16 what's a conditional let? 23:45:37 IF-LET and similar macros are common, but you might mean something else 23:46:34 Well i mean something like (let ((k ()) 23:46:53 slash_: that's called OR. 23:46:53 OR? 23:46:54 clhs or 23:46:55 http://www.lispworks.com/reference/HyperSpec/Body/a_or.htm 23:47:02 yea 23:47:32 (let ((k (or (maybe-true) (also-maybe-true))) ..) 23:47:34 (let (k (or thing1 thing2 thing3 thing4 ...)) body :D) 23:47:41 doh' 23:48:13 -!- mrSpec [n=Spec@unaffiliated/mrspec] has quit [] 23:48:34 -!- Yuuhi [i=benni@p5483F49B.dip.t-dialin.net] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 23:50:50 dwh [n=dwh@eth2.vic.adsl.internode.on.net] has joined #lisp 23:51:39 -!- seangrove [n=user@cpe-76-90-50-75.socal.res.rr.com] has quit [Read error: 110 (Connection timed out)] 23:51:55 -!- OmniMancer [n=OmniManc@202.36.179.65] has quit ["Leaving."] 23:57:11 Adlai` [n=adlai@unaffiliated/adlai] has joined #lisp 23:59:24 kpreid_ [n=kpreid@216-171-189-244.northland.net] has joined #lisp 23:59:24 -!- kpreid [n=kpreid@216-171-189-244.northland.net] has quit [Read error: 104 (Connection reset by peer)]