00:03:48 hargettp [~hargettp@pool-71-184-188-30.bstnma.east.verizon.net] has joined #ccl 01:58:09 -!- hargettp [~hargettp@pool-71-184-188-30.bstnma.east.verizon.net] has quit [Quit: Leaving...] 02:10:54 dsantiago [~dsantiago@c-98-226-186-156.hsd1.il.comcast.net] has joined #ccl 03:36:41 -!- dsantiago [~dsantiago@c-98-226-186-156.hsd1.il.comcast.net] has quit [Ping timeout: 240 seconds] 03:45:58 dsantiago [~dsantiago@c-98-226-186-156.hsd1.il.comcast.net] has joined #ccl 04:33:05 -!- danlentz [~danlentz@c-68-46-98-23.hsd1.nj.comcast.net] has quit [Quit: Textual IRC Client: http://www.textualapp.com/] 04:49:04 -!- dsantiago [~dsantiago@c-98-226-186-156.hsd1.il.comcast.net] has quit [Ping timeout: 246 seconds] 04:57:27 dsantiago [~dsantiago@c-98-226-186-156.hsd1.il.comcast.net] has joined #ccl 05:13:08 -!- Adlai [~adlai@unaffiliated/adlai] has quit [Ping timeout: 248 seconds] 05:28:59 danlentz [~danlentz@c-68-46-98-23.hsd1.nj.comcast.net] has joined #ccl 05:54:08 -!- deepfire__ [~deepfire@80.92.100.69] has quit [Ping timeout: 260 seconds] 05:54:58 deepfire [~deepfire@80.92.100.69] has joined #ccl 06:23:53 jdz [~jdz@193.206.22.97] has joined #ccl 08:02:42 -!- rme_ [~rme@pool-70-104-125-229.chi.dsl-w.verizon.net] has quit [Quit: rme_] 08:26:54 -!- jdz [~jdz@193.206.22.97] has quit [Quit: Leaving] 08:31:10 jdz [~jdz@193.206.22.97] has joined #ccl 09:10:06 udzinari [~user@nat/ibm/x-raejmcmikszaljib] has joined #ccl 09:20:07 -!- Modius [~Modius@cpe-70-123-140-183.austin.res.rr.com] has quit [Read error: Connection reset by peer] 09:20:35 Modius [~Modius@cpe-70-123-140-183.austin.res.rr.com] has joined #ccl 12:06:00 leo2007 [~leo@114.249.204.95] has joined #ccl 12:21:29 -!- leo2007 [~leo@114.249.204.95] has quit [Quit: rcirc on GNU Emacs 23.3.50.1] 13:54:16 -!- udzinari [~user@nat/ibm/x-raejmcmikszaljib] has quit [Read error: Connection reset by peer] 14:29:06 milanj [~milanj_@109-92-102-125.dynamic.isp.telekom.rs] has joined #ccl 14:32:12 hargettp [~hargettp@pool-71-174-139-45.bstnma.east.verizon.net] has joined #ccl 14:45:22 rme [~rme@pool-70-104-125-229.chi.dsl-w.verizon.net] has joined #ccl 14:51:12 anRch [~markmilli@64.134.241.190] has joined #ccl 15:23:10 leo2007 [~leo@2402:f000:5:2901:225:4bff:fea9:b9e4] has joined #ccl 15:57:22 -!- jdz [~jdz@193.206.22.97] has quit [Ping timeout: 276 seconds] 16:11:56 Adlai [~adlai@unaffiliated/adlai] has joined #ccl 16:13:13 -!- anRch [~markmilli@64.134.241.190] has quit [Quit: anRch] 16:20:53 anRch [~markmilli@pool-68-163-186-86.bos.east.verizon.net] has joined #ccl 16:45:19 -!- anRch [~markmilli@pool-68-163-186-86.bos.east.verizon.net] has quit [Quit: anRch] 16:47:42 -!- Modius [~Modius@cpe-70-123-140-183.austin.res.rr.com] has quit [Ping timeout: 246 seconds] 17:03:24 anRch [~markmilli@63.112.62.27] has joined #ccl 17:20:17 bfulgham [~brent@wsip-72-215-191-226.sb.sd.cox.net] has joined #ccl 17:28:05 Modius [~Modius@cpe-70-123-140-183.austin.res.rr.com] has joined #ccl 17:49:22 udzinari [~user@ip-89-102-12-6.net.upcbroadband.cz] has joined #ccl 18:03:49 -!- gnooth [~gnooth@ip98-176-79-151.sd.sd.cox.net] has quit [Quit: Leaving] 18:16:59 -!- Modius [~Modius@cpe-70-123-140-183.austin.res.rr.com] has quit [Ping timeout: 252 seconds] 18:20:23 Modius [~Modius@70.123.140.183] has joined #ccl 18:35:43 -!- anRch [~markmilli@63.112.62.27] has quit [Quit: anRch] 19:18:08 -!- udzinari [~user@ip-89-102-12-6.net.upcbroadband.cz] has quit [Remote host closed the connection] 19:19:15 -!- sellout [~Adium@c-24-61-13-161.hsd1.ma.comcast.net] has quit [Read error: Connection reset by peer] 19:21:46 sellout [~Adium@c-24-61-13-161.hsd1.ma.comcast.net] has joined #ccl 19:24:03 udzinari [~user@ip-89-102-12-6.net.upcbroadband.cz] has joined #ccl 19:31:32 -!- Modius [~Modius@70.123.140.183] has quit [Ping timeout: 258 seconds] 19:32:17 Modius [~Modius@cpe-70-123-140-183.austin.res.rr.com] has joined #ccl 19:40:17 _schulte_ [~Eric@c-174-56-1-147.hsd1.nm.comcast.net] has joined #ccl 19:50:55 alms__ [~alms_@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 19:51:33 -!- alms_ is now known as alms 19:52:06 -!- alms_ [~alms_@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Read error: Connection reset by peer] 19:52:06 -!- alms__ is now known as alms_ 19:52:46 <_schulte_> any idea what could be causing the following behavior in ccl Version 1.6-r14468M (LinuxX8632) 19:52:48 <_schulte_> (equal *random-state* (progn (random 10) *random-state*)) ;; => T 19:53:11 <_schulte_> also, repeated calls to `random' all return the same value 19:53:57 http://trac.clozure.com/ccl/wiki/FrequentlyAskedQuestions#RANDOMalwaysreturnsthethesamesequenceofnumbers. 19:56:19 <_schulte_> ah, thanks 19:56:37 <_schulte_> (dotimes (_ 5) (format t "~&~a" (random 10))) runs as expected 20:16:03 -!- leo2007 [~leo@2402:f000:5:2901:225:4bff:fea9:b9e4] has quit [Quit: rcirc on GNU Emacs 23.3.50.1] 21:18:37 gnooth [~gnooth@ip98-176-79-151.sd.sd.cox.net] has joined #ccl 21:26:42 -!- hargettp [~hargettp@pool-71-174-139-45.bstnma.east.verizon.net] has quit [Quit: Linkinus - http://linkinus.com] 21:52:36 -!- milanj [~milanj_@109-92-102-125.dynamic.isp.telekom.rs] has quit [Quit: Leaving] 22:08:35 -!- _schulte_ [~Eric@c-174-56-1-147.hsd1.nm.comcast.net] has quit [Remote host closed the connection] 23:22:06 _schulte_ [~Eric@c-174-56-1-147.hsd1.nm.comcast.net] has joined #ccl 23:22:56 <_schulte_> from looking online it seems the answer is no, but figured I'd check here... Is there any way to run a file of ccl code as a script (i.e. #!), and if so is there a way to access the command line arguments? 23:26:16 for the #! stuff, see http://trac.clozure.com/ccl/ticket/823 Maybe you could put that snippet in your init file. 23:27:22 <_schulte_> thanks, that solves passing the contents of a script to the interpreter, any ideas on accessing command line arguments? 23:28:15 See http://clozure.com/pipermail/openmcl-devel/2011-April/012712.html (I'm going to add that information to the manual, honest.) 23:28:46 <_schulte_> fantastic, thanks 23:28:55 One potential problem is that ccl will always interpret certain command-line arguments itself. If you want to avoid that, you need to use a shell script wrapper. 23:29:52 <_schulte_> which arguments would be intercepted? those that are valid ccl arguments? Even if they follow --? 23:30:06 <_schulte_> I'll probably go ahead and use a simple wrapping shell script 23:30:08 Anything that follows -- will not be processed. 23:30:47 <_schulte_> great, thanks 23:32:04 If you use a shell wrapper, you don't have to fiddle with reader syntax. You can just say something like ccl --load "myfile.lisp" -- "$@" or whatever. 23:33:29 -!- udzinari [~user@ip-89-102-12-6.net.upcbroadband.cz] has quit [Ping timeout: 240 seconds] 23:37:03 <_schulte_> so, what seems to work well for me is to save the following to a shell script, then (with your reader hack) to reference that shell script in a shebang line 23:37:09 <_schulte_> ccl -b -e '(progn (setf *args* CCL:*UNPROCESSED-COMMAND-LINE-ARGUMENTS*) (load "'$1'") (ccl::quit))' -- "$@" 23:37:09 <_schulte_> thanks