00:03:53 -!- oleo [~oleo@xdsl-78-35-150-20.netcologne.de] has quit [Ping timeout: 245 seconds] 00:04:38 Hrm, oddly, the defstruct way has many less instruction because it isn't checking for array bounds and whatnot. 00:04:43 Well, not oddly, I suppose. :) 00:05:02 But the actual dereferences look pretty similar. 00:05:05 if you declare speed and so on there will be less bounds checks, but yeah 00:06:06 Ok, so if I went the way I want to go, I don't think I'll back myself into a corner when I go to insert type declarations later for speed purposes. 00:07:09 All of my entities are fixed size, so defining a struct of them instead of an array of them isn't so terrible. 00:07:58 are these points or something? 00:08:04 -!- fikusz [~fikusz@catv-89-132-137-62.catv.broadband.hu] has quit [Read error: Connection reset by peer] 00:08:23 yeah, and matricies. 00:08:34 I know about sb-cga. 00:09:03 fikusz [~fikusz@catv-89-132-137-62.catv.broadband.hu] has joined #sbcl 00:09:22 I'm choosing not to use it because I have a particular C vector/matrix library I wrote whose interface I'm very fond of. 00:09:32 So I'm porting it to CL. 00:10:05 <|3b|> speed won't reduce bounds checks, better type declarations might reduce them, and safety 0 will remove them 00:10:40 oops. 00:10:58 Ah, I see. 00:11:22 *|3b|* would suggest avoiding safety 0 00:11:33 Yeah, I've had bad experience with safety 0. :) 00:11:34 <|3b|> since to use it safely, you should be checking types by hand anyway 00:11:52 <|3b|> can usually get most of the benefit with some inlining 00:12:05 I'm not sure how to do inlining yet, though. 00:12:24 <|3b|> (declaim (inline foo)) (defun foo ...) 00:13:28 Oh, heh. I'll try that out. Thanks! Will the compiler inline faithfully, potentially exploding the binary size? Or will it do it as appropriate? 00:13:43 <|3b|> if you do it like that, it will always inline 00:13:57 <|3b|> unless you specifically tell it not to 00:14:00 Ok, so I better be careful them. 00:14:19 <|3b|> if you (declaim (notinline foo)) after the defun foo, it will only inline it on request 00:14:33 How do I do a request? 00:14:40 <|3b|> you need both declaims though, so it knows to save info about how to inline it when it sees the definition 00:14:44 a local (declare (inline 00:14:49 <|3b|> yeah 00:15:14 I see, like (lambda () (declare (include foo)) (foo 10)) that sort of thing? 00:15:15 <|3b|> similarly if it defaults to inline, you can (declare (notinline ..)) to prevent it in specific cases 00:15:16 declaim inline tells sbcl to save inline info, then declaim notinline tells it not to do so, then declare inline says to do so 00:15:19 or in a LOCALLY ? 00:15:24 <|3b|> either would work 00:15:26 ok. 00:15:31 psilord: yeah, like that (with inline instead of include, of course) 00:15:54 Oh yeah, sorry, been going back and forth from CL to C. :) 00:16:28 *|3b|* mostly just uses that for short functions though, where it wouldn't be increasing code size much anyway 00:17:09 <|3b|> that way you can get the benefit of type declarations in the calling function, without adding overhead of checking it in the small functions 00:17:20 Yeah, I think I understand that if the code isn't much bigger than setting up the function call and then the display frame in terms of instructions, I can probably just inline it. 00:17:39 Cool. I've learned a lot. Thank Bike and 3b! 00:22:55 -!- edgar-rft [~GOD@HSI-KBW-109-193-013-113.hsi7.kabel-badenwuerttemberg.de] has quit [Quit: lifetime terminated into perpetual deadlock] 00:29:16 oleo [~oleo@xdsl-78-35-168-37.netcologne.de] has joined #sbcl 00:36:18 Bike_ [~Glossina@174-25-62-251.ptld.qwest.net] has joined #sbcl 00:36:53 -!- Bike [~Glossina@67-5-193-164.ptld.qwest.net] has quit [Ping timeout: 252 seconds] 00:39:03 -!- Bike_ is now known as Bike 00:49:41 -!- ASau [~user@p54AFFD70.dip0.t-ipconnect.de] has quit [Ping timeout: 248 seconds] 00:51:13 drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has joined #sbcl 00:56:02 -!- drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has quit [Ping timeout: 264 seconds] 01:10:26 drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has joined #sbcl 01:10:59 -!- hlavaty [~user@friedrichstrasse.knowledgetools.de] has quit [Ping timeout: 252 seconds] 01:13:14 Vivitron [~Vivitron@c-50-172-44-193.hsd1.il.comcast.net] has joined #sbcl 01:20:55 ASau [~user@p54AFFD70.dip0.t-ipconnect.de] has joined #sbcl 01:39:32 -!- echo-area [~user@114.254.102.124] has quit [Remote host closed the connection] 02:12:47 michael_lee [~michael@117.22.94.38] has joined #sbcl 02:18:09 -!- michael_lee [~michael@117.22.94.38] has quit [Read error: Connection reset by peer] 02:18:49 -!- scymtym_ [~user@ip-5-147-115-29.unitymediagroup.de] has quit [Ping timeout: 252 seconds] 02:19:22 michael_lee [~michael@117.22.94.38] has joined #sbcl 02:29:39 echo-area [~user@182.92.247.2] has joined #sbcl 02:54:24 attila_lendvai [~attila_le@5.251.242.95] has joined #sbcl 02:54:29 -!- attila_lendvai [~attila_le@5.251.242.95] has quit [Changing host] 02:54:29 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #sbcl 02:58:47 -!- segv- [~mb@95-91-240-218-dynip.superkabel.de] has quit [Ping timeout: 252 seconds] 03:07:59 Hello, another minor question, if I know that two arguments to < are double-floats, will I always get the generic < call? 03:08:52 for example: (< 1.0d0 2.0d0) will always use the generic-< call? Is there nothing faster than the generic-< if I know what the argument types are? 03:09:06 try (disassemble (lambda (x y) (declare (double-float x y)) (< x y))) versus (disassemble (lambda (x y) (< x y))) 03:10:03 Interesting. 03:10:26 so, are you sure the argument types ar eknown? 03:11:04 Yes, here is my code: 03:11:04 (defun pv-stabalize (pv) 03:11:04 (return-from pv-stabalize pv) 03:11:04 "If any element is < than *pvec-tol*, force it to 0.0d0." 03:11:04 (declare (optimize (speed 3) (safety 0))) 03:11:04 (with-pvec-accessors (p pv) 03:11:05 (macrolet ((stabalize (slot) 03:11:05 `(when (< (the double-float (abs ,slot)) 03:11:06 (the double-float *pvec-tol*)) 03:11:06 (setf ,slot 0.0d0)))) 03:11:07 (stabalize p-x) 03:11:07 (stabalize p-y) 03:11:08 (stabalize p-z))) 03:11:08 pv) 03:11:23 with-pven-accessors is like with-accessor, but custom made for the vector structures. 03:11:26 paste.lisp.org 03:11:41 Yeah... it looked a lot smaller on my screen. I apologize. 03:12:33 http://paste.lisp.org/+307Q 03:12:35 there you go. 03:12:38 -!- ben2 [~ben@199.241.30.80] has quit [Quit: WeeChat 0.3.8] 03:13:26 well, first off it's "stabilize" :p 03:13:33 hehehehe. :) 03:13:49 one error creeps in, then it is all M-/ the way down. 03:15:09 Could you annotate that with a disassembly? I'm not seeing generic-< calls in the bits I tried. 03:15:26 namely (lambda (x y) (< (the double-float (abs x)) (the double-float (symbol-value y)))) 03:15:34 ok, hold on. 03:16:07 duh, I had stuck a return-from in there at the top. remove that... 03:19:13 Ok, I think I figured it out. 03:21:12 I believe I had cut and pasted something into the repl which ultimately wasn't what I had in my editor. 03:21:52 (< (the double-float (abs xxx)) (the double-float *some-val*)) does the right thing when mixed with (declare (optimize (speed 3) (safety 0)) 03:23:21 don't think you need the optimize, even 03:24:10 If I use it, it gets rid of some run-time type checks that SBCL emits. 03:25:08 well sure, i just mean the generic-< call. 03:25:20 Oh yeah, it does get rid of that. 03:36:33 -!- christoph_debian [~christoph@ppp-46-244-221-249.dynamic.mnet-online.de] has quit [Read error: Operation timed out] 03:44:48 Ok, I think I have it about the best I can without delving into sse* instructions or other types of hardware improvements. Thanks Bike! 03:45:04 g'luck 03:52:03 christoph_debian [~christoph@ppp-88-217-47-91.dynamic.mnet-online.de] has joined #sbcl 04:03:56 Bike_ [~Glossina@71-222-46-5.ptld.qwest.net] has joined #sbcl 04:05:58 -!- Bike [~Glossina@174-25-62-251.ptld.qwest.net] has quit [Ping timeout: 240 seconds] 04:48:09 ehaliewicz [~user@50-0-51-28.dsl.static.sonic.net] has joined #sbcl 05:13:17 -!- Bike_ is now known as Bike 05:58:33 -!- oleo [~oleo@xdsl-78-35-168-37.netcologne.de] has quit [Quit: Leaving] 06:07:43 -!- yacks [~py@103.6.159.103] has quit [Quit: Leaving] 06:19:50 sdemarre [~serge@91.180.110.190] has joined #sbcl 06:42:48 -!- drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has quit [Remote host closed the connection] 06:45:06 drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has joined #sbcl 06:47:49 -!- drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has quit [Remote host closed the connection] 07:15:50 -!- sdemarre [~serge@91.180.110.190] has quit [Ping timeout: 245 seconds] 07:38:42 michael_alex [~michael@117.22.94.38] has joined #sbcl 08:36:22 drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has joined #sbcl 08:36:59 -!- psilord [~psilord@c-69-180-173-249.hsd1.mn.comcast.net] has quit [Quit: Leaving.] 08:38:28 -!- michael_alex [~michael@117.22.94.38] has quit [Quit: Ex-Chat] 08:41:29 -!- drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has quit [Ping timeout: 272 seconds] 08:54:21 -!- ehaliewicz [~user@50-0-51-28.dsl.static.sonic.net] has quit [Ping timeout: 252 seconds] 09:01:43 hlavaty [~user@friedrichstrasse.knowledgetools.de] has joined #sbcl 09:13:40 prxq [~mommer@x2f694a8.dyn.telefonica.de] has joined #sbcl 09:46:56 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 09:49:14 attila_lendvai [~attila_le@5.251.242.95] has joined #sbcl 09:49:14 -!- attila_lendvai [~attila_le@5.251.242.95] has quit [Changing host] 09:49:14 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #sbcl 10:17:36 -!- echo-area [~user@182.92.247.2] has quit [Remote host closed the connection] 10:18:27 -!- michael_lee [~michael@117.22.94.38] has quit [Quit: Ex-Chat] 10:18:54 michael_lee [~michael@117.22.94.38] has joined #sbcl 10:25:36 drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has joined #sbcl 10:30:05 -!- drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has quit [Ping timeout: 265 seconds] 10:32:13 -!- kludge` [~comet@unaffiliated/espiral] has quit [Ping timeout: 245 seconds] 10:33:10 kludge` [~comet@unaffiliated/espiral] has joined #sbcl 10:45:21 segv- [~mb@95-91-240-218-dynip.superkabel.de] has joined #sbcl 11:11:32 -!- michael_lee is now known as root_empire 11:40:07 stassats [~stassats@wikipedia/stassats] has joined #sbcl 11:41:35 -!- root_empire [~michael@117.22.94.38] has quit [Quit: Ex-Chat] 11:44:39 michael_lee [~michael_l@117.22.94.38] has joined #sbcl 11:47:07 -!- michael_lee [~michael_l@117.22.94.38] has quit [Read error: Connection reset by peer] 11:47:57 michael_lee [~michael_l@117.36.89.238] has joined #sbcl 11:50:11 -!- heddwch [~yoshi@76.8.3.189] has quit [Ping timeout: 240 seconds] 11:50:42 -!- michael_lee [~michael_l@117.36.89.238] has quit [Read error: Connection reset by peer] 11:51:13 michael_lee [~michael_l@117.36.89.238] has joined #sbcl 11:56:11 -!- Vivitron [~Vivitron@c-50-172-44-193.hsd1.il.comcast.net] has quit [Ping timeout: 272 seconds] 11:58:44 -!- michael_lee [~michael_l@117.36.89.238] has quit [Read error: Connection reset by peer] 11:59:07 michael_lee [~michael_l@117.36.89.238] has joined #sbcl 11:59:16 michael_lee0 [~michael_l@117.36.89.238] has joined #sbcl 12:00:21 eudoxia [~eudoxia@r186-52-26-101.dialup.adsl.anteldata.net.uy] has joined #sbcl 12:00:23 -!- michael_lee0 [~michael_l@117.36.89.238] has quit [Read error: Connection reset by peer] 12:00:30 -!- michael_lee [~michael_l@117.36.89.238] has quit [Client Quit] 12:01:07 michael_lee [~michael_l@117.36.89.238] has joined #sbcl 12:02:27 -!- michael_lee [~michael_l@117.36.89.238] has quit [Client Quit] 12:07:25 heddwch [~yoshi@76.8.3.189] has joined #sbcl 12:14:15 drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has joined #sbcl 12:18:37 -!- drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has quit [Ping timeout: 246 seconds] 13:05:46 -!- segv- [~mb@95-91-240-218-dynip.superkabel.de] has quit [Remote host closed the connection] 13:09:58 echo-area [~user@123.120.237.231] has joined #sbcl 13:31:23 yacks [~py@103.6.159.103] has joined #sbcl 13:37:13 drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has joined #sbcl 13:39:50 segv- [~mb@95-91-240-218-dynip.superkabel.de] has joined #sbcl 13:39:58 -!- drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has quit [Remote host closed the connection] 13:58:33 -!- eudoxia [~eudoxia@r186-52-26-101.dialup.adsl.anteldata.net.uy] has quit [Read error: Connection reset by peer] 14:01:12 eudoxia [~eudoxia@r186-52-26-101.dialup.adsl.anteldata.net.uy] has joined #sbcl 14:14:35 shamaz [~user@ip-95-220-21-213.bb.netbynet.ru] has joined #sbcl 14:30:13 drmeister [~drmeister@155.247.96.196] has joined #sbcl 14:36:35 oleo [~oleo@xdsl-78-35-162-86.netcologne.de] has joined #sbcl 14:52:12 -!- shamaz [~user@ip-95-220-21-213.bb.netbynet.ru] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 15:23:04 michael_lee [~michael_l@117.36.89.238] has joined #sbcl 15:34:47 -!- michael_lee [~michael_l@117.36.89.238] has quit [Quit: Ex-Chat] 15:35:15 michael_lee [~michael_l@117.36.89.238] has joined #sbcl 15:39:26 -!- drmeister [~drmeister@155.247.96.196] has quit [Remote host closed the connection] 15:41:59 drmeister [~drmeister@155.247.96.196] has joined #sbcl 15:53:02 -!- stassats [~stassats@wikipedia/stassats] has quit [Remote host closed the connection] 15:55:50 psilord [~psilord@c-69-180-173-249.hsd1.mn.comcast.net] has joined #sbcl 17:05:39 -!- joshe [~joshe@2001:470:e862::1:1] has quit [Ping timeout: 260 seconds] 17:05:43 eudoxia_ [~eudoxia@r186-52-46-253.dialup.adsl.anteldata.net.uy] has joined #sbcl 17:06:32 -!- eudoxia_ [~eudoxia@r186-52-46-253.dialup.adsl.anteldata.net.uy] has quit [Remote host closed the connection] 17:07:24 joshe [~joshe@2001:470:e862::1:1] has joined #sbcl 17:08:53 -!- eudoxia [~eudoxia@r186-52-26-101.dialup.adsl.anteldata.net.uy] has quit [Ping timeout: 248 seconds] 17:09:47 eudoxia [~eudoxia@r186-52-46-253.dialup.adsl.anteldata.net.uy] has joined #sbcl 17:09:57 -!- eudoxia [~eudoxia@r186-52-46-253.dialup.adsl.anteldata.net.uy] has quit [Read error: Connection reset by peer] 17:26:20 eudoxia [~eudoxia@r186-52-46-253.dialup.adsl.anteldata.net.uy] has joined #sbcl 17:41:58 sdemarre [~serge@91.180.110.190] has joined #sbcl 17:42:22 -!- eudoxia [~eudoxia@r186-52-46-253.dialup.adsl.anteldata.net.uy] has quit [Quit: Leaving] 17:56:08 stassats [~stassats@wikipedia/stassats] has joined #sbcl 18:26:07 milosn_ [~milosn@user-5af503e2.broadband.tesco.net] has joined #sbcl 18:28:35 -!- milosn [~milosn@user-5af50e24.broadband.tesco.net] has quit [Ping timeout: 272 seconds] 18:47:08 -!- stassats [~stassats@wikipedia/stassats] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 19:14:00 Vivitron [~Vivitron@c-50-172-44-193.hsd1.il.comcast.net] has joined #sbcl 19:26:29 -!- drmeister [~drmeister@155.247.96.196] has quit [Ping timeout: 272 seconds] 19:45:38 eudoxia [~eudoxia@r186-52-129-161.dialup.adsl.anteldata.net.uy] has joined #sbcl 19:50:05 scymtym_ [~user@ip-5-147-115-29.unitymediagroup.de] has joined #sbcl 20:04:48 -!- jasom [~aidenn@ip70-191-80-19.sb.sd.cox.net] has left #sbcl 20:16:43 pegu [~user@c7F7CBF51.dhcp.as2116.net] has joined #sbcl 21:09:10 -!- sdemarre [~serge@91.180.110.190] has quit [Ping timeout: 245 seconds] 21:22:55 Talk by someone from Bielefeld (Stefanie Schirmer) tomorrow (: 21:23:52 Bike_ [~Glossina@75-164-163-220.ptld.qwest.net] has joined #sbcl 21:24:00 -!- Bike_ [~Glossina@75-164-163-220.ptld.qwest.net] has quit [Client Quit] 21:24:18 Bike_ [~Glossina@75-164-163-220.ptld.qwest.net] has joined #sbcl 21:26:38 -!- Bike [~Glossina@71-222-46-5.ptld.qwest.net] has quit [Ping timeout: 264 seconds] 21:28:26 -!- Bike_ is now known as Bike 21:30:39 drmeister [~drmeister@166.137.106.251] has joined #sbcl 21:33:22 Heh 21:37:35 -!- drmeister [~drmeister@166.137.106.251] has quit [Read error: Connection reset by peer] 21:54:24 -!- segv- [~mb@95-91-240-218-dynip.superkabel.de] has quit [Read error: Operation timed out] 21:55:31 drmeister [~drmeister@pool-173-59-25-58.phlapa.fios.verizon.net] has joined #sbcl 21:57:06 -!- Posterdati [~kvirc@host5-216-dynamic.16-87-r.retail.telecomitalia.it] has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/] 21:57:33 Posterdati [~kvirc@host5-216-dynamic.16-87-r.retail.telecomitalia.it] has joined #sbcl 22:00:09 -!- Posterdati [~kvirc@host5-216-dynamic.16-87-r.retail.telecomitalia.it] has quit [Client Quit] 22:00:34 Posterdati [~kvirc@host5-216-dynamic.16-87-r.retail.telecomitalia.it] has joined #sbcl 22:05:24 ASau` [~user@p5083D665.dip0.t-ipconnect.de] has joined #sbcl 22:08:37 -!- ASau [~user@p54AFFD70.dip0.t-ipconnect.de] has quit [Ping timeout: 272 seconds] 22:22:17 -!- ASau` is now known as ASau 22:22:17 -!- eudoxia [~eudoxia@r186-52-129-161.dialup.adsl.anteldata.net.uy] has quit [Quit: Leaving] 22:28:45 -!- Bike [~Glossina@75-164-163-220.ptld.qwest.net] has quit [Ping timeout: 245 seconds] 22:29:25 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 22:30:36 Bike [~Glossina@67-5-209-183.ptld.qwest.net] has joined #sbcl 22:57:50 -!- Bike [~Glossina@67-5-209-183.ptld.qwest.net] has quit [Ping timeout: 264 seconds] 22:57:59 Bike [~Glossina@67-5-209-183.ptld.qwest.net] has joined #sbcl 23:04:52 -!- danlentz [~danlentz@c-68-37-70-235.hsd1.nj.comcast.net] has quit [Read error: No route to host] 23:14:21 danlentz [~danlentz@c-68-37-70-235.hsd1.nj.comcast.net] has joined #sbcl 23:35:29 davazp [~user@178.167.254.100.threembb.ie] has joined #sbcl 23:47:09 -!- scymtym_ [~user@ip-5-147-115-29.unitymediagroup.de] has quit [Ping timeout: 272 seconds]