00:00:17 You'd need to either manipulate the stack pointer within the VOP, or have :TEMPORARY parameters allocated for your stack slots. But, as I said, you should be able to do this (most) operations in the register set anyway. 00:01:15 ok. thanks. I'll take your sugegstions and continue on it tomorrow (getting late) 00:01:28 Imagine that you have no stack slots, and the only registers available are called "START", "END", and "C". You should still be able to write code to produce the result you want. 00:01:36 Fair enough. Sleep well. 00:01:53 mimi [~mimi@94-225-197-41.access.telenet.be] has joined #lisp 00:01:58 thanks. see you all tomorrow 00:02:37 -!- Modius [~Modius@cpe-70-123-158-125.austin.res.rr.com] has quit [Quit: "Object-oriented design" is an oxymoron] 00:03:14 -!- mrSpec [~Spec@unaffiliated/mrspec] has quit [Quit: mrSpec] 00:03:55 pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #lisp 00:04:15 -!- francogrex [~user@109.130.63.178] has quit [Quit: ERC Version 5.2 (IRC client for Emacs)] 00:04:50 pdelgallego_ [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #lisp 00:04:52 mephisto_ [~mephisto@ka-v834-130-63-4-230.airyork.yorku.ca] has joined #lisp 00:08:31 -!- rgrau [~user@62.Red-88-2-20.staticIP.rima-tde.net] has quit [Remote host closed the connection] 00:14:50 -!- mattrepl [~mattrepl@208.87.61.212] has quit [Ping timeout: 240 seconds] 00:14:50 -!- billstclair [~billstcla@unaffiliated/billstclair] has quit [Quit: Ex-Chat] 00:15:30 -!- gemelen [~shelta@shpd-95-53-161-228.static.vologda.ru] has quit [Ping timeout: 240 seconds] 00:16:16 -!- az [~az@p4FE4F8A2.dip.t-dialin.net] has quit [Ping timeout: 272 seconds] 00:16:52 dto1 [~dto@pool-96-252-62-25.bstnma.fios.verizon.net] has joined #lisp 00:19:37 -!- RaceCondition [~RaceCondi@82.131.61.203.cable.starman.ee] has quit [Quit: Computer has gone to sleep] 00:19:59 *Saturnation* wonders how hard it would be (or more exactly, how much effort would be involved) in developing a cross platform app with Lisp and GTK 00:20:37 Most Lisps are fairly cross platform and GTK runs on a variety of operating systems 00:20:52 I am determined to give it a go :) 00:20:53 So I'd think there's no special effort for the portability involved 00:21:16 The main thing for me would be to develop a cross platform automated build using Lisp 00:21:25 *Saturnation* is installing virtual box now... 00:22:14 Wakko10Warner [~themudkip@unaffiliated/wakko9warner] has joined #lisp 00:25:39 az [~az@p4FE4EA21.dip.t-dialin.net] has joined #lisp 00:26:21 -!- attila_lendvai [~attila_le@catv-80-98-24-21.catv.broadband.hu] has quit [Quit: Leaving.] 00:28:38 -!- mimi [~mimi@94-225-197-41.access.telenet.be] has quit [Quit: Leaving] 00:29:13 -!- serichsen [~user@f049164018.adsl.alicedsl.de] has quit [Quit: Good night!] 00:30:53 pchrist_ [~spirit@gentoo/developer/pchrist] has joined #lisp 00:31:15 -!- pchrist [~spirit@gentoo/developer/pchrist] has quit [Ping timeout: 260 seconds] 00:33:00 nilly [~nil@c-98-247-253-56.hsd1.wa.comcast.net] has joined #lisp 00:35:00 -!- Yuuhi [benni@p5483CDB7.dip.t-dialin.net] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 00:35:52 -!- brodo_ [~brodo@p5B023421.dip.t-dialin.net] has quit [Quit: brodo_] 00:36:32 -!- Joreji [~thomas@72-022.eduroam.RWTH-Aachen.DE] has quit [Ping timeout: 272 seconds] 00:36:34 Is there some good reason why emacs indents the first form in unwind-protect by 5? 00:38:08 nilly: because only the first form is "protected"? Or are you wondering about the indentation count itself? 00:38:25 -!- dmv_ [~daniel@187.10.44.16] has quit [Ping timeout: 255 seconds] 00:38:42 The count seems a bit extreme to me, especially since it's usually a progn. 00:39:54 -!- tcr1 [~tcr@80-218-246-66.dclient.hispeed.ch] has quit [Quit: Leaving.] 00:41:39 -!- seangrove [~user@c-67-188-1-148.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 00:42:18 billstclair [~billstcla@unaffiliated/billstclair] has joined #lisp 00:44:30 Saturnation: It's not really cross-platform if it uses GTK. 00:44:58 Xach: Huh? 00:46:44 GTK is cross platform, isn't it? 00:48:02 GTK works under windows afaik 00:50:19 *nyef* wouldn't accuse GTK of working /well/ under windows, but the situation might have improved since last he tried. 00:50:49 gz [~gz@209-6-40-245.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #lisp 00:51:55 -!- juniorroy [~juniorroy@212.36.224.57] has quit [Remote host closed the connection] 00:52:04 nyef, There's only one way to find out 00:52:25 -!- davazp [~user@15.Red-83-57-38.dynamicIP.rima-tde.net] has quit [Remote host closed the connection] 00:52:36 Two that I can think of offhand, but neither worth the effort. 00:52:49 two? 00:52:50 Jesdisciple [~user@75.53.39.195] has joined #lisp 00:55:54 BrandLeeJones [~BrandLeeJ@84.114.246.246] has joined #lisp 00:59:12 Yeah, I can try it myself, or I can ask someone. 00:59:33 -!- mephisto_ [~mephisto@ka-v834-130-63-4-230.airyork.yorku.ca] has quit [Remote host closed the connection] 00:59:35 Either way, not worth the bother for me at this point. 00:59:37 *Saturnation* is beginning to take nyef less and less seriously over time :) 00:59:44 obviously YOU don't care :P 01:00:10 *nyef* has phi-functions on the brain, and no hack-supporting windows box. 01:00:29 aren't all Windows boxes hack-compliant? 01:00:40 ;) 01:01:01 seangrove [~user@c-67-188-1-148.hsd1.ca.comcast.net] has joined #lisp 01:01:28 My one windows box is relegated to web browsing. Not about to try and use it for serious work. 01:02:02 (I was using the other two or three meanings of "hack") 01:02:25 kleppari [~spa@bitbucket.is] has joined #lisp 01:03:01 *Saturnation* 's window box is dual booting Ubuntu, and I cannot remember the last time I DIDN'T boot into Ubuntu 01:03:30 nyef, that's part of the reason for using virtualbox 01:03:52 -!- Edward__ [~ed@AAubervilliers-154-1-35-70.w90-3.abo.wanadoo.fr] has quit [] 01:04:02 Saturnation: and *that* definitely demands effort. 01:04:34 -!- Soulman [~knute@166.80-202-254.nextgentel.com] has left #lisp 01:04:39 Sure. Just never tried running vb on an n450, and the screen shrank since I installed my VMs, and... Hey, look, effort. And that's even before considering the disk space problem. 01:04:42 less than booting back and forth :P 01:05:36 -!- billstclair [~billstcla@unaffiliated/billstclair] has quit [Read error: Connection reset by peer] 01:05:38 for me, for the time being, it's worth setting up just to find out how good it may (or may not) be 01:06:11 billstclair [~billstcla@unaffiliated/billstclair] has joined #lisp 01:06:19 Sure. Have fun. 01:06:36 -!- BrandLeeJones [~BrandLeeJ@84.114.246.246] has left #lisp 01:10:51 dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has joined #lisp 01:12:59 -!- flinx [~flinx@c-68-33-142-62.hsd1.md.comcast.net] has quit [Quit: Leaving] 01:15:21 -!- billstclair [~billstcla@unaffiliated/billstclair] has quit [Remote host closed the connection] 01:16:54 -!- sykopomp [~user@crlspr-24.233.190.221.myacc.net] has quit [Changing host] 01:16:54 sykopomp [~user@unaffiliated/sykopomp] has joined #lisp 01:18:14 I seem to recall a way to copy a hash table...? 01:18:49 (I don't think it involved iterating via maphash or anything like that.) 01:19:33 I can't find copy or clone anywhere except in bug reports for usercode 01:19:39 via Google 01:21:29 Maybe something in alexandria? 01:21:59 that's the usercode I found =p 01:22:26 I coulda sworn the standard had something but Ctrl+F on the full list of functions didn't turn anything up 01:22:27 maphash is probably the simplest approach. 01:22:35 I don't believe so. 01:23:17 hrmph - copy for everything but hashtables *rolleyes* 01:23:31 thanks for the advice 01:23:45 If it's in alexandria, it's almost certainly not in the cl spec. 01:24:31 -!- homie [~levgue@xdsl-78-35-147-195.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 01:24:48 There's no built-on for copying arrays, either. 01:24:53 er, built-in. 01:25:50 Jesdisciple: problem with copying hash tables is that there are possibly non-standard initargs you might or might not want to copy 01:26:22 -!- _s1gma [~herpderp@77.107.164.131] has quit [Quit: Leaving] 01:26:52 homie [~levgue@xdsl-78-35-147-195.netcologne.de] has joined #lisp 01:27:02 -!- sonnym [~evissecer@rrcs-184-74-137-167.nys.biz.rr.com] has quit [Quit: Leaving.] 01:27:08 mephisto_ [~mephisto@kd-v135-130-63-240-299.airyork.yorku.ca] has joined #lisp 01:27:22 sonnym [~evissecer@rrcs-184-74-137-167.nys.biz.rr.com] has joined #lisp 01:27:42 slyrus: just saw your problem with beirc. AFAIK, it /should/ handle unicode chars 01:28:05 slyrus: I think I patched cl-irc myself to enable utf-8 with latin-1 fallbacks. 01:28:06 Zhivago: true, although I don't see that being useful anytime soon - the fairly opaque description possibly being partly at fault 01:28:25 invalid magic number in core: 0xf145342434c should have been 0x5342434c 01:28:45 i get this when attempting to start the sbcl i compiled from git 01:29:03 i'm on a fresh ubuntu 10.10 64-bit. 01:29:06 mephist__ [~mephisto@kd-v135-130-63-240-299.airyork.yorku.ca] has joined #lisp 01:29:20 slyrus: that it's the beirc GUI process getting that error would point towards mcclim as the culprit 01:29:50 dto1: wow. what's the command line you're using to run sbcl? 01:29:57 and what does "file" report on the sbcl binary? 01:30:06 -!- mephisto_ [~mephisto@kd-v135-130-63-240-299.airyork.yorku.ca] has quit [Read error: No route to host] 01:30:09 i'm starting it from within Slime. i'll try from the command line. 01:30:28 *Jesdisciple* is suddenly glad to be on 9.10 01:31:39 jes: Well, the same could probably be said for hash-tables. :) 01:31:58 hmm. 01:32:26 -!- ignas [~ignas@ctv-79-132-160-221.vinita.lt] has quit [Ping timeout: 250 seconds] 01:33:16 i think i am doing something wrong. `which sbcl` says /usr/local/bin/sbcl , but maybe that's the ubuntu version. 01:33:35 i built sbcl with the prefix /usr/local 01:34:07 no. /usr/bin/sbcl is the ubuntu version. 01:34:07 Zhivago: no, I'm being very rebellious against Lisp with my destructive hashtables 01:34:28 -!- EarlGray [~dmytrish@79.124.201.12] has quit [Ping timeout: 240 seconds] 01:34:48 antifuchs: just typing "sbcl" at the shell prompt and pressing return makes it crash with that same message about a magic number and the LDB> prompt 01:35:05 dto1: and which sbcl is that using? "which sbcl" to find out 01:35:13 ah, wait. maybe I should read 01:35:22 :) 01:35:23 dto1: what's your SBCL_HOME set to? 01:35:34 jes: I don't see what's rebelious about that. 01:35:44 jes: Lisps are almost all procedural languages. 01:35:53 antifuchs: (setenv "SBCL_HOME" "/usr/local/lib/sbcl") 01:35:59 which also works in the shell 01:36:04 i.e. echo $SBCL_HOME 01:36:27 Zhivago: I was being half-serious, alluding to the Lisp convention to stay idempotent 01:36:39 weird. half-successful installation? can you run from the build directory with "src/runtime/sbcl --core output/sbcl.core"? 01:36:52 vilsonvieira [~vilson@187.112.204.12] has joined #lisp 01:36:55 (the more Schemish than CLish convention, but still) 01:37:16 antifuchs: that also fails with the same message and ldb prompt. 01:37:33 ok, that sounds like a candidate for the mailing list then (: 01:37:37 maybe my build dir is messed up? 01:37:45 that could be 01:37:46 i moved it and then did a git pull 01:37:49 or something 01:38:12 what's the proper place to get the latest sbcl? 01:38:21 i mean, HEAD. 01:38:42 git://git.boinkor.net/sbcl.git 01:39:04 -!- xan_ [~xan@129.131.117.91.dynamic.mundo-r.com] has quit [Ping timeout: 255 seconds] 01:40:08 -!- iwillig [~iwillig@ool-18b944f4.dyn.optonline.net] has quit [Quit: Leaving] 01:40:43 myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has joined #lisp 01:41:43 compiling. 01:45:40 ignas [~ignas@ctv-79-132-160-221.vinita.lt] has joined #lisp 01:46:11 echo-area [~user@114.251.86.0] has joined #lisp 01:46:28 mattrepl [~mattrepl@208.87.61.212] has joined #lisp 01:47:33 gko [~gko@211.21.137.140] has joined #lisp 01:53:09 -!- pmurias [~pawel@89-75-37-59.dynamic.chello.pl] has quit [Quit: leaving] 01:53:30 antifuchs: must have been a b0rked build. works fine now. thanks :) 01:53:42 cool 01:54:39 -!- hramrach_ [debian-tor@gateway/tor-sasl/hramrach] has quit [Ping timeout: 240 seconds] 01:56:08 How do you compile SBCL on a platform without any previous CL binaries? 01:56:27 Do you need to get a CL written in C first? 01:56:38 hramrach_ [debian-tor@gateway/tor-sasl/hramrach] has joined #lisp 01:56:39 mosva [~mosva@unaffiliated/mosva] has joined #lisp 01:57:16 kuffaar: which OS? 01:57:50 -!- gko [~gko@211.21.137.140] has quit [Ping timeout: 276 seconds] 01:58:20 Jesdisciple: Embedded stuff, it has a working C compiler though 01:58:35 I think it's some Motorola CPU 01:58:41 dang, was hoping you were on a distro with package-management 01:59:08 I just wanted to try to run CL on it for fun 01:59:23 But most Lisp interpreters are written in Lisp, right? 01:59:36 that I wouldn't know 02:00:17 kuffaar: sbcl compiles to native code so regardless of the boostrapping issue, it will have to know about the underlying cpu 02:00:27 kuffaar: Partially, at least. 02:00:33 so you'll either have to port it or find someone that did 02:00:43 or use a different CL implementation 02:00:49 maybe clisp 02:01:00 Oh, right, SBCL probably wouldn't work anyways 02:01:01 Right 02:01:15 kuffaar: What dialect do you require? 02:01:36 CL would be fun 02:01:38 -!- gravicappa [~gravicapp@ppp85-141-165-18.pppoe.mtu-net.ru] has quit [Ping timeout: 240 seconds] 02:02:03 http://en.wikipedia.org/wiki/GNU_Common_Lisp 02:02:04 But I'd settle for a simpler Lisp if required 02:02:05 http://en.wikipedia.org/wiki/GNU_Common_Lisp 02:02:08 woops 02:02:16 http://en.wikipedia.org/wiki/Category:Common_Lisp_implementations 02:02:31 I think GCL (clisp) is in C 02:02:35 but WP doesn't say 02:02:42 GCL != clisp 02:03:00 err, coulda sworn it didded 02:03:39 -!- mattrepl [~mattrepl@208.87.61.212] has quit [Quit: mattrepl] 02:03:44 implemented in CL tho: http://en.wikipedia.org/wiki/Clisp 02:04:42 EarlGray [~dmytrish@79.124.171.105] has joined #lisp 02:05:27 Jesdisciple: most CLs are partially implemented in CL. 02:06:16 I'm fine with anything that can be compiled with C, I can probably make automake and such work on that thing 02:06:33 Err, *with a C compiler 02:07:24 Out of curiousity, what /sort/ of motorola cpu? 02:07:46 'cause if it's an embedded ppc, there's a chance sbcl would work. 02:07:57 Nah I don't think it's a PPC 02:08:01 Simpler I think 02:08:07 68k? 02:08:15 (ColdFire, or whatever it's called now?) 02:08:43 Possibly related 02:08:43 *nyef* always liked the 68k architecture... except for emulation. Emulating it sucked. 02:08:54 I don't want to break it honestly 02:09:33 Maybe it doesn't even use a Motorola CPU but it has the logo on the outside so I thought it might be 02:11:47 SBCL can handle MIPS, PPC, SPARC (unlikely), Alpha (extremely unlikely), x86, x86-64, and has vestigial HPPA support. 02:12:49 jweiss_ [~jweiss@cpe-069-134-009-048.nc.res.rr.com] has joined #lisp 02:12:49 I doubt this is a full blown PPC, it appears to be more than a simple uC but it's just some box for a Probus system 02:12:58 Industrial automation superveillance 02:13:12 Just messing with these for fun 02:13:24 Ah. Have fun with it, then. 02:13:39 *nyef* is rapidly running out of awake-time. 02:14:02 -!- EarlGray [~dmytrish@79.124.171.105] has quit [Ping timeout: 240 seconds] 02:14:07 I hear PPCs are actually pretty popular for DSPs. 02:14:43 News to me :o I thought most serious DSP work used VLIW architectures pretty much 02:15:15 Maybe for lower bandwidth stuff, I don't know 02:15:29 for control only. 02:15:37 Ahh 02:18:01 neoesque [~neoesque@210.59.147.232] has joined #lisp 02:18:07 psilord1 [~psilord@adsl-99-153-135-105.dsl.mdsnwi.sbcglobal.net] has joined #lisp 02:19:32 SsvRrwQ [~user@S0106001c1122940c.gv.shawcable.net] has joined #lisp 02:20:22 gko [~gko@211.21.137.140] has joined #lisp 02:21:08 *rtoym* has never used ppc for any dsp work. 02:21:15 adamvh [~adamvh@99.103.186.186] has joined #lisp 02:23:50 ECL appears to be partially written in C 02:23:55 -!- ferada [~user@g224149064.adsl.alicedsl.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 02:23:59 Although it uses a .d extension for some reason 02:24:23 billstclair [~billstcla@unaffiliated/billstclair] has joined #lisp 02:24:29 -!- peterhil [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has quit [Ping timeout: 276 seconds] 02:25:01 Much like sbcl is partially written in C. 02:25:22 Why is it important? 02:25:39 Probably the important point with ECL is that it compiles to C. 02:28:04 peterhil [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has joined #lisp 02:28:13 -!- pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has quit [Ping timeout: 255 seconds] 02:28:46 Hm 02:29:02 -!- kleppari [~spa@bitbucket.is] has quit [Ping timeout: 276 seconds] 02:29:12 -!- hargettp [~hargettp@96.237.127.144] has quit [Quit: Leaving...] 02:29:16 -!- pdelgallego_ [~pdelgalle@1385159852.dhcp.dbnet.dk] has quit [Ping timeout: 272 seconds] 02:34:20 Are any of the CL native compilers targeting ARM yet? 02:35:56 ccl. 02:36:34 ah cool, it's not on its homepage yet though 02:37:33 troussan [~user@c-24-245-15-191.hsd1.mn.comcast.net] has joined #lisp 02:39:05 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Ping timeout: 264 seconds] 02:41:07 I have something like this: http://paste.lisp.org/display/118946 02:41:45 i am trying to compare testvar and testvar1 and list the differences between them 02:42:34 joe6: And what's the problem? 02:42:38 basically the differences in the values of the fields. such as "testvar.a = 1, testvar1.a = 3" 02:43:05 i could do that in boilerplate code and write code to list out each field and value in each field. 02:43:34 What's the question? 02:43:50 Is there a way for me to do this automatically 02:44:03 What does automatically mean? 02:44:25 such as do "mapcar #'compare-field testvar testvar1" 02:44:51 where compare-field is generic, that means it can work on any field such as a or b 02:44:58 drdo: does that make sense? 02:45:54 it should automatically read all the fields in testvar and testvar1 and then compare each field without explicitly writing out each field in the compare function 02:46:02 I see 02:46:31 I'm not sure that's possible 02:46:50 Maybe someone else will know 02:48:22 something like this: http://geekrelief.wordpress.com/2008/10/23/datagenerics-for-the-win/ 02:48:44 -!- dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 02:49:43 Well, it's always possible to write a macro that will do a defstruct and define a method for a generic function that can compare like that 02:50:05 This begs the question of how fields shall be compared. Anyway, you can do that sort of portably with the MOP for clos classes; depending on the implementation, this might also work for structures. 02:51:06 pkhuong: what do you mean? 02:51:07 Well, yes, i also don't see a case where this would be useful 02:52:14 I am implementing a diff of 2 record lists. The record structures are big and I do not want to list out each field and compare 02:52:37 as that would be a lot of boilerplate code 02:53:14 pkhuong: can you please explain? 02:54:07 joe6: What is a record list? 02:54:14 there's no standard CL way to iterate through the slots of a structure 02:54:57 you'd have to dive into low-level specifics as pkhuong is getting at 02:54:59 a list of records, I mean. 02:55:06 -!- nyef [~nyef@pool-70-20-57-204.man.east.myfairpoint.net] has quit [Quit: G'night all.] 02:55:13 (or define the struct type as list) 02:55:30 joe6: So a record is just a struct with a bunch of fields? 02:55:40 drdo: yes. 02:56:04 and I am trying to compare 2 lists of such struct's. 02:56:09 joe6: You could always just write a defrecord macro that writes a defstructs and defines a compare function for you 02:56:10 The MOP can give you a list of slots and readers. 02:56:10 also, equalp should compare the equality of 2 structs 02:56:19 Some MOPs work on structure classes. 02:56:57 Phoodus: comparing the structures to be equal or not does not seem to be the issue. 02:57:11 equalp should compare (with equalp again) slot-by-slot 02:57:21 The issue is iterating through the fields and write out each field and the differences between them. 02:57:27 of course, it can't tell you which slots differ, but given a list of structs can point out which differ 02:57:56 Phoodus: yes, that can be done. I am looking for the fields difference. 02:58:06 The easiest way I've gotten around issues like this is to define my own struct-definition macro that wraps defstruct 02:58:28 then it can generate various functions that are aware of which slots exist, because it has access to the declaration 02:58:41 pkhuong: will check out the MOP and the defrecord macro seems to be a good idea too. 02:58:57 Phoodus: that is a good idea. 02:59:36 pkhuong: if you do not mind me asking, do you know where I can find more details on MOP. 02:59:49 for instance, I have a bindable-defstruct (non-hygienic, though), that for (bindable-defstruct foo ...) it will also generate a (with-foo ) that automatically makes a 'let' structure dereferencing all the slots by name 03:00:02 Phoodus: do you have any code that I can use to guide me, please? 03:00:15 erm, all of mine is internal commercial at the moment 03:00:34 but it doesn't look like you're using all sorts of complex per-slot configuration 03:00:55 so reading the input to your own custom defstruct should be easy 03:01:29 deech [~user@24-107-146-101.dhcp.stls.mo.charter.com] has joined #lisp 03:02:52 (defmacro my-defstruct (name &rest slots) `(progn (defstruct ,name ,@slots) (defun ,(concat-symbol-utility "whatever-" name) ...)) 03:02:57 Hi all, I recently updated and started Slime+Paredit for the first time in months and noticed that leaves unbalanced parens. This isn't the way it used to be, do I need to configure something? 03:03:14 Phoodus: thanks a lot for your help. 03:03:20 deech: I have noticed the same thing. 03:03:52 adamvh: Surprisingly has the right-behavior. 03:04:08 And it isn't Paredit mode because it works fine in the *scratch* buffer 03:04:08 Liera [~user@113.172.54.38] has joined #lisp 03:05:03 -!- Saturnation [~dsouth@72.95.90.127] has quit [Quit: Ex-Chat] 03:05:27 deech: yeah - it's only in SLIME for me too 03:06:02 slime completion also interacts sort of weirdly with paredit for me 03:06:14 particularly pathname completion 03:06:34 adamvh: You mean where it adds an extra `"` at the end of a completion? 03:06:44 deech: yup 03:07:00 so that there are two at the end of a filename string 03:07:13 I've just been not turning paredit on in my SLIME buffer 03:07:22 adamvh: I remember it did the same thing before. That's not new. 03:07:35 deech: Oh. Never noticed. 03:07:37 Have you tried SLIME with auto-pairs? 03:07:47 No, what's that? 03:08:12 Poor man's Paredit (http://www.emacswiki.org/emacs/AutoPairs) 03:08:25 I'll have to look into it 03:08:30 I love me some paredit 03:08:36 I use it for everything 03:08:48 Yeah, it's pretty nice. 03:08:50 I just wish it were a little smarter about C/C++ 03:09:10 -!- jweiss_ [~jweiss@cpe-069-134-009-048.nc.res.rr.com] has quit [Ping timeout: 255 seconds] 03:09:25 You mean about square and squiggly braces? I think it is. 03:09:25 But that is probably more than should be expected of one Lisp hacker :p 03:09:36 It's not super smart about the squigglies for me 03:09:52 It also gets weird ideas about indentation when I slurp and barf 03:10:05 I think autopairs has that covered and it claims to interact well with Paredit. 03:10:20 Definitely interested then 03:11:59 jan247 [~jan247@unaffiliated/jan247] has joined #lisp 03:13:34 -!- La0fer [~Laofers1@64.120.233.114] has quit [Ping timeout: 255 seconds] 03:13:38 -!- moore33 [~moore@ABordeaux-153-1-56-20.w81-49.abo.wanadoo.fr] has quit [Ping timeout: 240 seconds] 03:14:02 I just enable autopairs *and* paredit mode in my SLIME window and now pathname completion and sexp deletion works as expected. This makes my day. 03:14:52 -!- bigjust_ [~bigjust@justin.caratzas.org] has quit [Ping timeout: 272 seconds] 03:17:56 bigjust_ [~bigjust@justin.caratzas.org] has joined #lisp 03:18:33 slime 03:18:37 oopa 03:21:07 -!- deech [~user@24-107-146-101.dhcp.stls.mo.charter.com] has left #lisp 03:21:18 -!- adamvh [~adamvh@99.103.186.186] has quit [Quit: adamvh] 03:21:46 -!- yan_ [~asym@srtd.org] has quit [Quit: oh no] 03:22:26 -!- mephist__ [~mephisto@kd-v135-130-63-240-299.airyork.yorku.ca] has quit [Remote host closed the connection] 03:22:42 -!- billstclair [~billstcla@unaffiliated/billstclair] has quit [Quit: Ex-Chat] 03:26:27 moore33 [~moore@ABordeaux-153-1-5-226.w92-146.abo.wanadoo.fr] has joined #lisp 03:26:31 adamvh [~adamvh@adsl-99-103-186-186.dsl.sfldmi.sbcglobal.net] has joined #lisp 03:28:50 ooohhh... are CL function names case insensitive? 03:29:18 I spent a long time trying to understand that, now it makes sense 03:29:46 defun functions are held behind symbols 03:29:51 symbols are generally case sensitive 03:30:02 well, I try to defun Set 03:30:11 however, the reader by default snaps symbols to uppercase in most lisps 03:30:14 and it complains that I'm overwriting standard function set 03:30:38 so if you do (defun |Foo| ...), vs (defun Foo ...), only the latter will be accessable by (foo ...) 03:31:03 -!- pizzledizzle [~pizdets@pool-96-250-215-244.nycmny.fios.verizon.net] has quit [] 03:31:11 if you want to (defun |Set| ..), that won't collide. But is a very bad idea :) 03:31:32 how so? 03:31:40 typos? 03:31:44 -!- sabalaba [~sabalaba@c-71-227-118-15.hsd1.mi.comcast.net] has quit [Remote host closed the connection] 03:31:47 -!- adamvh [~adamvh@adsl-99-103-186-186.dsl.sfldmi.sbcglobal.net] has quit [Quit: adamvh] 03:31:58 becuase then you'd have to use |Set| every time you wanted to call it, which is cumbersome and ugly 03:32:12 symbols are generally used in a reader-ignores-original-case way 03:32:16 oh, Set wouldn't work? =( 03:32:20 Jesdisciple: you can shadow 03:32:34 sorry? 03:32:43 clhs shadow 03:32:43 http://www.lispworks.com/reference/HyperSpec/Body/f_shadow.htm 03:32:45 oh right, I've never used that to my recollection 03:32:46 or try setting readtable-case to :invert 03:33:55 lambda-avenger [~roman@adsl-99-185-244-104.dsl.pltn13.sbcglobal.net] has joined #lisp 03:34:52 so that's (shadow ("Set")) ? 03:35:00 remember, in the default case, when you type (defun set (a) ...) the reader is actually reading (CL:DEFUN CL:SET (CL-USER:A) ...) 03:35:19 (or something close to that depending on implementation specifics) 03:35:38 (yeah, I don't encounter that except for the debugger... I'm used to languages caring about the Shift key) 03:35:41 (and double-colons before the A, whoops) 03:37:05 -!- MetalDust [~metaldust@75-32-203-61.lightspeed.ftwotx.sbcglobal.net] has quit [] 03:37:20 had to add ' and it still thinks I'm overwriting... 03:37:51 -!- ignas [~ignas@ctv-79-132-160-221.vinita.lt] has quit [Ping timeout: 240 seconds] 03:39:48 (setf (readtable-case *readtable*) :invert) 03:39:48 (shadow '("Set")) 03:40:01 still complains 03:40:22 billstclair [~billstcla@unaffiliated/billstclair] has joined #lisp 03:41:26 guess I'll just prefix my functions with my project name... 03:41:35 Jesdisciple: complain isn't exactly useful. 03:42:04 You could try and describe what you wrote to the repl and what you read back. You might even put that in a paste. 03:42:52 The examples in the CLHS for shadow could also be usefully adapted to your needs. 03:44:02 -!- psilord1 [~psilord@adsl-99-153-135-105.dsl.mdsnwi.sbcglobal.net] has left #lisp 03:46:20 well, I undid my prefixing and recompiled 03:46:44 now it finally hushed, so thanks much for the suggestions 03:47:14 (I did read the HyperSpec article, didn't look for examples though) 03:47:52 and you don't need :invert if you shadow (and vice versa). 03:48:10 *Jesdisciple* cautiously removes :invert 03:48:38 odd, it still hated me before I thought, when I only had that 03:49:06 "it hated me" does not say what specifically it reported to you 03:49:19 reading a file in happens before compiling it and even more so for execution. 03:49:49 shadows would go with your defpackage 03:49:53 If you write (setf (readtable-case ...) ...), it will only be executed (and take effected) once the file has been fully read and compiled. 03:49:53 Phoodus: I'm not bothering anymore, problem solved 03:49:59 thanks again 03:50:07 adamvh [~adamvh@adsl-99-103-186-186.dsl.sfldmi.sbcglobal.net] has joined #lisp 03:50:23 I'm just saying to be more specific if you want help 03:50:33 because we have no idea what it's telling you 03:51:01 well, when you asked for specificity the first time I was making my final victorious attempt 03:51:10 otherwise I would have complied 03:51:38 mattrepl [~mattrepl@208.87.61.212] has joined #lisp 03:52:05 There's something about computers that attracts retarded people. 03:52:20 re-fixing this when you try this again in a slightly different program state will be a hoot. 03:52:28 oh, if it's working then, I didn't realize that 03:52:57 *Phoodus* looks back, realized he skpped a line or two 03:55:41 and yes, you shoudl cycle your lisp instance to ensure what you wrote loads clean 03:56:59 -!- adamvh [~adamvh@adsl-99-103-186-186.dsl.sfldmi.sbcglobal.net] has quit [Quit: adamvh] 03:57:51 MetalDust [~metaldust@75-32-203-61.lightspeed.ftwotx.sbcglobal.net] has joined #lisp 03:58:09 good time to go eat for a bit then 03:58:15 -!- myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 03:58:26 -!- Jesdisciple [~user@75.53.39.195] has quit [Remote host closed the connection] 04:01:11 gumpa [~max@p5DE8F36B.dip.t-dialin.net] has joined #lisp 04:02:38 -!- fisxoj [~fisxoj@cpe-24-59-205-231.twcny.res.rr.com] has quit [Ping timeout: 240 seconds] 04:04:06 -!- mattrepl [~mattrepl@208.87.61.212] has quit [Ping timeout: 250 seconds] 04:04:31 -!- gumpa_ [~max@p5DE8FA56.dip.t-dialin.net] has quit [Ping timeout: 255 seconds] 04:04:45 mattrepl [~mattrepl@208.87.61.212] has joined #lisp 04:04:58 -!- lemoinem [~swoog@216.252.92.224] has quit [Remote host closed the connection] 04:05:26 lemoinem [~swoog@216.252.88.246] has joined #lisp 04:07:30 -!- mosva [~mosva@unaffiliated/mosva] has quit [Read error: Connection reset by peer] 04:07:49 mosva [~mosva@unaffiliated/mosva] has joined #lisp 04:09:13 -!- dto1 [~dto@pool-96-252-62-25.bstnma.fios.verizon.net] has quit [Remote host closed the connection] 04:16:04 rme [~rme@pool-70-106-129-201.chi01.dsl-w.verizon.net] has joined #lisp 04:16:50 azaq231 [~derivecto@p4FF686CD.dip0.t-ipconnect.de] has joined #lisp 04:17:08 -!- azaq231 [~derivecto@p4FF686CD.dip0.t-ipconnect.de] has quit [Changing host] 04:17:08 azaq231 [~derivecto@unaffiliated/azaq23] has joined #lisp 04:18:39 -!- azaq23 [~derivecto@unaffiliated/azaq23] has quit [Ping timeout: 240 seconds] 04:23:22 -!- Ginei_Morioka [~irssi_log@78.114.149.238] has quit [Ping timeout: 265 seconds] 04:24:55 Ginei_Morioka [~irssi_log@78.114.143.149] has joined #lisp 04:27:43 spradnyesh [~pradyus@nat/yahoo/x-aayyhpsvanlliuxy] has joined #lisp 04:28:37 pnq1 [~nick@AC82E5C2.ipt.aol.com] has joined #lisp 04:29:39 -!- pnq1 is now known as pnq 04:30:38 has anyone done any pub/sub with cl-redis? 04:32:49 I've used it only for minimal key/value database-y stuff 04:33:29 but then I switched to lredis, which is saner in many ways (: 04:33:46 what are you thinking of doing, tritchey? 04:35:10 -!- gko [~gko@211.21.137.140] has quit [Ping timeout: 240 seconds] 04:35:24 I'm working on a website monitoring application, and there were going to be multiple monitors that I was hoping to coordinate using redis 04:35:58 Hmm, anyone been doing anything interesting with linda tuple spaces lately? 04:36:06 the cl-redis subscribe command returns immediately, but doesn't seem to setup any kind of callback machanism. 04:36:59 tritchey: cl-redis is a very very thin layer on top of an outdated version of the command language. 04:37:14 so that's not surprising (: 04:38:35 -!- az [~az@p4FE4EA21.dip.t-dialin.net] has quit [Ping timeout: 260 seconds] 04:38:36 looking through the source I see the pubsub tests are disabled 04:38:47 which is probably not a positive sign 04:39:00 yeah. my suggestion is to go with lredis 04:39:13 gko [~gko@211.21.137.140] has joined #lisp 04:39:15 it's way safer with non-ascii chars, as well 04:39:20 ahh - by death? 04:39:25 yeah 04:39:45 that's makes me all warm and fuzzy 04:40:02 KITTENS. KITTENS ARE NICE. 04:40:22 and he has it all in one source file! 04:40:35 ;; TODO: Publish/Subscribe 04:40:40 haha 04:40:55 figures 04:40:59 yeah, my thinking is, since it's so much better, it won't be as hard to add (: 04:41:39 well, at least it gives me something to work on! 04:41:50 that's the spirit (: 04:42:50 -!- billitch [~billitch@men75-12-88-183-197-206.fbx.proxad.net] has quit [Ping timeout: 240 seconds] 04:43:58 -!- troussan [~user@c-24-245-15-191.hsd1.mn.comcast.net] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 04:44:31 it does look like cl-redis was updated to the new protocol in december 04:45:54 az [~az@p4FE4FAFE.dip.t-dialin.net] has joined #lisp 04:46:45 fisxoj [~fisxoj@cpe-24-59-205-231.twcny.res.rr.com] has joined #lisp 04:47:32 Chris_Jesdiscipl [~Jesdiscip@adsl-75-53-39-195.dsl.rcsntx.sbcglobal.net] has joined #lisp 04:48:09 Adlai_ [~leif@ool-18bac7df.dyn.optonline.net] has joined #lisp 04:52:24 adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined #lisp 04:55:10 is there a variable or something that stores the current line number of the function invocation, when the functions are loaded from a file. 04:55:34 i have a list of functions in a file that I plan on loading using (load "file") 04:56:31 i am wondering if there is something that can help me do this: (print "i am at line: ~a of the file~%" lineno) 04:56:59 the file does not have function definitions but more like function invocations. 04:57:27 Sluggo [~user@c-75-64-77-87.hsd1.tn.comcast.net] has joined #lisp 04:57:31 hi joe6 04:58:58 adu: hello, you might be mistaking me someone. 04:59:08 for someone, i mean. 04:59:25 no, I've never seen you before, just saying hi 04:59:33 adu: oh, hello 05:00:12 don't take it as recognition, just take it as some kind of SYN/ACK protocol between 2 humans (I'm assuming you're human) 05:01:20 but anyways, I don't know of anything like *current-line-number* at least not in CLHS, so I would then look at your specific implementation 05:01:58 adu: ok, thanks. 05:04:59 adu: i am a lisp newbie. When programming in lisp, how do you recommend structuring the program. 05:05:15 joe6: no idea 05:05:18 Which is the best lisp IDE which works on Windows? 05:06:16 joe6: when it comes to lisp I'm book-smart, I can tell you the difference between logand and boole-and, but not how traditional programs are structured 05:07:45 -!- vilsonvieira [~vilson@187.112.204.12] has quit [Quit: Saindo] 05:08:33 mosva: I use emacs on Windows, too 05:09:03 SLIME really is the best supported way to interact with lisp 05:09:19 (barring commercial vendors' own IDEs, which I have limited experience with) 05:09:52 however, it's not an IDE in the sense of awareness of your project as a whole 05:10:05 it's still a file editor, a lisp repl, and you have to use ASDF or something like that yourself to manage your project 05:10:30 Thanks a lot Phoodus 05:10:35 ubunturocks [~ubunturoc@c-24-125-178-151.hsd1.va.comcast.net] has joined #lisp 05:10:48 -!- Harag [~Harag@41.56.30.218] has quit [Ping timeout: 246 seconds] 05:13:21 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #lisp 05:19:23 jewel [~jewel@196-210-187-98.dynamic.isadsl.co.za] has joined #lisp 05:22:18 is there a better way of writing this: (functionx (quote (this is a line that function x will process))) 05:22:29 macrobat [~fuzzyglee@h-152-12.A163.priv.bahnhof.se] has joined #lisp 05:22:48 is quote the best way to define a string argument (line) 05:23:12 can do (functionx '(this is a line that function x will process)) but that's not necessarily readable 05:23:18 or, I could use the short form of quote ('). But, just curious of how others d. 05:23:20 note the ' 05:23:37 Chris_Jesdiscipl: yes, noticed that. Thanks. 05:23:54 normally ' (but it's not a string - it's a literal form) 05:25:51 -!- spradnyesh [~pradyus@nat/yahoo/x-aayyhpsvanlliuxy] has left #lisp 05:25:53 Chris_Jesdiscipl: what is meant by a literal form? just a long list? 05:25:56 -!- jomatv6 [~jomat@2001:470:9935::badc:ab1e] has quit [Ping timeout: 272 seconds] 05:26:00 parsed to lisp code? 05:26:06 spradnyesh [~pradyus@nat/yahoo/x-kjldypzobphgzggp] has joined #lisp 05:26:25 i want to read this in as a line and am planning to do the parsing in functionx 05:26:32 jomatv6 [~jomat@2001:470:9935::badc:ab1e] has joined #lisp 05:27:07 i do not intend to use read in the lisp read sense. just get the line in as an argument. 05:27:18 well, (quote) just prevents Lisp from doing whatever it would 05:27:31 yes, that is what I want. Thanks. 05:27:36 so 'foo becomes a string, while '(foo) is a list 05:28:09 Chris_Jesdiscipl: you might want to test things before spouting lies. 05:28:11 Chris_Jesdiscipl: gotcha. interesting. thanks. 05:28:31 joe6: disregard everything Chris_Jesdiscipl has said. 05:28:33 pkhuong: this is something that I have tested... 05:28:37 in particular, (stringp 'foo) => NIL. 05:28:49 joe6: it's misleading when it's not outright wrong. 05:29:06 joe6: instead, I recommend an introductory text on Lisp. What's your background? 05:29:26 -!- fisxoj [~fisxoj@cpe-24-59-205-231.twcny.res.rr.com] has quit [Ping timeout: 255 seconds] 05:30:20 used to program in C,perl, databases and haskell. want to learn to program in lisp. I have been meaning to do it for so long and I am tired of putting it off. 05:30:39 so, biting the bullet and have started to do it. 05:30:48 joe6: I recommend Practical Common Lisp. 05:30:51 -!- cheez [~Adium@69-165-154-135.dsl.teksavvy.com] has quit [Ping timeout: 240 seconds] 05:30:53 (so will most of the channel) 05:31:20 joe6: you can read it online at http://www.gigamonkeys.com/book/ or support the author with a purchase. 05:31:37 I read the introductory text's but after reading a few chapters, I am just not getting the syntax. So, I figure that I start writing a program instead. 05:32:14 Ralith: I have it open and I read it sometime ago and it is my first point of reference for any question. 05:32:41 But, CL seems to be a pretty big language and the introductory text's do not seem to be doing justice. 05:32:59 if you want to see justice done to the entire language, open up the CLHS 05:33:02 not very good to learn from, though 05:33:31 joe6: yeah, cl is big. pcl covers a lot of it, though 05:33:35 yes, I have that open too. But, it is hard to traverse and yes, it does not seem to be very good to learn from. 05:33:55 i have read atleast 2-3 texts on lisp 05:34:18 and I understand the concepts and listened to sicp lectures, but I need to just do it and get the hang of it. 05:34:32 Sorry, to be trolling your irc. I am not sure if you mind my questions? 05:35:18 and there is the other thing where I am not sure if the syntax is in scheme or CL or is a part of some other lisp. 05:35:49 is it ok to ask introductory questions on this irc? 05:36:09 definitely 05:36:20 antifuchs: ok, thanks. 05:36:27 as long as you paste longer sections of code in paste.lisp.org (-: 05:36:41 yes, that makes sense. 05:37:34 joe6: I'm not sure if you do understand the concepts, as quote has nothing to do with strings at all. 05:41:38 Ralith: ok, thanks. will check up on it. 05:42:41 gentle intro do symbolic computing may be of interest, though I haven't read it myself 05:47:36 myu2 [~myu2@58x5x224x106.ap58.ftth.ucom.ne.jp] has joined #lisp 05:47:39 Ralith: just checking up pcl on the chapter on strings 05:47:50 evening folks 05:49:35 hi beslyrus 05:49:50 beslyrus: I saw your message about beirc & unicode 05:50:09 beslyrus: I'm pretty sure the irc protocol part of beirc should handle non-ascii chars just fine 05:50:25 (I believe I wrote the utf-8 & latin1 fallback logic myself back then) 05:50:48 but you're getting the error in the GUI thread, which would point to mcclim or something as the culprit 05:51:46 -!- Chris_Jesdiscipl [~Jesdiscip@adsl-75-53-39-195.dsl.rcsntx.sbcglobal.net] has quit [Quit: Leaving] 05:55:15 holycow [~new@poco208-2.fredcanhelp.com] has joined #lisp 05:58:45 -!- mattrepl [~mattrepl@208.87.61.212] has quit [Quit: mattrepl] 06:02:27 drafael [~tapio@118-92-27-10.dsl.dyn.ihug.co.nz] has joined #lisp 06:06:48 Harag [~Harag@wbs-41-208-211-15.wbs.co.za] has joined #lisp 06:07:00 -!- Adlai_ [~leif@ool-18bac7df.dyn.optonline.net] has quit [Ping timeout: 240 seconds] 06:07:59 bytecat_ [~catless@HS2-29-7.xG.SPb.SkyLink.RU] has joined #lisp 06:08:29 -!- bytecat_ [~catless@HS2-29-7.xG.SPb.SkyLink.RU] has left #lisp 06:13:04 pavelludiq [57f63ac1@gateway/web/freenode/ip.87.246.58.193] has joined #lisp 06:13:06 -!- holycow [~new@poco208-2.fredcanhelp.com] has quit [Remote host closed the connection] 06:13:39 antifuchs: OK, I can believe that. 06:13:53 beslyrus: are you using any advanced font hackery? 06:14:00 like mcclim-freetype or -truetype? 06:14:38 I am now, which fixes the problem 06:14:42 mcclim-truetype 06:14:50 hah 06:15:01 I am suspecting the default X font rendering now 06:15:13 it may not cope with unicode chars as well as free/truetype 06:15:34 without it, I think the problem lies in medium.lisp/translate 06:15:38 that is to say, I am pretty sure it doesn't cope with them at all 06:15:53 drafael1 [~tapio@118-92-134-224.dsl.dyn.ihug.co.nz] has joined #lisp 06:16:14 max-char-index should proably be the minimum of what it is now and what will fit in the destination array 06:16:42 as it is, it tries to stuff a value > 255 in an 8-bit array 06:17:40 oh, and on another note, I never figured how to properly get beirc to properly draw in a light-on-dark theme. that's kind of a deal-breaker for everyday use, if you ask me... 06:17:42 -!- drafael [~tapio@118-92-27-10.dsl.dyn.ihug.co.nz] has quit [Ping timeout: 276 seconds] 06:18:04 not for me (-; 06:18:14 but hmmm, no idea either. 06:18:33 you may have to play with the pane definitions, then go to work wrapping with-ink around some relevant places 06:21:05 -!- drafael1 [~tapio@118-92-134-224.dsl.dyn.ihug.co.nz] has quit [Ping timeout: 276 seconds] 06:25:46 SidH_ [~Sid_H@192.163.20.231] has joined #lisp 06:27:35 -!- SidH_ [~Sid_H@192.163.20.231] has quit [Remote host closed the connection] 06:27:56 SidH_ [~Sid_H@192.163.20.231] has joined #lisp 06:29:15 -!- SidH_ [~Sid_H@192.163.20.231] has quit [Remote host closed the connection] 06:29:38 SidH_ [~Sid_H@192.163.20.231] has joined #lisp 06:29:39 homie` [~levgue@xdsl-78-35-182-71.netcologne.de] has joined #lisp 06:32:37 tcr1 [~tcr@80-218-246-66.dclient.hispeed.ch] has joined #lisp 06:32:39 -!- homie [~levgue@xdsl-78-35-147-195.netcologne.de] has quit [Ping timeout: 276 seconds] 06:35:41 freiksenet [~freiksene@cs181130165.pp.htv.fi] has joined #lisp 06:39:57 -!- SidH_ [~Sid_H@192.163.20.231] has quit [Remote host closed the connection] 06:40:33 SidH_ [~Sid_H@192.163.20.231] has joined #lisp 06:42:28 -!- SidH_ [~Sid_H@192.163.20.231] has quit [Remote host closed the connection] 06:42:52 SidH_ [~Sid_H@192.163.20.231] has joined #lisp 06:43:52 mattrepl [~mattrepl@c-67-180-32-216.hsd1.ca.comcast.net] has joined #lisp 06:44:42 -!- SidH_ [~Sid_H@192.163.20.231] has quit [Remote host closed the connection] 06:45:32 how do i write the lambda function to use both the values returned: ((lambda (x y) (format t "no of lines: ~a~%" y)) (values "test" 1)) 06:45:43 -!- pnq [~nick@AC82E5C2.ipt.aol.com] has quit [Ping timeout: 240 seconds] 06:46:08 SidH_ [~Sid_H@192.163.20.231] has joined #lisp 06:46:28 <_3b> clhs m-v-c 06:46:29 MULTIPLE-VALUE-CALL: http://www.lispworks.com/reference/HyperSpec/Body/s_multip.htm 06:46:31 -!- azaq231 [~derivecto@unaffiliated/azaq23] has quit [Quit: Leaving.] 06:47:31 -!- SidH_ [~Sid_H@192.163.20.231] has quit [Remote host closed the connection] 06:47:44 _3b: thanks. 06:48:03 SidH_ [~Sid_H@192.163.20.231] has joined #lisp 06:48:39 antifuchs: ok, I'll give it another try one of these days soon 06:48:51 cool. good luck (: 06:50:18 -!- ltriant [~ltriant@lithium.mailguard.com.au] has quit [Quit: Computer has gone to sleep] 06:51:41 Balooga [~rooms@pool-173-55-252-200.lsanca.fios.verizon.net] has joined #lisp 06:51:45 csamuelson [~user@adsl-240-246-114.bna.bellsouth.net] has joined #lisp 06:52:58 ehu [~ehuels@ip118-64-212-87.adsl2.static.versatel.nl] has joined #lisp 06:53:01 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Quit: Computer has gone to sleep.] 06:54:05 -!- Balooga [~rooms@pool-173-55-252-200.lsanca.fios.verizon.net] has quit [Client Quit] 06:56:04 -!- Vicfred [~Vicfred@189.143.79.13] has quit [Quit: ] 06:58:56 mishoo [~mishoo@79.112.237.60] has joined #lisp 07:03:16 nostoi [~nostoi@140.Red-79-156-244.staticIP.rima-tde.net] has joined #lisp 07:05:27 -!- parcs [~patrick@ool-45741d7d.dyn.optonline.net] has quit [Ping timeout: 240 seconds] 07:05:53 this works: (multiple-value-bind (x y) (values 2 1) (format t "string is ~a ~a ~%" x y)) 07:05:56 kushal [~kdas@fedora/kushal] has joined #lisp 07:05:59 this does not: (multiple-value-bind (x y) (values 2 1) (lambda (a b) (format t "string is ~a ~a ~%" a b))) 07:06:15 -!- jewel [~jewel@196-210-187-98.dynamic.isadsl.co.za] has quit [Ping timeout: 240 seconds] 07:06:15 does that make sense? 07:06:43 parcs [~patrick@ool-45741d7d.dyn.optonline.net] has joined #lisp 07:06:51 mcsontos [~mcsontos@nat/redhat/x-hntjdmchujvdcmvr] has joined #lisp 07:07:06 joe6: the 2nd one (with the lambda) never uses x & y 07:07:07 joe6: the second line doesn't do anything - it just declares a function, but never calls it 07:07:32 it could be (lambda () (format t ... x y)) instead, which might be what you want 07:07:52 kiuma [~kiuma@85-18-55-37.ip.fastwebnet.it] has joined #lisp 07:08:33 Phoodus: i am trying to understand why the variables are not bound to the lambda arguments. 07:08:46 i am expecting x to be bound to a and y to be bound to b 07:09:24 you're creating a lambda, but never calling it 07:09:28 joe6: (multiple-value-bind (x y) (values 2 1) ((lambda (a b) (format t "string is ~a ~a ~%" a b)) x y)) 07:09:35 -!- tcr1 [~tcr@80-218-246-66.dclient.hispeed.ch] has quit [Quit: Leaving.] 07:09:36 it's exactly as if you wrote the lambda without the m-v-b 07:09:50 it makes more sense if you indent it 07:09:52 yes, it is defining the function. I need to probably apply it. 07:10:18 mishoo: thanks, that was perfect 07:10:29 how about that: 07:10:41 joe6: (multiple-value-bind (x y) (values 2 1) ((lambda () (format t "string is ~a ~a ~%" x y)))) 07:11:09 or ((multiple-value-bind (x y) (values 2 1) (lambda () (format t "string is ~a ~a ~%" x y)))) ;-) 07:11:27 yeah, that 2nd one was what I thought he was trying to do 07:11:51 oh, you wrapped it in outer parens. Not sure that will work; it's not scheme 07:11:53 i was trying to do this version: (multiple-value-bind (x y) (values 2 1) ((lambda (a b) (format t "string is ~a ~a ~%" a b)) x y)) 07:12:03 -!- ehu [~ehuels@ip118-64-212-87.adsl2.static.versatel.nl] has quit [Ping timeout: 265 seconds] 07:12:18 oh, the 2nd should be (funcall (multiple-value-bind (x y) (values 2 1) (lambda () (format t "string is ~a ~a ~%" x y)))) 07:13:35 -!- SidH_ [~Sid_H@192.163.20.231] has quit [Remote host closed the connection] 07:13:39 when I define an argument in lambda and not use it, I get this warning: The variable A is defined but never used 07:13:58 is there a way to avoid it. by defining a wild-card or something. 07:14:01 joe6: and it's a good warning, isn't it? ;) it usually means you did something wrong 07:14:09 joe6: (declare (ignore a)) 07:14:12 SidH_ [~Sid_H@192.163.20.231] has joined #lisp 07:14:24 or (declare (ignorable a)) if you toggle between using it & not using it 07:14:30 When in doubt, always add more parens and lambdas. It's more beautiful. 07:14:39 <_3b> joe6: did you actually read what i suggested earlier? 07:14:45 yes, it is a very good warning. but i was thinking around the lines of (((lambda (_ y) (y)) 1 2) 07:14:57 _3b: yes. 07:14:59 Eg: ((lambda (lambda) `(,lambda ',lambda)) '(lambda (lambda) `(,lambda ',lambda))) 07:15:02 trebor_dki [~user@mail.dki.tu-darmstadt.de] has joined #lisp 07:15:10 yes, it is longer to type the ignorable stuff than if it had prolog-style anonvars 07:15:11 _3b: why do you ask? 07:15:22 <_3b> joe6: ok, so you are using multiple-value-bind instead for some other reason? 07:15:46 yes, i felt the bind to be easier to understand. 07:15:58 <_3b> ok 07:16:03 -!- SidH_ [~Sid_H@192.163.20.231] has quit [Client Quit] 07:16:36 _3b: because the m-v-c wanted a #' character and I wanted something more easy to read. 07:16:46 -!- nostoi [~nostoi@140.Red-79-156-244.staticIP.rima-tde.net] has quit [Quit: Verlassend] 07:16:49 <_3b> #' shouldn't be needed there 07:17:05 <_3b> (with a lambda that is) 07:17:09 -!- freiksenet [~freiksene@cs181130165.pp.htv.fi] has quit [Quit: WeeChat 0.3.2] 07:17:25 _3b: let me try it. 07:18:04 mrSpec [~Spec@unaffiliated/mrspec] has joined #lisp 07:18:12 SidH_ [c0a314e8@gateway/web/freenode/ip.192.163.20.232] has joined #lisp 07:18:20 (lambda ...) expands to (function (lambda ...)) by macro magic anyway. 07:19:13 _3b: you are correct: this is simpler: (multiple-value-call (lambda (a b) (format t "string is ~a ~%" b)) (values 1 2)) 07:19:43 which is of course a roundabout way of doing (funcall (lambda (a b) ...) 1 2) 07:20:01 which is of course a roundabout way of doing ((lambda (a b) ...) 1 2) 07:20:34 which is of course a roundabout way of doing (format t "string i 1") 07:20:36 :D 07:20:36 Phoodus: (values 1 2) is actually a function call to a function that returns 2 values. but, I did not want to pollute what I was looking for by adding that call. 07:20:37 <_3b> since you only actually use the second value in the lambad, nth-value might also be relevant 07:20:38 -!- dnolen [~davidnole@184.152.69.75] has quit [Quit: dnolen] 07:21:34 values isn't really a function, is it? 07:21:35 so, is there a wildcard argument? ie., to tell the warning checker that we really want to ignore the argument 07:21:52 there is an ignore & ignorable declaration 07:21:59 Phoodus: it is actually (file-lines "control-transactions.dat") 07:22:01 (as already discussed) 07:22:09 jdz [~jdz@193.206.22.97] has joined #lisp 07:22:28 oh, that's what you mean. It's just a placeholder to test something that does return multiple values 07:22:30 and the file-lines is here: http://atbash.net/blog/archives/000134.html 07:22:36 at the bottom of the page. 07:22:44 Phoodus: yes, that is what I mean. 07:23:00 yeah, multiple-value-call would be the way to collect those and pass them to some external lambda 07:23:20 multiple-value-bind is better if your call to that values-producing function is tied to a specific code body 07:23:52 the lambda is again a placeholder. I plan to add a code body next. 07:24:01 -!- rasterbar [~rasterbar@unaffiliated/rasterbar] has quit [Remote host closed the connection] 07:24:02 then you should use multiple-value-bind instead 07:24:16 Phoodus: ok, cool. glad that I learned about them both. 07:24:34 I've actually never used multiple-value-call before, so I learned about one ;) 07:25:32 Phoodus: can you please give more details on: (declare (ignorable a)) 07:25:40 do i put it in the definition of lambda? 07:30:38 flip214 [~marek@unaffiliated/flip214] has joined #lisp 07:31:17 joe6: http://paste.lisp.org/display/118953 -- here's a quick dirty macro to get syntactic sugar for ignored arguments 07:32:07 you'd write (prog (_ a) ...) instead of (lambda (xxx a) (declare (ignore xxx)) ... ) 07:32:38 mishoo: that blew me away. awesome. cannot believe that you could do stuff like that. 07:33:59 s/prog/proc 07:34:33 mishoo: mishoo: if you do not mind me asking. how long have you been using lisp? 07:34:47 joe6: about one year 07:34:56 mishoo: the reason I ask is because I am trying to assess how long it will take me to do that stuff. 07:35:08 mishoo: that is a short period. 07:35:26 mishoo: how long did it take you to get to that level? 07:35:30 antgreen` [~user@CPE00222d6c4710-CM00222d6c470d.cpe.net.cable.rogers.com] has joined #lisp 07:35:33 after you started off. 07:35:51 can't remember but not so long... maybe one month? 07:36:01 oh, wow. 07:36:01 fantasticsid [~sid@116.238.90.168] has joined #lisp 07:36:17 it's really not that complex.. just clear your mind of the infix notation that you're used to from the other languages ;) 07:36:47 -!- antgreen [~user@CPE00222d6c4710-CM00222d6c470d.cpe.net.cable.rogers.com] has quit [Ping timeout: 246 seconds] 07:36:47 any tips/suggestions for me? How did you come to lisp? Just started off lisp or did you come from some other language? 07:38:29 drafael [~tapio@118-92-144-181.dsl.dyn.ihug.co.nz] has joined #lisp 07:38:55 I came to Lisp because of Paul Graham's essays :) they're mind blowing 07:39:22 then also recognizing the fact that I was unhappy with other languages -- there was always something I wished to change and I couldn't 07:39:45 lisp, at least, can be changed -- and that's the whole point of it: you adapt it to your own problem 07:40:32 makes sense. Thanks for sharing your experiences. 07:41:49 mishoo: i wonder if i should have chosen scheme to common-lisp. The reason being that I hear that it is easier. But, it appears that CL is the one to learn. Did you have any problems with choosing? 07:42:20 -!- az [~az@p4FE4FAFE.dip.t-dialin.net] has quit [Ping timeout: 276 seconds] 07:42:30 -!- drafael [~tapio@118-92-144-181.dsl.dyn.ihug.co.nz] has quit [Ping timeout: 240 seconds] 07:42:53 I happen to like CL more, though I didn't study scheme very much 07:43:01 mishoo: if you were learning lisp again, would you do something different to get you upto speed faster. 07:43:12 I like non-hygienic macros and being able to declare 'list as a variable 07:43:25 joe6: I'd read some books before starting hacking ;) 07:43:44 mishoo: yes, the breadth of CL is amazing and that is what made me choose CL. 07:45:41 mishoo: anything else. I have read quite a few books too, but feel that it is better to start programming and studying vs just studying books. This is giving me the motivation that I need to learn to finish stuff. 07:47:33 -!- abeaumont [~abeaumont@90.165.165.246] has quit [Remote host closed the connection] 07:49:05 abeaumont [~abeaumont@90.165.165.246] has joined #lisp 07:49:16 http://paste.lisp.org/display/118953#1 07:49:20 I'm defining a few classes, that reference each other via :type. Do I have to live with the style-warnings (undefined type), or is there a way to pre-declare classes? 07:49:28 malbertife [~marcoalbe@bl11-45-212.dsl.telepac.pt] has joined #lisp 07:49:46 jdz: good morning! :-) 07:50:11 yeah, good morning dear lispniks! 07:50:50 mishoo: spot the important difference in the code :) 07:51:07 jdz: it works for _ in any package, yeah :) 07:51:25 hygiene shmygiene 07:51:32 *mishoo* was lazy and as I said: quick and dirty ;) 07:51:50 good morning ;) 07:51:58 az [~az@p4FE4F89F.dip.t-dialin.net] has joined #lisp 07:52:08 md: so, if (proc _ x) the _ is ignored? 07:52:16 jdz: so, if (proc _ x) the _ is ignored? 07:52:36 -!- Phoodus [~foo@ip68-231-47-70.ph.ph.cox.net] has quit [Ping timeout: 276 seconds] 07:53:13 joe6: look at the code in the original paste 07:53:21 joe6: the usage is still the same 07:53:47 joe6: and you can have multiple underscores in the lambda list 07:53:56 -!- antgreen` [~user@CPE00222d6c4710-CM00222d6c470d.cpe.net.cable.rogers.com] has quit [Ping timeout: 246 seconds] 07:54:25 jdz: btw, my emacs indents the line following ,(when ignored below "ignored" -- why is yours better? 07:54:31 jdz: thanks, jdz, just trying it. 07:54:38 mishoo: because i hand-indented it? 07:54:42 oh, ok :) 07:54:51 hello lispers 07:54:55 I was thinking about fixing this issue for some time, but couldn't find how 07:55:06 but yeah, i'm waiting for the open source fairy to fix the indenting of quasiquoted forms 07:55:21 -!- abeaumont [~abeaumont@90.165.165.246] has quit [Remote host closed the connection] 07:55:52 -!- fantasticsid [~sid@116.238.90.168] has left #lisp 07:56:02 I've been waiting for that for ten years! 07:56:06 Beetny [~Beetny@ppp118-208-143-239.lns20.bne1.internode.on.net] has joined #lisp 07:56:20 jdz: it does not seem to work when I try from the slime prompt. 07:56:33 I have a clsql error with postgresql: http://paste.lisp.org/display/118954 07:56:49 damn, i oversimplified the macro 07:56:51 can you tell me what's the problem ? 07:57:06 limiting the select to 1 it works 07:57:26 jdz: yeah, you need the let around push 07:57:31 abeaumont [~abeaumont@90.165.165.246] has joined #lisp 07:59:11 jdz: awesome, it works now. Thanks. 07:59:15 mishoo: i was thinking too much in parallel, and then figured that using iterate is forbidden in this exercise :) 08:02:37 drafael [~tapio@118-93-77-9.dsl.dyn.ihug.co.nz] has joined #lisp 08:08:58 i added another annotation, just for the record 08:10:07 -!- pchrist_ [~spirit@gentoo/developer/pchrist] has quit [Quit: leaving] 08:10:44 pchrist [~spirit@gentoo/developer/pchrist] has joined #lisp 08:12:06 jdz: ok, thanks. 08:12:08 rasterbar [~user@unaffiliated/rasterbar] has joined #lisp 08:13:51 to be honest, before I saw this macro, I was thinking of going back on lisp. Now, i am determined that this is the way forward. Thanks, guys. 08:13:52 -!- peterhil [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has quit [Read error: Operation timed out] 08:15:41 -!- abeaumont [~abeaumont@90.165.165.246] has quit [Remote host closed the connection] 08:16:05 moore33: didn't gilberth have something sorted for it? 08:16:25 ehu [~ehuels@109.33.170.105] has joined #lisp 08:16:41 Krystof: For indenting quasiquote? I don't know. 08:16:52 abeaumont [~abeaumont@90.165.165.246] has joined #lisp 08:17:02 freiksenet [~freiksene@hy-ovpn1-59.vpn.helsinki.fi] has joined #lisp 08:17:43 he did have something beautiful for fontifying quasiquote, I remember that 08:17:52 different colours for different levels of evaluation 08:18:08 wow 08:18:38 peterhil [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has joined #lisp 08:19:00 drl [~lat@125.167.140.159] has joined #lisp 08:19:05 gravicappa [~gravicapp@ppp85-141-165-18.pppoe.mtu-net.ru] has joined #lisp 08:19:42 zickzackv [~zickzackv@port-92-198-30-130.static.qsc.de] has joined #lisp 08:20:01 -!- sm` [~s@78.157.15.219] has quit [Ping timeout: 255 seconds] 08:20:48 e-user [~akahl@nat/nokia/x-lqqmsdtzfntsozsr] has joined #lisp 08:20:52 annoyingly I can't find it, but it might be part of portable-hemlock 08:21:04 I remember it particularly because he was also using computer modern as the font 08:21:04 dmv_ [~daniel@189-47-114-243.dsl.telesp.net.br] has joined #lisp 08:21:09 this was in 2002 or 2003 08:21:12 progress, eh? 08:21:32 sigh 08:22:09 -!- Tasunteld [~Partyzant@rps312.ovh.net] has quit [Quit: Lost terminal] 08:22:48 well if _some people_ would stop getting paid to do non-lisp stuff... 08:23:12 I know! It's a scourge. 08:23:43 splittist [~John@174-110.3-85.cust.bluewin.ch] has joined #lisp 08:23:45 morning 08:23:51 morning 08:24:10 -!- jan247 [~jan247@unaffiliated/jan247] has quit [Ping timeout: 255 seconds] 08:25:38 I love Christopher Buckley's description of the phrase "I've got to pay the mortgage" as "the Yuppie Nuremberg defense." 08:25:51 can anybody help me with clsql problem please? 08:26:03 <_8david> hemlock has syntax highlighting by gilbert, but I don't think it counts the backquoting level. AFAIK it merely has different colors for backquote, single quote, and the unquoted part. 08:27:24 joe6: and another one: http://paste.lisp.org/display/118953#5 -- defproc, like defun ;) 08:27:26 <_8david> As far as indentation goes, I think this is one of the few things about indentation that hemlock indeed gets right. 08:27:49 <_8david> Not to mention that ELI got it right within GNU emacs long before SLIME even started... 08:28:51 drafael1 [~tapio@118-93-171-27.dsl.dyn.ihug.co.nz] has joined #lisp 08:28:54 I really really really remember gilbert demoing multicoloured (multilevel) backquote highlighting 08:29:11 it would be a shame if it has vanished 08:29:32 -!- H4ns`` is now known as H4ns 08:29:41 it's actually relatively easy to get "right" indentation of backquote through the usual lisp-indent-function, but don't ask me how 08:29:51 I did it once but didn't care enough to save it 08:30:16 -!- drafael [~tapio@118-93-77-9.dsl.dyn.ihug.co.nz] has quit [Ping timeout: 272 seconds] 08:33:03 -!- drafael1 [~tapio@118-93-171-27.dsl.dyn.ihug.co.nz] has quit [Ping timeout: 240 seconds] 08:33:25 <_8david> | Showing results for climax backquote. Search instead for climacs backquote 08:34:59 <_8david> (Back when Google they started, their big attraction aside from ranking was that they only looked for words actually in the text. And now this?) 08:35:02 -!- mattrepl [~mattrepl@c-67-180-32-216.hsd1.ca.comcast.net] has quit [Quit: mattrepl] 08:35:24 varjag [~eugene@122.62-97-226.bkkb.no] has joined #lisp 08:36:08 I don't think it was in climacs 08:36:56 drafael [~tapio@118-92-26-176.dsl.dyn.ihug.co.nz] has joined #lisp 08:37:09 jan247 [~jan247@58.71.51.194] has joined #lisp 08:37:09 -!- jan247 [~jan247@58.71.51.194] has quit [Changing host] 08:37:09 jan247 [~jan247@unaffiliated/jan247] has joined #lisp 08:38:27 _8david: now that GOOG has a huge volume of data they can answer the question whether everyone is an idiot... 08:38:33 Athas [~athas@shop3.diku.dk] has joined #lisp 08:39:30 tcr1 [~tcr@80-218-246-66.dclient.hispeed.ch] has joined #lisp 08:39:48 -!- insomnia1alt [~milan@port-92-204-35-46.dynamic.qsc.de] has quit [Read error: Operation timed out] 08:39:51 Joreji [~thomas@72-022.eduroam.RWTH-Aachen.DE] has joined #lisp 08:41:03 -!- drafael [~tapio@118-92-26-176.dsl.dyn.ihug.co.nz] has quit [Ping timeout: 240 seconds] 08:41:22 mishoo: a global function that always ignores some parameters? smells fishy, really. 08:42:00 well, as an exercise in the arts of macrology makes sense, but let's not get carried away :) 08:42:06 hey, just showing how it can be done ;) 08:42:33 nha [~prefect@imamac13.epfl.ch] has joined #lisp 08:43:06 drafael [~tapio@118-92-29-107.dsl.dyn.ihug.co.nz] has joined #lisp 08:44:17 -!- gravicappa [~gravicapp@ppp85-141-165-18.pppoe.mtu-net.ru] has quit [Ping timeout: 240 seconds] 08:44:28 insomniaSalt [~milan@port-92-204-67-92.dynamic.qsc.de] has joined #lisp 08:44:31 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Quit: adu] 08:48:53 -!- Sluggo [~user@c-75-64-77-87.hsd1.tn.comcast.net] has quit [Quit: .] 08:49:11 vokoda [~user@host109-153-43-86.range109-153.btcentralplus.com] has joined #lisp 08:49:38 -!- vokoda [~user@host109-153-43-86.range109-153.btcentralplus.com] has quit [Changing host] 08:49:38 vokoda [~user@unaffiliated/vokoda] has joined #lisp 08:49:59 RaceCondition [~RaceCondi@82.131.61.203.cable.starman.ee] has joined #lisp 08:51:58 dmv__ [~daniel@189-47-114-243.dsl.telesp.net.br] has joined #lisp 08:54:02 -!- malbertife [~marcoalbe@bl11-45-212.dsl.telepac.pt] has quit [Quit: malbertife] 08:55:47 -!- dmv_ [~daniel@189-47-114-243.dsl.telesp.net.br] has quit [Ping timeout: 276 seconds] 08:56:07 -!- dmv__ is now known as dmv_ 08:56:27 mishoo: thanks. 09:01:14 mahmul [~mrw@user-0can1en.cable.mindspring.com] has joined #lisp 09:04:07 -!- kiuma [~kiuma@85-18-55-37.ip.fastwebnet.it] has quit [Quit: Leaving] 09:06:16 kiuma [~kiuma@85-18-55-37.ip.fastwebnet.it] has joined #lisp 09:11:02 ramkrsna [~ramkrsna@unaffiliated/ramkrsna] has joined #lisp 09:12:25 adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined #lisp 09:15:43 drafael1 [~tapio@118-92-30-80.dsl.dyn.ihug.co.nz] has joined #lisp 09:16:57 -!- drafael [~tapio@118-92-29-107.dsl.dyn.ihug.co.nz] has quit [Ping timeout: 240 seconds] 09:17:06 citizen428 [~citizen42@chello213047077012.23.11.vie.surfer.at] has joined #lisp 09:17:16 snearch [~snearch@f053001103.adsl.alicedsl.de] has joined #lisp 09:17:37 drafael [~tapio@118-92-16-144.dsl.dyn.ihug.co.nz] has joined #lisp 09:19:50 -!- drafael1 [~tapio@118-92-30-80.dsl.dyn.ihug.co.nz] has quit [Ping timeout: 240 seconds] 09:20:24 drafael1 [~tapio@118-93-176-92.dsl.dyn.ihug.co.nz] has joined #lisp 09:21:50 -!- drafael [~tapio@118-92-16-144.dsl.dyn.ihug.co.nz] has quit [Ping timeout: 240 seconds] 09:22:15 I've a problem with clsql, for some reason I've some field that are not in UTF8 like others. When I execute a query fetching those fields clsql sends me to the debugger. Is there any how to make the extraction more robust ? 09:23:39 Hun [~Hun@host-80-81-19-29.customer.m-online.net] has joined #lisp 09:24:30 -!- drafael1 [~tapio@118-93-176-92.dsl.dyn.ihug.co.nz] has quit [Ping timeout: 240 seconds] 09:25:02 drafael [~tapio@118-92-25-214.dsl.dyn.ihug.co.nz] has joined #lisp 09:28:48 -!- drdo [~user@91.205.108.93.rev.vodafone.pt] has quit [Ping timeout: 276 seconds] 09:29:57 I've defined a constant with (defconstant +c1+ (+ 1 2 3 4)); now, when I'm trying to use that in a type-specification (defclass cl1 () (field :type (simple-array integer +c1+))) I get an error. How would I specify that? 09:30:57 -!- freiksenet [~freiksene@hy-ovpn1-59.vpn.helsinki.fi] has quit [Quit: WeeChat 0.3.2] 09:31:42 <_3b> #. ? (and a few more parens) 09:33:04 SpitfireWP_ [~Spitfire@wikipedia/spitfire] has joined #lisp 09:34:08 -!- SpitfireWP_ [~Spitfire@wikipedia/spitfire] has quit [Read error: Connection reset by peer] 09:34:24 sm` [~s@78.157.15.219] has joined #lisp 09:34:39 -!- Krystof [~csr21@csrhodes.plus.com] has quit [Ping timeout: 240 seconds] 09:38:33 _3b, I think I tried that ... 09:38:40 dRbiG [drbig@insomniac.pl] has joined #lisp 09:38:58 If that happens during compile-file, I'd have to put #.(defconstant ...) too, right? 09:39:49 I could try using deftype 09:40:11 <_3b> eval-when rather than #. for the defconstant 09:40:42 <_3b> deftype sounds better than #. though 09:41:30 -!- drafael [~tapio@118-92-25-214.dsl.dyn.ihug.co.nz] has quit [Ping timeout: 240 seconds] 09:47:23 dmv__ [~daniel@189-47-114-243.dsl.telesp.net.br] has joined #lisp 09:48:03 Phoodus [~foo@ip68-231-47-70.ph.ph.cox.net] has joined #lisp 09:48:15 okflo [~okflo@91-115-94-114.adsl.highway.telekom.at] has joined #lisp 09:49:10 -!- jdz [~jdz@193.206.22.97] has left #lisp 09:49:17 jdz [~jdz@193.206.22.97] has joined #lisp 09:49:22 -!- ramkrsna [~ramkrsna@unaffiliated/ramkrsna] has quit [Ping timeout: 240 seconds] 09:50:05 -!- dmv_ [~daniel@189-47-114-243.dsl.telesp.net.br] has quit [Ping timeout: 260 seconds] 09:53:47 morphling [~stefan@gssn-5f7547df.pool.mediaWays.net] has joined #lisp 09:55:38 Gobbo2 [~Gobbo@202.0.57.154] has joined #lisp 09:57:25 adarnimrod [~nimrod@bzq-79-179-199-226.red.bezeqint.net] has joined #lisp 09:58:10 -!- kushal [~kdas@fedora/kushal] has quit [Ping timeout: 240 seconds] 09:58:48 -!- dmv__ is now known as dmw_ 09:58:55 -!- dmw_ is now known as dmv_ 09:59:00 xan_ [~xan@129.131.117.91.dynamic.mundo-r.com] has joined #lisp 10:03:02 ramkrsna [~ramkrsna@unaffiliated/ramkrsna] has joined #lisp 10:03:23 -!- mahmul [~mrw@user-0can1en.cable.mindspring.com] has quit [Quit: quat] 10:03:54 -!- l4ndfo [~l4ndfo@S0106001cf0520ea3.ed.shawcable.net] has quit [Ping timeout: 276 seconds] 10:05:07 banisterfiend [~horse@118.82.186.189] has joined #lisp 10:05:56 malbertife [~marcoalbe@gw-e-U-EdII.nat.fct.unl.pt] has joined #lisp 10:06:08 Zhivago: im banned from #C, so can i ask this here? Do you know of any C compiler libraries that return the generated machine code as a string ? 10:06:26 attila_lendvai [~attila_le@catv-80-98-24-21.catv.broadband.hu] has joined #lisp 10:06:31 sure. get banned on one channel, ask off-topic question in another. 10:07:30 H4ns: i know it's a bit naughty and i apologize, my friend. I'll leave as soon as I get the answer; I'll disappear into the regions of the ice mountains never to be seen again 10:07:32 lanthan_afh [~ze@p50992b91.dip0.t-ipconnect.de] has joined #lisp 10:08:01 banister: That's an interesting question. Why would you want that? 10:08:12 -!- rasterbar [~user@unaffiliated/rasterbar] has quit [Remote host closed the connection] 10:08:30 H4ns` [~user@pD4B9E765.dip.t-dialin.net] has joined #lisp 10:08:39 rasterbar [~rasterbar@unaffiliated/rasterbar] has joined #lisp 10:09:22 Zhivago: because in reddit i saw an interesting post called 'why c is f*cking crazy'. The guy had casted a string of machine code to a function pointer and then invoked the function pointer. I was thinking that if i can generate machine code dynamically from a string of C code then using the same approach as he did I can effectively have C lambda functions (though they wouldnt be closures) 10:10:14 tcc is probably your best bet. 10:10:34 But from memory it was written by a crazy person and the source is insane. 10:10:34 quack [~quack@bl16-175-58.dsl.telepac.pt] has joined #lisp 10:10:48 -!- neoesque [~neoesque@210.59.147.232] has quit [Quit: Bye!] 10:10:56 okflo_ [~okflo@91-115-94-41.adsl.highway.telekom.at] has joined #lisp 10:10:58 -!- jan247 [~jan247@unaffiliated/jan247] has left #lisp 10:11:00 ok thanks 10:11:01 the whole idea is likewize insane, really 10:11:11 yeah it's just a toy project 10:11:16 it probably wont even work 10:11:30 Oh - it will work - tcc effectively does this internally. 10:11:48 great 10:11:57 -!- okflo_ [~okflo@91-115-94-41.adsl.highway.telekom.at] has quit [Client Quit] 10:12:10 -!- H4ns [~user@p579F8C17.dip.t-dialin.net] has quit [Ping timeout: 240 seconds] 10:12:14 Alternately you could just use gcc and compile raw PIC code to a file ... 10:12:48 Or you could be less insane, and generate a source file, compile to a shared library, then dynamically link it. 10:12:56 That would be the least insane option. 10:12:58 well, in a way it can work with any toolchain: save your source string in a file, invoke the compiler on it (be sure to generate position-independent code), extract the raw code from the object file using objcopy or something, read it in, call, crash, everyone is happy 10:13:16 oh, Zhivago is quicker :) 10:13:43 hmm 10:13:47 the dream is fading 10:13:48 hehe 10:13:49 anyway thanks 10:13:51 -!- okflo [~okflo@91-115-94-114.adsl.highway.telekom.at] has quit [Ping timeout: 240 seconds] 10:13:53 -!- banisterfiend [~horse@118.82.186.189] has left #lisp 10:15:12 That last approach is what ECLS does. 10:15:26 kushal [~kdas@fedora/kushal] has joined #lisp 10:15:59 er, yeah, dynamic link is certainly a better idea than just reading the code in, because the various offsets need to be fixed up and dynamic linker does just that 10:16:18 pato [~quack@2.82.29.160] has joined #lisp 10:16:42 Why are you banned from ##c anyhow? 10:16:53 there's also the crepl thing 10:18:30 -!- quack [~quack@bl16-175-58.dsl.telepac.pt] has quit [Ping timeout: 240 seconds] 10:18:54 banisterfiend: have you looked at Clang and LLVM? 10:23:12 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Remote host closed the connection] 10:23:25 -!- jao [~user@pdpc/supporter/professional/jao] has quit [Ping timeout: 255 seconds] 10:26:59 -!- Ralith [~ralith@S010600221561996a.vc.shawcable.net] has quit [Read error: Connection reset by peer] 10:26:59 -!- SidH_ [c0a314e8@gateway/web/freenode/ip.192.163.20.232] has quit [] 10:27:19 Ralith [~ralith@S010600221561996a.vc.shawcable.net] has joined #lisp 10:29:09 mvilleneuve [~mvilleneu@LLagny-156-36-4-214.w80-14.abo.wanadoo.fr] has joined #lisp 10:29:20 good morning 10:30:36 -!- Phoodus [~foo@ip68-231-47-70.ph.ph.cox.net] has quit [Ping timeout: 272 seconds] 10:31:00 -!- twem2 [~twem2@puma-mxisp.mxtelecom.com] has quit [Remote host closed the connection] 10:31:12 -!- xan_ [~xan@129.131.117.91.dynamic.mundo-r.com] has quit [Ping timeout: 276 seconds] 10:33:09 -!- tcr1 [~tcr@80-218-246-66.dclient.hispeed.ch] has quit [Ping timeout: 276 seconds] 10:33:11 I'm defining a few classes, that reference each other via :type. Do I have to live with the style-warnings (undefined type), or is there a way to pre-declare classes? 10:34:23 -!- Joreji [~thomas@72-022.eduroam.RWTH-Aachen.DE] has quit [Read error: Operation timed out] 10:34:29 Joreji [~thomas@72-022.eduroam.RWTH-Aachen.DE] has joined #lisp 10:35:54 tcr1 [~tcr@217-162-131-235.dynamic.hispeed.ch] has joined #lisp 10:36:30 flip214: why are you using the :type slot option in the first place? what good do you expect it to do? 10:37:38 freiksenet [~freiksene@hy-ovpn2-97.vpn.helsinki.fi] has joined #lisp 10:38:01 cmm, type-checking (safety) and performance? 10:39:31 flip214: it won't give you any additional performance, and type checking will be done by your lisp anyway (unless you compile with (safety 0) or something, which you really don't want to do) 10:39:33 adarnimrod_ [~nimrod@bzq-79-183-206-205.red.bezeqint.net] has joined #lisp 10:40:43 cmm, I'd hoped that calling methods is faster 10:40:57 at least as soon as I put safety to 0 ;-) 10:41:05 -!- homie` [~levgue@xdsl-78-35-182-71.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 10:41:13 to be slightly more blunt: your desire is understandable given (my assumption about) your background, but lisp is not written like that by people who are not newbies 10:41:14 cmm: :type declarations can also serve as documentation. 10:41:30 cmm: Huh? I think the expectations are righteous, it's just that sbcl does not really show strength 10:41:48 Well, you could define the class twice. 10:41:51 cmm: Speak for yourself :-) I use type declarations all the time for what Hans said 10:42:02 Once could be a very simple definition. :) 10:42:15 tcr1: I don't see how the approach "declare types as early as possible" is sane, but that's just me 10:42:39 -!- adarnimrod [~nimrod@bzq-79-179-199-226.red.bezeqint.net] has quit [Ping timeout: 240 seconds] 10:43:42 homie [~levgue@xdsl-78-35-182-71.netcologne.de] has joined #lisp 10:43:44 the documentation angle is valid, though, yes. but when you bump into "problems" like "my implementation doesn't allow me to refer to classes I haven't defined yet", well that's a sign that you are overdoing things :) 10:43:48 <_8david> Personally I really like :type, especially on defstructs. Aside from just documentation, a little bit of type checking is actually a good thing. 10:43:49 cmm: I see it as assertions-inserted-by-compiler; which is nice when refactoring where you might easily forget something 10:44:06 Try (defclass foo () ()) as a kind of forward declaration :) 10:44:10 hello, is it normal that I have to specify (set-language-environment "UTF-8") in .emacs ? shouldn't it come from OS settings ? 10:44:58 <_8david> I also think speed should actually benefit from type declarations; that no existing implementation does anything of the sort is a different matter. 10:45:16 _8david: SBCL does use them 10:45:27 <_8david> p_l|backup: for values returned from slot readers? 10:45:33 cmm: It's nice to get an error message "FOO is not of type " up the call stack rather than "FOO is not of type " somewhere down the call stack :-) 10:45:33 p_l|backup: not to my knowledge 10:45:44 hmm...not in CLOS, I think 10:46:28 -!- Joreji [~thomas@72-022.eduroam.RWTH-Aachen.DE] has quit [Ping timeout: 240 seconds] 10:46:53 -!- adarnimrod_ [~nimrod@bzq-79-183-206-205.red.bezeqint.net] has quit [Ping timeout: 264 seconds] 10:47:00 tcr1: as long as that possibly-very-old type declaration still reflects reality of the code down the call stack, which is not authomatically given :) 10:47:23 cmm: Especially because those type constraints are enforced at construction / assignment time, not on access time which might be totally somewhere else 10:48:01 <_8david> The issue with CLOS is that, while PCL does all it can to optimize run time dispatch, the really big speedup comes from avoiding run time dispatch in the first place: 10:48:01 ilmari [ilmari@knuth.ping.uio.no] has joined #lisp 10:48:09 <_8david> The call site of a gf with only one applicable method should inline (!) the method, and have all the magic of the normal compiler available for further optimization at that point. 10:48:15 Yeah 10:48:43 <_8david> Gwydion Dylan does precisely this, and uses it to great success. But it is does this optimization statically at compile time, and depends on user-specified sealing information. 10:49:10 that would require either sealing or _really_ smart recompilation of call sites in case you add a method 10:49:20 <_8david> So that still trails behind modern language runtimes like the JVM, which look at runtime data to decide inlining for the JIT. 10:49:27 -!- billstclair [~billstcla@unaffiliated/billstclair] has quit [Ping timeout: 240 seconds] 10:49:56 ...or a good JIT, yes :) 10:50:04 -!- ace4016 [ace4016@adsl-32-8-249.mia.bellsouth.net] has quit [Disconnected by services] 10:50:05 Atomsk [~ace4016@adsl-32-8-249.mia.bellsouth.net] has joined #lisp 10:50:12 <_8david> A hotspot-quality implementation of CLOS would obviously be lots of work, so I'm not volunteering for it, but I see no reason it shouldn't be possible in principle. 10:50:18 -!- Atomsk is now known as ace4016 10:51:47 adarnimrod_ [~nimrod@bzq-79-183-208-77.red.bezeqint.net] has joined #lisp 10:52:31 Just translate it to javascript :) 10:53:05 are slime/sbcl questions appropriate here? 10:53:09 ZabaQ [~john.conn@213.246.116.21] has joined #lisp 10:53:22 <_8david> Zhivago: Having retargetted a compiler to JavaScript output recently, I can confidently say that JavaScript runtimes aren't there yet. 10:53:41 Yeah, but they will be. 10:53:58 jtza8 [~jtza8@wbs-41-208-220-181.wbs.co.za] has joined #lisp 10:55:19 how can I get slime-eval to not put all the symbols in the swank-io-package package? 10:55:38 (slime-eval '(* 2 3)) => The function SWANK-IO-PACKAGE::* is undefined. 10:55:43 -!- gko [~gko@211.21.137.140] has quit [Ping timeout: 255 seconds] 10:56:23 (slime-eval '(cl:* 2 3)) => 6 10:58:36 -!- myu2 [~myu2@58x5x224x106.ap58.ftth.ucom.ne.jp] has quit [Remote host closed the connection] 10:59:58 You are supposed to qualify symbols explicitly 11:00:03 except t and nil 11:00:19 even ones in cl(-user)? 11:00:20 quack [~quack@2.82.30.158] has joined #lisp 11:00:42 *package* is bound to swank-io-package before calling read on the sexp transmitted from emacs 11:00:48 which does not :use any package 11:00:58 billstclair [~billstcla@unaffiliated/billstclair] has joined #lisp 11:01:29 I think you might be misusing slime-eval from what it is intended for 11:01:50 -!- pato [~quack@2.82.29.160] has quit [Ping timeout: 250 seconds] 11:02:04 It should be named slime-rpc-call rather than slime-eval 11:02:18 I'm trying to make something that'll let me eval stuff in the running slime sbcl from the command line 11:02:25 i.e. something akin to emacsclient -e EXPR 11:02:52 -!- lambda-avenger [~roman@adsl-99-185-244-104.dsl.pltn13.sbcglobal.net] has left #lisp 11:02:58 call (swank:interactive-eval "string-to-evaluated") 11:03:37 or something else, possibly a defslimefun written by yourself 11:04:44 hargettp [~hargettp@96.237.127.144] has joined #lisp 11:04:53 -!- dym [~dym@217.20.175.226] has quit [Ping timeout: 264 seconds] 11:05:10 that does what I want, thanks 11:05:41 well you should check its interplay with slime-buffer-package 11:05:59 -!- ttb [~frinnn@i59F60AC4.versanet.de] has quit [Ping timeout: 265 seconds] 11:07:07 xan_ [~xan@6.134.165.83.dynamic.mundo-r.com] has joined #lisp 11:10:19 ilmari: I think it's an interesting idea and you might want to write to the mailing list about it. 11:10:51 emacsclient -e "(let ((slime-buffer-package \"COMMON-LISP-USER\")) (slime-eval '(swank:interactive-eval \"$1\")))" # seems to DTRT 11:11:09 ilmari: In emacsclient -e EXPR, where does output go to, where the result? 11:11:31 ttb [~frinnn@i59F62D5E.versanet.de] has joined #lisp 11:11:55 output goes to *Messages*, the result to the terminal 11:12:46 With slime, you could make both go to the terminal, though it needs some digging into the internals 11:12:54 urandom__ [~user@p548A6BD6.dip.t-dialin.net] has joined #lisp 11:13:20 It's a cute idea, I'd appreciate if you could wrap it up in a shellsrcript, call it slimeclient, and post it to the mailing list; ask for critique and perhaps inclusion 11:13:59 hm 11:14:24 perhaps what I rather want is a swankclient kind of thing which does not go over emacs 11:14:35 kenjin2201 [~kenjin@211.177.88.67] has joined #lisp 11:14:36 -!- adarnimrod_ [~nimrod@bzq-79-183-208-77.red.bezeqint.net] has quit [Ping timeout: 240 seconds] 11:15:04 -!- Harag [~Harag@wbs-41-208-211-15.wbs.co.za] has quit [Ping timeout: 255 seconds] 11:15:42 Harag [~Harag@wbs-41-208-211-15.wbs.co.za] has joined #lisp 11:16:52 that makes sense 11:18:25 jao [~user@pdpc/supporter/professional/jao] has joined #lisp 15:16:32 ccl-logbot [~ccl-logbo@setf.clozure.com] has joined #lisp 15:16:32 15:16:32 -!- names: ccl-logbot felideon gozoner lnostdal rmarianski adamvh vilsonvieira green` hargettp benny jkantz ASau jweiss_ serichsen gravicappa corruptmemory flip214 nha kushal freiksenet Demosthenes tcr1 blinda amb007 LiamH HET2 quack CDomovoy dym pankajm Jasko silenius billitch juniorroy ch077179 abeaumont dlowe xan_ RaceCondition emacsenli mathrick myu2 HG` gemelen ignas yvdriess Joreji pdelgallego_ pdelgallego adarnimrod Krystof Wraithan dfkjjkfd billstclair 15:16:32 -!- names: AntiSpamMeta apox_ hohum rafl jao Harag kenjin2201 urandom__ ttb ZabaQ ace4016 ilmari homie mvilleneuve Ralith rasterbar H4ns` lanthan_afh malbertife jdz dmv_ dRbiG sm` Hun snearch citizen428 kiuma vokoda insomniaSalt splittist e-user peterhil ehu pchrist az mrSpec trebor_dki parcs mishoo pavelludiq jomatv6 macrobat Ginei_Morioka rme mosva lemoinem gumpa moore33 bigjust_ SsvRrwQ hramrach_ sonnym seangrove gz nilly Wakko10Warner c|mell brickhazel hugod_ egn 15:16:32 -!- names: yonatan_ Intensity quasisane BrianRice nullman beslyrus Salamander incandenza leo2007 jimrthy katesmith daniel_ snorble xinming beach larva Fill slyrus xyblor cOOLz k9quaint Adamant xavieran OliverUv cmm z0d johanbev Euthydemus SpitfireWP sykopomp jacobian wol s0ber silentbicycle pjb tsuru angavrilov em eno__ kencausey prip_ qsun_ koning_r1bot arbscht Quadrescence huehnts galdor joe6 xristos Landr mnemonicsloth dto araujo krappie__ reb sellout rien_ 15:16:32 -!- names: wanderingelf kuffaar tritchey rvncerr Odin- simontwo REPLeffect |3b|``` joast rootzlevel cky Axioplase_ lonstein froggey elly tvaalen Oddity phadthai antoszka bobbysmith007 alexsuraci` srcerer Yamazaki-kun talyz PissedNumlock madnificent rokstar theBlackDragon rdd chrnybo Xantoz tychoish aidalgol fnordus Aisling setheus akkartik vert2_ luis devn HerbieB tessier HDurer_home Fade Posterdati og albino cataska mtd erk redline6561 nowhere_man clop Zhivago 15:16:32 -!- names: lispmeister_ cods cmbntr tic Zahl pok_ cYmen churib [df] ocharles metasyntax timchen1` ineiros Patzy dcrawford The_Fellow zc00gii Khisanth ramus ecraven bfein njan karbak v0|d mal__ peddie stepnem Bucciarati 36DAA07FI lorenz NNshag adeht baggles derrotebaron seejay jsnell tomaw felipe bzzbzz kanru metasyntax` gnooth Kovensky ivan4th krl Obfuscate ianmcorvidae easyE rtoym zeroish _8david rsynnott CrazyEddy mindCrime TeMPOraL euphidime koollman PuffTheMagic 15:16:32 -!- names: pkhuong ``Erik minion specbot lisppaste Jabberwockey mornfall sid3k vsync rahul pattern alexsuraci Dodek zakwilson lusory fe[nl]ix Xof rabite hyko levi jamief vandemar _3b djinni` fmu df_aldur antifuchs delYsid Xach Tordek rafusy housel thijso acieroid trigen mgr yahooooo deepfire p_l|backup zbigniew tty234 hdurer_office jayne froydnj Pepe_ ve spacebat dostoyevsky rapacity joshe johs fds boyscared mpedersen quasi_ Adrinael SecretAgent rotty shachaf guther 15:16:32 -!- names: cpt_nemo Tristam DrForr jesusabdullah svk_ fmu__ nuba _2x2l Draggor Borbus ozzloy qebab kloeri pr scode clog gju_ gds ejohnson jrockway lianj 15:16:41 Ah, I didn't notice he was in this channel 15:16:58 he's probably sleeping, though. 15:17:06 sluggish west-coaster. 15:17:31 Hah, I am a west-coaster, though I've been up all night (trying) to lisphack 15:19:43 Xach: wait a minute, be patient :) 15:20:25 -!- ignas [~ignas@78-60-36-123.static.zebra.lt] has quit [Ping timeout: 255 seconds] 15:20:40 csamuelson [~user@173-14-110-121-nashville.hfc.comcastbusiness.net] has joined #lisp 15:22:01 ignas [~ignas@78-60-36-123.static.zebra.lt] has joined #lisp 15:23:03 wedgeV [~wedge@cpe90-146-32-187.liwest.at] has joined #lisp 15:24:51 -!- sonnym [~evissecer@rrcs-184-74-137-167.nys.biz.rr.com] has quit [Quit: Leaving.] 15:25:05 milanj [~milanj_@212-200-223-110.dynamic.isp.telekom.rs] has joined #lisp 15:25:45 Xach: No, ccl's http load support does not support https. The built-in http client is very simple-minded. 15:26:13 rme: I'm inclined to move quicklisp bootstrapping to https, sorry. 15:27:27 Xach: btw, I just came back to using lisp after about a year of not using it. quicklisp is rather amazing. 15:27:47 js0000 [~js@67.208.188.68] has joined #lisp 15:28:27 Welcome back! Enjoy your stay. 15:28:28 <_8david> hmm, will that involve https from Lisp or using command line tools? 15:28:40 _8david: or, you know, a browser. 15:29:06 Phoodus [~foo@ip68-231-47-70.ph.ph.cox.net] has joined #lisp 15:29:07 Xach: Oh well, it was a nice hack. 15:29:07 *_8david* scratches head, obviously misses context 15:29:34 _8david: just the bootstrap file (quicklisp.lisp) will be https, and the rest will use pgp to verify http-fetched files. 15:30:41 <_8david> Hmm, in that case CCL's lack of https support doesn't sound like it would affect that step! 15:31:15 _8david: one of the example uses of ccl's new load feature is (load "http://beta.quicklisp.org/quicklisp.lisp") 15:31:24 _8david: that might stop working. 15:32:18 -!- Harag [~Harag@wbs-41-208-211-15.wbs.co.za] has quit [Ping timeout: 265 seconds] 15:32:50 astoon [~astoon@94.25.192.130] has joined #lisp 15:34:14 -!- Phoodus [~foo@ip68-231-47-70.ph.ph.cox.net] has quit [Ping timeout: 276 seconds] 15:36:01 pkhuong: you're right, that is what is happening, I stepped through though and found in decode-value when it gets to the (decode-object :lazy-string source) that is where it is pulling out the entity as the type. 15:38:29 tfb [~tfb@92.41.62.138.sub.mbb.three.co.uk] has joined #lisp 15:38:41 -!- daniel_ [~daniel@p5B3260FD.dip.t-dialin.net] has quit [Read error: Operation timed out] 15:39:01 daniel [~daniel@p50829ABD.dip.t-dialin.net] has joined #lisp 15:40:32 -!- kiuma [~kiuma@85-18-55-37.ip.fastwebnet.it] has quit [Read error: Connection reset by peer] 15:41:15 -!- HET2 [~diman@cpc1-cdif12-2-0-cust125.5-1.cable.virginmedia.com] has quit [Ping timeout: 276 seconds] 15:41:20 kiuma [~kiuma@85-18-55-37.ip.fastwebnet.it] has joined #lisp 15:41:46 -!- bigjust_ [~bigjust@justin.caratzas.org] has quit [Remote host closed the connection] 15:42:57 Yuuhi [benni@p5483A464.dip.t-dialin.net] has joined #lisp 15:50:00 -!- reb [~user@nat/google/x-ohlqlnalkefzjtmp] has quit [Ping timeout: 260 seconds] 15:50:53 -!- felideon [~felideon@65.23.61.98.nw.nuvox.net] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 15:51:51 -!- astoon [~astoon@94.25.192.130] has quit [Ping timeout: 240 seconds] 15:54:34 -!- flip214 [~marek@unaffiliated/flip214] has quit [Remote host closed the connection] 15:59:35 -!- Hun [~Hun@host-80-81-19-29.customer.m-online.net] has quit [Read error: Connection reset by peer] 16:00:02 bigjust_ [~bigjust@justin.caratzas.org] has joined #lisp 16:00:14 Hun [~Hun@host-80-81-19-29.customer.m-online.net] has joined #lisp 16:02:04 -!- mvilleneuve [~mvilleneu@LLagny-156-36-4-214.w80-14.abo.wanadoo.fr] has quit [Quit: Lost terminal] 16:02:46 brown [~user@nat/google/x-itlyexrogwdrgfcd] has joined #lisp 16:03:07 -!- brown is now known as reb 16:03:20 -!- malbertife [~marcoalbe@gw-e-U-EdII.nat.fct.unl.pt] has quit [Quit: malbertife] 16:03:36 -!- adarnimrod [~nimrod@bzq-79-179-209-113.red.bezeqint.net] has quit [Quit: Ex-Chat] 16:04:54 -!- kiuma [~kiuma@85-18-55-37.ip.fastwebnet.it] has quit [Read error: Connection reset by peer] 16:04:55 kiuma_ [~kiuma@85-18-55-37.ip.fastwebnet.it] has joined #lisp 16:06:36 -!- bigjust_ [~bigjust@justin.caratzas.org] has quit [Remote host closed the connection] 16:06:44 mega1 [~quassel@2001:470:1f05:548:215:58ff:fe7d:773b] has joined #lisp 16:06:58 hlavaty [~user@95-88-27-48-dynip.superkabel.de] has joined #lisp 16:07:06 bigjust_ [~bigjust@justin.caratzas.org] has joined #lisp 16:10:04 -!- blinda [~blinda@77.43.6.114] has quit [Read error: Connection reset by peer] 16:11:43 sonnym [~evissecer@singlebrookvpn.lightlink.com] has joined #lisp 16:11:48 -!- xan_ [~xan@129.131.117.91.dynamic.mundo-r.com] has quit [Ping timeout: 276 seconds] 16:14:20 -!- reb [~user@nat/google/x-itlyexrogwdrgfcd] has quit [Read error: Operation timed out] 16:14:25 reb [~user@nat/google/x-jdzyxhxkcrmghuyj] has joined #lisp 16:14:30 -!- dmv_ [~daniel@189-47-114-243.dsl.telesp.net.br] has quit [Ping timeout: 272 seconds] 16:17:55 xan_ [~xan@6.134.165.83.dynamic.mundo-r.com] has joined #lisp 16:18:06 superflit [~superflit@140.226.49.148] has joined #lisp 16:21:40 -!- bigjust_ [~bigjust@justin.caratzas.org] has quit [Remote host closed the connection] 16:25:41 blinda [~blinda@77.43.6.114] has joined #lisp 16:25:56 Xach: http://paste.lisp.org/display/118970 16:26:04 Xach: I think it should work 16:28:34 Kaek [~b@c-9ccde253.97-16-64736c12.cust.bredbandsbolaget.se] has joined #lisp 16:31:12 astoon [~astoon@109.188.199.255] has joined #lisp 16:31:17 -!- emacsenli [~Administr@115.231.65.160] has left #lisp 16:37:04 dmv_ [~daniel@189-47-104-65.dsl.telesp.net.br] has joined #lisp 16:38:03 Harag [~Harag@41.56.30.218] has joined #lisp 16:39:18 i am wondering if anyone has tried these packages: https://github.com/Ramarren/cl-parser-combinators vs http://common-lisp.net/~dcrampsie/smug.html 16:39:41 i am trying to use one of them and am not sure which is more robust and well used. 16:39:47 iwillig [~iwillig@dyn-128-59-150-188.dyn.columbia.edu] has joined #lisp 16:40:20 -!- jdz [~jdz@193.206.22.97] has quit [Read error: Operation timed out] 16:41:45 Bold adventurer -- keep a journal. ;) 16:43:20 -!- Kaek [~b@c-9ccde253.97-16-64736c12.cust.bredbandsbolaget.se] has quit [Read error: Connection reset by peer] 16:44:57 -!- juniorroy [~juniorroy@212.36.224.57] has quit [Ping timeout: 276 seconds] 16:45:41 Xach: are you there? 16:45:46 Kaek [~b@c-9ccde253.97-16-64736c12.cust.bredbandsbolaget.se] has joined #lisp 16:46:13 -!- astoon [~astoon@109.188.199.255] has quit [Read error: Connection reset by peer] 16:48:30 -!- Hun [~Hun@host-80-81-19-29.customer.m-online.net] has quit [Remote host closed the connection] 16:48:51 rins [~user@173-162-214-174-NewEngland.hfc.comcastbusiness.net] has joined #lisp 16:49:15 -!- nilly [~nil@c-98-247-253-56.hsd1.wa.comcast.net] has quit [Quit: quit] 16:49:27 pato [~quack@2.82.26.157] has joined #lisp 16:49:47 yan_ [~yan@static-129-44-60-25.ny325.east.verizon.net] has joined #lisp 16:50:23 is there an easy way to iterate via loop to permute a (x,y,z) tuple rather than move in step? i want to permute a 3 dimensional array with a single (loop ..), or is it better to nest? 16:50:29 please help, how can I convert a char to an integer? 16:50:30 tx 16:50:53 -!- kiuma_ [~kiuma@85-18-55-37.ip.fastwebnet.it] has quit [Quit: Leaving] 16:51:20 clhs char-code 16:51:20 http://www.lispworks.com/reference/HyperSpec/Body/f_char_c.htm 16:51:31 blinda: what do you mean a char to an integer? 16:52:17 sykopomp: I read-byte a file and store bytes in an array, but when I aref it I got #\ value 16:52:26 do you mean #\1 to 1, or the character's code? 16:52:41 yes, I need integer value 16:52:50 -!- quack [~quack@bl16-241-21.dsl.telepac.pt] has quit [Ping timeout: 250 seconds] 16:53:12 blinda: what's the array's type? 16:53:35 (setf *message-header* (make-array 3 :initial-element 0)) 16:54:31 is it an integer array? 16:55:55 ? 16:56:19 -!- citizen428 [~citizen42@chello213047077012.23.11.vie.surfer.at] has quit [Remote host closed the connection] 16:56:30 blinda: no...its of type t, which means it will take any object as elements 16:57:46 blinda: you could try this...(make-array 3 :element-type 'character :initial-element #\0) 16:57:55 blinda: are you doing a read-char or a read-byte? 16:58:06 splittist: read-byte 16:58:24 hargettp: ok, I'm trying 16:59:30 (setf *message-header* (make-array 3 :element-type 'integer :initial-element 0)) 16:59:47 blinda: makes sense 17:00:42 hargettp: but read sequence returns #(#\m #\m #\u) 17:00:46 in the array 17:02:53 blinda: are you sure you reloaded your code after making the change to the element type? :) 17:03:05 yes 17:03:10 -!- nha [~prefect@imamac13.epfl.ch] has quit [Ping timeout: 265 seconds] 17:03:13 but I'm trying it in the REPL 17:04:08 astoon [~astoon@109.188.199.255] has joined #lisp 17:05:55 blinda: huh, that's fun...on SBCL at least, a character can go into an array of integers... 17:06:07 vokoda` [~user@host109-156-6-118.range109-156.btcentralplus.com] has joined #lisp 17:06:41 blinda: unless someone else has a more enlightened idea...I think char-code may be useful here...or to review the element-type on the stream you are reading... 17:07:27 -!- vokoda [~user@unaffiliated/vokoda] has quit [Ping timeout: 240 seconds] 17:07:34 If you're reading externally, flexi-streams or babel might be better than char-code. 17:08:12 -!- rme [~rme@pool-70-106-129-201.chi01.dsl-w.verizon.net] has left #lisp 17:08:21 -!- ignas [~ignas@78-60-36-123.static.zebra.lt] has quit [Ping timeout: 276 seconds] 17:10:43 -!- CDomovoy is now known as CyberDomovoy 17:11:11 is there an idiomatic way to loop over a range of floats separates by 1? as far as i understand, (loop for i from 0 upto 20) only works with integer types 17:11:54 hargettp: is the open option :) :element-type 'unsigned-byte 17:12:32 -!- myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 17:13:09 yan_: (loop for i from 0.0 upto 10.0 collecting i) ; works in SBCL at least 17:13:29 ilmari: hm i thought i tried that, but thanks 17:14:32 yan_: (loop for i from 0.0 upto 10.0 by 0.5 collecting i) ; non-integer increments work too 17:14:35 blinda: hah, joy...that's an integer :0 17:14:38 :) 17:15:24 hargettp: the problem is that using sb-posix:open I've got a number for file descriptor, so I cannot read from a serial port opened with sb-posix:open :) 17:15:26 -!- vilsonvieira [~vilson@187.58.255.185] has quit [Read error: Connection reset by peer] 17:15:39 hargettp: I've to use sb-posix:read if exists at all 17:17:18 pnq [~nick@172.162.229.89] has joined #lisp 17:18:10 blinda: I'd try flexi-streams, fwiw...sykopomp had good advice :) 17:19:00 malbertife [~marcoalbe@bl11-45-212.dsl.telepac.pt] has joined #lisp 17:19:55 -!- serichsen [~user@switch1.elmi.uni-bonn.de] has quit [Quit: Quiet Man] 17:20:47 jikanter [~jikanter@66.146.192.29] has joined #lisp 17:21:59 jdz [~jdz@host189-21-dynamic.4-87-r.retail.telecomitalia.it] has joined #lisp 17:22:42 quack [~quack@bl16-172-32.dsl.telepac.pt] has joined #lisp 17:22:57 hm is there a fast way to turn an arbitrary floating point cl floating point value to 'single-float? would (coerce ..) work? 17:25:15 yan_: Yes. 17:25:17 -!- pato [~quack@2.82.26.157] has quit [Ping timeout: 264 seconds] 17:25:45 jewel [~jewel@196-210-187-98.dynamic.isadsl.co.za] has joined #lisp 17:26:06 yan_: or use the FLOAT function. 17:26:16 ok, ye ppl 17:26:18 bye 17:26:19 tx 17:26:23 -!- blinda [~blinda@77.43.6.114] has quit [Quit: Leaving] 17:26:25 -!- kushal [~kdas@fedora/kushal] has quit [Ping timeout: 255 seconds] 17:26:50 -!- tfb [~tfb@92.41.62.138.sub.mbb.three.co.uk] has quit [Ping timeout: 260 seconds] 17:28:34 -!- eno__ is now known as eno 17:28:50 -!- eno [~eno@adsl-70-137-134-172.dsl.snfc21.sbcglobal.net] has quit [Changing host] 17:28:50 eno [~eno@nslu2-linux/eno] has joined #lisp 17:28:53 Bronsa [~brace@host71-180-dynamic.54-82-r.retail.telecomitalia.it] has joined #lisp 17:29:17 -!- silenius [~silenus@p4FC22B9B.dip.t-dialin.net] has quit [Remote host closed the connection] 17:30:42 zomgbie [~jesus@h081217131002.dyn.cm.kabsi.at] has joined #lisp 17:32:22 -!- e-user [~akahl@nat/nokia/x-lqqmsdtzfntsozsr] has quit [Quit: Leaving.] 17:32:29 vilsonvieira [~vilson@189.58.118.84.dynamic.adsl.gvt.net.br] has joined #lisp 17:33:34 -!- jao [~user@pdpc/supporter/professional/jao] has quit [Ping timeout: 250 seconds] 17:34:45 rgrau [~user@62.Red-88-2-20.staticIP.rima-tde.net] has joined #lisp 17:34:56 Phoodus [~foo@ip68-231-47-70.ph.ph.cox.net] has joined #lisp 17:35:34 -!- Ralith [~ralith@S010600221561996a.vc.shawcable.net] has quit [Ping timeout: 272 seconds] 17:37:06 -!- vilsonvieira [~vilson@189.58.118.84.dynamic.adsl.gvt.net.br] has quit [Client Quit] 17:38:13 drdo [~user@91.205.108.93.rev.vodafone.pt] has joined #lisp 17:38:46 -!- astoon [~astoon@109.188.199.255] has quit [Ping timeout: 250 seconds] 17:39:02 morphling [~stefan@gssn-5f7547df.pool.mediaWays.net] has joined #lisp 17:39:23 -!- Phoodus [~foo@ip68-231-47-70.ph.ph.cox.net] has quit [Ping timeout: 255 seconds] 17:40:57 kiuma [~kiuma@85-18-55-37.ip.fastwebnet.it] has joined #lisp 17:41:30 kleppari [~spa@bitbucket.is] has joined #lisp 17:41:38 prxq [~mommer@mnhm-590c3292.pool.mediaWays.net] has joined #lisp 17:41:47 hi 17:42:08 *Xach* wonders where blinda got that idea for the (= i 42) stuff 17:42:38 who is blinda? 17:43:05 nyef [~nyef@pool-70-20-57-204.man.east.myfairpoint.net] has joined #lisp 17:43:20 Hello all. 17:43:28 nyef: heya 17:43:29 hi nyef 17:43:37 prxq: a person with some funky code 17:43:40 nyef: did you finish your bisect? 17:43:48 No, I started it. 17:43:57 nyef: i'll race you! 17:44:06 *Xach* turns on the 5th and 6th cores! 17:44:24 Assigning 42 to i? AND forgetting earmuffs?? 17:44:25 It takes about half an hour per build, and a gap of 1.0.40 through HEAD is still something like seven or eight builds to bisect. 17:45:45 lol. 17:45:52 jesusabdullah: see http://paste.lisp.org/display/118970 17:46:53 pato [~quack@bl15-119-7.dsl.telepac.pt] has joined #lisp 17:48:52 Xach: ow 17:49:51 -!- quack [~quack@bl16-172-32.dsl.telepac.pt] has quit [Ping timeout: 240 seconds] 17:49:56 myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has joined #lisp 17:50:03 -!- yvdriess [~Beef@soft85.vub.ac.be] has quit [Quit: Leaving] 17:50:25 that's a condvolute 17:51:26 varjag [~eugene@4.169.249.62.customer.cdi.no] has joined #lisp 17:51:45 is that due to the nature of that protocol? Doesn't look like the programmer did not know what he/she was doing either 17:52:04 prxq: inexperience 17:52:26 -!- hargettp [~hargettp@dhcp-162.mirrorimage.net] has quit [Remote host closed the connection] 17:52:53 -!- pnq [~nick@172.162.229.89] has quit [Ping timeout: 264 seconds] 17:53:03 -!- ehu [~ehuels@109.33.170.105] has quit [Ping timeout: 240 seconds] 17:53:34 gonzojive [~red@c-71-198-7-84.hsd1.ca.comcast.net] has joined #lisp 17:54:15 -!- peterhil [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has quit [Ping timeout: 260 seconds] 17:56:35 -!- xan_ [~xan@6.134.165.83.dynamic.mundo-r.com] has quit [Ping timeout: 260 seconds] 18:00:21 -!- trebor_dki [~user@mail.dki.tu-darmstadt.de] has quit [Ping timeout: 276 seconds] 18:00:50 ikki [~ikki@201.122.132.181] has joined #lisp 18:04:42 *Xach* is 15 minutes from 18:04:44 victory! 18:05:50 xan_ [~xan@129.131.117.91.dynamic.mundo-r.com] has joined #lisp 18:05:52 put down the hose and shut those cores down 18:06:15 hargettp [~hargettp@dhcp-162.mirrorimage.net] has joined #lisp 18:06:28 -!- milanj [~milanj_@212-200-223-110.dynamic.isp.telekom.rs] has quit [Ping timeout: 240 seconds] 18:08:15 -!- jewel [~jewel@196-210-187-98.dynamic.isadsl.co.za] has quit [Ping timeout: 240 seconds] 18:08:28 jewel_ [~jewel@196-210-134-102.dynamic.isadsl.co.za] has joined #lisp 18:11:19 l4ndfo [~l4ndfo@S0106001cf0520ea3.ed.shawcable.net] has joined #lisp 18:11:46 brodo [~brodo@p5B024267.dip.t-dialin.net] has joined #lisp 18:11:48 milanj [~milanj_@93-87-193-53.dynamic.isp.telekom.rs] has joined #lisp 18:12:08 dlowe1 [~dlowe@ita4fw1.itasoftware.com] has joined #lisp 18:13:01 -!- dlowe [~dlowe@c-66-30-116-162.hsd1.ma.comcast.net] has quit [Quit: *poof*] 18:13:07 -!- dlowe1 [~dlowe@ita4fw1.itasoftware.com] has quit [Client Quit] 18:13:29 dlowe [~dlowe@ita4fw1.itasoftware.com] has joined #lisp 18:13:38 -!- dto [~dto@pool-96-252-62-25.bstnma.fios.verizon.net] has quit [Ping timeout: 240 seconds] 18:14:52 -!- gonzojive [~red@c-71-198-7-84.hsd1.ca.comcast.net] has quit [Quit: gonzojive] 18:16:55 -!- lorenz [~moesenle@atradig141.informatik.tu-muenchen.de] has quit [Quit: Ex-Chat] 18:17:02 lorenz [~moesenle@atradig141.informatik.tu-muenchen.de] has joined #lisp 18:18:30 -!- Harag [~Harag@41.56.30.218] has quit [Read error: Connection reset by peer] 18:18:45 Harag [~Harag@41.56.30.218] has joined #lisp 18:19:13 -!- splittist [~John@174-110.3-85.cust.bluewin.ch] has quit [Quit: rcirc on GNU Emacs 23.2.1] 18:23:42 mytoh [~mytoh@h220-215-161-087.catv02.itscom.jp] has joined #lisp 18:25:11 -!- myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 18:30:26 nyef: i got f2218c68ed978533fc46830ac81f4517fefe5a2a - pkhuong to blame? 18:32:18 -!- gozoner [~ebg@ebg-10004083621.jpl.nasa.gov] has quit [Remote host closed the connection] 18:32:56 Zephyrus [~emanuele@unaffiliated/zephyrus] has joined #lisp 18:34:05 -!- HG` [~HG@xdsl-188-118-130-183.dip.osnanet.de] has quit [Read error: Connection reset by peer] 18:34:26 HG` [~HG@xdsl-188-118-130-183.dip.osnanet.de] has joined #lisp 18:34:49 -!- Harag [~Harag@41.56.30.218] has quit [Ping timeout: 255 seconds] 18:35:38 dstatyvka [ejabberd@pepelaz.jabber.od.ua] has joined #lisp 18:36:01 Edward [~ed@AAubervilliers-154-1-55-132.w90-3.abo.wanadoo.fr] has joined #lisp 18:36:27 silenius [~silenus@p4FC22B9B.dip.t-dialin.net] has joined #lisp 18:36:33 _s1gma [~herpderp@77.107.164.131] has joined #lisp 18:38:34 *Xach* wonders what prize he wins 18:41:06 foom [~jknight@ita4fw1.itasoftware.com] has joined #lisp 18:41:20 -!- foom [~jknight@ita4fw1.itasoftware.com] has quit [Client Quit] 18:41:41 foom [~jknight@ita4fw1.itasoftware.com] has joined #lisp 18:43:26 Wraithan: weird, I thought I had tests for 's implicit string-ness 18:43:26 antifuchs, memo from Wraithan: I found a bug in cxml-rpc, or at least a deficiency. I've attempted to correct it myself but can't seem to run it all the way down. http://paste.lisp.org/display/118960 is a paste of an example that will prove it happening. I stepped through though and found in decode-value when it gets to the (decode-object :lazy-string source) that is where it is pulling out the entity as the type. 18:43:48 gnargh, xml-rpc. 18:43:49 *antifuchs* mimics strangling motions 18:44:38 -!- mosva [~mosva@unaffiliated/mosva] has quit [Quit: mosva] 18:44:39 antifuchs: Yeah, I agree. I had my choice of xml-rpc or soap and went with xml-rpc... because soap still gives me nightmares 18:44:55 yeah, given the alternatives, xml-rpc is generally preferable 18:45:02 just... it's neither here nor there (: 18:45:09 anyway. I'll try and see if I can fix this 18:45:11 I attempted to debug your code but I ran out of free time this morning and had to start working 18:45:14 whereabouts on the west coast are you? (: 18:45:19 Portland 18:45:34 neat. I'm in the bay area (: 18:45:45 Ah cool, I have some friends that live down that. 18:45:50 s/that/there/ 18:47:20 astoon [~astoon@109.188.208.223] has joined #lisp 18:47:26 ferada [~user@g224098081.adsl.alicedsl.de] has joined #lisp 18:48:56 ah, hm. there's a bug in decode-object. interesting 18:49:33 oh wow. I'm doing all of character-reading entirely wrong. 18:49:45 (-: 18:50:06 antifuchs: ain't it a pain to have users? 18:50:12 Xach: no, it's great! 18:50:22 I wouldn't have found that bug without Wraithan (: 18:50:31 -!- ch077179 [~urs@adsl-84-227-34-124.adslplus.ch] has quit [Read error: Connection reset by peer] 18:51:13 oh. OH. that's even weirder. 18:52:02 I love how you can look at it for a couple minutes and see it and I was staring for hours trying to figure it out as I get back into lisp land 18:52:39 Wraithan: try this: (defmethod ((type (eql :lazy-string)) source) (let ((string (skip-characters source))) (when (eql :end-element (klacks:peek source)) (values string :string))) 18:54:10 antifuchs: I unfortunately can't right now, have to keep working until 1:30 when I leave to get a tooth ripped out of my face 18:54:52 peterhil [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has joined #lisp 18:54:52 Xach: Looking at the patch now. My bisect has three or four more builds left to get to that point. 18:56:20 I guess one of the first things to do would be to try a build of HEAD with that patch reverted, and see if that "works". 18:56:45 Another thing to do is ask pkhuong to weigh in on the matter... pkhuong? 18:57:03 -!- dym [~dym@217.20.175.226] has quit [Ping timeout: 240 seconds] 18:57:06 eek 18:57:10 well, good luck with that ((-: 18:57:31 Wraithan: I'll add tests and commit this soon - once the pain meds wear off, you should be able to use it again (: 18:58:28 mattrepl [~mattrepl@208.87.61.212] has joined #lisp 18:59:39 nyef: it doesn't quite revert cleanly, or maybe i'm doing it wrong. 19:00:24 I'll try in a bit. Still doing the bisect. 19:01:00 *Xach* tries it manually 19:01:35 -!- Ginei_Morioka [~irssi_log@78.114.143.149] has quit [Ping timeout: 265 seconds] 19:02:02 -!- snearch [~snearch@f053001103.adsl.alicedsl.de] has quit [Quit: Verlassend] 19:03:19 Ginei_Morioka [~irssi_log@78.114.155.118] has joined #lisp 19:03:25 *Xach* can't figure it out, sorry 19:04:21 homie` [~levgue@xdsl-84-44-178-68.netcologne.de] has joined #lisp 19:04:37 -!- jomatv6 [~jomat@2001:470:9935::badc:ab1e] has quit [Remote host closed the connection] 19:04:38 That's fine, if I can't get it either we can just dump it on pkhuong. 19:05:18 jomat [~jomat@2001:470:9935::badc:ab1e] has joined #lisp 19:05:19 dym [~dym@217.20.175.226] has joined #lisp 19:05:30 He's probably frozen solid :( 19:05:55 I'm in the university's assembly. Almost as bad ;) 19:06:04 -!- jomat [~jomat@2001:470:9935::badc:ab1e] has quit [Client Quit] 19:06:21 -!- pavelludiq [57f63ac1@gateway/web/freenode/ip.87.246.58.193] has quit [Ping timeout: 265 seconds] 19:06:27 ... there's a machine code programming joke in there somewhere, I just know it. 19:06:41 Athas [~athas@82.211.209.226] has joined #lisp 19:07:15 I'm going to bet that it's the bit-bash optimizations that are messed up. 19:07:17 -!- homie [~levgue@xdsl-78-35-182-71.netcologne.de] has quit [Ping timeout: 264 seconds] 19:07:38 ch077179 [~urs@adsl-84-227-35-133.adslplus.ch] has joined #lisp 19:08:34 -!- kiuma [~kiuma@85-18-55-37.ip.fastwebnet.it] has quit [Quit: Leaving] 19:08:58 -!- ch077179 [~urs@adsl-84-227-35-133.adslplus.ch] has quit [Max SendQ exceeded] 19:09:05 antifuchs: awesome, I look forward to playing with it. Thanks for taking a look and fixing it 19:09:14 you're welcome (: 19:09:20 always happy when somebody finds my stuff useful (: 19:09:22 ch077179 [~urs@adsl-84-227-35-133.adslplus.ch] has joined #lisp 19:10:13 -!- wedgeV [~wedge@cpe90-146-32-187.liwest.at] has quit [Quit: wedgeV] 19:11:14 hi ppl 19:11:18 quack [~quack@bl15-127-91.dsl.telepac.pt] has joined #lisp 19:12:06 please I'm trying to port a c program that configures a serial port and reads data through it, but I cannot find something like c function read() 19:12:15 -!- pato [~quack@bl15-119-7.dsl.telepac.pt] has quit [Ping timeout: 240 seconds] 19:12:47 sb-posix:open is good to make non blocking i/o, but I can't use read-byte on that kind of stream 19:13:01 -!- astoon [~astoon@109.188.208.223] has quit [Read error: Connection reset by peer] 19:14:27 Deximat [~Deximat@109.92.94.1] has joined #lisp 19:14:49 stassats [~stassats@wikipedia/stassats] has joined #lisp 19:15:02 -!- Deximat [~Deximat@109.92.94.1] has left #lisp 19:18:43 Posterdati: make-fd-stream makes a CL stream from a posix file descriptor as returned by sb-posix:open 19:18:59 antifuchs: good! 19:19:11 antifuchs: what about sb-sys:add-fd-handler 19:19:12 ? 19:19:53 that should work on the FD, too 19:20:02 cheez [~Adium@206-248-177-146.dsl.teksavvy.com] has joined #lisp 19:20:04 I'm not sure about the details, it's been a while 19:20:14 antifuchs: ok 19:20:20 maybe the sbcl or cmucl manuals can help you further 19:20:22 Harag [~Harag@41.56.30.218] has joined #lisp 19:21:05 you can also get an FD of a lisp stream with sb-sys:fd-stream-fd 19:21:31 of a file-stream, of course 19:21:36 stassats: ok 19:22:40 stassats: I need to use a sb-posix:open descriptor type with read-byte / read-sequence 19:23:37 dfox [~dfox@ip-94-113-89-201.net.upcbroadband.cz] has joined #lisp 19:23:41 Posterdati: Have a look for MAKE-FD-STREAM, then. 19:23:51 Oh, already recommended. I see. 19:23:55 nyef: no I don't... 19:24:05 mm.. CONSET is NIL. 19:25:55 -!- Harag [~Harag@41.56.30.218] has quit [Quit: Eish!] 19:26:06 Harag [~Harag@41.56.30.218] has joined #lisp 19:27:59 -!- prxq [~mommer@mnhm-590c3292.pool.mediaWays.net] has quit [Quit: Leaving] 19:30:17 astoon [~astoon@109.188.208.223] has joined #lisp 19:31:40 dcooper8 [~dcooper8@c-69-136-155-211.hsd1.mi.comcast.net] has joined #lisp 19:33:14 gonzojive [~red@171.66.88.16] has joined #lisp 19:34:50 ehu [~ehuels@ip118-64-212-87.adsl2.static.versatel.nl] has joined #lisp 19:35:07 -!- Harag [~Harag@41.56.30.218] has quit [Ping timeout: 255 seconds] 19:36:34 alexshendi [~alexshend@dslb-178-002-229-138.pools.arcor-ip.net] has joined #lisp 19:41:25 Wraithan: I've updated cxml-rpc on github. should fix your problem (and a whole bunch of potential others, too!) 19:42:19 -!- dcooper8 [~dcooper8@c-69-136-155-211.hsd1.mi.comcast.net] has quit [Quit: Leaving] 19:44:00 hey Xach, got your card, thanks! Keep up the good work :-D 19:44:36 *Xach* shall endeavor to do so 19:46:31 Modius [~Modius@cpe-70-123-158-125.austin.res.rr.com] has joined #lisp 19:48:54 does anyone see anything obviously wrong with the following macro? http://paste.lisp.org/display/118982 19:49:05 i'm trying to create a series of nested loops to permute a 3d array 19:49:24 Xach, do you have a Quicklisp roadmap? 19:49:44 to hopefully call as (permute 0 20 (i j k) (format t "~a~%" (list i j k)), which will turn into three nested (loop for ..) loops 19:50:33 tic: No. 19:51:22 -!- iwillig [~iwillig@dyn-128-59-150-188.dyn.columbia.edu] has quit [Ping timeout: 250 seconds] 19:53:20 yan_: you're passing only one arg to mapcar 19:53:27 what are you mapcar'ing over? 19:53:36 it would seem you only need the recursive macroexpansion there 19:54:53 -!- RaceCondition [~RaceCondi@82.131.61.203.cable.starman.ee] has quit [Remote host closed the connection] 19:54:54 yan_: a macro cannot call itself at compile-time 19:55:35 mishoo: as long as the recursive call is not an infinite loop, it can. 19:55:44 -!- ferada [~user@g224098081.adsl.alicedsl.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 19:56:19 macros are functions like any other function. 19:56:21 -!- zc00gii [~zc00gii@thefacepalm.net] has quit [Ping timeout: 240 seconds] 19:56:25 dlowe_n1 [~dlowe@guest-fw.dc4.itasoftware.com] has joined #lisp 19:57:06 macros can include themselves in their expansion 19:57:12 hmm 19:57:13 that is, a call to htemselves 19:57:16 that I know 19:57:19 hence, that ,@ is wrong (: 19:57:21 but there it's "unquoted" 19:57:40 tmh [6c491edf@pdpc/supporter/sustaining/tmh] has joined #lisp 19:57:45 Greetings lispers! 20:00:00 antifuchs: thanks i got it.. not sure why i decided to mapcar 20:03:09 -!- dmv_ [~daniel@189-47-104-65.dsl.telesp.net.br] has quit [Ping timeout: 240 seconds] 20:03:37 Adlai_ [~leif@static-71-249-194-107.nycmny.east.verizon.net] has joined #lisp 20:05:09 nowhereman [pierre@AStrasbourg-551-1-43-167.w92-148.abo.wanadoo.fr] has joined #lisp 20:05:12 iwillig [~iwillig@dyn-128-59-150-188.dyn.columbia.edu] has joined #lisp 20:06:23 -!- morphling [~stefan@gssn-5f7547df.pool.mediaWays.net] has quit [Remote host closed the connection] 20:06:58 RaceCondition [~RaceCondi@82.131.61.203.cable.starman.ee] has joined #lisp 20:09:03 -!- nowhere_man [~pierre@AStrasbourg-551-1-40-237.w92-148.abo.wanadoo.fr] has quit [Ping timeout: 276 seconds] 20:09:15 zc00gii [~zc00gii@thefacepalm.net] has joined #lisp 20:09:36 -!- hramrach_ [debian-tor@gateway/tor-sasl/hramrach] has quit [Remote host closed the connection] 20:11:03 -!- jewel_ [~jewel@196-210-134-102.dynamic.isadsl.co.za] has quit [Ping timeout: 240 seconds] 20:12:06 hramrach_ [debian-tor@gateway/tor-sasl/hramrach] has joined #lisp 20:13:41 josemanuel [~josemanue@41.252.217.87.dynamic.jazztel.es] has joined #lisp 20:16:52 -!- dlowe_n1 [~dlowe@guest-fw.dc4.itasoftware.com] has quit [Ping timeout: 276 seconds] 20:19:27 -!- Adamant [~Adamant@unaffiliated/adamant] has quit [Quit: Adamant] 20:19:48 antifuchs: sweet, I'll ping you later tonight and let you know how it works out. 20:19:53 -!- astoon [~astoon@109.188.208.223] has quit [Ping timeout: 264 seconds] 20:19:57 -!- josemanuel [~josemanue@41.252.217.87.dynamic.jazztel.es] has quit [Quit: Saliendo] 20:22:11 -!- Zephyrus [~emanuele@unaffiliated/zephyrus] has quit [Quit: ""] 20:24:44 -!- l4ndfo [~l4ndfo@S0106001cf0520ea3.ed.shawcable.net] has quit [Ping timeout: 250 seconds] 20:26:15 dmv_ [~daniel@189-47-104-65.dsl.telesp.net.br] has joined #lisp 20:26:44 -!- zomgbie [~jesus@h081217131002.dyn.cm.kabsi.at] has quit [Ping timeout: 276 seconds] 20:27:30 -!- dfox [~dfox@ip-94-113-89-201.net.upcbroadband.cz] has quit [Ping timeout: 240 seconds] 20:27:51 zomgbie [~jesus@h081217131002.dyn.cm.kabsi.at] has joined #lisp 20:27:55 pdponze [~pdponze@144.85.121.191] has joined #lisp 20:31:48 -!- freiksenet [~freiksene@cs181130165.pp.htv.fi] has quit [Quit: WeeChat 0.3.2] 20:32:30 joe6: I was Ramarren's cl-parser-combinators 20:34:15 s/was/use/ 20:35:03 I coudn't find any actual implementation of SMUG 20:35:16 cl-parser-combinators is very nice 20:35:22 BryanWB [~BryanWB@host176-215-dynamic.55-79-r.retail.telecomitalia.it] has joined #lisp 20:35:28 -!- BryanWB [~BryanWB@host176-215-dynamic.55-79-r.retail.telecomitalia.it] has left #lisp 20:36:06 the documentation is limited but my SMILES-parsing code might help you figure out how to use it 20:36:09 *stassats* waits till drewc writes WEENIE 20:36:30 SMUG, OTOH seemed to have great documentation, but no code available 20:36:40 drewc seems to be MIA 20:36:54 fisxoj [~fisxoj@cpe-24-59-205-231.twcny.res.rr.com] has joined #lisp 20:36:55 No way! http://www.reddit.com/user/drewc 20:37:35 i've seen him on pro@ mailing list in that dreaded thread 20:38:04 ok, missing-in-#lisp 20:38:16 Wraithan: awesome (: 20:38:57 I heard drewc has switched to java 20:39:14 stassats: hah, that dreaded thread! 20:39:45 adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined #lisp 20:41:02 *stassats* wonders whether there is elite@ ML 20:41:12 where subscription is by invitation 20:41:33 the pro list was by invitation, and rainer invited reddit 20:41:39 haha 20:41:42 what is pro@? 20:41:51 *Xach* clams up, clearly slyrus is uninvited 20:42:04 pro@common-lisp.net (: 20:42:06 is it possible to map or mapcar over an array or vector? 20:42:14 yan_: you can map over a vector. 20:42:15 map over vector, yes 20:42:17 gozoner [~ebg@ebg-10004083621.jpl.nasa.gov] has joined #lisp 20:42:18 yan_: take a look at MAP 20:42:22 freiksenet [~freiksene@cs181130165.pp.htv.fi] has joined #lisp 20:42:25 map over array if it's displaced to a vector 20:43:37 -!- stassats [~stassats@wikipedia/stassats] has quit [Remote host closed the connection] 20:44:42 stassats [~stassats@wikipedia/stassats] has joined #lisp 20:45:52 -!- kenjin2201 [~kenjin@211.177.88.67] has quit [Read error: Connection reset by peer] 20:46:12 -!- zomgbie [~jesus@h081217131002.dyn.cm.kabsi.at] has quit [Ping timeout: 272 seconds] 20:46:28 -!- vokoda` is now known as vokoda 20:46:40 -!- vokoda [~user@host109-156-6-118.range109-156.btcentralplus.com] has quit [Changing host] 20:46:41 vokoda [~user@unaffiliated/vokoda] has joined #lisp 20:47:41 boiantz [~boiantz@92-247-214-154.spectrumnet.bg] has joined #lisp 20:48:57 mcsontos [~mcsontos@hotspot8.rywasoft.net] has joined #lisp 20:49:09 unicode [~user@95.214.9.188] has joined #lisp 20:49:14 Xach: Um, I guess I invited myself to the [pro] list because subscribing to it was no different than any other list. Cool, I'm a total party crasher. 20:51:16 -!- boiantz [~boiantz@92-247-214-154.spectrumnet.bg] has left #lisp 20:51:21 tmh: did you subscribe to cabal@? 20:51:47 hi 20:52:16 should the make-fd-stream be close after use or it is suffice to close the original file descriptor? 20:52:18 thanks 20:52:27 tmh: How did you hear about it? 20:52:45 EarlGray [~dmytrish@88.154.83.149] has joined #lisp 20:53:26 Posterdati: close the fd-stream 20:53:39 -!- setheus [~setheus@cpe-70-116-140-134.tx.res.rr.com] has quit [Quit: leaving] 20:53:41 might additionally have to close the actual fd, better check the source 20:54:25 Xach: I think there was some conversation on [pro] referenced on some blog off of Planet Lisp, if I remember correctly. Then, I just looked it up. 20:54:30 tcr1: (sb-posix:close fd) 20:54:33 tcr1: ? 20:55:04 -!- RaceCondition [~RaceCondi@82.131.61.203.cable.starman.ee] has quit [Ping timeout: 272 seconds] 20:55:35 -!- urandom__ [~user@p548A6BD6.dip.t-dialin.net] has quit [Ping timeout: 255 seconds] 20:56:04 stassats: I subscribed using the mailman form on common-lisp.net 20:56:29 tmh: Oh, that was after the secret was out. 20:56:54 timepilot [~timepilot@66.71.230.141] has joined #lisp 20:57:03 what's the [pro] list? 20:57:19 -!- gonzojive [~red@171.66.88.16] has quit [Quit: gonzojive] 20:57:30 a mailing list which tries to pretend that it's not c.l.l. 20:57:39 stassats: Actually, I'm looking at the list of mailing lists on common-lisp.net and don't see it. I thought it was there before. 20:57:42 (unsuccessfully) 20:57:47 lol 20:57:48 how do I find the definition for "digit" function? 20:57:59 is this a standard function 20:58:04 no 20:58:05 stassats: Why unsuccessfully? 20:58:06 joe6: there is no standard function named DIGIT. 20:58:09 Xach: Obviously the secret was out, it was mentioned in a blog and I joined. Then the list quickly degraded to shit. 20:58:13 Xach: ok, thanks. 20:58:26 tcr1: well, it pretends successfully 20:58:30 tmh: You can't claim *full* responsibility. 20:58:45 I joined too, so I'll share some blame 20:58:49 Xach: Come-on, give me my props! :-) 20:58:54 I don't see what's so bad about it? 20:59:21 well, "that dreaded thread" 20:59:22 tcr1: It's already experienced a "Lisp is dead" thread. 20:59:30 I only follow very half-heartedly though 20:59:34 l4ndfo [~l4ndfo@uwsclient-143-157.uws.ualberta.ca] has joined #lisp 20:59:48 xyblor_ [~nik@69-196-184-232.dsl.teksavvy.com] has joined #lisp 20:59:54 Well I think repenning was kind of right except for his silly tirade about slime :-) 21:00:01 -!- xyblor [~nik@69-165-143-91.dsl.teksavvy.com] has quit [Disconnected by services] 21:00:09 -!- xyblor_ is now known as xyblor 21:01:07 tcr1: that's because you're biased! 21:01:20 tcr1: My take is there is nothing, other than time and money, keeping anyone from creating the successor to Common Lisp. So what is the point of a "call to arms" to update it. Just do it yourself if it is so damn easy and essential. 21:01:36 bah, the real party's over #beirc 21:01:49 oh, wait, no that's just me standing in the corner, alone 21:02:02 dto [~dto@pool-96-252-62-25.bstnma.fios.verizon.net] has joined #lisp 21:02:07 *tmh* pats beslyrus on the back. 21:02:07 "forever a clim" 21:02:08 you brave man! 21:02:45 antifuchs: with mcclim-truetype, I've had this thing up and running for over a day. a new record! 21:03:01 nice, beslyrus! 21:03:16 I think that bug must have been around even when I was using it. 21:03:17 do we really need an successor? What we need is to expand Quicklisp and thus increase the chance that we standardize the libs 21:03:26 but I always ran beirc with freetype (: 21:03:48 ltriant [~ltriant@lithium.mailguard.com.au] has joined #lisp 21:03:49 p_l|backup: commence the Great Utility Library Consolidation of 2011 21:04:21 p_l|backup: I don't think we do, I'm just addressing the argument. Ugh, why am I wasting time on this topic. 21:04:24 ? 21:04:26 qbomb [~qbomb@firewall.gibsonemc.com] has joined #lisp 21:04:27 CL is less than 20 years old, it's too soon to search for a successor 21:04:57 simplechat [~simplecha@unaffiliated/simplechat] has joined #lisp 21:05:36 I wouldn't mind if we had a lispy, non-fussy, portable GUI library. All the rest missing from world domination would be a tree-shaker, and for that I think I'll be willing to shell out the 3600 EUR for LW :D 21:05:45 i'm not interested in learning marginally better languages every year 21:06:12 CL could really do with something akin to CPAN 21:06:12 antifuchs: how can I paste in this thing? 21:06:15 quicklisp could get there 21:06:21 beslyrus: I'm not sure you can (: 21:06:24 in fact, all languages could. but I am die-hard perl :) 21:06:39 -!- dto [~dto@pool-96-252-62-25.bstnma.fios.verizon.net] has quit [Client Quit] 21:06:54 i am trying to understand this packages: http://paste.lisp.org/display/116480, but when I load it it gives me the error: http://paste.lisp.org/display/118988 21:06:55 ocharles: quicklisp is close. Ruby and Haskell have equivalents to CPAN that work quite well 21:07:09 any suggestion on how I can fix the "digit" function, please? 21:07:17 antifuchs: ouch... 21:07:18 beslyrus: try shift + middle click 21:07:19 p_l|backup: they still have a long way to go, imo. CPAN is more than just a big repo 21:07:33 oh, rihgt 21:07:37 it has a lot of toolchain with it (cpants, kwalitee, search.cpan) 21:07:46 it is referred to in line 173 of the source. 21:07:47 ocharles: both RubyGems and Cabal are more than just a repo. Quicklisp right now is "just a repo" 21:07:59 p_l|backup: right 21:08:04 cabal is pretty great, yea 21:08:08 cabal/hackage 21:08:09 cabal is really slow. It is a big deficiency. 21:08:18 though it does deliver the package. 21:08:22 RaceCondition [~RaceCondi@82.131.61.203.cable.starman.ee] has joined #lisp 21:08:25 Fare [~Fare@ita4fw1.itasoftware.com] has joined #lisp 21:08:31 joe6: you can fix by defining it 21:08:32 hi Fare 21:08:33 joe6: where did you find the smug source? 21:08:43 ocharles: otoh, so far, quicklisp is a "curated" repo 21:08:43 hi fe[nl]ix 21:08:43 beslyrus: google 21:08:46 -!- seangrove [~user@c-67-188-1-148.hsd1.ca.comcast.net] has quit [Ping timeout: 240 seconds] 21:08:53 Hello Fare. 21:09:03 Bah! Back when I learned lisp, we didn't have quicklisp and if you tried to use ASDF-INSTALL, it erased your hard drive, and that's the way we liked it. 21:09:07 -!- freiksenet [~freiksene@cs181130165.pp.htv.fi] has quit [Quit: WeeChat 0.3.2] 21:09:25 tmh: ... You had ASDF-INSTALL? We didn't even have ASDF! 21:09:26 freiksenet [~freiksene@freiksenet.com] has joined #lisp 21:09:30 stassats: ok, will think about it. I am just starting off and am not sure if it is complicated. 21:09:32 Heh! 21:09:35 joe6: did you look at cl-parser-combinator? 21:09:39 (Good times, good times.) 21:09:39 -!- freiksenet [~freiksene@freiksenet.com] has quit [Client Quit] 21:09:53 Back in MY day you had stone tablets with code scrawled on them, and you had to transcribe them into your own code by-hand! 21:09:56 Every time! 21:09:58 -!- unicode [~user@95.214.9.188] has quit [Ping timeout: 240 seconds] 21:10:09 beslyrus: you mean, https://github.com/Ramarren/cl-parser-combinators ? 21:10:11 Xach: here's my first contribution to the 2011 utility purge: https://github.com/gigamonkey/monkeylib-binary-data/pull/2 21:10:16 unicode [~user@95.214.9.188] has joined #lisp 21:10:16 jesusabdullah: wasn't that the ICFP of 2006/2005 or so? (: 21:10:27 but gigamonkey doesn't seem to have time to pull that in :( 21:10:28 ah, mk-defsystem. 21:10:39 joe6: yes 21:11:08 beslyrus: have you used it? did you find it better than smug? I preferred smug as it seemed to have a nicer tutorial. 21:11:20 *p_l|backup* had paper tape punch and TECO 21:11:28 ("my" day was roughly a month ago) 21:11:31 antifuchs: my other gripe is that auto-forward-scrolling doesn't work right and, IIRC, seems worse with mcclim-truetype on 21:11:45 back in MY day, "LISt Processor" was the job title of *human* beings! 21:11:45 beslyrus: eek? what's happening? 21:11:51 I'm sure it worked with -freetype. 21:11:52 -!- parcs [~patrick@ool-45741d7d.dyn.optonline.net] has quit [Read error: Connection reset by peer] 21:11:53 beslyrus: i just started using lisp a day ago and I am trying to use a parsec-style parser to parse in a file. 21:11:55 joe6: I couldn't find the smug source, so I went with cl-parser-combinators 21:11:56 beslyrus: can you try with mcclim-freetype? 21:12:21 beslyrus: do you have any sample code using the parser-combinator? 21:12:34 beslyrus: was it really just a matter of :using the different library? do they have the same utilities with the same names? 21:12:38 beslyrus: i am just starting off and could use some guidance. 21:12:52 gonzojive [~red@171.66.85.87] has joined #lisp 21:13:05 beslyrus: i do not think they have the same utilities, do they? 21:13:12 joe6: what does the data look like? 21:13:21 freiksenet [~freiksene@freiksenet.com] has joined #lisp 21:13:25 Xach: give me a minute, I will post it. 21:13:41 antifuchs: no, this is with mcclim-freetype. it doesn't autoscroll forward enough, so I have to manually pull the scroller down to see new msgs 21:13:55 weird 21:14:02 -!- c|mell [~cmell@188-220-238-74.zone11.bethere.co.uk] has quit [Remote host closed the connection] 21:14:03 I'm sure this worked before. /-: 21:14:31 -!- Demosthenes [~demo@206.180.155.43.adsl.hal-pc.org] has quit [Quit: leaving] 21:14:36 Ok, it works ... sometimes 21:14:44 c|mell [~cmell@188-220-238-74.zone11.bethere.co.uk] has joined #lisp 21:14:49 Xach: yup 21:14:54 Xach: http://paste.lisp.org/display/118988#1 21:14:55 parcs [~patrick@ool-45741d7d.dyn.optonline.net] has joined #lisp 21:15:03 joe6: hang on a second... 21:15:48 joe6: it's still a work in progress, but take a look at: https://github.com/slyrus/chemicl/blob/fset-smiles-parser/smiles3.lisp 21:16:02 Xach: here is the corresponding code in haskell: http://paste.lisp.org/display/118988#2 21:16:34 recall that a functional parser expects functional data structures, hence the use of fset 21:17:03 I had an earlier version that didn't use fset, but ramarren wrote the start of the one you see there 21:17:10 -!- RaceCondition [~RaceCondi@82.131.61.203.cable.starman.ee] has quit [Ping timeout: 250 seconds] 21:17:25 beslyrus: s/functional/persistent/ 21:17:32 for data structures 21:17:35 slyrus: thanks a lot. 21:17:47 pkhuong: right, thanks 21:17:54 immutable? 21:18:00 not even. 21:18:15 is (equal-p beslyrus slyrus) == T? 21:18:21 yes 21:18:46 beslyrus is slyrus using the beirc IRC client 21:18:57 slyrus: oh, ok. 21:19:02 azaq23 [~derivecto@unaffiliated/azaq23] has joined #lisp 21:19:04 joe6: assuming you mean equalp, that wouldn't make me terrible confident that they're the same person. 21:19:12 You can have persistence with a ton of side effects. For bulk data structures like hash tables and arrays, that sort of approach can be much simpler and more efficient as well. 21:19:12 terribly* 21:19:30 -!- pdponze [~pdponze@144.85.121.191] has left #lisp 21:19:51 beslyrus: thanks a lot for sharing it. I will dig through it. 21:20:12 pkhuong: while maintaining persistence? You mean the side-effects are internal? 21:20:16 you're welcome. enjoy! 21:21:00 sykopomp: right. 21:21:30 -!- adamvh [~adamvh@adsl-99-103-186-186.dsl.sfldmi.sbcglobal.net] has quit [Quit: adamvh] 21:22:44 -!- qbomb [~qbomb@firewall.gibsonemc.com] has left #lisp 21:26:49 -!- stassats [~stassats@wikipedia/stassats] has quit [Ping timeout: 240 seconds] 21:27:43 Xach: I am wondering about how to add "http://www.cliki.net/parser-combinators" to quicklisp? I noticed that the quicklisp help page took me to a page which needed a login to create a request. 21:28:20 bgs100 [~ian@unaffiliated/bgs100] has joined #lisp 21:28:27 Xach: I am just a user of the library and not the owner. I am not sure if you entertain users' requests to add library to quicklisp. 21:28:42 -!- Bronsa [~brace@host71-180-dynamic.54-82-r.retail.telecomitalia.it] has quit [Quit: leaving] 21:29:08 sykopomp: in the "baby" step phase.. 21:29:13 -!- rotty [~rotty@nncmain.nicenamecrew.com] has quit [Remote host closed the connection] 21:29:30 sykopomp: a few more days and I will probably get it right. 21:31:04 RaceCondition [~RaceCondi@82.131.61.203.cable.starman.ee] has joined #lisp 21:31:34 Xach: the github page is at "https://github.com/Ramarren/cl-parser-combinators/" 21:34:34 what's the correct way to initialize an array with clos instances? (make-array '(20 20) :initial-element (make-instance 'blah)) will populate it with the same object, no? 21:36:06 yan_: yes. you'll need to loop over it (does map run over arrays? then that might work) 21:36:48 -!- ehu [~ehuels@ip118-64-212-87.adsl2.static.versatel.nl] has quit [Ping timeout: 276 seconds] 21:37:13 p_l|backup: because i get a 'The default initial element 0 is not a BLAH-TYPE.' warning if i leave out initial-element 21:37:17 p_l|backup: map will run over a vector displaced to that array. 21:38:04 yan_: it's a style warning. 21:38:21 -!- mcsontos [~mcsontos@hotspot8.rywasoft.net] has quit [Quit: Leaving] 21:38:39 yan_: You could use :initial-contents, but that seems just a touch wasteful. 21:39:11 pkhuong: i realize it's a style warning, but is there anything i can (declare..) to remove it? 21:39:12 dto [~dto@pool-96-252-62-25.bstnma.fios.verizon.net] has joined #lisp 21:40:03 you can muffle all style warnings with a declaration 21:40:30 Xach: does this error message make sense? http://paste.lisp.org/+2JT8/3 21:41:34 -!- mattrepl [~mattrepl@208.87.61.212] has quit [Quit: mattrepl] 21:44:13 -!- HG` [~HG@xdsl-188-118-130-183.dip.osnanet.de] has quit [Quit: Leaving.] 21:45:05 mstevens [~mstevens@89.145.84.152] has joined #lisp 21:45:05 -!- mstevens [~mstevens@89.145.84.152] has quit [Changing host] 21:45:05 mstevens [~mstevens@fsf/member/pdpc.active.mstevens] has joined #lisp 21:45:41 -!- malbertife [~marcoalbe@bl11-45-212.dsl.telepac.pt] has quit [Quit: malbertife] 21:46:46 <_3b> joe6: you don't need both the pushnew and the push forms in .sbclrc, and the name of the system is parser-combinators 21:46:50 yan_: Declare the contents of the array to be of type (or null blah) and initialize it to contain nils. 21:47:00 _3b: ok, thanks 21:47:25 or just declare it to be T. 21:47:31 jao [~user@pdpc/supporter/professional/jao] has joined #lisp 21:48:43 or define a constant singleton of that class and initialize it to that :-) 21:49:35 -!- mrSpec [~Spec@unaffiliated/mrspec] has quit [Quit: mrSpec] 21:49:52 mrSpec [~Spec@89-75-35-251.dynamic.chello.pl] has joined #lisp 21:49:52 -!- mrSpec [~Spec@89-75-35-251.dynamic.chello.pl] has quit [Changing host] 21:49:52 mrSpec [~Spec@unaffiliated/mrspec] has joined #lisp 21:50:39 -!- Adlai_ [~leif@static-71-249-194-107.nycmny.east.verizon.net] has quit [Ping timeout: 240 seconds] 21:50:42 (load-time-value (make-instance 'bar) t) 21:50:49 _3b: can you please take a look at: http://paste.lisp.org/display/118988#4 21:51:29 _3b: The parser-combinators library worked. I am wondering if system-apropos should work on such external libraries. 21:51:50 -!- mishoo [~mishoo@79.112.237.60] has quit [Ping timeout: 240 seconds] 21:52:21 <_3b> no idea 21:52:30 zac314159 [~user@c-68-84-149-234.hsd1.nm.comcast.net] has joined #lisp 21:53:11 -!- hugod_ [~hugod@76.66.182.126] has quit [Quit: hugod_] 21:53:44 _3b: is it ok to add "(ql:quickload "parser-combinators")" to .sbclrc. It seemed to work, but I noticed that it loaded the swank libraries afterwards. Is that ok? 21:53:45 <_3b> seems like it would be a nice feature, but don't know if asdf provides any easy access to that info 21:54:34 <_3b> you can add it if you want to, but it is probably better to only load it when you are working on something that actually uses it 21:54:43 -!- dlowe [~dlowe@ita4fw1.itasoftware.com] has quit [Quit: *poof*] 21:55:09 <_3b> normally you would define a .asd file for your project, that lists that as a dependency, then load your project when you want to work on it 21:55:16 _3b: yes, makes sense. i am using it now and will just leave it there. 21:55:43 _3b: haha, that's good to know.. 21:56:08 tcr1: where can I find the cl swank client? 21:56:59 ilmari: it's in terje norderhaug's mac CL ide thingie 22:00:36 Good morning everyone! 22:00:49 morning beach 22:01:38 Good morning beach. 22:02:14 hugod_ [~hugod@76.66.182.126] has joined #lisp 22:02:15 Hello beach. 22:04:40 joe6: Where did "Ramarren-cl-parser-combinators-8dfc8fd" come from? 22:05:53 -!- silenius [~silenus@p4FC22B9B.dip.t-dialin.net] has quit [Quit: Leaving] 22:05:55 tcr1: ah, thanks, found it 22:06:00 *_3b* assumes it is a github tarball based on the name 22:06:42 I mean, why would you use that string as an argument to quickload? 22:07:24 -!- dmv_ [~daniel@189-47-104-65.dsl.telesp.net.br] has left #lisp 22:07:28 Quickload takes system names, and I would bet that the file is cl-parser-combinators.asd or similar, so the system is named "cl-parser-generators", not "Ramarren-cl-parser-combinators-8dfc8fd". 22:07:33 Xach: it came from the automatic tarball that I downloaded. 22:07:50 _3b: yes, it is a github tarball 22:07:57 joe6: That is not the system name. Does the tarball have a file named something.asd? if so, what is the "something" part? 22:08:33 Xach: yes, it does. parser-combinators.asd 22:08:55 joe6: then you should try (ql:quickload "parser-combinators") 22:09:10 Xach: yes, it works with this string. 22:09:23 Xach: I was trying other things out of a lack of knowledge. 22:10:00 Xach: but, the (ql:system-apropos "parser-combinators") did not work. I guess that such behaviour is expected? 22:10:28 joe6: system-apropos searches only things that are part of quicklisp, not things that can be loaded with quickload. 22:10:36 (it's hard to get a list of the latter kinds of things) 22:10:46 Xach: oh, ok. that makes sense. Thanks and Sorry for the bother. 22:11:06 Xach: do you think we could add this package to quicklisp? 22:11:18 joe6: It will be in the next update. 22:11:29 Xach: awesome, Thanks. 22:15:30 -!- unicode [~user@95.214.9.188] has quit [Ping timeout: 240 seconds] 22:17:23 -!- RaceCondition [~RaceCondi@82.131.61.203.cable.starman.ee] has quit [Read error: Operation timed out] 22:17:34 what's the right way to pass a clos class to (make-array)? i'm trying (make-array dim :element-type 'clos-class) and SBCL complains that its an unknown type 22:17:46 or do i need to not quote it 22:20:30 RaceCondition [~RaceCondi@82.131.72.191.cable.starman.ee] has joined #lisp 22:22:15 is it even possible to have arrays of clos instances? 22:24:15 -!- quack [~quack@bl15-127-91.dsl.telepac.pt] has quit [Ping timeout: 276 seconds] 22:24:19 -!- RaceCondition [~RaceCondi@82.131.72.191.cable.starman.ee] has quit [Client Quit] 22:27:01 yan_: the upgraded element type of a clos class is T in the impls I checked 22:27:35 using element-type on arrays is only useful for optimizations, I believe 22:27:56 so no optimized access for those. 22:27:59 vilsonvieira [~vilson@201.47.58.47.dynamic.adsl.gvt.net.br] has joined #lisp 22:28:20 -!- LiamH [~none@pdp8.nrl.navy.mil] has quit [Quit: Leaving.] 22:28:24 antifuchs: fair enough 22:28:29 -!- dstatyvka [ejabberd@pepelaz.jabber.od.ua] has left #lisp 22:28:40 i know (return) breaks out of inner most loop and is analogous to a 'break;' in c-like-languages, is there a 'continue;' equivalenT? 22:30:44 yan_: nope. 22:30:53 rvirding [~chatzilla@h137n1c1o1034.bredband.skanova.com] has joined #lisp 22:31:25 antifuchs: we do some more type stuff for array element type declarations. 22:31:33 oh, oops 22:31:42 morphling [~stefan@gssn-5f7547df.pool.mediaWays.net] has joined #lisp 22:32:04 -!- tcr1 [~tcr@217-162-131-235.dynamic.hispeed.ch] has quit [Quit: Leaving.] 22:32:14 urandom__ [~user@p548A6CC1.dip.t-dialin.net] has joined #lisp 22:32:17 pkhuong: "we" meaning SBCL? and is it documented? 22:32:21 error in [package hu.dwim.asdf]: http://paste.lisp.org/display/118993 22:32:53 i am not sure which line it is happening on, either as a search for 195 in the source did not yield anything. 22:33:02 yan_: You must be doing something wrong when making an array of CLOS instances. The following works for me with SBCL: (defclass foo () ()) ... then (make-array 3 :element-type 'foo :initial-element (make-instance 'foo)) 22:33:49 -!- pdelgallego_ [~pdelgalle@1385159852.dhcp.dbnet.dk] has quit [Ping timeout: 246 seconds] 22:33:52 -!- pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has quit [Ping timeout: 250 seconds] 22:35:15 tmh: well, it's certainly allowed by the spec. 22:36:39 -!- zac314159 [~user@c-68-84-149-234.hsd1.nm.comcast.net] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 22:37:06 pkhuong: Let clarify, I'm interested in anything done as a consequence of array element type declarations and wanted to learn about anything that SBCL does. 22:37:25 don't bother, found something on google about utf-8 22:37:46 tcleval [bad50d0b@gateway/web/freenode/ip.186.213.13.11] has joined #lisp 22:37:59 phew 22:38:01 -!- tcleval [bad50d0b@gateway/web/freenode/ip.186.213.13.11] has quit [Client Quit] 22:38:59 -!- sonnym [~evissecer@singlebrookvpn.lightlink.com] has quit [Write error: Broken pipe] 22:39:52 tcleval [bad50d0b@gateway/web/freenode/ip.186.213.13.11] has joined #lisp 22:40:12 -!- vokoda [~user@unaffiliated/vokoda] has quit [Ping timeout: 240 seconds] 22:40:42 tmh: IIRC, Krystof added some code to propagate declared element types to aref/(setf aref), instead of only working with upgraded element types. 22:40:52 I did! 22:40:54 I remember that 22:41:22 So (aref (the (array foo 1) x) ...) is considered to return an object of type foo, even if the upgraded element type is wider (T, or fixnum, or ...) 22:41:34 the point is that if you do (let ((x )) (declare (type (array (integer -3 7)) x)) ...) 22:42:03 vokoda [~user@host86-145-187-197.range86-145.btcentralplus.com] has joined #lisp 22:42:08 then in the ..., not only must x be bound to an array with element-type (signed-byte 8), but also every access to it must set or return an integer in the range [-3,7] 22:42:56 Ralith [~ralith@d142-058-093-041.wireless.sfu.ca] has joined #lisp 22:43:07 How do you initialize such an array when :initial-element or :initial-contents is not given? 22:43:41 beach: in SBCL? Currently with zeros. 22:44:05 Nice array work. 22:44:19 that's OK, because (a) the make-array isn't a declaration, and (b) it's undefined if the user accesses it before initializing himself anyway 22:44:48 pdelgallego_ [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #lisp 22:44:48 pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #lisp 22:44:54 plus, you still get a style-warning. And I'm quite open to making it completely random for unboxed arrays. 22:45:17 OK, makes sense. 22:47:41 -!- brodo [~brodo@p5B024267.dip.t-dialin.net] has quit [Quit: brodo] 22:48:26 -!- xyblor [~nik@69-196-184-232.dsl.teksavvy.com] has quit [Ping timeout: 272 seconds] 22:48:46 beslyrus: the parser-combinators library is pretty cool... 22:51:20 -!- ch077179 [~urs@adsl-84-227-35-133.adslplus.ch] has quit [Quit: Verlassend] 22:52:17 guinness` [~user@216.252.75.210] has joined #lisp 22:53:31 paul0 [~user@189.114.198.29.dynamic.adsl.gvt.net.br] has joined #lisp 22:53:36 Hi 22:53:43 I'm using slime, with clisp 22:53:45 hello paul0 22:53:55 -!- rmarianski [~rmariansk@mail.marianski.com] has quit [Quit: leaving] 22:53:56 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Quit: adu] 22:54:09 beslyrus: if you know Ramarren, please pass on the message that his library rocks.. 22:54:38 hello paul0 22:55:40 I'm getting an error when i try to load "graph-utils", it says that this file doesn't exist 22:55:58 -!- morphling [~stefan@gssn-5f7547df.pool.mediaWays.net] has quit [Remote host closed the connection] 22:55:58 -!- csamuelson [~user@173-14-110-121-nashville.hfc.comcastbusiness.net] has quit [Ping timeout: 250 seconds] 22:55:59 paul0: what file? 22:56:01 but it is in the same directory of the file I'm editing 22:56:13 graph-utils.lisp 22:56:18 (from Land of Lisp examples) 22:56:46 The hardest thing about interface design is "divining" what is going to be intuitive to the user of the interface. Unfortunately, the act of actually coding the library warps and skews your view of "intuitive". 22:57:07 By interface, I mean the programming interface, the API. 22:57:27 -!- alexshendi [~alexshend@dslb-178-002-229-138.pools.arcor-ip.net] has quit [Quit: Verlassend] 22:57:41 So, I guess at some point you have to through something at the wall and see if it sticks. 22:58:08 paul0: the working directory of the lisp image is not necessarily, or even likely to be, the same as the directory of whatever file your editor has open at the moment 22:58:14 joe6: I agree, it's really quite nice! 22:58:34 Ralith: how do I change it? 22:58:47 paul0: impl-defined 22:58:54 if you're using SLIME, ,cd will do nicely 22:59:07 ,cd? 22:59:22 yes 22:59:23 -!- iwillig [~iwillig@dyn-128-59-150-188.dyn.columbia.edu] has quit [Quit: Leaving] 22:59:51 -!- simplechat [~simplecha@unaffiliated/simplechat] has quit [Ping timeout: 240 seconds] 23:00:19 -!- mstevens [~mstevens@fsf/member/pdpc.active.mstevens] has quit [Quit: leaving] 23:00:49 paul0: it's a command for the SLIME repl 23:01:09 typing , lets you choose from several handy shortcuts for common actions 23:01:24 -!- varjag [~eugene@4.169.249.62.customer.cdi.no] has quit [Quit: Ex-Chat] 23:01:55 nice 23:02:17 how do I use this? tried ,cd "~/Dropbox/lisp", but didn't work 23:02:28 (on the slime repl) 23:02:37 you may need to use the full path 23:02:56 hm, right 23:02:57 very recent SBCL, Allegro and only a few other impls support ~ expansion 23:03:15 -!- milanj [~milanj_@93-87-193-53.dynamic.isp.telekom.rs] has quit [Quit: Leaving] 23:03:20 -!- jdz [~jdz@host189-21-dynamic.4-87-r.retail.telecomitalia.it] has quit [Ping timeout: 250 seconds] 23:03:34 -!- gonzojive [~red@171.66.85.87] has quit [Quit: gonzojive] 23:03:34 paul0: SLIME will expand it for you, but you need to expand it on Emacs side 23:04:06 antifuchs: only a very few don't support it (cmucl and sbcl) 23:04:12 antifuchs: maybe scineer 23:04:13 heh, really? 23:04:19 yes. no-~ is the exception. 23:04:27 it always seemed like I was using the implementation that didn't (: 23:04:31 And recent SBCL supports it. 23:04:37 sbcl is the most popular lisp 23:04:39 Xach: and SBCL until relatively recently 23:04:40 must be a glass-half-full type of situation (: 23:04:54 bah 23:07:20 Kruppe [~user@134.117.254.249] has joined #lisp 23:07:35 dulouz [~dulouz@2002:d8fe:77db:0:211:2fff:fec3:eeea] has joined #lisp 23:08:57 milanj [~milanj_@93-87-193-53.dynamic.isp.telekom.rs] has joined #lisp 23:09:22 phil [~hargettp@96.237.127.144] has joined #lisp 23:10:29 -!- jikanter [~jikanter@66.146.192.29] has quit [Read error: Operation timed out] 23:10:34 -!- dulouz [~dulouz@2002:d8fe:77db:0:211:2fff:fec3:eeea] has quit [Client Quit] 23:10:54 -!- paul0 [~user@189.114.198.29.dynamic.adsl.gvt.net.br] has quit [Remote host closed the connection] 23:11:27 sonnym [~evissecer@rrcs-184-74-137-167.nys.biz.rr.com] has joined #lisp 23:11:28 -!- hargettp [~hargettp@dhcp-162.mirrorimage.net] has quit [Remote host closed the connection] 23:12:00 _danb_ [~user@124-169-135-129.dyn.iinet.net.au] has joined #lisp 23:14:21 -!- dto [~dto@pool-96-252-62-25.bstnma.fios.verizon.net] has quit [Remote host closed the connection] 23:15:38 -!- phil [~hargettp@96.237.127.144] has quit [Quit: Linkinus - http://linkinus.com] 23:15:45 hargettp [~hargettp@96.237.127.144] has joined #lisp 23:15:56 -!- gravicappa [~gravicapp@ppp91-78-231-109.pppoe.mtu-net.ru] has quit [Remote host closed the connection] 23:16:07 mon_key [~user@unaffiliated/monkey/x-267253] has joined #lisp 23:16:41 dto [~dto@pool-96-252-62-25.bstnma.fios.verizon.net] has joined #lisp 23:16:58 astoon [~astoon@109.188.226.235] has joined #lisp 23:18:26 is there a way to check what line the item in a backtrace is on? (using slime+sbcl if it matters) 23:18:38 yan_: v 23:19:18 -!- rgrau [~user@62.Red-88-2-20.staticIP.rima-tde.net] has quit [Remote host closed the connection] 23:19:28 beach: it can't find the item it's erroring on.. ' (SB-KERNEL:TWO-ARG-- 40.0 (RUN))' 23:19:47 -!- guinness` [~user@216.252.75.210] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 23:19:58 yan_: that's an internal function. Look further down the backtrace. 23:19:59 <_3b> try the next frame, and/or compile with higher debug settings 23:20:08 hello lispers! I believe I've completed the CL/SBCL condition system heirarchy. I've posted the most recent version here http://paste.lisp.org/+2JQD/2 23:20:33 _3b: next frame is the general, huge (will refactor soon) function which isn't giing me much detail 23:20:42 If anyone is interested I'd be happy to know if i missed anything (: 23:20:54 <_3b> it will go to the exact form if you compie with high debug settings 23:20:59 _3b: and i'm not sure how to alter slime's debug settings 23:21:05 yan_: looks like a call that looks something like (- 40.0 '(run)) 23:21:17 yan_: got a macro involved somewhere? 23:21:55 Xach: yup.. and i'm doing a lot of subtraction.. i can't find anywhere a '(run) would have sneaked in 23:22:21 <_3b> for long term change, declare or declaim (optimize (debug 2)), or use the sbcl specific stuff to limit it, for short term, just recompile that function with C-u C-c C-c in slime 23:22:31 So start walking up the backtrace until you find some familiar functions? 23:22:32 yan_: paste? 23:22:49 Xach: ugh i'm slightly embarassed from this ultra-long and ultra-ugly function to render a lot of triangles with cl-opengl 23:22:54 but i can paste, give me a sec, i'll see if i can figure it out 23:23:11 thmzlt [~thomaz@24-217-48-63.dhcp.stls.mo.charter.com] has joined #lisp 23:23:40 Demosthenes [~demo@206.180.155.43.adsl.hal-pc.org] has joined #lisp 23:23:51 mon_key: I don't have time to look through it all now, but this work is in line with what some people here discussed informally a few weeks ago. Did you do it as a result of such a discussion? 23:23:59 -!- Edward [~ed@AAubervilliers-154-1-55-132.w90-3.abo.wanadoo.fr] has quit [] 23:24:00 yan_: ed catmull says you have to get over your embarrassement and show your work every day 23:24:36 mon_key: This could be a very important piece of work if we can reach some kind of consensus on it. I also have some more suggestions for you. 23:24:50 beach: No. I just wanted to get a better understandinga about how the condition system workd :) 23:25:00 disclaimer: this is the very first draft and i wasn't going to leave it like this: http://paste.lisp.org/display/118994 23:25:20 but upping the debug settings isn't doing much for me 23:25:55 beach: What I have trouble understanding is where in the mulit-inheritance reference condition inheritors should go. 23:26:19 -!- fisxoj [~fisxoj@cpe-24-59-205-231.twcny.res.rr.com] has quit [Ping timeout: 255 seconds] 23:26:20 beach: suggestions welcome please. 23:26:23 <_3b> yan_: (- *threshold* - ...) 23:26:25 ah wait i think i'm seeing it.. i used the index 'k' in more than one loc 23:26:30 <_3b> - as a variable probably isn't what you want 23:26:34 ahhh 23:26:37 good eyes 23:27:28 "paste therapy" works every time! 23:27:39 mon_key: May I suggest that you also work on the initargs and the readers for each condition. That captures some bugs in the specification. 23:28:17 :) 23:28:23 thanks.. now onto other issues 23:28:44 beach: OK. I first started with those but got my head frazzled doing so. Which is how I wound up doing the synopsis instead. 23:29:07 getting at the initargs should be more manageable now tho. 23:29:40 mon_key: One error I need in SICL is one that is signaled when a list has to be a proper list but isn't. 23:29:54 mon_key: Another is when a list must be proper or circular, but isn't. 23:30:54 beach: I don't understand the context? 23:30:57 mon_key: For sequences, there is one that has to do with invalid bounding-index designators (:start and :end). It can't be done independently for each designator, because they can both be independently valid, but invalid together. 23:31:23 mon_key: The first one is for the sequences dictionary when the sequence is a list. Then it has to be proper. 23:31:47 mon_key: The second one I can't remember where I needed. Hold on... 23:32:01 I've started adding a lot of docstrings to my code and putting information in the past might have been in a comment in the docstring. Is there any significant overhead associated with having many and/or large docstrings? 23:32:52 -!- urandom__ [~user@p548A6CC1.dip.t-dialin.net] has quit [Remote host closed the connection] 23:33:01 Where are documentation strings covered in the hyperspec? 23:33:23 mon_key: list-length requires the list to be either proper or circular. 23:33:35 I see a glossary entry for documentation string, but not much else. 23:33:42 Adamant [~Adamant@unaffiliated/adamant] has joined #lisp 23:34:28 Okay, there is a generic function DOCUMENTATION. 23:34:32 mon_key: butlast signals an error if the list is neither proper nor dotted (and thus circular). 23:35:16 lolsuper_ [~super_@unaffiliated/lolsuper-/x-9881387] has joined #lisp 23:36:29 one more paste request? http://paste.lisp.org/display/118995 , lisp is complaining that 'norm-x is an unbound slot (in the setf block, where i'm using get-pos-val to get a value for it) 23:36:39 tmh: There is no overhead. 23:36:39 that doesn't make sense since it's not complaining for the previous three setf's 23:37:16 beach: Okay, my concern was that there might be memory considerations. 23:37:35 tmh: Do the math. It's fairly modest in terms of memory consumption. 23:37:40 sabalaba [~sabalaba@c-71-227-118-15.hsd1.mi.comcast.net] has joined #lisp 23:38:17 beach: OK. So, are you there isn't a clean way for the system to introspect on the most appropriate condition wrt cicular/proper? 23:38:40 tmh: Docstrings are associated with various constructs like defclass, defun, defparameter, etc. But for reasons of possible future internationalization, and because big docstrings are noise in the code, I prefer (setf documentation), and putting the docstrings elsewhere (per language?). 23:38:55 beach: Thanks. I initially thought that, but then started getting paranoid as I started getting paranoid. 23:39:02 yan_: why does it not make sense? it doesn't seem like it would need to complain any earlier. 23:39:13 Um, as I started adding lots of strings. It might be time for dinner. 23:39:49 beach: I agree, they do add a bit of noise, but I decided that that was outweighed by having them available as opposed to comments. 23:40:12 tmh: Comments and docstrings serve entirely different purposes. 23:40:51 mon_key: That would be implementation specific. For SICL, I would like for the system function/macro/whatever that was directly called by client code to signal as specific a condition as it possible can, hence my suggestion. 23:41:27 tmh: Comments are meant for the same people who read the code. Docstrings for people who are only interested in the protocol. 23:42:18 tmh: Therefore, to a person who maintains the code (and who presumably already mostly know the protocol), docstrings associated with the construct itself are just in the wrong place. 23:42:46 beach: Not the way I was using them. I would often have a top-level comments that would note the reference and equations in the function. While that is useful for the coder, I decided it was also useful for the people using the function. 23:42:47 beach: OK. got it, so you need to have a reference into the non-standard initargs/readers 23:43:03 -!- sabalaba [~sabalaba@c-71-227-118-15.hsd1.mi.comcast.net] has quit [Ping timeout: 240 seconds] 23:43:09 Xach: ah i think i'm forgetting that i didn't set a normal vector.. paste therapy works again 23:44:36 mon_key: Yes, like invalid-bounding-index-specifiers-error (or whatever it turns out to be called) would have to have :start and :end as initargs, and (perhaps) invalid-bounding-index-specifiers-error-start and invalid-bounding-index-specifiers-error-end as readers. But all that needs to be specified. 23:45:02 pizzledizzle [~pizdets@pool-96-250-215-244.nycmny.fios.verizon.net] has joined #lisp 23:45:20 beach: I have to step out for a while, I check the logs later, thanks for the input. 23:46:32 anyone know if there is a lisp version of the google data protocol client? 23:47:10 beach: Any chance you have a rough idea of when that discussion took place? 23:47:20 -!- timepilot [~timepilot@66.71.230.141] has quit [Quit: timepilot] 23:48:21 k9quaint: i'm pretty sure there is nothing like that. 23:48:27 k9quaint: one would be most welcome. 23:48:36 I was afraid you would say that :| 23:48:49 let me know when you finish it, I will beta test it for you :D 23:48:57 *Xach* is too busy right now 23:49:35 g000001 [~mc@www14045u.sakura.ne.jp] has joined #lisp 23:50:10 k9quaint: you mean protobuf ? 23:50:35 fe[nl]ix: i took it to mean the atom-based Google Data thing. 23:50:44 what xach said 23:50:46 -!- milanj [~milanj_@93-87-193-53.dynamic.isp.telekom.rs] has quit [Quit: Leaving] 23:50:57 mon_key: 10.12.23 in the Tunes #lisp log. Starting at 22:40:45 by an uttering by plage. 23:51:05 beach: thank you. 23:51:35 -!- g000001 [~mc@www14045u.sakura.ne.jp] has left #lisp 23:52:07 mon_key: Not a very long discussion as it turns out. My memory had exaggerated its length. 23:54:30 -!- tcleval [bad50d0b@gateway/web/freenode/ip.186.213.13.11] has quit [Quit: Page closed] 23:55:10 beach: looking at the log and SICL/Code/Conditions/conditions.lisp 23:58:48 -!- yan_ [~yan@static-129-44-60-25.ny325.east.verizon.net] has quit [Ping timeout: 250 seconds]