00:00:45 erm, seems most are sleep now or so.... 00:02:21 -!- doritos [~joshua@c-76-118-155-244.hsd1.ct.comcast.net] has quit [Ping timeout: 258 seconds] 00:04:25 jaminja [~jaminja@unaffiliated/jaminja] has joined #lisp 00:06:55 replore_ [~replore@ntkngw304073.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #lisp 00:07:54 is it possible to send a pointer to lisp object to a C function, and access it in the callback that is called by that C function? I'm using CFFI 00:08:00 -!- pnathan [~Adium@129.101.49.15] has quit [Quit: Leaving.] 00:08:00 StrmSrfr: foundation for what? 00:08:02 oconnore [~Eric@c-71-232-47-186.hsd1.ma.comcast.net] has joined #lisp 00:10:19 Zulu [~Zulu@c-174-58-204-235.hsd1.fl.comcast.net] has joined #lisp 00:10:34 -!- Kron_ [~Kron@98.143.102.225] has quit [Ping timeout: 276 seconds] 00:10:45 -!- Zulu is now known as Guest3500 00:11:20 Kron_ [~Kron@98.143.102.225] has joined #lisp 00:11:48 xwolf-: no 00:12:58 hargettp [~hargettp@pool-71-174-137-134.bstnma.east.verizon.net] has joined #lisp 00:13:05 -!- MoALTz_ [~no@host-92-18-2-37.as13285.net] has quit [Ping timeout: 258 seconds] 00:13:46 so i should use special variable? 00:14:08 xwolf-: depending on how the callback is invoked. 00:14:20 -!- Guest3500 [~Zulu@c-174-58-204-235.hsd1.fl.comcast.net] has quit [Client Quit] 00:14:58 realitygrill_ [~realitygr@adsl-76-226-97-62.dsl.sfldmi.sbcglobal.net] has joined #lisp 00:15:15 pkhuong meaning? it's a C function that accepts a function pointer and void * that is passed to the callback 00:16:15 -!- realitygrill [~realitygr@adsl-76-232-155-34.dsl.sfldmi.sbcglobal.net] has quit [Ping timeout: 248 seconds] 00:16:15 -!- realitygrill_ is now known as realitygrill 00:16:44 -!- hargettp [~hargettp@pool-71-174-137-134.bstnma.east.verizon.net] has quit [Client Quit] 00:18:12 ISF [~ivan@187.106.48.51] has joined #lisp 00:19:36 xwolf-: a special will work if the callback is only invoked in the dynamic scope of the special binding. 00:19:40 -!- tritchey [~tritchey@c-68-51-88-12.hsd1.in.comcast.net] has quit [Ping timeout: 276 seconds] 00:19:49 tritchey [~tritchey@c-68-51-88-12.hsd1.in.comcast.net] has joined #lisp 00:21:25 xwolf-: I ran into this problem last night. The solution pkhuong helped me work out was to store the pobjects you want to pass to C in a lisp-side array, and then pass an index to that array to the C function expecting a void*. 00:21:27 it's not, it's more complex. but I can just setf it? I have a loop running in a separate thread, and I want to pass a message to it containing a pointer to callback and arguments for it 00:22:07 then, in the lisp-side callback, just do (aref *passed-to-c* (cffi:pointer-address userdata)) 00:22:18 careful with threads and FFI callbacks. Not every lisp likes being called from a thread it didn't create. 00:23:43 I see. which ones don't? I'm using sbcl 00:23:49 sbcl doesn't. 00:24:15 In particular, specials access will fail explosively. 00:24:33 in what way? 00:24:40 your process will die. 00:24:48 btw I did create the thread in lisp if that's what you meant, not in the C code 00:24:50 xwolf-: it's probably simpler to communicate between a C callback and a lisp threads via a message queue. 00:24:53 Is that documented somewhere? I ran into that issue a couple weeks ago. 00:25:40 xwolf-: ah. then it should be ok (except that threads don't share special bindings [except for the global one]). 00:26:24 Bike: I'd look in the FFI section. Then again, callbacks are "experimental". 00:26:37 Thanks. 00:28:02 -!- wildnux [~wildnux@32.147.14.16] has quit [Read error: Connection reset by peer] 00:29:35 wildnux [~wildnux@32.147.14.16] has joined #lisp 00:32:08 -!- oconnore [~Eric@c-71-232-47-186.hsd1.ma.comcast.net] has quit [Ping timeout: 260 seconds] 00:32:37 oconnore [~Eric@c-71-232-47-186.hsd1.ma.comcast.net] has joined #lisp 00:34:10 pkhuong: "sbcl doesn't", except threaded sbcl/windows :) 00:34:14 -!- urandom__ [~user@p548A3FE2.dip.t-dialin.net] has quit [Remote host closed the connection] 00:34:19 -!- akovalen` is now known as akovalenko 00:36:01 akovalenko: sbcl/win32/ru ;) 00:36:03 nepnux [~wildnux@32.168.74.24] has joined #lisp 00:36:05 -!- RomyEatsDrupal [~stickycak@ool-457138a9.dyn.optonline.net] has quit [Quit: RomyEatsDrupal] 00:36:28 akovalenko: I think it might just work on unthreaded sbcl. 00:36:48 -!- wildnux [~wildnux@32.147.14.16] has quit [Ping timeout: 260 seconds] 00:37:26 gienah [~mwright@ppp121-44-44-207.lns20.syd6.internode.on.net] has joined #lisp 00:37:34 pnathan [~Adium@129.101.49.15] has joined #lisp 00:40:45 -!- jimmy1980 [~jimmy@112.224.3.14] has quit [Ping timeout: 260 seconds] 00:42:57 hm 00:43:07 can anyone help me with some sample usocket code? o_o 00:43:26 I'm wondering how simple it will be to send a "hello world" string from one repl to another, across 2 computers via UDP 00:44:34 Kron_: socket-connect with the datagram option gives you a socket, and then socket-send with a (unsigned-byte 8) vector as the buffer 00:44:39 -!- X-Scale [email@sgi-ultra64.broker.freenet6.net] has quit [Remote host closed the connection] 00:44:57 o.o 00:45:01 datagram option? 00:45:46 gah I need to look at the API 00:46:20 -!- nepnux [~wildnux@32.168.74.24] has quit [Ping timeout: 244 seconds] 00:46:29 ooh I think I found a tutorial online 00:48:45 Kron_: UDP works via datagrams. 00:48:51 TCP via streams. 00:48:59 ok 00:49:00 they're commonly referred to by this in APIs. 00:49:05 thanks 00:50:12 lutok [~luckystok@ip98-169-240-101.dc.dc.cox.net] has joined #lisp 00:50:29 -!- tritchey [~tritchey@c-68-51-88-12.hsd1.in.comcast.net] has quit [Ping timeout: 252 seconds] 00:51:20 -!- replore_ [~replore@ntkngw304073.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote host closed the connection] 00:52:16 tritchey [~tritchey@c-68-51-88-12.hsd1.in.comcast.net] has joined #lisp 00:53:44 Daditos [~kvirc@unaffiliated/daditos] has joined #lisp 00:54:38 -!- lutok [~luckystok@ip98-169-240-101.dc.dc.cox.net] has quit [Quit: WeeChat 0.3.5] 00:54:39 -!- tritchey [~tritchey@c-68-51-88-12.hsd1.in.comcast.net] has quit [Read error: Connection reset by peer] 00:56:02 LiamH [~healy@pool-108-45-22-54.washdc.east.verizon.net] has joined #lisp 00:58:13 tritchey [~tritchey@c-68-51-88-12.hsd1.in.comcast.net] has joined #lisp 01:02:32 eudoxia [~eudoxia@r190-135-34-60.dialup.adsl.anteldata.net.uy] has joined #lisp 01:03:27 -!- nicdev [~user@c-76-24-21-219.hsd1.ma.comcast.net] has quit [Ping timeout: 252 seconds] 01:05:18 doritos [~joshua@c-76-118-155-244.hsd1.ct.comcast.net] has joined #lisp 01:05:25 -!- eudoxia [~eudoxia@r190-135-34-60.dialup.adsl.anteldata.net.uy] has left #lisp 01:06:21 pjb- [~t@81.202.16.46.dyn.user.ono.com] has joined #lisp 01:10:03 -!- rtoym [~chatzilla@c-67-180-54-112.hsd1.ca.comcast.net] has quit [Ping timeout: 260 seconds] 01:11:26 ISF_ [~ivan@187.106.48.51] has joined #lisp 01:15:11 rtoym [~chatzilla@c-67-180-54-112.hsd1.ca.comcast.net] has joined #lisp 01:19:04 -!- superflit [~superflit@71-208-206-27.hlrn.qwest.net] has quit [Read error: Connection timed out] 01:23:24 -!- sellout [~Adium@c-98-245-162-253.hsd1.co.comcast.net] has left #lisp 01:23:49 sellout [~Adium@c-98-245-162-253.hsd1.co.comcast.net] has joined #lisp 01:28:24 StrmSrfr: IMO HtDP does foundations very solidly. 01:28:40 I'm not an impartial party though. 01:32:48 -!- tritchey [~tritchey@c-68-51-88-12.hsd1.in.comcast.net] has quit [Ping timeout: 260 seconds] 01:41:08 tigranes [~user@static-50-53-75-48.bvtn.or.frontiernet.net] has joined #lisp 01:41:30 tritchey [~tritchey@c-68-51-88-12.hsd1.in.comcast.net] has joined #lisp 01:41:35 -!- xyxu [~xyxu@222.68.158.233] has quit [Ping timeout: 248 seconds] 01:43:59 Is tech.coop still considered a good web host? 01:45:10 Vivitron [~user@pool-108-7-56-243.bstnma.fios.verizon.net] has joined #lisp 01:46:52 neoesque [~neoesque@210.59.147.226] has joined #lisp 01:48:10 tigranes: It kept working during a multi-year downtime of its admin, so I'd say so ;) 01:50:42 Hehe, fair enough. 01:51:06 Is he still on downtime? 01:53:45 cfy [~cfy@122.228.135.216] has joined #lisp 01:53:45 -!- cfy [~cfy@122.228.135.216] has quit [Changing host] 01:53:45 cfy [~cfy@unaffiliated/chenfengyuan] has joined #lisp 01:57:45 -!- cods [~cods@rsbac/developer/cods] has quit [Read error: Operation timed out] 01:58:45 cods [~cods@tuxee.net] has joined #lisp 02:00:59 hmmmmmm 02:01:11 I managed to set up a usocket connection between my and my friend's pc 02:01:14 but it only works one way o_o 02:01:21 if we mirror the code, I can't connect to her sockets 02:01:24 they always time out 02:01:27 she can time to my sockets 02:04:01 Kron_: one side has to listen (passive connection) 02:04:12 well yeah 02:04:14 Kron_: and one side has to connect (active) 02:04:20 well, you said mirror the code 02:04:35 http://blog.ciaranbradley.com/crossing-the-streams-land-of-lisp-chapter-12-0 I'm basically directly copying what I'm seeing here 02:04:39 Kron_: you on the same network? 02:04:41 when I listen and she connects, it works 02:04:48 no we're connecting via hamachi 02:05:05 well, it's a VPN even if it isn't a LAN 02:05:08 sounds like firewall stuff to me 02:05:14 hmmmm 02:05:16 maybe 02:05:29 use nc to see if you can connect to her at all 02:05:34 nc? 02:05:45 netcat. very useful tool 02:05:55 should be installed by default on a linux box 02:06:08 I'm on windows 02:06:09 :x 02:06:17 try connecting using a web browser then 02:06:26 it'll at least tell you if the port is reachable 02:06:31 http://host:port/ 02:06:55 and download cygwin sometime. It'll treat you right :) 02:10:23 waveman__ [~tim@124.170.43.134] has joined #lisp 02:13:26 DaDaDosPrompt [~DaDaDosPr@184.99.13.214] has joined #lisp 02:14:44 superflit [~superflit@71-208-200-190.hlrn.qwest.net] has joined #lisp 02:15:24 xyxu [~xyxu@58.41.14.46] has joined #lisp 02:16:04 -!- oconnore [~Eric@c-71-232-47-186.hsd1.ma.comcast.net] has left #lisp 02:18:05 I have cygwin o.o 02:18:13 and I can use the hamachi tool itself to ping her 02:18:15 nc is probably in cygwin too 02:18:34 yes, ping. that's a different mechanism then attempting to connect 02:20:03 -!- otakutomo [~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has quit [Read error: Connection reset by peer] 02:20:17 otakutomo [~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #lisp 02:23:12 Yuuhi` [benni@p5483AF76.dip.t-dialin.net] has joined #lisp 02:24:15 -!- Yuuhi [benni@p5483DBB8.dip.t-dialin.net] has quit [Ping timeout: 248 seconds] 02:27:04 -!- dlowe [~dlowe@50-77-31-237-static.hfc.comcastbusiness.net] has quit [Quit: *poof*] 02:34:27 gko [~gko@220-135-201-90.HINET-IP.hinet.net] has joined #lisp 02:37:28 -!- pjb- [~t@81.202.16.46.dyn.user.ono.com] has quit [Ping timeout: 276 seconds] 02:40:57 -!- pnathan [~Adium@129.101.49.15] has quit [Quit: Leaving.] 02:53:18 -!- redline6561 is now known as redline6561_nop 02:53:55 pnathan [~Adium@64.126.142.148] has joined #lisp 03:00:56 el-maxo [~max@p5DE8D57F.dip.t-dialin.net] has joined #lisp 03:04:14 -!- el-maxo_ [~max@p5DE8C915.dip.t-dialin.net] has quit [Ping timeout: 258 seconds] 03:06:04 -!- dontbehero [~proba@cpe-67-244-127-222.nyc.res.rr.com] has quit [Ping timeout: 276 seconds] 03:07:33 sonnym1 [~sonny@rrcs-184-74-137-69.nys.biz.rr.com] has joined #lisp 03:07:37 dontbehero [~proba@cpe-67-244-127-222.nyc.res.rr.com] has joined #lisp 03:08:04 -!- sonnym [~sonny@rrcs-184-74-137-69.nys.biz.rr.com] has quit [Ping timeout: 258 seconds] 03:09:58 -!- acelent [~user@2001:690:2100:4:200:1aff:fe19:ddfc] has quit [Ping timeout: 244 seconds] 03:10:57 -!- tigranes [~user@static-50-53-75-48.bvtn.or.frontiernet.net] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 03:15:35 BountyX [~erhan@adsl-76-241-64-48.dsl.bcvloh.sbcglobal.net] has joined #lisp 03:26:12 poindontcare [~user@cloudbovina.bovinasancta.com] has joined #lisp 03:28:25 acelent [~user@2001:690:2100:4:200:1aff:fe19:ddfc] has joined #lisp 03:32:21 -!- otakutomo [~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has quit [Read error: Connection reset by peer] 03:32:36 otakutomo [~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #lisp 03:35:06 BlankVerse [~pankajm@103.246.106.35] has joined #lisp 03:39:45 Spion_ [~spion@unaffiliated/spion] has joined #lisp 03:41:44 -!- gffa [~gffa@unaffiliated/gffa] has quit [Quit: sleep] 03:42:03 -!- mjonsson [~mjonsson@38.109.95.133] has quit [Remote host closed the connection] 03:43:08 pnq1 [~nick@ACA2929A.ipt.aol.com] has joined #lisp 03:43:20 -!- Spion [~spion@unaffiliated/spion] has quit [Ping timeout: 258 seconds] 03:43:43 -!- am0c [~am0c@222.235.56.83] has quit [Ping timeout: 248 seconds] 03:44:14 -!- pnathan [~Adium@64.126.142.148] has quit [Quit: Leaving.] 03:44:30 -!- pnq [~nick@AC815942.ipt.aol.com] has quit [Ping timeout: 260 seconds] 03:49:02 how to zero out a C struct again? I think CFFI has something specifically for that 03:55:07 Jasko [~tjasko@c-174-59-204-245.hsd1.pa.comcast.net] has joined #lisp 03:57:31 -!- Jasko3 [~tjasko@209.74.44.225] has quit [Ping timeout: 258 seconds] 03:59:45 xwolf-: nothing special. Either call memset or roll your own with CFFI:MEM-REF. 04:00:14 ok thanks 04:03:05 daniel__1 [~daniel@p5B326614.dip.t-dialin.net] has joined #lisp 04:04:55 -!- daniel___ [~daniel@p5B3260E7.dip.t-dialin.net] has quit [Ping timeout: 260 seconds] 04:06:35 -!- Kron_ [~Kron@98.143.102.225] has quit [Quit: Kron awayyy!] 04:07:30 -!- pnq1 is now known as pnq 04:09:47 -!- LiamH [~healy@pool-108-45-22-54.washdc.east.verizon.net] has quit [Quit: Leaving.] 04:13:56 oconnore [~Eric@c-71-232-47-186.hsd1.ma.comcast.net] has joined #lisp 04:15:25 -!- BlankVerse [~pankajm@103.246.106.35] has quit [Ping timeout: 240 seconds] 04:15:48 cyrillos [~cyrill@188.134.33.194] has joined #lisp 04:16:55 nicdev [~user@c-76-24-21-219.hsd1.ma.comcast.net] has joined #lisp 04:18:21 RomyEatsDrupal [~stickycak@cpe-66-65-124-236.nyc.res.rr.com] has joined #lisp 04:18:38 can SLIME jump to the function's definition? 04:18:44 tsuru``` [~charlie@adsl-98-87-44-151.bna.bellsouth.net] has joined #lisp 04:19:14 xwolf-: M-. 04:19:27 great :) 04:19:32 thanks 04:20:13 -!- tsuru`` [~charlie@adsl-74-179-197-154.bna.bellsouth.net] has quit [Ping timeout: 240 seconds] 04:21:51 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Quit: Leaving] 04:22:11 loke [~elias@bb115-66-85-121.singnet.com.sg] has joined #lisp 04:22:25 you can M-. through a few and M-, to come back through them in a push/pop sort of way too. 04:24:28 great too. does emacs include have a slime tutorial of sorts? some like C-h-t for emacs tutorial 04:24:49 I see I'm completely clueless about it still 04:24:56 M-x slime-cheat-sheet could help 04:25:12 -!- RomyEatsDrupal [~stickycak@cpe-66-65-124-236.nyc.res.rr.com] has quit [Quit: RomyEatsDrupal] 04:26:14 I saw the SLIME light when I learned about the inspector 04:26:22 that, and the "v" button in the debugger 04:26:33 thanks Bike 04:28:52 is inspector used during debugging when condition is thrown? 04:30:21 sometimes I use the inspector. 04:30:39 I also like restarting from a specific frame while debugging, after fixing a bug. 04:35:26 RomyEatsDrupal [~stickycak@cpe-66-65-124-236.nyc.res.rr.com] has joined #lisp 04:35:49 -!- Daditos [~kvirc@unaffiliated/daditos] has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/] 04:39:47 -!- loke [~elias@bb115-66-85-121.singnet.com.sg] has quit [Remote host closed the connection] 04:40:44 -!- ISF_ [~ivan@187.106.48.51] has quit [Quit: WeeChat 0.3.5] 04:46:26 ISF_ [~ivan@187.106.48.51] has joined #lisp 04:46:44 -!- ISF_ [~ivan@187.106.48.51] has quit [Client Quit] 04:54:28 ISF_ [~ivan@187.106.48.51] has joined #lisp 05:02:31 simplechat [~simplecha@unaffiliated/simplechat] has joined #lisp 05:03:43 -!- oconnore [~Eric@c-71-232-47-186.hsd1.ma.comcast.net] has quit [Ping timeout: 248 seconds] 05:14:11 -!- RomyEatsDrupal [~stickycak@cpe-66-65-124-236.nyc.res.rr.com] has quit [Quit: RomyEatsDrupal] 05:15:43 -!- gko [~gko@220-135-201-90.HINET-IP.hinet.net] has quit [Ping timeout: 258 seconds] 05:19:36 RomyEatsDrupal [~stickycak@cpe-66-65-124-236.nyc.res.rr.com] has joined #lisp 05:19:49 -!- pnq [~nick@ACA2929A.ipt.aol.com] has quit [Ping timeout: 240 seconds] 05:20:10 gaidal_ [~gaidal@58.62.241.199] has joined #lisp 05:22:34 -!- killerboy [~mateusz@users69.kollegienet.dk] has quit [Ping timeout: 276 seconds] 05:23:25 -!- gaidal [~gaidal@58.62.241.199] has quit [Ping timeout: 240 seconds] 05:23:35 rexim [~rexim@91.204.184.177] has joined #lisp 05:25:04 -!- RomyEatsDrupal [~stickycak@cpe-66-65-124-236.nyc.res.rr.com] has quit [Quit: RomyEatsDrupal] 05:25:14 littlegiraffe [~littlegir@host-64-151-208-2.bchsia.in2net.net] has joined #lisp 05:26:27 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving] 05:27:19 -!- totzeit [~kirkwood@c-24-17-10-251.hsd1.wa.comcast.net] has left #lisp 05:31:42 -!- cfy [~cfy@unaffiliated/chenfengyuan] has quit [Remote host closed the connection] 05:32:11 cfy [~cfy@218.75.27.172] has joined #lisp 05:32:11 -!- cfy [~cfy@218.75.27.172] has quit [Changing host] 05:32:11 cfy [~cfy@unaffiliated/chenfengyuan] has joined #lisp 05:32:15 gaidal__ [~gaidal@58.62.241.199] has joined #lisp 05:32:39 -!- ISF_ [~ivan@187.106.48.51] has quit [Read error: Operation timed out] 05:34:19 slash_ [~unknown@p54A8E364.dip.t-dialin.net] has joined #lisp 05:35:14 nepnux [~wildnux@68-191-210-216.dhcp.dntn.tx.charter.com] has joined #lisp 05:35:51 -!- gaidal_ [~gaidal@58.62.241.199] has quit [Ping timeout: 256 seconds] 05:37:31 -!- gaidal__ [~gaidal@58.62.241.199] has quit [Ping timeout: 276 seconds] 05:40:15 -!- cfy [~cfy@unaffiliated/chenfengyuan] has quit [Remote host closed the connection] 05:40:35 cfy [~cfy@218.75.17.76] has joined #lisp 05:40:35 -!- cfy [~cfy@218.75.17.76] has quit [Changing host] 05:40:35 cfy [~cfy@unaffiliated/chenfengyuan] has joined #lisp 05:46:13 -!- ISF [~ivan@187.106.48.51] has quit [Ping timeout: 240 seconds] 05:51:39 -!- cfy [~cfy@unaffiliated/chenfengyuan] has quit [Read error: Connection reset by peer] 05:51:55 cfy [~cfy@122.228.135.216] has joined #lisp 05:51:55 -!- cfy [~cfy@122.228.135.216] has quit [Changing host] 05:51:55 cfy [~cfy@unaffiliated/chenfengyuan] has joined #lisp 05:59:44 jewel [~jewel@196-215-114-21.dynamic.isadsl.co.za] has joined #lisp 06:03:11 qop_away [~supersymm@unaffiliated/qop] has joined #lisp 06:03:36 anyone knows about logo? 06:06:07 oconnore [~Eric@c-66-31-125-56.hsd1.ma.comcast.net] has joined #lisp 06:06:32 sdemarre [~serge@91.176.45.15] has joined #lisp 06:09:35 mrSpec [~Spec@unaffiliated/mrspec] has joined #lisp 06:13:45 I used to be able to write logo programs. 06:14:14 On an Apple II clone. Way better than BASIC! 06:17:34 well, I was thought something back in elementary and think it was logo 06:17:51 -!- rtoym [~chatzilla@c-67-180-54-112.hsd1.ca.comcast.net] has quit [Ping timeout: 248 seconds] 06:18:26 I had a bunch of colours that you mix to get sounds and figures, was that logo? 06:24:13 rtoym [~chatzilla@c-67-180-54-112.hsd1.ca.comcast.net] has joined #lisp 06:31:48 Logo generally involves moving a 'turtle' cursor around the screen with movement commands. 06:34:33 killerboy [~mateusz@users69.kollegienet.dk] has joined #lisp 06:34:37 levi: yes but the wiki mentioned something about colours 06:34:55 I wonder what the h was that :\ 06:35:18 Well, mine ran on a monochrome screen, and the original actually controlled a robotic turtle with a physical pen. 06:35:33 But there have been many implementations of Logo over the years! 06:35:43 easyE [p3LA00fl1L@panix2.panix.com] has joined #lisp 06:36:18 :) 06:38:19 bunch of colours... may be it was Piet? 06:39:02 Brendan_T [~brendan@46.105.251.111] has joined #lisp 06:39:48 Perhaps there was a Logo with a Magic Pink Unicorn instead of a turtle, and when you moved it it left a rainbow trail with sparkles! 06:42:36 hehe 06:43:42 with SLIME when I press v to jump where the error was is it possible to inspect the values of local variables? 06:44:07 I guess I should use inspector to do it but I can't figure out how 06:49:14 -!- littlegiraffe [~littlegir@host-64-151-208-2.bchsia.in2net.net] has quit [Quit: leaving] 06:53:49 xwolf_ [~xwolf-@76.73.16.26] has joined #lisp 06:54:44 -!- karswell [~mjc@93-97-29-243.zone5.bethere.co.uk] has quit [Excess Flood] 06:54:58 -!- xwolf- [~xwolf-@76.73.16.26] has quit [Quit: CGI:IRC (Ping timeout)] 06:55:15 -!- nicdev [~user@c-76-24-21-219.hsd1.ma.comcast.net] has left #lisp 06:55:41 karswell [~mjc@93-97-29-243.zone5.bethere.co.uk] has joined #lisp 06:56:16 -!- xwolf_ is now known as xwolf- 06:59:01 -!- qop_away [~supersymm@unaffiliated/qop] has quit [Read error: Connection reset by peer] 06:59:02 ZabaQ [~Zaba@135.114-84-212.staticip.namesco.net] has joined #lisp 06:59:08 qop_away [~supersymm@unaffiliated/qop] has joined #lisp 07:00:51 ISF [~ivan@187.106.48.51] has joined #lisp 07:00:58 -!- ISF [~ivan@187.106.48.51] has quit [Client Quit] 07:03:07 insomnia1alt [~milan@unaffiliated/iammilan] has joined #lisp 07:06:27 gaidal__ [~gaidal@59.42.115.221] has joined #lisp 07:06:30 -!- insomniaSalt [~milan@unaffiliated/iammilan] has quit [Ping timeout: 258 seconds] 07:06:30 -!- insomnia1alt is now known as insomniaSalt 07:06:52 wow I have just figured out I can run a loop in repl and still update functions, without ever quitting the loop 07:06:59 how does that work? 07:07:11 -!- jjkola [~jjkola@xdsl-83-150-83-66.nebulazone.fi] has quit [Ping timeout: 252 seconds] 07:07:12 gko [~gko@220-135-201-90.HINET-IP.hinet.net] has joined #lisp 07:08:05 how can SLIME send defun to REPL when it's in a loop 07:11:15 this blows my mind. :). I'm a fresh vim convert, I used vim + shell running repl until a coulple of days ago. 07:11:52 xwolf-: Multiple threads, I think. 07:12:42 is it safe to do? I didn't experience any issues 07:12:45 slime starts separate thread for all the little "worker" things, only thing you type into repl and press enter get sent to repl thread 07:12:49 xwolf-: Note that there is also slimv, if you want to use vim. 07:14:29 xwolf-: it's probably safe to act as though anything that has its own key combo is safe to do, no? 07:15:15 -!- sanjoyd [~sanjoyd@unaffiliated/sanjoyd] has quit [Ping timeout: 255 seconds] 07:16:30 I'm confused, is it emacs that runs a separate worker thread for these things or lisp process? 07:17:40 xwolf-: the lisp. your implementation probably has a function to see all lisp threads, like #'sb-thread:list-all-threads in sbcl. 07:18:06 gaidal_ [~gaidal@59.42.115.221] has joined #lisp 07:18:26 -!- slash_ [~unknown@p54A8E364.dip.t-dialin.net] has quit [Quit: Leaving.] 07:18:29 ah ok 07:18:37 -!- doritos [~joshua@c-76-118-155-244.hsd1.ct.comcast.net] has quit [Ping timeout: 240 seconds] 07:19:52 so sbcl and others were designed to do things like this? 07:20:13 Obfuscate I wanted to try slimv but couldnt' get it working. emacs + evil emulator almost feels like I'm using vim 07:20:54 -!- qop_away [~supersymm@unaffiliated/qop] has left #lisp 07:21:06 xwolf-: SWANK has a multithreaded mode, in which it runs iirc at least three differents threads - two of them for handling the connection to SWANK client (usually SLIME) 07:21:50 -!- gaidal__ [~gaidal@59.42.115.221] has quit [Ping timeout: 258 seconds] 07:22:26 I'm still not sure if I could run into any thread-related issues when doing something like this? looping and simultaneously updating function that's used in that loop 07:22:55 -!- gaidal_ [~gaidal@59.42.115.221] has quit [Ping timeout: 248 seconds] 07:23:21 xwolf-: that's... a hairy situation, I think 07:23:42 implementation- and code-dependant (the code in the loop) 07:24:50 xwolf-: Okay, I was just listing it as an option (it's what I use when I code lisp). 07:25:31 how about If I'm running a message loop, and the function I'm updating won't be called at the same time. is that ok? 07:26:48 Obfuscate yes thanks for the suggestion. I'll try it one more time, but I'm pretty happy with emacs + evil too 07:27:35 xwolf-: yes, it's normally ok (and note that you don't *modify a function* when redefining it, you just assign a new function to a symbol) 07:27:56 yes 07:30:40 -!- Bike [~Glossina@71-214-96-235.ptld.qwest.net] has quit [Quit: sleeping.] 07:35:25 replore [~replore@ntkngw304073.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #lisp 07:35:30 I'm used to save/compile/run cycle, this is whole new world for me 07:38:51 H4ns [5b3d582c@gateway/web/freenode/ip.91.61.88.44] has joined #lisp 07:39:18 What is the best way of creating a new directory using Lisp? 07:40:07 nefo [~nefo@58.37.43.36] has joined #lisp 07:40:11 -!- nefo [~nefo@58.37.43.36] has quit [Changing host] 07:40:11 nefo [~nefo@unaffiliated/nefo] has joined #lisp 07:41:20 -!- CaZe [~yrt@unaffiliated/y354c] has quit [Ping timeout: 260 seconds] 07:41:38 samebchase: ENSURE-DIRECTORIES-EXIST is the best way of the standardized ones, and also the worst. 07:43:28 akovalenko: why worst? 07:43:34 CaZe [~yrt@unaffiliated/y354c] has joined #lisp 07:43:52 because it's the only way? :) 07:43:59 kennyd: yep :) 07:44:19 ah. uh. 07:51:50 -!- Krystof [~user@81.174.155.115] has quit [Ping timeout: 260 seconds] 07:53:37 -!- rtoym [~chatzilla@c-67-180-54-112.hsd1.ca.comcast.net] has quit [Ping timeout: 244 seconds] 07:55:03 gorthaur [~Thauron@88-134-184-212-dynip.superkabel.de] has joined #lisp 07:55:19 -!- easyE [p3LA00fl1L@panix2.panix.com] has quit [Ping timeout: 276 seconds] 07:56:16 -!- gorthaur [~Thauron@88-134-184-212-dynip.superkabel.de] has quit [Quit: Verlassend] 07:56:39 gorthaur [~Thauron@88-134-184-212-dynip.superkabel.de] has joined #lisp 07:58:31 In PCL: "Note that if you pass ENSURE-DIRECTORIES-EXIST a directory name, it should be in directory form". What is "directory form"? 07:58:51 samebchase: don't omit the trailing slash 08:00:11 rtoym [~chatzilla@c-67-180-54-112.hsd1.ca.comcast.net] has joined #lisp 08:00:25 samebchase: try (ensure-directories-exists "/tmp/foo/bar") vs. (ensure-directories-exists "/tmp/bar/baz/") 08:00:33 H4ns: Oh! lol 08:00:51 H4ns: I was doing the first one 08:01:27 -!- gorthaur [~Thauron@88-134-184-212-dynip.superkabel.de] has quit [Client Quit] 08:03:47 when writing a library is it usually recommended to create a new condition for errors specific to that library, several conditions for various errors, or is it fine to just use (error "Error message")? 08:05:07 xwolf-: usually I start with (error ...) and move to one or many newly-defined conditions later. 08:05:13 holycow [~holycow@host-64-151-208-2.bchsia.in2net.net] has joined #lisp 08:05:30 xwolf-: i have come to the habit to always create a condition class whenever i need to signal an error from a library 08:05:38 ccorn [~ccorn@g132123.upc-g.chello.nl] has joined #lisp 08:05:54 ("i'll do it later" just did not work for me too frequently) 08:06:43 Vutral [~ss@vutral.net] has joined #lisp 08:07:44 xwolf-: i create a specific condiiton class when i have to signal specific arguments or when i expect the library user to want specifically handle this condition. this is true in most of the cases. when i see commonalities in the conditions thrown by a library, i refactor the condition hierarchy. 08:08:16 -!- Vutral [~ss@vutral.net] has quit [Excess Flood] 08:08:33 marsell [~marsell@120.20.158.75] has joined #lisp 08:08:34 xwolf-: you can use simple-error as your condition's superclass, so you won't have to write custom formatting/reporting code, but just give a format string and argument list. Also, I find it convenient to have a function resembling ERROR, which can be called this way: (FROBNICATION-ERROR "Unexpected nonsense in ~S" arg) 08:12:04 ok thanks to both. I need to read more about conditions, I'm using them like C++ exceptions pretty much 08:12:17 xwolf-: also note that all standard signalling functions which take DATUM and ARGUMENTS, accept your condition's class name and its initargs (not just a control string and format arguments). (ASSERT () 'FROBNICATION-ERROR :why "I'm tired") 08:13:41 xwolf-: http://www.nhplace.com/kent/Papers/Condition-Handling-2001.html - read pitman's paper 08:13:50 Vutral [~ss@vutral.net] has joined #lisp 08:13:51 can you give me examples where you took advantage of restarts in conditions? 08:14:28 -!- ZabaQ [~Zaba@135.114-84-212.staticip.namesco.net] has quit [Quit: Leaving.] 08:14:42 xwolf-: recently, i added restarts to a long-running database loader so that if there was a failure in one table, one could skip to the next table or retry the current one. 08:15:04 (retry after having fixed the problem and recompiled the relevant functions, presumably) 08:17:04 gaidal_ [~gaidal@59.42.115.221] has joined #lisp 08:17:06 ok interesting. how do restarts work btw? how can you jump to the caller without unwinding stack? 08:19:00 xwolf-: you can't restart from the signaling location, but only to the location where the restart is declared. 08:21:12 the function that throws condition sets restart locations, and the caller can jump back to them, right? I've never used restarts so maybe I got it wrong 08:23:26 xwolf-: bound condition handlers (and debuggers) can invoke restarts. once the stack is unwound, there is no turning back. 08:24:22 ok I get it 08:25:01 xwolf-: one of the main features of CL condition system is the possibility of setting up restarts and condition handlers independently. The use case when the same function establishes restarts and signals a condition is indeed a typical, but not the only one. 08:26:48 anyone here use common lisp for micro controller programming? just curious if this is even possible 08:27:50 holycow: what do you mean by "micro controller"? 08:28:24 holycow: i.e. nowadays, you can get microcontrollers that'd have properties of 1970ies mainframes, and common lisp is okay for those. 08:28:48 holycow: i've seen people use common lisp to generate microcontroller code, though. 08:29:00 i'm looking at nerdkits.com and wanted to buy their kit that comes with an atmel controller. their projects rely on c for the programming and obviously i would prefer to muck around with common lisp instead 08:29:58 H4ns: ah okay. time to google this a bit differently 08:30:23 -!- fmeyer [~fmeyer@187.38.98.102] has quit [Ping timeout: 245 seconds] 08:34:49 -!- gaidal_ [~gaidal@59.42.115.221] has quit [Ping timeout: 252 seconds] 08:35:33 -!- replore [~replore@ntkngw304073.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote host closed the connection] 08:36:50 -!- ccorn [~ccorn@g132123.upc-g.chello.nl] has quit [Quit: ccorn] 08:37:47 aha, found one guy using sbcl to send signals to an arduino based microcontrollers 08:37:57 cool thanks for the brainstorm, was googling for the wrong thing 08:44:50 araujo [~araujo@gentoo/developer/araujo] has joined #lisp 08:47:15 gaidal_ [~gaidal@59.42.115.221] has joined #lisp 08:54:14 is there something like with-slots that works with methods as well? 08:55:26 kennyd: WITH-ACCESSORS, if I understand your question correctly. 09:01:27 gravicappa [~gravicapp@ppp91-77-171-84.pppoe.mtu-net.ru] has joined #lisp 09:01:47 that's it thanks 09:01:48 -!- wbooze [~levgue@xdsl-78-35-169-250.netcologne.de] has quit [Read error: Connection reset by peer] 09:01:57 -!- homie [~levgue@xdsl-78-35-169-250.netcologne.de] has quit [Read error: Connection reset by peer] 09:03:08 homie [~levgue@xdsl-78-35-158-30.netcologne.de] has joined #lisp 09:03:36 wbooze [~levgue@xdsl-78-35-158-30.netcologne.de] has joined #lisp 09:04:43 benkard [~benkard@mnch-4d04d3de.pool.mediaWays.net] has joined #lisp 09:06:01 a bit odd though that I can't just use list of accessors if I want to use the same names 09:06:10 with-slots allows that 09:06:56 sanjoyd [~sanjoyd@unaffiliated/sanjoyd] has joined #lisp 09:06:58 kennyd: (defmacro with-kennyd-accessors (names &body body) `(with-accessors ,(mapcar 'list names names) ,@body)) ;; not tested 09:07:26 I know :) 09:07:57 gavinharper [~gavinharp@dyn3-82-128-191-12.psoas.suomi.net] has joined #lisp 09:08:00 wondered if there was some reasoning behind it, I can't see any 09:09:05 am0c [~am0c@61.255.85.183] has joined #lisp 09:09:53 waveman_3 [~tim@124.170.43.134] has joined #lisp 09:10:57 -!- gavinharper [~gavinharp@dyn3-82-128-191-12.psoas.suomi.net] has quit [Client Quit] 09:11:12 with slime is it possible to evaluate the current function, where the cursor is? I find myself scrolling at the end and then pressing C-x C-e often 09:13:06 -!- waveman_3 [~tim@124.170.43.134] has quit [Client Quit] 09:13:11 -!- waveman__ [~tim@124.170.43.134] has quit [Quit: Lost terminal] 09:15:07 waveman_1 [~tim@124.170.43.134] has joined #lisp 09:18:20 -!- oconnore [~Eric@c-66-31-125-56.hsd1.ma.comcast.net] has quit [Quit: Leaving.] 09:19:20 -!- gaidal_ [~gaidal@59.42.115.221] has quit [Ping timeout: 260 seconds] 09:19:38 -!- am0c [~am0c@61.255.85.183] has quit [Quit: Leaving] 09:19:45 -!- nefo [~nefo@unaffiliated/nefo] has quit [Quit: Leaving] 09:20:54 try C-c C-c, which will also give you compiler notes 09:21:23 i have tried that already but I'm gettong conditions 09:21:30 xwolf-: (which you can jump to with M-n/M-p) 09:21:39 whereas C-x C-e works 09:22:47 anvandare_ [~anvandare@dD577080B.access.telenet.be] has joined #lisp 09:23:44 try C-M-x? 09:24:31 -!- jewel [~jewel@196-215-114-21.dynamic.isadsl.co.za] has quit [Ping timeout: 248 seconds] 09:25:18 -!- anvandare [~anvandare@78-23-213-140.access.telenet.be] has quit [Ping timeout: 255 seconds] 09:26:32 nice that worked 09:27:03 -!- cesarbp [~cbolano@189.247.126.160] has quit [Ping timeout: 245 seconds] 09:27:27 -!- DaDaDosPrompt [~DaDaDosPr@184.99.13.214] has quit [Quit: DaDaDosPrompt] 09:28:59 I was getting file permission denied error when trying to compile it 09:31:00 -!- rtoym [~chatzilla@c-67-180-54-112.hsd1.ca.comcast.net] has quit [Ping timeout: 260 seconds] 09:31:02 gaidal_ [~gaidal@59.42.115.221] has joined #lisp 09:36:11 rtoym [~chatzilla@c-67-180-54-112.hsd1.ca.comcast.net] has joined #lisp 09:37:05 Guthur [~user@212.183.128.72] has joined #lisp 09:41:33 jtza8 [~jtza8@41.56.51.30] has joined #lisp 09:42:36 kennyd: clos does not make any assumptions with regard to accessor naming. 09:43:11 kennyd: in particular, it does not assume (or suggest or imply) that you have accessors that have the same name as the corresponding slot. 09:43:37 gaidal__ [~gaidal@59.42.115.221] has joined #lisp 09:45:16 H4ns: we were discussing the _difference_ between with-slots and with-accessors. do you think your argument can be applied to the latter, but not the former? why? 09:45:19 -!- doesthiswork [~Adium@he190123.dsl.fsr.net] has quit [Quit: Leaving.] 09:46:41 akovalenko: my point is: if with-accessors would default the accessor name to the slot name, it would imply that an accessor of that name exists. with-slots does not make such an assumption. 09:47:19 -!- gaidal_ [~gaidal@59.42.115.221] has quit [Ping timeout: 258 seconds] 09:48:40 H4ns: then you misunderstood the question. (with-accessors ((pathname-name pathname-name)) #P"/etc/fstab" (length pathname-name)) ;; no slots, no clos in view at all. Could it grok pathname-name without my repetition of it? 09:49:18 akovalenko: ah, you're right. hm. 09:52:08 i guess this is so because they did not want to default to shadowing the original definition. and thinking about it, i'd find it slightly confusing to see with-accessors turn the name of a function into the name of a variable by default. 09:53:22 I suspect that the only possible reason for the difference is a little accomodation to Lisp1-people: while we can pun on function and variable names all the time, adding the feature in question to with-accessors would be an active _promotion_ of this style, as opposed to mere _support_ for it.. 09:53:50 H4ns: _symbol macros_ don't shadow _functions_ 09:54:27 superjudge [~superjudg@c83-250-198-227.bredband.comhem.se] has joined #lisp 09:54:41 akovalenko: did you get the point or no? 09:55:34 H4ns: did _you_ get the point that no shadowing could occur here at all? 09:56:38 akovalenko: in your example, inside of the with-accessors, pathname-name would be _usable_ as if it was a variable. that is my whole point. 09:57:10 -!- superjudge [~superjudg@c83-250-198-227.bredband.comhem.se] has quit [Client Quit] 10:00:39 akovalen` [~anton@95.73.126.214] has joined #lisp 10:00:40 -!- akovalenko [~anton@95.72.103.36] has quit [Read error: Connection reset by peer] 10:04:51 -!- gaidal__ [~gaidal@59.42.115.221] has quit [Ping timeout: 244 seconds] 10:13:34 -!- waveman_1 [~tim@124.170.43.134] has quit [Quit: leaving] 10:13:38 hakzsam [~hakzsam@aqu33-5-82-245-96-206.fbx.proxad.net] has joined #lisp 10:14:12 -!- akovalen` is now known as akovalenko 10:21:09 -!- xyxu [~xyxu@58.41.14.46] has quit [Ping timeout: 252 seconds] 10:28:43 -!- anvandare_ [~anvandare@dD577080B.access.telenet.be] has quit [Ping timeout: 245 seconds] 10:29:56 -!- dnolen [~davidnole@cpe-98-14-92-234.nyc.res.rr.com] has quit [Quit: dnolen] 10:31:00 Athas [~athas@ip1.c291.frb32.cust.comxnet.dk] has joined #lisp 10:37:35 MUILTFN [~MLINTH@adsl-98-80-240-241.mcn.bellsouth.net] has joined #lisp 10:40:54 -!- EyesIsServer [~eyes@WiseOS/Founder/EyesIsMine] has quit [Read error: Connection reset by peer] 10:43:09 anvandare_ [~anvandare@78-22-149-71.access.telenet.be] has joined #lisp 10:47:11 -!- juniorroy [~dima@212.36.228.103] has quit [Ping timeout: 248 seconds] 10:48:43 hi 10:48:50 Whitesquall [~notwhites@213.87.132.233] has joined #lisp 10:51:34 gaidal__ [~gaidal@59.42.115.221] has joined #lisp 10:51:34 -!- gaidal__ is now known as gaidal 10:52:22 -!- wbooze [~levgue@xdsl-78-35-158-30.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 10:52:28 -!- homie [~levgue@xdsl-78-35-158-30.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 10:52:28 eyes_ [~eyes@WiseOS/Founder/EyesIsMine] has joined #lisp 10:56:49 benkard_ [~benkard@mnch-5d86a619.pool.mediaWays.net] has joined #lisp 10:59:23 -!- gko [~gko@220-135-201-90.HINET-IP.hinet.net] has quit [Ping timeout: 258 seconds] 10:59:31 juniorroy [~dima@212.36.228.103] has joined #lisp 11:00:10 -!- benkard [~benkard@mnch-4d04d3de.pool.mediaWays.net] has quit [Ping timeout: 260 seconds] 11:00:10 -!- benkard_ is now known as benkard 11:03:09 homie [~levgue@xdsl-78-35-158-30.netcologne.de] has joined #lisp 11:03:49 -!- gravicappa [~gravicapp@ppp91-77-171-84.pppoe.mtu-net.ru] has quit [Remote host closed the connection] 11:07:31 jimmy1980 [~jimmy@112.224.3.10] has joined #lisp 11:07:43 -!- jtza8 [~jtza8@41.56.51.30] has quit [Remote host closed the connection] 11:07:57 benkard_ [~benkard@mnch-5d85782d.pool.mediaWays.net] has joined #lisp 11:08:08 replore [~replore@ntkngw304073.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #lisp 11:08:13 wbooze [~levgue@xdsl-78-35-158-30.netcologne.de] has joined #lisp 11:09:40 benkard__ [~benkard@mnch-d9bdc9f3.pool.mediaWays.net] has joined #lisp 11:10:27 -!- holycow [~holycow@host-64-151-208-2.bchsia.in2net.net] has quit [Quit: leaving] 11:11:11 -!- benkard [~benkard@mnch-5d86a619.pool.mediaWays.net] has quit [Ping timeout: 248 seconds] 11:11:12 -!- benkard__ is now known as benkard 11:11:50 -!- gaidal [~gaidal@59.42.115.221] has quit [Read error: No route to host] 11:12:25 -!- benkard_ [~benkard@mnch-5d85782d.pool.mediaWays.net] has quit [Ping timeout: 260 seconds] 11:13:24 gaidal [~gaidal@59.42.115.221] has joined #lisp 11:13:46 -!- Nshag [user@chl45-1-88-123-84-8.fbx.proxad.net] has quit [Ping timeout: 265 seconds] 11:14:19 gaidal_ [~gaidal@59.42.115.221] has joined #lisp 11:14:44 -!- eyes_ [~eyes@WiseOS/Founder/EyesIsMine] has quit [Disconnected by services] 11:15:16 EyesIsServer [~eyes@WiseOS/Founder/EyesIsMine] has joined #lisp 11:17:41 Nshag [user@chl45-1-88-123-84-8.fbx.proxad.net] has joined #lisp 11:17:49 -!- gaidal [~gaidal@59.42.115.221] has quit [Ping timeout: 240 seconds] 11:19:15 -!- gaidal_ [~gaidal@59.42.115.221] has quit [Ping timeout: 244 seconds] 11:24:02 -!- Whitesquall [~notwhites@213.87.132.233] has quit [Remote host closed the connection] 11:26:08 gensym [~user@dslb-088-071-149-049.pools.arcor-ip.net] has joined #lisp 11:32:16 -!- anvandare_ [~anvandare@78-22-149-71.access.telenet.be] has quit [Ping timeout: 256 seconds] 11:35:36 -!- Guthur [~user@212.183.128.72] has quit [Ping timeout: 258 seconds] 11:36:29 -!- Nshag [user@chl45-1-88-123-84-8.fbx.proxad.net] has quit [Ping timeout: 265 seconds] 11:36:30 xyxu [~xyxu@222.68.164.129] has joined #lisp 11:37:09 gravicappa [~gravicapp@ppp91-77-214-63.pppoe.mtu-net.ru] has joined #lisp 11:40:44 Nshag [user@chl45-1-88-123-84-8.fbx.proxad.net] has joined #lisp 11:46:23 anvandare_ [~anvandare@dD5770E78.access.telenet.be] has joined #lisp 11:47:10 jjkola [~jjkola@xdsl-83-150-83-66.nebulazone.fi] has joined #lisp 11:47:30 Joreji [~thomas@74-112.eduroam.RWTH-Aachen.DE] has joined #lisp 11:56:02 tsuru```` [~charlie@adsl-74-179-196-112.bna.bellsouth.net] has joined #lisp 11:57:25 -!- Beetny [~Beetny@ppp118-208-142-28.lns20.bne1.internode.on.net] has quit [Ping timeout: 260 seconds] 11:57:46 -!- tsuru``` [~charlie@adsl-98-87-44-151.bna.bellsouth.net] has quit [Ping timeout: 252 seconds] 12:00:13 easyE [IUAVeNJUc5@panix2.panix.com] has joined #lisp 12:00:51 -!- benkard [~benkard@mnch-d9bdc9f3.pool.mediaWays.net] has quit [Quit: benkard] 12:02:52 Vivitron` [~user@pool-108-7-56-243.bstnma.fios.verizon.net] has joined #lisp 12:04:31 -!- Vivitron [~user@pool-108-7-56-243.bstnma.fios.verizon.net] has quit [Ping timeout: 248 seconds] 12:08:44 bgs100 [~ian@unaffiliated/bgs100] has joined #lisp 12:14:28 benkard [~benkard@mnch-d9bdc9f3.pool.mediaWays.net] has joined #lisp 12:15:13 -!- gensym [~user@dslb-088-071-149-049.pools.arcor-ip.net] has quit [Remote host closed the connection] 12:22:54 -!- oudeis [~oudeis@bzq-79-177-201-46.red.bezeqint.net] has quit [Quit: This computer has gone to sleep] 12:28:37 -!- marsell [~marsell@120.20.158.75] has quit [Quit: marsell] 12:32:50 pnq [~nick@AC81BE4F.ipt.aol.com] has joined #lisp 12:32:54 -!- jimmy1980 [~jimmy@112.224.3.10] has quit [Ping timeout: 256 seconds] 12:32:56 silenius [~silenius@i59F771D8.versanet.de] has joined #lisp 12:33:15 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Quit: Leaving] 12:35:43 -!- xyxu [~xyxu@222.68.164.129] has quit [Ping timeout: 244 seconds] 12:38:13 xyxu [~xyxu@222.68.164.129] has joined #lisp 12:38:38 jimmy1980 [~jimmy@112.224.3.10] has joined #lisp 12:39:25 -!- otwieracz [~gonet9@v6.gen2.org] has quit [Ping timeout: 240 seconds] 12:40:45 oudeis [~oudeis@93-173-0-94.bb.netvision.net.il] has joined #lisp 12:41:40 http://paste.lisp.org/display/125340 ; is there actually a situation in which f could be nil here? 12:42:40 gensym [~user@dslb-088-071-149-049.pools.arcor-ip.net] has joined #lisp 12:43:10 -!- xwolf- [~xwolf-@76.73.16.26] has quit [Quit: CGI:IRC (Ping timeout)] 12:46:28 gko [gko@220-135-201-90.HINET-IP.hinet.net] has joined #lisp 12:46:36 df: if :if-exists nil is supplied.. 12:46:49 df: (and the file exists...) 12:48:41 but with the code as it is, no? 12:49:05 df: right 12:49:08 -!- xyxu [~xyxu@222.68.164.129] has quit [Ping timeout: 245 seconds] 12:49:09 thanks 12:49:33 naeg [~naeg@194.208.239.170] has joined #lisp 12:49:59 well, I guess there may be some restart handler that invalidates my claim in some imaginary implementation ;) 12:50:13 aiju [~aiju@unaffiliated/aiju] has joined #lisp 12:51:13 otwieracz [~gonet9@v6.gen2.org] has joined #lisp 12:51:34 how would one go and construct a list efficiently by adding elements? 12:51:53 append is O(n) in the existing list, isn't it? 12:52:00 aiju: push,push,push,push....nreverse 12:53:53 -!- Joreji [~thomas@74-112.eduroam.RWTH-Aachen.DE] has quit [Ping timeout: 260 seconds] 12:53:54 aiju: there is an alternative method also (when you keep a list head and grow its tail), but the performance is roughly the same.. 12:54:57 aiju: an interesting read: http://www.merl.com/papers/TR93-17/ .. in particular, chapter 3 12:55:33 i usually use the tail method in C 12:55:40 aiju: although take the conclusions with a grain of salt.. they don't necessarily conform to your own situation 12:55:49 adeht: they never do 12:59:08 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 12:59:19 anonus [~anonymous@88.80.28.189] has joined #lisp 12:59:27 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 13:00:14 -!- naryl [~weechat@213.170.70.141] has quit [Read error: Connection reset by peer] 13:00:44 adeht: interesting paper - thanks! 13:01:01 -!- oudeis [~oudeis@93-173-0-94.bb.netvision.net.il] has quit [Ping timeout: 252 seconds] 13:01:21 airolson [~airolson@CPE00222d55a738-CM00222d55a735.cpe.net.cable.rogers.com] has joined #lisp 13:01:31 -!- MUILTFN [~MLINTH@adsl-98-80-240-241.mcn.bellsouth.net] has quit [Ping timeout: 255 seconds] 13:02:01 this is something i love about common lisp: you can read papers that are decades old and they still contain applicable and useful insights. 13:02:03 xyxu [~xyxu@222.68.153.9] has joined #lisp 13:02:05 anonus [~anonymous@88.80.28.189] has joined #lisp 13:03:56 (replacd a b) is (setf (cdr a) b) isn't it? 13:04:19 close enough 13:04:21 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 13:04:30 Guthur [~user@212.183.128.72] has joined #lisp 13:04:33 anonus [~anonymous@88.80.28.189] has joined #lisp 13:04:41 the former (assuming you meant rplacd) returns the cons cell, the latter returns b 13:05:34 i'm pretty surprised that both approaches are similarly fast 13:06:23 -!- xyxu [~xyxu@222.68.153.9] has quit [Ping timeout: 248 seconds] 13:06:25 aiju: that is the statement whose truth value you should judge for yourself 13:07:05 wait wait wait 13:07:09 the spec defines pronounciation? 13:07:33 yes.. for some terms, it gives pronunciation 13:07:38 hahahaha 13:07:49 where is the dress code? 13:08:32 that's under the authority of http://en.wikipedia.org/wiki/Knights_of_the_Lambda_Calculus 13:09:43 naryl [~weechat@213.170.70.141] has joined #lisp 13:09:45 -!- naryl [~weechat@213.170.70.141] has quit [Client Quit] 13:09:48 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 13:10:01 anonus [~anonymous@88.80.28.189] has joined #lisp 13:10:29 is there some way to refer to a cons cell without having e.g. format's ~a trying to print it as a list? 13:11:08 I don't understand your question 13:12:20 i have a directed graph where the elements are lists 13:12:40 X-Scale [email@sgi-ultra64.broker.freenet6.net] has joined #lisp 13:12:40 -!- X-Scale is now known as Guest2072 13:13:16 and the edges are made by having one element of the list point to the next node 13:13:48 -!- Guest2072 is now known as X-Scale 13:14:23 -!- gko [gko@220-135-201-90.HINET-IP.hinet.net] has quit [Ping timeout: 248 seconds] 13:14:36 you could write your own print-graph function.. pjb has some such code that may fit your needs.. http://www.informatimago.com/develop/lisp/com/informatimago/common-lisp/picture/ 13:16:36 gaidal [~gaidal@59.42.115.221] has joined #lisp 13:16:36 or i'll just number my noes 13:17:10 if you set *print-circle* to true, the printer can number those for you 13:17:23 i doubt that will produce the desired output 13:17:39 it prints a list the first time it appears, doesn't it? 13:17:49 yes 13:17:55 gaidal_ [~gaidal@59.42.115.221] has joined #lisp 13:20:47 is there a way to see what sbcl ir1 transforms will do to an expression, similar to macroexpand? 13:21:13 -!- gaidal [~gaidal@59.42.115.221] has quit [Ping timeout: 245 seconds] 13:21:26 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 13:21:31 xyxu [~xyxu@222.68.159.143] has joined #lisp 13:21:43 anonus [~anonymous@88.80.28.189] has joined #lisp 13:25:14 -!- gaidal_ [~gaidal@59.42.115.221] has quit [Ping timeout: 252 seconds] 13:28:53 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 13:29:07 anonus [~anonymous@88.80.28.189] has joined #lisp 13:29:15 lnostdal [~lnostdal@ti0030a380-dhcp3741.bb.online.no] has joined #lisp 13:29:40 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 13:33:29 -!- mathrick [~mathrick@85.218.136.127] has quit [Ping timeout: 258 seconds] 13:33:41 oudeis [~oudeis@93-173-0-94.bb.netvision.net.il] has joined #lisp 13:34:21 mstevens [~mstevens@fsf/member/pdpc.active.mstevens] has joined #lisp 13:34:35 -!- pnq [~nick@AC81BE4F.ipt.aol.com] has quit [Ping timeout: 252 seconds] 13:36:54 gaidal_ [~gaidal@59.42.115.221] has joined #lisp 13:37:04 -!- Brendan_T [~brendan@46.105.251.111] has quit [Remote host closed the connection] 13:42:10 -!- gensym [~user@dslb-088-071-149-049.pools.arcor-ip.net] has quit [Read error: Connection reset by peer] 13:44:00 gavinharper [~gavinharp@dyn3-82-128-191-12.psoas.suomi.net] has joined #lisp 13:48:22 gffa [~gffa@unaffiliated/gffa] has joined #lisp 13:50:37 -!- oudeis [~oudeis@93-173-0-94.bb.netvision.net.il] has quit [Read error: Connection timed out] 13:52:17 francogrex [~user@109.130.143.41] has joined #lisp 13:52:42 -!- billstcalir [~billstcla@p-74-209-21-225.dsl1.rtr.chat.fpma.frpt.net] has quit [Ping timeout: 244 seconds] 13:54:18 oudeis [~oudeis@93.173.0.94] has joined #lisp 13:58:40 -!- gavinharper [~gavinharp@dyn3-82-128-191-12.psoas.suomi.net] has quit [] 14:01:08 -!- prip_ [~foo@host233-122-dynamic.53-79-r.retail.telecomitalia.it] has quit [Quit: Leaving] 14:01:40 Kron [~Kron@69.166.23.18] has joined #lisp 14:02:06 -!- Kron is now known as Guest51089 14:03:10 -!- StrmSrfr [~user@208.72.159.205] has quit [Read error: Connection reset by peer] 14:03:14 prip [~foo@host233-122-dynamic.53-79-r.retail.telecomitalia.it] has joined #lisp 14:03:21 StrmSrfr [~user@208.72.159.205] has joined #lisp 14:04:56 anonus [~anonymous@88.80.28.189] has joined #lisp 14:05:17 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 14:07:35 leo2007 [~leo@123.123.252.233] has joined #lisp 14:08:09 -!- Athas [~athas@ip1.c291.frb32.cust.comxnet.dk] has quit [Remote host closed the connection] 14:11:27 -!- jimmy1980 [~jimmy@112.224.3.10] has quit [Ping timeout: 248 seconds] 14:13:08 -!- gienah [~mwright@ppp121-44-44-207.lns20.syd6.internode.on.net] has quit [Quit: leaving] 14:13:32 am0c [~am0c@175.253.0.215] has joined #lisp 14:14:24 -!- easyE [IUAVeNJUc5@panix2.panix.com] has quit [Ping timeout: 244 seconds] 14:14:43 anonus [~anonymous@88.80.28.189] has joined #lisp 14:17:57 jimmy1980 [~jimmy@112.224.3.21] has joined #lisp 14:19:24 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 14:19:36 anonus [~anonymous@88.80.28.189] has joined #lisp 14:22:29 -!- oudeis [~oudeis@93.173.0.94] has quit [Quit: This computer has gone to sleep] 14:23:47 totzeit [~kirkwood@c-24-17-10-251.hsd1.wa.comcast.net] has joined #lisp 14:25:56 billstclair [~billstcla@unaffiliated/billstclair] has joined #lisp 14:32:11 -!- airolson [~airolson@CPE00222d55a738-CM00222d55a735.cpe.net.cable.rogers.com] has quit [] 14:32:22 -!- gaidal_ [~gaidal@59.42.115.221] has quit [Read error: Connection reset by peer] 14:34:25 -!- nowhere_man [~pierre@AStrasbourg-551-1-133-72.w90-26.abo.wanadoo.fr] has quit [Ping timeout: 276 seconds] 14:38:07 -!- benkard [~benkard@mnch-d9bdc9f3.pool.mediaWays.net] has quit [Quit: benkard] 14:38:41 -!- cfy [~cfy@unaffiliated/chenfengyuan] has quit [Ping timeout: 244 seconds] 14:40:03 -!- replore [~replore@ntkngw304073.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote host closed the connection] 14:40:54 -!- neoesque [~neoesque@210.59.147.226] has quit [Quit: Bye!] 14:41:14 MUILTFN [~MLINTH@adsl-98-80-212-79.mcn.bellsouth.net] has joined #lisp 14:43:35 -!- am0c [~am0c@175.253.0.215] has quit [Read error: Connection reset by peer] 14:44:09 am0c [~am0c@175.253.0.215] has joined #lisp 14:45:59 gaidal_ [~gaidal@59.41.115.14] has joined #lisp 14:47:28 ZabaQ [~john.conn@135.114-84-212.staticip.namesco.net] has joined #lisp 14:47:43 -!- am0c [~am0c@175.253.0.215] has quit [Remote host closed the connection] 14:52:01 Whitesquall [~notwhites@109.225.20.18] has joined #lisp 14:52:27 nowhere_man [~pierre@AStrasbourg-551-1-38-34.w92-148.abo.wanadoo.fr] has joined #lisp 14:53:03 -!- sellout [~Adium@c-98-245-162-253.hsd1.co.comcast.net] has quit [Ping timeout: 248 seconds] 14:54:54 -!- kpreid [~kpreid@128.153.212.250] has quit [Quit: Quitting] 14:55:01 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 14:55:16 kpreid [~kpreid@128.153.212.250] has joined #lisp 14:55:17 zimb0 [~zimb0@41.221.159.84] has joined #lisp 14:55:20 anonus [~anonymous@88.80.28.189] has joined #lisp 14:56:33 -!- Whitesquall [~notwhites@109.225.20.18] has left #lisp 14:56:58 oconnore [~Eric@c-66-31-125-56.hsd1.ma.comcast.net] has joined #lisp 14:58:17 -!- zimb0 [~zimb0@41.221.159.84] has quit [Remote host closed the connection] 15:00:12 jewel [~jewel@196-215-114-21.dynamic.isadsl.co.za] has joined #lisp 15:00:25 -!- lnostdal [~lnostdal@ti0030a380-dhcp3741.bb.online.no] has quit [Ping timeout: 276 seconds] 15:02:02 -!- MUILTFN [~MLINTH@adsl-98-80-212-79.mcn.bellsouth.net] has quit [Ping timeout: 258 seconds] 15:02:46 sellout [~Adium@c-98-245-162-253.hsd1.co.comcast.net] has joined #lisp 15:03:10 Whitesquall [~notwhites@109.225.20.18] has joined #lisp 15:04:55 benkard [~benkard@mnch-d9bdc9f3.pool.mediaWays.net] has joined #lisp 15:05:07 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 15:05:19 anonus [~anonymous@88.80.28.189] has joined #lisp 15:14:16 lnostdal [~lnostdal@ti0030a380-dhcp3741.bb.online.no] has joined #lisp 15:19:51 -!- xyxu [~xyxu@222.68.159.143] has quit [Ping timeout: 258 seconds] 15:20:21 Blkt [~user@82.84.170.159] has joined #lisp 15:21:37 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 15:21:38 hey 15:21:48 whazzup man....everyone asleep ? 15:21:52 anonus [~anonymous@88.80.28.189] has joined #lisp 15:23:13 -!- oconnore [~Eric@c-66-31-125-56.hsd1.ma.comcast.net] has quit [Quit: Leaving.] 15:25:01 -!- newcup [newcup@peruna.fi] has quit [Ping timeout: 240 seconds] 15:25:14 -!- silenius [~silenius@i59F771D8.versanet.de] has quit [Remote host closed the connection] 15:26:02 -!- BountyX [~erhan@adsl-76-241-64-48.dsl.bcvloh.sbcglobal.net] has quit [Remote host closed the connection] 15:31:19 dlowe [~dlowe@50-77-31-237-static.hfc.comcastbusiness.net] has joined #lisp 15:31:45 good evening everyone 15:32:02 cesarbp [~cbolano@189.247.126.160] has joined #lisp 15:32:03 FreeArtMan [~FreeArtMa@93.177.213.54] has joined #lisp 15:32:26 oconnore [~Eric@c-66-31-125-56.hsd1.ma.comcast.net] has joined #lisp 15:33:55 -!- ZabaQ [~john.conn@135.114-84-212.staticip.namesco.net] has quit [Ping timeout: 252 seconds] 15:34:00 xyxu [~xyxu@222.68.153.252] has joined #lisp 15:36:33 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 15:36:46 anonus [~anonymous@88.80.28.189] has joined #lisp 15:38:25 floyd___ [~floyd___@c-2fbd72d5.12-0054-74657210.cust.bredbandsbolaget.se] has joined #lisp 15:39:27 hello Blkt 15:40:05 hi 15:40:20 Spion [~spion@unaffiliated/spion] has joined #lisp 15:40:28 I missed the first home works for ai-class 15:40:31 :( 15:41:32 Hey Posterdati i think they arent due for another 6 hours 15:41:49 floyd___: ok, but where I could get them? 15:41:57 ZabaQ [~john.conn@135.114-84-212.staticip.namesco.net] has joined #lisp 15:42:20 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 15:42:31 click on course and they should be available in the list of units 15:42:32 anonus [~anonymous@88.80.28.189] has joined #lisp 15:42:48 floyd___: Homework 1 (closed) 15:43:01 floyd___: Available Oct. 16, 23:59 UTC 15:43:03 -!- Spion_ [~spion@unaffiliated/spion] has quit [Ping timeout: 258 seconds] 15:43:07 huh? for me it says In "8 hours 17 minutes Homework 1 due" 15:43:26 Off-topic anyway. 15:43:40 floyd___: under Available units: 15:43:59 Xach: isn't lisp the ai language? 15:44:44 Only in italy. 15:45:03 *g* 15:45:23 i thought AI had died 15:45:32 naryl [~weechat@213.170.70.141] has joined #lisp 15:45:38 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 15:45:52 anonus [~anonymous@88.80.28.189] has joined #lisp 15:46:24 Xach: and in your country? 15:47:13 -!- lnostdal [~lnostdal@ti0030a380-dhcp3741.bb.online.no] has quit [Ping timeout: 276 seconds] 15:47:26 -!- redline6561_nop is now known as redline6561 15:50:17 Im wondering if someone could help me out with some homework? Im implementing a treesearchfunction but it was quite a while ago i last lisped. Heres what i got http://paste.lisp.org/display/125343 15:52:16 why is it that old code does never work with new lisp implementations ? 15:52:29 Xach: I think it is not very polite to talk about other people's country. Have you got anything against my country? 15:53:31 Posterdati: apologies for the grinning. please don't feel offended. 15:53:40 Posterdati: Only against the country of random off-topic musings. 15:53:52 Posterdati: I don't know if that is a national characteristic of any real country. 15:54:12 wbooze: lisp is one of the few languages in which old code typically runs on current implementations. 15:55:05 xan_ [~xan@183.Red-81-32-69.dynamicIP.rima-tde.net] has joined #lisp 15:57:36 lisp is still the language used in psychology research 15:57:52 17:52 < wbooze> why is it that old code does never work with new lisp implementations ? 15:57:55 bitrot 15:59:25 wtf, when i try to run clim-listener in cmucl-20c or cmucl-2011-09blah i get an error of kernel::undefined-symbol-error-handler xlib::open-x-stream is undefined.... 15:59:28 dmiles [dmiles@dsl-72-19-52-076.cascadeaccess.com] has joined #lisp 15:59:52 17:54 < H4ns> wbooze: lisp is one of the few languages in which old code typically runs on current implementations. 16:00:23 lnostdal [~lnostdal@ti0030a380-dhcp3741.bb.online.no] has joined #lisp 16:00:24 assembly routine x86::undefined-tramp 16:00:26 -!- acelent [~user@2001:690:2100:4:200:1aff:fe19:ddfc] has quit [Remote host closed the connection] 16:00:28 are there many languages which violate that? 16:00:41 -!- jjkola [~jjkola@xdsl-83-150-83-66.nebulazone.fi] has quit [Ping timeout: 258 seconds] 16:00:58 in which old code typically does not run would been better 16:01:09 bleh 16:01:13 you can probably compile 4BSD code with modern compilers 16:01:22 as long as it isn't machine specific 16:01:25 -!- dmiles_afk [dmiles@dsl-173-239-82-047.cascadeaccess.com] has quit [Ping timeout: 240 seconds] 16:02:22 dmiles_afk [dmiles@dsl-72-19-44-091.cascadeaccess.com] has joined #lisp 16:04:18 maybe it loads it's internal clx rather than the one from quicklisp 16:04:24 hmmm.... 16:04:28 and even then.... 16:04:34 -!- Euthydemus [~euthydemu@unaffiliated/euthydemus] has quit [Quit: leaving] 16:04:35 why would that differ ? 16:04:37 -!- dmiles [dmiles@dsl-72-19-52-076.cascadeaccess.com] has quit [Ping timeout: 240 seconds] 16:05:52 CLX was refactored? 16:06:11 don't know the cmucl is the latest.... 16:06:18 and clx too 16:07:39 -!- xyxu [~xyxu@222.68.153.252] has quit [Ping timeout: 252 seconds] 16:08:21 -!- rexim [~rexim@91.204.184.177] has quit [Remote host closed the connection] 16:11:42 hah, even tho i loaded :clx with quicklisp, it's not to be found in cmucl 16:11:52 so it overrides the external one..... 16:12:02 tho it compiles it.... 16:12:22 -!- francogrex [~user@109.130.143.41] has quit [Read error: Connection reset by peer] 16:13:08 -!- Guest51089 [~Kron@69.166.23.18] has quit [Ping timeout: 258 seconds] 16:15:10 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 276 seconds] 16:16:47 Kron [~Kron@69.166.26.178] has joined #lisp 16:17:13 -!- Kron is now known as Guest49023 16:17:51 -!- sdemarre [~serge@91.176.45.15] has quit [Ping timeout: 248 seconds] 16:18:58 doesthiswork [~Adium@he190123.dsl.fsr.net] has joined #lisp 16:19:26 Kron_ [~Kron@69.166.26.178] has joined #lisp 16:19:26 -!- Guest49023 [~Kron@69.166.26.178] has quit [Read error: Connection reset by peer] 16:20:17 -!- Kron_ [~Kron@69.166.26.178] has quit [Read error: Connection reset by peer] 16:20:31 -!- sellout [~Adium@c-98-245-162-253.hsd1.co.comcast.net] has quit [Ping timeout: 248 seconds] 16:21:52 hmm, i did (defstruct bblock content ...) 16:21:59 jjkola [~jjkola@xdsl-83-150-83-66.nebulazone.fi] has joined #lisp 16:22:03 xyxu [~xyxu@222.68.153.31] has joined #lisp 16:22:09 then why can't i do (push x (content b))? 16:22:30 aiju: struct slot functions get named - by default. 16:22:31 aiju: try bblock-content 16:22:38 oh, i see 16:22:53 i misread an example here 16:23:50 wasn't there something like applyf you could use to apply any function on a variable? 16:24:27 ngz [~user@201.144.80.79.rev.sfr.net] has joined #lisp 16:24:45 you mean like (setf var (apply 'func))? 16:24:59 (setf var (func var)) 16:25:03 as soon as i put (mp::startup-idle-and-top-level-loops) at the beginning of my .cmucl-init.lisp file everything else onwards is skipped.... 16:25:06 why's that ? 16:25:25 wbooze: startup-idle-and-top-level-loops doesn't return 16:25:43 so put it at then end ? 16:25:58 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 16:26:13 xyxu1 [~xyxu@222.68.153.31] has joined #lisp 16:26:23 -!- xyxu [~xyxu@222.68.153.31] has quit [Ping timeout: 248 seconds] 16:26:24 or wrap it all in an progn ? 16:27:35 MoALTz [~no@host-92-18-16-12.as13285.net] has joined #lisp 16:27:36 progn is not parallel execution 16:27:52 something like that would be cool, heh, something like PAR in occam 16:28:51 trivial to make 16:29:15 how does concurrency work in common lisp? 16:29:35 in an implementation-dependent fashion :) 16:29:40 hahaha 16:29:56 see bordeaux-threads 16:30:18 iolib has an epoll/kequeue style event loop. 16:30:36 and sane CSP concurrency? 16:30:48 even if it's just coroutines 16:31:03 arnesi has a cps transformer based on a code walker. 16:31:17 schaueho [~schaueho@dslb-088-066-033-012.pools.arcor-ip.net] has joined #lisp 16:31:22 csp, not cps 16:31:49 -!- katesmith [~katesmith@unaffiliated/costume] has quit [Quit: Leaving] 16:32:00 aiju: apart from a couple message queues, I don't think there's a (public) CSP package in CL. 16:32:09 aww 16:32:19 aiju: You should write one! ;) 16:32:22 i've been using cl-zmq lately for message passing. 16:32:35 redline6561: i did, lol, although it's not common lisp 16:32:47 heh 16:32:59 a simple lisp in like 200 lines of C 16:33:10 but with CSP built in 16:33:23 https://github.com/kkazuo/thread.comm.rendezvous 16:33:47 *Xach* makes no claims about quality, completeness 16:34:11 that's the message queue part (: 16:34:18 lacks buffering 16:34:20 but still, nice 16:35:23 aiju: there are others with buffering, and only async. I'm not sure there's one with sync/async and bounded/unbounded. 16:35:40 sync is crucial 16:35:59 with async you just dive into the "multithreading" race condition mess 16:36:13 hey Xach. 16:36:23 Davidbrcz [~david@proxysup.isae.fr] has joined #lisp 16:36:28 xcv [~xcv@dsl-225-28.hive.is] has joined #lisp 16:36:56 -!- xcv [~xcv@dsl-225-28.hive.is] has quit [Remote host closed the connection] 16:37:01 hi dto 16:37:08 whats up? 16:37:21 dto: you missed a week where about 4 people independently asked how to use CL to make roguelikes 16:37:31 -!- Davidbrcz [~david@proxysup.isae.fr] has quit [Remote host closed the connection] 16:37:40 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 258 seconds] 16:37:44 ahahah 16:37:51 i think there is a contest gong on 16:37:52 going 16:37:59 Davidbrcz [~david@proxysup.isae.fr] has joined #lisp 16:38:11 Xach: lots of stuff happening on the house this week in terms of repairs and stuff, so i was offline mostly 16:38:42 aiju: still. it's not hard, just nothing's published yet. And that's only the runtime stuff. A true lisp CSP package would have a DSL to express networks and state transitions nicely, like the book does ;) [a really nice one woul use the DSL to enable safety analyses (: ] 16:39:01 heh 16:39:15 -!- Davidbrcz [~david@proxysup.isae.fr] has quit [Remote host closed the connection] 16:39:43 Davidbrcz [~david@proxysup.isae.fr] has joined #lisp 16:40:22 threads / coroutines and buffered / unbuffered channels are very useful already 16:40:29 Xach: my game engine has had all the roguelikeyness beaten out of it anyway 16:40:46 -!- FreeArtMan [~FreeArtMa@93.177.213.54] has quit [Read error: Connection reset by peer] 16:41:12 FreeArtMan [~FreeArtMa@93.177.213.54] has joined #lisp 16:41:13 wbooze: have a loook at http://www.informatimago.com/develop/lisp/small-cl-pgms/wang.html 16:41:13 -!- Davidbrcz [~david@proxysup.isae.fr] has quit [Remote host closed the connection] 16:41:38 Davidbrcz [~david@proxysup.isae.fr] has joined #lisp 16:42:26 dto: they seemed to want to start from curses 16:43:22 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 16:44:57 bgs100 [~ian@unaffiliated/bgs100] has joined #lisp 16:45:14 oh. 16:45:25 pjb: that's almost a rewrite of the whole program man...... 16:45:57 Not at all. The original source is not touched. 16:46:18 just shadowed for the parts which matter ? 16:46:26 katesmith [~katesmith@unaffiliated/costume] has joined #lisp 16:46:53 wbooze: you don't know what you're talking about. Learn more. 16:47:15 haha holy shit 16:47:37 -!- rtoym [~chatzilla@c-67-180-54-112.hsd1.ca.comcast.net] has quit [Ping timeout: 252 seconds] 16:47:37 superflit_ [~superflit@71-208-200-190.hlrn.qwest.net] has joined #lisp 16:47:58 replore_ [~replore@ntkngw304073.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #lisp 16:48:20 -!- superflit [~superflit@71-208-200-190.hlrn.qwest.net] has quit [Read error: Connection reset by peer] 16:48:21 -!- superflit_ is now known as superflit 16:48:38 the style of the old lisp is peculiar 16:49:20 It was written on paper, and punched on cards... 16:49:30 -!- Blkt [~user@82.84.170.159] has quit [Quit: cya] 16:49:31 i know 16:49:45 -!- FreeArtMan [~FreeArtMa@93.177.213.54] has quit [Quit: under the bit stream] 16:50:25 lol 16:50:31 FreeArtMan [~FreeArtMa@93.177.213.54] has joined #lisp 16:50:42 -!- Guthur [~user@212.183.128.72] has quit [Ping timeout: 258 seconds] 16:51:02 gfortran doesn't like the snoopy calendar :( 16:51:38 -!- kloeri [~kloeri@freenode/staff/exherbo.kloeri] has quit [Ping timeout: 600 seconds] 16:53:10 Hello there. I would like to learn a bit about Domain Specific Languages and how to implement them in Common Lisp. Would writing a file parser/encoder make sense to be implemented as DSL? 16:53:22 Yes. 16:53:49 (defun) and (defmacro) are the two tools for defining DSLs in Common Lisp 16:53:49 phryk: http://bc.tech.coop/blog/050711.html 16:53:50 Kron_ [~Kron@69.166.23.18] has joined #lisp 16:54:12 rtoym [~chatzilla@c-67-180-54-112.hsd1.ca.comcast.net] has joined #lisp 16:54:17 Could you point out some texts about this? First of all an overview what exactly a DSL is and what kinds of problems it makes sense to apply this technique to would be nice. 16:54:38 manuel_ [~manuel_@pD9FDE66C.dip.t-dialin.net] has joined #lisp 16:54:46 Also pjb, you wanted to see the result of the code you helped me with, didn't you? 16:55:01 Perhaps, I don't remember it. 16:55:37 , appendix E, has the best example of a parsing DSL. 16:56:10 -!- manuel_ [~manuel_@pD9FDE66C.dip.t-dialin.net] has left #lisp 16:56:11 The DSL isn't implemented in lisp, but that's one case where I can see strings being a more useful input than sexps anyway. 16:56:15 Could also have been pdn too simliar names 16:56:48 phryk.net runs the result, code itself can be seen at http://phryk.net/lizardsnot.lisp :) 16:57:46 haha 16:57:54 i got the snoopy program running, but it has odd bugs 16:59:43 phryk: nice web site. 17:00:05 -!- wtetzner [~wtetzner@c-24-218-217-69.hsd1.ma.comcast.net] has quit [Remote host closed the connection] 17:00:27 -!- xyxu1 [~xyxu@222.68.153.31] has quit [Ping timeout: 252 seconds] 17:00:29 gensym [~user@dslb-088-071-149-049.pools.arcor-ip.net] has joined #lisp 17:00:40 phryk: sed, awk, yacc are good examples for DSLs 17:02:17 aiju: using the RFC's ascii art to parse TCP packets is a good DSL! (: 17:02:32 hahaha 17:02:53 that's what the VPRI people did a couple years ago. 17:02:58 pkhuong: but i don't use that daily, in contrast to sed/awk 17:03:23 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 260 seconds] 17:03:48 phryk: DSL can be completely separate from the host language, or can be an extension of the host language. awk, yacc, etc are example of separate DSL. The advantage of lisp, is that you can very easily implement a DSL as an extension to lisp, and therefore benefiting from all the advantages and predefined operators of lisp. 17:04:11 yacc is semi-separate 17:04:33 I'd like to be it an extension, I want to write one to parse and encode a metadata file structure for my site so I can introduce tagging, image captions and other stuff 17:04:53 the qualities of that DSL are obvious. Doing it by hand is painful and error-prone. The DSL uses domain specific knowledge representation (RFC charts). Doing so means less work for the programmer, better readability (both for programmers and domain-experts), and less chances of error. 17:05:27 pkhuong: does it also read and understand the RFC? 17:05:45 and, it plays nicely with the host language. The DSL only handles parsing, all the rest is passed off to the host. 17:06:02 aiju: nope, it's a parsing DSL. 17:06:24 but yeah 17:06:37 TPOP had an example of a printf/scanf for binary data 17:08:51 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 17:09:49 (setf bblock-next curblock) (setf curblock (make-bblock))) 17:09:57 ehm, (setf (bblock-next curblock) (setf curblock (make-bblock))) 17:10:06 that's disgusting but still cool somehow 17:10:26 ehu [~ehuels@ip118-64-212-87.adsl2.static.versatel.nl] has joined #lisp 17:11:21 aiju: I'd use a constructor to handle that initialisation for me. 17:12:25 vjacob [~vjacob@78-105-184-157.zone3.bethere.co.uk] has joined #lisp 17:12:32 pkhuong: i'm changing the next element of the *old* value of curblock 17:14:55 -!- McMAGIC--Copy [~McMAGIC--@gateway/tor-sasl/mcmagic--copy] has quit [Ping timeout: 248 seconds] 17:16:09 aiju: oh. shiftf. 17:17:25 pkhuong: that's not quite it 17:18:24 McMAGIC--Copy [~McMAGIC--@gateway/tor-sasl/mcmagic--copy] has joined #lisp 17:18:31 -!- FreeArtMan [~FreeArtMa@93.177.213.54] has quit [Quit: under the bit stream] 17:18:56 FreeArtMan [~FreeArtMa@93.177.213.54] has joined #lisp 17:19:30 eudoxia [~eudoxia@r190-135-86-34.dialup.adsl.anteldata.net.uy] has joined #lisp 17:19:47 aiju: setf values, but that's a bit farfetched. 17:22:18 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 255 seconds] 17:23:43 dnolen [~davidnole@pool-68-161-121-160.ny325.east.verizon.net] has joined #lisp 17:26:51 odd, i should be able to match nil with a case statement, shouldn't i? 17:27:25 pjb: hi 17:27:57 -!- eudoxia [~eudoxia@r190-135-86-34.dialup.adsl.anteldata.net.uy] has quit [Ping timeout: 252 seconds] 17:28:12 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 17:30:27 aiju: nil is a list. case are list designators. You want (case x ((nil) ...) 17:31:56 nil is an atom 17:32:21 and a list 17:34:31 Sysop_fb [~bleh@108-66-160-34.lightspeed.spfdmo.sbcglobal.net] has joined #lisp 17:35:26 kloeri [~kloeri@freenode/staff/exherbo.kloeri] has joined #lisp 17:35:39 Gee this router is retarded. 17:36:05 phryk: i think that's a defining quality of a router 17:38:23 dpierce [~dpierce@pool-108-9-238-178.tampfl.dsl-w.verizon.net] has joined #lisp 17:40:36 -!- billstclair [~billstcla@unaffiliated/billstclair] has quit [Read error: Connection reset by peer] 17:40:43 npoektop [~npoektop@213.141.130.13] has joined #lisp 17:40:50 billstclair [~billstcla@unaffiliated/billstclair] has joined #lisp 17:40:56 -!- anonus is now known as time-keeper 17:41:23 -!- Davidbrcz [~david@proxysup.isae.fr] has quit [Remote host closed the connection] 17:41:49 Davidbrcz [~david@proxysup.isae.fr] has joined #lisp 17:42:18 -!- kloeri [~kloeri@freenode/staff/exherbo.kloeri] has quit [Read error: Operation timed out] 17:44:34 -!- schaueho [~schaueho@dslb-088-066-033-012.pools.arcor-ip.net] has quit [Ping timeout: 258 seconds] 17:45:09 oudeis [~oudeis@bzq-79-177-201-46.red.bezeqint.net] has joined #lisp 17:45:52 wtetzner [~wtetzner@c-24-218-217-69.hsd1.ma.comcast.net] has joined #lisp 17:48:18 -!- Vivitron` [~user@pool-108-7-56-243.bstnma.fios.verizon.net] has quit [Ping timeout: 260 seconds] 17:49:07 prxq [~mommer@mnhm-590c3bde.pool.mediaWays.net] has joined #lisp 17:49:50 aiju: Every so often it picks one host at random which it doesn't like 17:50:00 And then you can't get it to work with it. 17:50:11 my router is flooding the network with idiotic ARP requests and UDP bullshit 17:50:11 -!- time-keeper [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 17:50:17 Every five seconds or so it just completely stops responding to that host. 17:50:33 That lasts until the host reconnects. 17:50:46 Then it works for another 5 seconds. 17:51:09 Seriously, I reconnect, can skip two songs with ncmpcpp and then it stops replying again. 17:51:27 anonus [~anonymous@88.80.28.189] has joined #lisp 17:51:35 I'm waiting to see how this turns into a lisp conversation 17:51:55 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 256 seconds] 17:52:01 Now I could skip 5 songs and change 3 percent of the volume. 17:52:25 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 17:52:28 phryk: please cease your nattering 17:52:35 kloeri [~kloeri@freenode/staff/exherbo.kloeri] has joined #lisp 17:52:42 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 17:52:47 And I don't even have a fucking clue if these messages arrive, propably not. 17:52:47 But since it doesn't respond at all they're not resent either. 17:53:08 I sometimes thing a retarded lefthanded leprechaun wrote this when he had a really bad hangover 17:53:08 -!- benkard [~benkard@mnch-d9bdc9f3.pool.mediaWays.net] has quit [Quit: benkard] 17:53:14 anonus [~anonymous@88.80.28.189] has joined #lisp 17:53:15 think* 17:53:16 benkard [~benkard@mnch-d9bdc9f3.pool.mediaWays.net] has joined #lisp 17:53:40 Sorry. 17:53:55 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 17:54:34 ugh 17:55:42 How can you even read this? I'm getting 100% packet loss. 17:55:59 tcp-magic 17:56:11 hi 17:56:49 anonus [~anonymous@88.80.28.189] has joined #lisp 17:57:18 schaueho [~schaueho@dslb-088-066-000-177.pools.arcor-ip.net] has joined #lisp 17:57:41 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 17:58:12 aiju: Oh, then it *does* get resent. At least that works, thanks for the info :) 17:58:20 wbooze: Sorry, I'll stop ranting now. 17:58:30 -!- kloeri [~kloeri@freenode/staff/exherbo.kloeri] has quit [Quit: Reconnecting] 17:58:35 Zulu [~Zulu@c-174-58-204-235.hsd1.fl.comcast.net] has joined #lisp 17:58:37 anonus [~anonymous@88.80.28.189] has joined #lisp 17:58:40 kloeri [~kloeri@freenode/staff/exherbo.kloeri] has joined #lisp 17:59:01 -!- Zulu is now known as Guest75642 17:59:46 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 17:59:58 is there a library that abstracts getting/setting the current directory? 18:00:30 df: current directory? 18:00:59 anonus [~anonymous@88.80.28.189] has joined #lisp 18:01:09 acelent [~user@2001:690:2100:4:200:1aff:fe19:ddfc] has joined #lisp 18:01:28 from the OS's point of view 18:01:40 df: right. but lisp doesn't have that notion. 18:02:13 df: there's osicat, which might do what you want 18:02:15 right, but individual lisp implementations do, so I'm looking for a library that provides a common interface to that 18:02:35 -!- wbooze [~levgue@xdsl-78-35-158-30.netcologne.de] has quit [Ping timeout: 260 seconds] 18:02:49 -!- benkard is now known as benkard_ 18:03:01 prxq: looks good, thanks 18:03:02 -!- homie [~levgue@xdsl-78-35-158-30.netcologne.de] has quit [Ping timeout: 252 seconds] 18:03:09 -!- benkard_ is now known as benkard 18:03:11 np 18:05:35 -!- dto [~dto@pool-96-252-89-130.bstnma.fios.verizon.net] has quit [Ping timeout: 248 seconds] 18:06:01 Does anyone here have experience with writing an assembler for x86 ? 18:06:28 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 18:06:49 anonus [~anonymous@88.80.28.189] has joined #lisp 18:08:34 Guest75642: mine can be summed up as "don't". 18:08:43 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 260 seconds] 18:09:08 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 18:09:09 Haha. Oh hey my name is.. Guest.. When did that happen? 18:09:55 20:06 < Guest75642> Does anyone here have experience with writing an assembler for x86 ? 18:10:04 i have written assemblers for various other arches, does that count? 18:10:15 Guest75642: failure to identify with nickserv, maybe. 18:10:24 although x86 has the modrm byte and segment prefix and what not craziness :\ 18:10:57 aiju: Probably, I don't think it's too specific a problem. I've never done an assembler and I have a question about deciding on the correct type of jump to use 18:11:26 ah. there are two solutions: always use a long jump, unless specified otherwise, or use multiple passes. 18:11:45 That's what I was thinking. Alright thanks 18:11:54 the latter is surprisingly hard to get right. 18:11:58 wbooze [~levgue@xdsl-78-35-158-30.netcologne.de] has joined #lisp 18:12:02 homie [~levgue@xdsl-78-35-158-30.netcologne.de] has joined #lisp 18:12:07 pkhuong: you need at least three passes, don't you? 18:12:09 pkhuong: Yes I've had a few unsuccessful attempts 18:12:17 it's like latex content tables 18:12:21 *tables of content 18:12:48 -!- Odin- [~sbkhh@adsl-2-92.du.snerpa.is] has quit [Ping timeout: 260 seconds] 18:13:27 aiju: Most of the difficulty seems to show up because of how different jumps can affect each-other in terms of displacement.. It's quite a headache and I was hoping there was a better way haha 18:13:32 aiju: and a lot of cleverness, iirc. If you exploit the data structures available in CL, it's probably easier than it used to be in the 70's and 80's, though. 18:14:06 pjb_ [~pjb@81.202.16.46.dyn.user.ono.com] has joined #lisp 18:14:17 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 18:14:34 i'm writing the entire toolchain and i already track how many passes happen over a source program, lol 18:14:39 +lost 18:15:05 anonus [~anonymous@88.80.28.189] has joined #lisp 18:15:34 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 18:17:15 anonus [~anonymous@88.80.28.189] has joined #lisp 18:17:31 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 18:17:42 -!- simplechat [~simplecha@unaffiliated/simplechat] has quit [Quit: Leaving] 18:17:56 anonus [~anonymous@88.80.28.189] has joined #lisp 18:18:07 -!- dpierce [~dpierce@pool-108-9-238-178.tampfl.dsl-w.verizon.net] has quit [Quit: leaving] 18:18:18 -!- Guest75642 [~Zulu@c-174-58-204-235.hsd1.fl.comcast.net] has quit [Quit: ~ Trillian Astra - www.trillian.im ~] 18:18:32 pkhuong: hm, how do data structures help with that? 18:18:42 Guest75642 [~Zulu@c-174-58-204-235.hsd1.fl.comcast.net] has joined #lisp 18:19:17 dto [~dto@pool-96-252-89-130.bstnma.fios.verizon.net] has joined #lisp 18:19:47 -!- anonus [~anonymous@88.80.28.189] has quit [Client Quit] 18:20:02 anonus [~anonymous@88.80.28.189] has joined #lisp 18:20:05 It doesn't look like Trillian is being very friendly today with IRC. I don't like being "Guest" 18:20:20 i'd do the stuff between the branches, then calculate displacements assuming i used long jumps and when they are short enough use short jumps 18:20:28 then do a final pass and use the right displacement 18:20:29 +s 18:20:40 ofc, it's not 100% right when the jumps are near the limit 18:20:43 well, we can represent the opcode list so that updating the addresses when switching from short to long jump is incremental. 18:21:01 aiju: right, that's simple, but suboptimal. 18:21:18 unix philosophy man 18:21:49 the multipass ones (gas, for instance, iirc), assume short jumps and upgrade as needed. 18:22:25 pkhuong: That optimistic approach is the one I'm looking to implement 18:22:40 sellout [~sellout@c-98-245-162-253.hsd1.co.comcast.net] has joined #lisp 18:22:47 easyE [YxGwlchrx3@panix2.panix.com] has joined #lisp 18:24:31 wishbone4 [~user@c-76-126-212-192.hsd1.ca.comcast.net] has joined #lisp 18:24:54 pkhuong: so you can troll them with the right input? 18:24:56 -!- pjb_ [~pjb@81.202.16.46.dyn.user.ono.com] has quit [Quit: from my iPad] 18:25:03 Anyway I thank you both (aiju, pkhuong) for your help! 18:25:23 -!- benny [~benny@i577A3927.versanet.de] has quit [Ping timeout: 258 seconds] 18:26:15 aiju: pretty sure they have a tight bound on the number of passes. In fact, I faintly remember a couple serious papers on the topic (scanned typewritten, so probably from the 70's) 18:26:23 lol 18:26:49 doing this shit in the 70s is a damn nightmare 18:26:53 pjb_ [~pjb@81.202.16.46.dyn.user.ono.com] has joined #lisp 18:28:17 (echo 'a:'; yes 'jmp a' | sed 10000q) | as /dev/stdin 18:28:38 runs rather quickly, lol 18:28:44 aiju: backward branches are easy. 18:29:05 forward branches are just as fast 18:29:26 regardless, the backward test case is nearly useless. 18:29:38 yes, just noticed that 18:33:09 -!- schaueho [~schaueho@dslb-088-066-000-177.pools.arcor-ip.net] has quit [Read error: Operation timed out] 18:33:17 -!- dnolen [~davidnole@pool-68-161-121-160.ny325.east.verizon.net] has quit [Quit: dnolen] 18:33:30 20:20 < pkhuong> well, we can represent the opcode list so that updating the addresses when switching from short to long jump is incremental. 18:33:31 -!- Whitesquall [~notwhites@109.225.20.18] has quit [Remote host closed the connection] 18:33:34 interesting, how so? 18:34:55 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 18:34:56 benny [~benny@i577A3321.versanet.de] has joined #lisp 18:35:52 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 255 seconds] 18:35:53 aiju: the sequence of addresses is a prefix sum. Represent your sequence as a tree, and you can update the tree as you move up and down. 18:36:35 josemanuel [~josemanue@176.0.222.87.dynamic.jazztel.es] has joined #lisp 18:36:47 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 18:36:57 urandom__ [~user@p548A3713.dip.t-dialin.net] has joined #lisp 18:37:02 isn't that basically just a list of instruction lengths? 18:37:14 anonus [~anonymous@fa236.58.fix-addr.vsi.ru] has joined #lisp 18:38:39 aiju: no, it's a sequence of the sum of lengths. 18:38:53 -!- anonus [~anonymous@fa236.58.fix-addr.vsi.ru] has quit [Client Quit] 18:39:19 anonus [~anonymous@88.80.28.189] has joined #lisp 18:39:37 -!- ngz [~user@201.144.80.79.rev.sfr.net] has quit [Ping timeout: 260 seconds] 18:39:37 pkhuong: Memories of Computer Science 2 are rolling back in! 18:41:06 -!- xan_ [~xan@183.Red-81-32-69.dynamicIP.rima-tde.net] has quit [Ping timeout: 258 seconds] 18:41:17 -!- pjb_ [~pjb@81.202.16.46.dyn.user.ono.com] has quit [Quit: from my iPad] 18:41:33 -!- Davidbrcz [~david@proxysup.isae.fr] has quit [Remote host closed the connection] 18:41:59 Davidbrcz [~david@proxysup.isae.fr] has joined #lisp 18:43:34 gavinharper [~gavinharp@dyn3-82-128-191-12.psoas.suomi.net] has joined #lisp 18:43:52 -!- Guest75642 [~Zulu@c-174-58-204-235.hsd1.fl.comcast.net] has quit [Quit: ~ Trillian Astra - www.trillian.im ~] 18:44:44 =?)=?!§!§$%$%%% 18:45:47 that looks like perl :P not lisp 18:46:13 it's much closer to K 18:46:41 2+&{~|/'(0=x!/:\:x)&x>/:\:x}@2+!100 18:46:41 -!- Phoodus [~foo@ip72-223-116-248.ph.ph.cox.net] has quit [Read error: Connection reset by peer] 18:46:44 sieve of erastothenes in K 18:46:46 -s 18:47:01 see, if your language can't be distinguished from cartoon swearing, something's wrong 18:47:09 haha 18:47:16 it's a feature 18:53:07 ngz [~user@201.144.80.79.rev.sfr.net] has joined #lisp 18:53:49 are structures values or references? 18:54:56 triliyn [~desmond@76-206-56-151.lightspeed.irvnca.sbcglobal.net] has joined #lisp 18:55:11 aiju: please explain why it is a feature 18:55:25 -!- Oddity [~Oddity@unaffiliated/oddity] has quit [Ping timeout: 240 seconds] 18:56:04 prxq: it makes writing sarcasm detectors much easier 18:56:38 i think i'll buy that 18:58:19 "The following expression sorts a list of strings by their lengths:" x@>#:'x 18:58:46 prxq: i can actually read that 18:59:04 http://aiju.de/code/k/ 18:59:13 Odin- [~sbkhh@adsl-2-92.du.snerpa.is] has joined #lisp 18:59:24 ikki [~ikki@189.247.194.192] has joined #lisp 19:00:42 doesn't look like a typo-safe language... 19:01:07 actually it has types 19:01:34 they are just implicit, like in .. common lisp 19:01:35 -!- anonus [~anonymous@88.80.28.189] has quit [Quit: WeeChat 0.3.5] 19:01:36 is that Hoshen-Kopelman? http://aiju.de/code/k/cluster 19:01:39 (yes i know you can specify them somehow) 19:01:44 aiju: I meant typo :-) 19:01:49 hahaha 19:01:57 anonus [~anonymous@88.80.28.189] has joined #lisp 19:01:57 prxq: don't do that then 19:02:00 doritos [~joshua@c-76-118-155-244.hsd1.ct.comcast.net] has joined #lisp 19:02:04 Oddity [~Oddity@unaffiliated/oddity] has joined #lisp 19:02:10 prxq: uff, i don't remember 19:03:00 Is there a way to alloc a CFFI cstruct that will be GCd, or accomplish something similar? 19:03:13 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 244 seconds] 19:03:21 prxq: i think it is mostly typo-safe actually 19:03:31 I've got a C function that writes to a struct whose pointer is passed in, and I want to return that struct (or something analogous) from the lisp wrapper. 19:03:32 prxq: the probability of a random change to silently fail is rather small 19:03:38 prxq: due to dimension mismatches 19:03:51 or just producing outright invalid syntax 19:04:02 -!- moah [~gnu@dslb-188-109-202-223.pools.arcor-ip.net] has left #lisp 19:04:04 Ralith: the struct by value? 19:04:13 prxq: huh? 19:04:19 nothing's passed by value on the C side. 19:04:22 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 19:04:34 -!- samebchase [~samuel@pi.nipl.net] has quit [Quit: leaving] 19:04:37 the C function expects a pointer to a caller-allocated struct. 19:04:40 well you want to return a struct or a ref to the struct? 19:05:19 aiju: I imagine. Anyway, finding a mistake there doesn't look too easy 19:05:22 I want to return the struct from the Lisp code. 19:05:41 so, a struct value, not a reference to it 19:05:45 prxq: usually involves running parts of the programming on the REPL 19:05:59 basically, I want to do (let ((res (make-array ...))) (with-pointer-to-vector-data (ptr res) (c-func ptr)) res) 19:06:03 except with a struct instead of an array 19:06:08 kloeri_ [~kloeri@freenode/staff/exherbo.kloeri] has joined #lisp 19:06:23 does that make sense? 19:06:35 Ralith: yes, sure. What is holding you back? :-) 19:06:43 I don't know how to do that. 19:06:45 :P 19:07:51 Ralith, you can define struct instances in sbcl (for example) and pass a pointer. I assume that you can do that too in CFFI 19:08:13 struct instances? 19:08:25 do you mean I can pass a pointer to a Lisp struct? how? 19:08:50 wouldn't headers mangle that? 19:09:12 all instances of structures have to be explicitly created, don't they? 19:09:15 fmeyer [~fmeyer@187.38.98.102] has joined #lisp 19:09:34 using make-foobar or copy-foobar 19:10:02 I don't see what that has to do with anything. 19:10:05 Ralith: no, not to a lisp struct. To an object of type c-struct (or however it is called) that is allocated and kept on the lisp side. 19:10:20 Ralith: you were asking about struct instances 19:10:44 prxq: that's what I'm already doing. A CFFI C struct is not a very useful return value to non-CFFI code. 19:11:01 -!- gavinharper [~gavinharp@dyn3-82-128-191-12.psoas.suomi.net] has quit [] 19:11:04 it's just a pointer to foreign memory. 19:11:47 Ralith: http://www.sbcl.org/manual/#Foreign-Types 19:12:20 wtf 19:12:28 how can maphash not terminate? 19:12:34 Ralith: you may have to translate it from C to CL if you want to pass it to non-cffi lisp code. Or embed it in a class with apropriate methods 19:12:42 aiju: huh? 19:12:53 i have maphash with a lambda which just prints a value 19:13:04 aiju: impl? 19:13:07 and it seems not the terminate 19:13:17 what? 19:13:29 aiju: i mean, what implementation 19:13:38 GNU clisp 19:13:51 prxq: recall my with-pointer-to-vector-data example. 19:14:00 ok 19:15:29 aiju: then i don't know. is it gnu clisp, or gcl? 19:15:39 dnolen [~davidnole@cpe-98-14-92-234.nyc.res.rr.com] has joined #lisp 19:16:04 what is the difference? lol 19:16:18 it calls itself GNU CLISP 2.49 19:16:30 -!- bieber [~quassel@162-78.97-97.tampabay.res.rr.com] has quit [Remote host closed the connection] 19:16:50 ah, of course, cycles 19:17:14 aiju: ok. well, i don't know what might be the problem, but the idea is indeed that map-hash terminates. No idea how you make "cycles" in a ht. 19:17:26 no, in the members of the hash table 19:17:26 -!- naryl [~weechat@213.170.70.141] has quit [Read error: Connection reset by peer] 19:17:31 and the print doesn't like that 19:17:34 ah 19:19:30 aiju: then that would be your closure not terminating, not the maphash. 19:20:47 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 244 seconds] 19:21:08 Ralith: maphash doesn't terminate either 19:21:21 but this is just subtle nitpicking 19:21:22 aiju: nor will anything else that calls a non-terminating function. 19:21:49 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 19:22:13 -!- replore_ [~replore@ntkngw304073.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote host closed the connection] 19:22:46 you might confuse maphash into non-workingness if you mutate the underlying hash table during iteration, outside of what's explicitly allowed. 19:23:46 can i print the address of something using format? 19:24:00 or anything else which uniquely identifies an object 19:24:49 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Quit: Leaving] 19:25:05 -!- kloeri [~kloeri@freenode/staff/exherbo.kloeri] has quit [Quit: leaving] 19:25:11 -!- kloeri_ is now known as kloeri 19:25:23 aiju: print-unreadable-object. But even the address isn't unique in most lisps (moving GCs). 19:25:25 -!- ZabaQ [~john.conn@135.114-84-212.staticip.namesco.net] has quit [Quit: Leaving.] 19:25:45 An EQ hash table will let you create unique ids. 19:26:23 but then the question is why not keep refs to objects in the first place. Why go the trouble of assigning them numbers. 19:26:40 prxq: because numbers can be printed and read back. 19:27:08 pkhuong: oh, i don't care about the gc doing stuff 19:27:21 then you don't care about the uniqueness of the ID? 19:28:47 -!- kpreid [~kpreid@128.153.212.250] has quit [Quit: Quitting] 19:29:01 -!- superflit [~superflit@71-208-200-190.hlrn.qwest.net] has quit [Read error: Connection reset by peer] 19:29:18 kpreid [~kpreid@128.153.212.250] has joined #lisp 19:29:33 pkhuong: it is unique, because they can't be reused 19:29:55 naryl [~weechat@213.170.70.141] has joined #lisp 19:29:58 -!- naryl [~weechat@213.170.70.141] has quit [Client Quit] 19:30:23 naryl [~weechat@213.170.70.141] has joined #lisp 19:30:33 addresses *can* be reused. That's what a GC does. A copying GC will even reuse the memory used by live objects. 19:30:53 oh lol 19:31:46 oh jesus 19:32:25 but a copying gc will probably rewrite your references to the object too 19:32:26 superflit [~superflit@71-208-200-190.hlrn.qwest.net] has joined #lisp 19:32:37 jewel: but not the output stream 19:32:37 so long as you don't store them as numbers somewhere, or on disk 19:32:47 micwi [~quassel@h194n1-m-sp-a31.ias.bredband.telia.com] has joined #lisp 19:32:48 i need just some unique id for debugging 19:32:55 i'll just store gensym in some field 19:33:38 a weak hash table would be perfect. No need to modify the layout. 19:33:41 ZabaQ [~Zaba@135.114-84-212.staticip.namesco.net] has joined #lisp 19:34:02 that would prevent objects from being gc'ed, wouldn't it? 19:34:04 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 276 seconds] 19:34:10 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 19:34:22 no, it's weak. 19:34:47 how to get tabs into a format string? except literal tabs 19:34:54 ~c #\Tab 19:36:36 -!- FreeArtMan [~FreeArtMa@93.177.213.54] has quit [Quit: under the bit stream] 19:37:24 -!- fmeyer [~fmeyer@187.38.98.102] has quit [Quit: Lost terminal] 19:37:26 -!- ZabaQ [~Zaba@135.114-84-212.staticip.namesco.net] has quit [Client Quit] 19:38:21 ccorn [~ccorn@g132123.upc-g.chello.nl] has joined #lisp 19:38:26 -!- micwi [~quassel@h194n1-m-sp-a31.ias.bredband.telia.com] has quit [Remote host closed the connection] 19:38:55 -!- jewel [~jewel@196-215-114-21.dynamic.isadsl.co.za] has quit [Ping timeout: 248 seconds] 19:40:51 -!- antoszka [~antoszka@unaffiliated/antoszka] has quit [Read error: Connection reset by peer] 19:41:43 -!- Davidbrcz [~david@proxysup.isae.fr] has quit [Remote host closed the connection] 19:42:07 Davidbrcz [~david@proxysup.isae.fr] has joined #lisp 19:42:15 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 258 seconds] 19:43:12 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 19:47:02 mathrick [~mathrick@2.109.60.224] has joined #lisp 19:47:35 -!- katesmith [~katesmith@unaffiliated/costume] has quit [Quit: Leaving] 19:48:00 katesmith [~katesmith@75-138-199-162.static.snfr.nc.charter.com] has joined #lisp 19:48:00 -!- katesmith [~katesmith@75-138-199-162.static.snfr.nc.charter.com] has quit [Changing host] 19:48:00 katesmith [~katesmith@unaffiliated/costume] has joined #lisp 19:49:32 Is there a way to get CFFI to convert (my-c-binding foo bar) to (with-pointer-to-vector-data (p foo) (my-c-binding p bar)) depending on the declared type of the first argument to my-c-binding? 19:50:38 manuel_ [~manuel_@p57921A69.dip.t-dialin.net] has joined #lisp 19:50:47 -!- josemanuel [~josemanue@176.0.222.87.dynamic.jazztel.es] has quit [Quit: Saliendo] 19:52:01 any idea why (sb-ext:run-program "echo" '("test") :output t) outputs to *inferior-lisp* but not the slime repl? 19:52:25 I thought that *standard-output* went to the repl but perhaps there's something more complex going on 19:52:27 Because that's how it's designed. 19:52:41 external program don't use *standard-output*, but unix file descriptors. 19:53:25 -!- MoALTz [~no@host-92-18-16-12.as13285.net] has quit [Quit: Leaving] 19:53:47 so when http://www.sbcl.org/manual/Running-external-programs.html refers to the standard output for the current process, that's different from *standard-output* ? 19:53:48 pjb: but sbcl and others present a nice interface to that, making things like string-streams work as naively expected... 19:54:04 I don't like to think about how they achieve it. 19:54:12 df: yes, that's stdout, or file descriptor 1. 19:54:49 Well, I guess using another :output option could help redirect stdout of the inferior process to *standard-output*. 19:55:11 df: try (sb-ext:run-program "echo" '("test") :output *standard-output*) ; does it do something useful? 19:55:25 df: FWIW, :output *standard-output* does what you expect. i'd have to read the run-program docstring to understand why... 19:55:27 yeah, just tried - it's not in either buffer now 19:55:32 b 19:56:20 parabolize [~gyro@c-75-71-247-61.hsd1.co.comcast.net] has joined #lisp 19:56:25 df: yes, but that must be because of slime this time. 19:56:32 Try the same in a terminal. 19:57:00 DaDaDosPrompt [~DaDaDosPr@184.99.13.214] has joined #lisp 19:57:23 Ralith: I was recently told no. 19:57:40 oh sorry, typo 19:57:42 Well, it doesn't work here either. 19:57:49 -!- nepnux [~wildnux@68-191-210-216.dhcp.dntn.tx.charter.com] has quit [Ping timeout: 240 seconds] 19:58:00 pkhuong: odd, it seems like a fairly straightforward macro. 19:58:01 it needed "/bin/echo", and then *standard-output* works 19:58:28 Ah ah! 19:58:40 So the kludge doesn't work with bash builtins... 19:59:05 without :search t, I'd expect it not to work at all. 19:59:50 -!- karswell [~mjc@93-97-29-243.zone5.bethere.co.uk] has quit [Ping timeout: 260 seconds] 20:00:35 benkard_ [~benkard@mnch-5d854042.pool.mediaWays.net] has joined #lisp 20:00:45 pkhuong: yeah, that's what I was doing wrong 20:00:56 RomyEatsDrupal [~stickycak@nmd.sbx07386.newyony.wayport.net] has joined #lisp 20:01:02 I'd tried various combinations so got confused 20:01:25 -!- parabolize [~gyro@c-75-71-247-61.hsd1.co.comcast.net] has left #lisp 20:03:20 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 260 seconds] 20:03:37 -!- benkard [~benkard@mnch-d9bdc9f3.pool.mediaWays.net] has quit [Ping timeout: 260 seconds] 20:03:37 -!- benkard_ is now known as benkard 20:04:32 bieber [~quassel@162-78.97-97.tampabay.res.rr.com] has joined #lisp 20:05:49 anyones got mcclim running with cmucl ? 20:07:17 sdemarre [~serge@91.176.45.15] has joined #lisp 20:07:49 -!- hakzsam [~hakzsam@aqu33-5-82-245-96-206.fbx.proxad.net] has quit [Quit: Leaving] 20:08:02 francogrex [~user@109.130.143.41] has joined #lisp 20:08:44 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 20:09:25 Hi, I'm trying to translate into cl the pico code here: http://rosettacode.org/wiki/Pi#PicoLisp 20:10:26 hmmm, this should be asked on the picolisp site sorry 20:10:43 karswell [~mjc@93-97-29-243.zone5.bethere.co.uk] has joined #lisp 20:12:10 -!- jimmy1980 [~jimmy@112.224.3.21] has quit [Ping timeout: 255 seconds] 20:14:43 xan_ [~xan@183.Red-81-32-69.dynamicIP.rima-tde.net] has joined #lisp 20:15:32 -!- wtetzner [~wtetzner@c-24-218-217-69.hsd1.ma.comcast.net] has quit [Remote host closed the connection] 20:16:08 -!- dnolen [~davidnole@cpe-98-14-92-234.nyc.res.rr.com] has quit [Quit: dnolen] 20:18:21 jimmy1980 [~jimmy@112.224.3.94] has joined #lisp 20:19:20 npoektop_ [~npoektop@213.141.130.13] has joined #lisp 20:19:58 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 245 seconds] 20:20:43 -!- npoektop [~npoektop@213.141.130.13] has quit [Ping timeout: 244 seconds] 20:20:43 -!- npoektop_ is now known as npoektop 20:21:04 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 20:21:39 -!- karswell [~mjc@93-97-29-243.zone5.bethere.co.uk] has quit [Read error: Connection reset by peer] 20:21:55 francogrex: http://paste.lisp.org/display/125347 20:23:10 benkard: thanks, what I had attempted was this: http://paste.lisp.org/display/125346 obviously incorrect 20:23:26 I'll examine yours and see where i went wrong 20:24:26 -!- RomyEatsDrupal [~stickycak@nmd.sbx07386.newyony.wayport.net] has quit [Quit: RomyEatsDrupal] 20:25:18 psetq is important there I guess I mistakenly placed setf instead 20:25:26 -!- npoektop [~npoektop@213.141.130.13] has quit [Remote host closed the connection] 20:25:42 npoektop [~npoektop@213.141.130.13] has joined #lisp 20:25:51 and the let outside defun to create a closure 20:26:08 RomyEatsDrupal [~stickycak@nmd.sbx07386.newyony.wayport.net] has joined #lisp 20:27:27 karswell [~mjc@93-97-29-243.zone5.bethere.co.uk] has joined #lisp 20:27:31 -!- karswell [~mjc@93-97-29-243.zone5.bethere.co.uk] has quit [Remote host closed the connection] 20:28:45 francogrex: why picolisp? 20:29:39 prxq: I just randimly selected a page in the rosetta code and found the pico code the nicest for the task asked 20:29:46 randomly 20:30:46 Is there anything wrong with using a gensym for a global function name? 20:31:13 Ralith: are you sure you want a named function then? 20:31:22 francogrex: Yeah, I have no idea what job does, but it's clear that there needs to be some kind of mutable global state, thus the closure. 20:31:40 pkhuong: I want a defcfun that is only callable by code generated by my macro. 20:31:50 yes 20:31:58 *Ralith* is implementing aforementioned straightforward CFFI vector sharing thing. 20:32:08 just use an unexported symbol. 20:32:22 that tends to help with debugging immensely. 20:32:23 using a gensym is reasonable, though 20:32:34 that's what I thought 20:32:38 gensym has a parameter for adding a name. 20:32:45 and I'm using it 20:32:53 but I keep getting stuff like: The function #:SET-POSITION690 is undefined. 20:32:58 you will not be able to access the function if something goes wrong 20:33:03 *Xach* likes COPY-SYMBOL 20:33:39 oo, handy 20:34:10 -!- ccorn [~ccorn@g132123.upc-g.chello.nl] has quit [Quit: ccorn] 20:34:11 I'm still getting an undefined function error though. 20:34:36 example macroexpansion: 20:34:37 http://paste.pocoo.org/show/493558/ 20:36:12 any idea why that might not be working? 20:36:14 That's the devious thing about uninterned symbolstheir printed representations can be arbitrarily misleading. :) 20:36:37 I wonder if it might be inlining and then not updating the inlining on recompile 20:37:21 Vivitron [~user@pool-108-7-56-243.bstnma.fios.verizon.net] has joined #lisp 20:38:07 -!- mathrick [~mathrick@2.109.60.224] has quit [Ping timeout: 248 seconds] 20:38:10 Ralith: I'm guessing that you store the symbol somewhere so that the macro can access it when generating the code? 20:38:19 of course. 20:39:01 Ralith: Then you could try extracting the symbol out of the macro expansion and test it for EQness with the stored one. 20:39:11 removing the (declaim (inline ...)) made the error go away 20:39:13 why is that? 20:39:42 platypine [~joshua@c-76-118-155-244.hsd1.ct.comcast.net] has joined #lisp 20:39:55 benkard: why would I store it somewhere outside the scope of the macro? 20:40:16 Ralith: so othat yuou can have easily access to it to debug it. 20:40:20 :P 20:40:24 regardless, that's obviously not the bug 20:40:24 :) 20:40:45 somehow inlining is breaking it. 20:40:45 i get a xlib::open-x-stream undefined function error within cmucl, the package xlib is loaded, the symbol is in that package internal..... 20:40:54 -!- doritos [~joshua@c-76-118-155-244.hsd1.ct.comcast.net] has quit [Ping timeout: 258 seconds] 20:41:19 kernel:%coerce-to-function is called tho, i don't know why..... 20:41:51 -!- killerboy [~mateusz@users69.kollegienet.dk] has quit [Ping timeout: 248 seconds] 20:41:55 -!- Davidbrcz [~david@proxysup.isae.fr] has quit [Remote host closed the connection] 20:42:21 Davidbrcz [~david@proxysup.isae.fr] has joined #lisp 20:42:37 i tried the 2011-09 and 2011-10 images of cmucl and i got the same error, and even my old one was complaining..... 20:42:51 but sbcl does just start away..... 20:42:59 homie: the symbol may exist without referring to a function 20:43:13 nepnux [~wildnux@pool-71-96-211-239.dfw.dsl-w.verizon.net] has joined #lisp 20:43:15 yes, it's the function which is undefined.... 20:43:35 homie: did you check the source? 20:44:12 no, it's just the binary of cmucl i installed, if i had the source maybe i would have caught what's going wrong.... 20:45:04 killerboy [~mateusz@users69.kollegienet.dk] has joined #lisp 20:45:35 ISF [~ivan@187.106.48.51] has joined #lisp 20:45:35 Guthur [~user@212.183.128.43] has joined #lisp 20:46:45 Phoodus [~foo@ip72-223-116-248.ph.ph.cox.net] has joined #lisp 20:47:06 prxq: no idea why inlining might break uninterned symbols? 20:47:41 Ralith: no 20:47:43 -!- sdemarre [~serge@91.176.45.15] has quit [Ping timeout: 248 seconds] 20:47:45 :/ 20:47:53 sorry 20:47:54 oh well, the overhead hardly matters yet 20:49:19 Ralith: is the code at some point rendered as text? 20:49:38 not other than pasting you guys the macroexpansion 20:49:43 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 258 seconds] 20:49:46 it's a very conventional macro usecase 20:50:05 the macro itself: http://paste.pocoo.org/show/493565/ 20:50:14 that's the working form, mind 20:50:19 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 20:50:29 the failing form has (declaim (inline ,lname)) immediately before the defun 20:51:29 Ralith: and it fails in the repl? 20:51:56 or when compiling it in a file? 20:53:00 -!- aiju [~aiju@unaffiliated/aiju] has left #lisp 20:53:10 prxq: when calling a function at the REPL that was compiled to a file. 20:53:16 that is to say 20:53:24 when calling a function that calls one of the inline-declaimed functions 20:53:31 calling the inline-declaimed functions directly works. 20:53:43 as does compiling a file with top-level calls to them. 20:54:38 karswell [~mjc@93-97-29-243.zone5.bethere.co.uk] has joined #lisp 20:54:53 no idea atm, sorry 20:55:08 good night and good luck 20:55:11 -!- prxq [~mommer@mnhm-590c3bde.pool.mediaWays.net] has quit [Quit: Leaving] 20:56:37 -!- xan_ [~xan@183.Red-81-32-69.dynamicIP.rima-tde.net] has quit [Ping timeout: 258 seconds] 21:00:11 -!- benkard [~benkard@mnch-5d854042.pool.mediaWays.net] has quit [Quit: benkard] 21:01:01 -!- ngz [~user@201.144.80.79.rev.sfr.net] has quit [Ping timeout: 244 seconds] 21:04:58 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 245 seconds] 21:05:19 parabolize [~gyro@c-75-71-247-61.hsd1.co.comcast.net] has joined #lisp 21:05:41 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 21:07:44 marsell [~marsell@120.18.155.59] has joined #lisp 21:08:26 pnathan [~Adium@50-37-90-3.mscw.id.frontiernet.net] has joined #lisp 21:10:24 jleija [~jleija@50.8.10.126] has joined #lisp 21:12:05 Bike [~Glossina@71-214-96-235.ptld.qwest.net] has joined #lisp 21:13:01 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 240 seconds] 21:13:59 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 21:17:57 -!- francogrex [~user@109.130.143.41] has quit [Quit: ERC Version 5.2 (IRC client for Emacs)] 21:18:13 -!- gensym [~user@dslb-088-071-149-049.pools.arcor-ip.net] has quit [Ping timeout: 240 seconds] 21:18:19 -!- RomyEatsDrupal [~stickycak@nmd.sbx07386.newyony.wayport.net] has quit [Quit: RomyEatsDrupal] 21:20:39 -!- antifuchs [~foobar@care.boinkor.net] has quit [Ping timeout: 244 seconds] 21:21:51 -!- kennyd [~kennyd@93-138-105-49.adsl.net.t-com.hr] has quit [Ping timeout: 248 seconds] 21:24:25 -!- cyrillos [~cyrill@188.134.33.194] has quit [Ping timeout: 260 seconds] 21:25:11 airolson [~airolson@CPE00222d55a738-CM00222d55a735.cpe.net.cable.rogers.com] has joined #lisp 21:28:00 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Read error: Operation timed out] 21:29:02 kennyd [~kennyd@93-138-56-182.adsl.net.t-com.hr] has joined #lisp 21:32:51 -!- naeg [~naeg@194.208.239.170] has quit [Quit: WeeChat 0.3.5] 21:38:06 didi [~user@unaffiliated/didi/x-1022147] has joined #lisp 21:38:44 Kron__ [~Kron@69.166.23.18] has joined #lisp 21:40:15 I'm using drakma to access an API which returns a XML. Using `curl' I can see the XML, but with drakma, I get what I think is a vector. How do I transform this vector in a XML string? 21:40:42 -!- Kron_ [~Kron@69.166.23.18] has quit [Ping timeout: 258 seconds] 21:41:02 mjonsson [~mjonsson@38.109.95.133] has joined #lisp 21:41:30 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 21:42:05 -!- Davidbrcz [~david@proxysup.isae.fr] has quit [Remote host closed the connection] 21:42:18 -!- jleija [~jleija@50.8.10.126] has quit [Quit: leaving] 21:44:32 -!- pnathan [~Adium@50-37-90-3.mscw.id.frontiernet.net] has quit [Quit: Leaving.] 21:45:27 didi: it is probably text encoded as octets. determine the encoding, then use a conversion library to convert it to characters. 21:45:40 didi: however, if you want to process it with cxml, you can just pass the vector of octets. 21:45:44 Also, I was trying to use `curl' with `sb-ext:run-program' to retrieve the xml, but I couldn't figure it out how to not mangle the output of stdout with stderr. 21:46:13 redirect the error output to nil (/dev/null) 21:46:35 -!- Guthur [~user@212.183.128.43] has quit [Remote host closed the connection] 21:46:41 Xach: I saw your blog post, but I'm finding `xmls' more simple to use. 21:47:14 pkhuong: Hum, I was trying to pass `2> /dev/null' as args to it. 21:47:36 didi: that's parsed by your shell, not the program. 21:47:52 pkhuong: oic 21:48:10 Xach: I'll give cxml one more try. Thank you. 21:48:46 didi: converting to characters usually isn't too difficult. and i think drakma can be instructed to treat the body as text regardless of headers. 21:49:49 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 240 seconds] 21:50:10 pkhuong: It worked. Very nice, thank you. 21:50:21 Xach: I'll look into it. Thanks. 21:50:27 aiju [~aiju@unaffiliated/aiju] has joined #lisp 21:50:34 DX099 [~ctfd@2a01:e35:2eaf:e400:21f:3cff:fe31:c5a0] has joined #lisp 21:50:39 is there a set datatype or should i just use hash-tables? 21:50:46 Guthur [~user@212.183.128.43] has joined #lisp 21:51:43 -!- totzeit [~kirkwood@c-24-17-10-251.hsd1.wa.comcast.net] has quit [Ping timeout: 248 seconds] 21:51:49 I use hash tables, sometimes bitvectors and very rarely (sorted) vectors. FSet or TREES might be useful. 21:53:23 Also, kudos for Xach and stassats. Slime Tips and Common Lisp Tips are both very cool. 21:53:32 -!- DX099 [~ctfd@2a01:e35:2eaf:e400:21f:3cff:fe31:c5a0] has left #lisp 21:53:35 is there some macro to define functions a la incf? 21:53:47 define-modify-macro 21:53:49 aiju: define-modify-macro 21:54:53 and is there a ways to overwrite how a hashtable gets printed? 21:55:07 aiju: no. 21:55:18 can i add format directives? 21:55:19 -!- Guthur [~user@212.183.128.43] has quit [Remote host closed the connection] 21:55:30 Defining a print-object method on hash-table would have undefined effects. 21:55:49 aiju: you can use COM.INFORMATIMAGO.COMMON-LISP.CESARUM.UTILITY:PRINT-HASHTABLE. 21:56:06 Guthur [~user@212.183.128.43] has joined #lisp 21:56:31 -!- platypine [~joshua@c-76-118-155-244.hsd1.ct.comcast.net] has quit [Ping timeout: 248 seconds] 21:56:34 aiju: you can also define a formater function called with ~/: (format t "My table: ~/cl-user:format-hash-table/~%" h) 21:56:46 homie` [~levgue@xdsl-78-35-187-196.netcologne.de] has joined #lisp 21:57:24 wbooze` [~levgue@xdsl-78-35-187-196.netcologne.de] has joined #lisp 21:59:11 -!- homie [~levgue@xdsl-78-35-158-30.netcologne.de] has quit [Ping timeout: 248 seconds] 21:59:17 -!- wbooze [~levgue@xdsl-78-35-158-30.netcologne.de] has quit [Ping timeout: 252 seconds] 22:02:04 am0c [~am0c@175.253.0.215] has joined #lisp 22:02:20 vert2 [vert2@gateway/shell/bshellz.net/x-orhcjalifzwucpzy] has joined #lisp 22:04:52 Wait, what? You can't define a print-object method on hash-table? 22:04:54 Why? 22:05:12 Because the implementation is free not to use it. 22:05:51 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 22:06:23 -!- vjacob [~vjacob@78-105-184-157.zone3.bethere.co.uk] has quit [Ping timeout: 258 seconds] 22:07:38 -!- npoektop [~npoektop@213.141.130.13] has quit [Read error: Operation timed out] 22:08:20 Wennefer [~wennefer@c-24-61-40-170.hsd1.ma.comcast.net] has joined #lisp 22:08:27 triliyn: see 11.1.2.1.2 point 19. 22:08:38 triliyn: and see clhs print-object. 22:08:56 Ah, so it's just part of the standard or something? 22:09:04 Yes. 22:12:19 vjacob [~vjacob@78-105-184-157.zone3.bethere.co.uk] has joined #lisp 22:12:54 replore_ [~replore@ntkngw304073.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #lisp 22:13:25 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Read error: Operation timed out] 22:16:47 -!- dto [~dto@pool-96-252-89-130.bstnma.fios.verizon.net] has quit [Ping timeout: 248 seconds] 22:19:07 -!- Wennefer [~wennefer@c-24-61-40-170.hsd1.ma.comcast.net] has quit [Quit: Colloquy for iPhone - http://colloquy.mobi] 22:19:24 wtetzner [~wtetzner@c-24-218-217-69.hsd1.ma.comcast.net] has joined #lisp 22:23:14 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 22:23:53 -!- mstevens [~mstevens@fsf/member/pdpc.active.mstevens] has quit [Quit: leaving] 22:24:34 Xach: Do you use the DOM tree or transform it to forms? 22:26:20 -!- gravicappa [~gravicapp@ppp91-77-214-63.pppoe.mtu-net.ru] has quit [Remote host closed the connection] 22:26:51 -!- replore_ [~replore@ntkngw304073.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote host closed the connection] 22:27:25 pnathan [~Adium@76.178.165.160] has joined #lisp 22:28:38 Xach: is quicklisp going to be in beta for much longer? 22:29:08 Nice, Drakma can build a xmls list. 22:29:35 I know it's somewhat of a tradition for open source projects to be in perpetual beta, hehe, so just wondering 22:29:46 Guthur: ever heard of pcc? lol 22:30:08 Beta is the new Stable. 22:30:39 it's the exact opposite of what microsoft does 22:31:12 aiju: pcc? 22:31:25 Guthur: a very old compiler that's been resurrected by BSD people. 22:31:25 Guthur: the portable c compiler 22:31:33 -!- dlowe [~dlowe@50-77-31-237-static.hfc.comcastbusiness.net] has quit [Quit: *poof*] 22:31:45 pkhuong: was developed starting the mid-70s 22:31:51 stable release april 1, 2011 22:32:05 though there has been a long pause 22:32:14 mid 70's qualifies as "very old". 22:32:25 pkhuong: the second C compiler ever written 22:32:31 pkhuong: and i meant *Guthur, sorry 22:32:56 That's pretty old 22:33:25 actually... I think it was third 22:33:27 someone was posting today here though about how old Lisp code can still run in CL environments 22:33:46 also, I'm not sure if the pcc resurrected by BSD guy sisn't actually kencc, which was later 22:34:21 p_l: which was second? 22:34:31 not counting adaptions of the dmr's 22:35:29 aiju: I think second was the first C compiler written in C, the CC in old UNIX iirc pre-V7 22:35:29 It might not be the original PCC: ISTR plenty of x86-bias. 22:35:42 hmmm 22:35:45 p_l: that's dmr's compiler 22:35:52 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 260 seconds] 22:36:22 p_l: since it developed from B, very early C might have used threaded code, i don't know 22:36:31 I remember that last dmr/ken CC compiled to a form of bytecode which was assembled by linker (it's part of Plan 9, and supposedly formed core of at least one version of Go compiler) 22:36:43 p_l: not bytecode 22:36:51 p_l: it's basically binary assembler language 22:37:07 aiju: well, sort of. It abstracts some stuff a bit 22:37:18 mainly stuff like the crazy instruction encodings 22:37:25 and it allows the linker to perform further optimization 22:37:49 i like the old dmr compiler 22:38:17 antoszka [~antoszka@unaffiliated/antoszka] has joined #lisp 22:39:23 p_l: i haven't kept track recently, but it's probably still used as the base of the Go compiler 22:39:35 -!- floyd___ [~floyd___@c-2fbd72d5.12-0054-74657210.cust.bredbandsbolaget.se] has quit [Remote host closed the connection] 22:39:40 the Go runtime is written in C and compiled using that compiler 22:41:38 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 22:49:25 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 256 seconds] 22:49:58 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 22:55:43 -!- marsell [~marsell@120.18.155.59] has quit [Ping timeout: 248 seconds] 22:56:13 -!- am0c [~am0c@175.253.0.215] has quit [Ping timeout: 256 seconds] 22:56:43 marsell [~marsell@120.22.101.234] has joined #lisp 22:56:56 -!- marsell [~marsell@120.22.101.234] has quit [Client Quit] 23:01:41 -!- StrmSrfr [~user@208.72.159.205] has quit [Read error: Connection reset by peer] 23:01:41 ISF_ [~ivan@187.106.48.51] has joined #lisp 23:01:46 StrmSrfr [~user@208.72.159.205] has joined #lisp 23:02:45 wanderingelf [4817e03d@gateway/web/freenode/ip.72.23.224.61] has joined #lisp 23:03:41 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 258 seconds] 23:05:27 xyxu [~xyxu@222.68.154.181] has joined #lisp 23:07:56 -!- prip [~foo@host233-122-dynamic.53-79-r.retail.telecomitalia.it] has quit [Remote host closed the connection] 23:08:46 prip [~foo@host233-122-dynamic.53-79-r.retail.telecomitalia.it] has joined #lisp 23:10:23 -!- naryl [~weechat@213.170.70.141] has quit [Ping timeout: 245 seconds] 23:14:28 -!- kloeri [~kloeri@freenode/staff/exherbo.kloeri] has quit [Remote host closed the connection] 23:15:46 -!- jimmy1980 [~jimmy@112.224.3.94] has quit [Ping timeout: 258 seconds] 23:19:26 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 23:21:51 Brendan_T [~brendan@46.105.251.111] has joined #lisp 23:28:52 -!- mrSpec [~Spec@unaffiliated/mrspec] has quit [Remote host closed the connection] 23:31:07 -!- oconnore [~Eric@c-66-31-125-56.hsd1.ma.comcast.net] has quit [Quit: Leaving.] 23:32:59 -!- urandom__ [~user@p548A3713.dip.t-dialin.net] has quit [Remote host closed the connection] 23:33:53 -!- wbooze` [~levgue@xdsl-78-35-187-196.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 23:33:56 -!- homie` [~levgue@xdsl-78-35-187-196.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 23:35:12 chemuduguntar [~ravi@118-92-4-31.dsl.dyn.ihug.co.nz] has joined #lisp 23:35:19 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 256 seconds] 23:35:46 pnq [~nick@AC82DCDB.ipt.aol.com] has joined #lisp 23:35:48 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 23:39:46 -!- xyxu [~xyxu@222.68.154.181] has quit [Ping timeout: 276 seconds] 23:45:28 -!- allandee [~allandee@212.45.113.84] has quit [Ping timeout: 258 seconds] 23:47:30 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 255 seconds] 23:48:04 allandee [~allandee@212.45.113.84] has joined #lisp 23:48:12 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp 23:56:40 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 260 seconds] 23:57:30 Euthy [~euthy@unaffiliated/euthydemus] has joined #lisp