00:14:25 homie` [~levgue@xdsl-78-35-133-33.netcologne.de] has joined #sbcl 00:16:14 -!- homie` [~levgue@xdsl-78-35-133-33.netcologne.de] has quit [Read error: Connection reset by peer] 00:16:30 -!- homie [~levgue@xdsl-78-35-157-77.netcologne.de] has quit [Ping timeout: 240 seconds] 00:17:26 -!- psilord [~psilord@c-24-118-208-140.hsd1.mn.comcast.net] has quit [Quit: Leaving.] 00:22:02 -!- saschakb [~saschakb@p4FEA0404.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 00:22:29 homie [~levgue@xdsl-78-35-133-33.netcologne.de] has joined #sbcl 01:39:43 -!- homie [~levgue@xdsl-78-35-133-33.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 01:42:05 -!- akovalenko [~akovalenk@95.73.127.63] has quit [Ping timeout: 252 seconds] 01:55:48 akovalenko [~akovalenk@95.73.54.181] has joined #sbcl 02:35:37 Cryotank2011 [~Cryotank2@c-24-17-62-152.hsd1.wa.comcast.net] has joined #sbcl 02:43:36 edgar-rft [~user@HSI-KBW-078-043-123-191.hsi4.kabel-badenwuerttemberg.de] has joined #sbcl 03:23:31 on the long list of things that piss me off about python: transforms that depend on other transforms to be useful... when we don't run transforms until fixpoint :'( 03:28:01 That's how, on large functions, we get notes like (* 8 [(unsigned-byte 31)]) => unable to recode x*2^k due to type uncertainty. 03:30:18 |3b| [foobar@cpe-72-179-19-4.austin.res.rr.com] has joined #sbcl 04:04:45 So I'm playing around with lispbuilder-sdl. Any reason why I would need to do the following to get it to not crash during ffi: (sb-ext::set-floating-point-modes :traps nil) 04:04:47 ? 04:05:27 because foreign code messes up floating point flags 04:06:13 Is the library supposed to put that in there since it knows it'll be doing ffi? 04:06:47 perhaps 04:07:15 Took forever to find that 04:08:34 sbryant: C programs tend to assume no trap is stel. 04:08:48 stel? 04:09:06 * is set. 04:09:17 they'll happily give you nans or infinities instead of complaining about divisions by zero or subtracting infinities. 04:09:52 Ah 04:10:02 it's sb-int:set-floating-point-modes, though. 04:10:19 I tried using that one before and it didn't do anything 04:10:31 but the ext did, but the docs say int :-\ 04:10:44 sbryant: it's the same symbol. 04:10:50 Okay 04:12:28 Other than setting swank communication to sigio everything seems to work real well 04:14:10 using with-floats-traps-masked might be better 04:14:15 float 04:14:43 ah yes. with-float-traps-masked around the code that keeps calling foreign code is probably more useful. 04:16:56 -!- foom [~jknight@ita4fw1.itasoftware.com] has quit [Ping timeout: 240 seconds] 04:16:59 Well, I'm using lispbuilder-sdl and this happens inside of the that library 04:17:04 I can fork and fix it 04:17:13 Not sure if it's maintained anymore 04:17:19 foom [~jknight@ita4fw1.itasoftware.com] has joined #sbcl 04:17:25 you can also use w-f-t-m around your code that calls into lispbuilder 04:17:52 That seems excessive :-\ 04:19:18 iirc, it's an event loop; there should only be one such function. 04:20:16 what package is w-f-t-m in? 04:20:43 sbryant: apropos. 04:20:51 fine. 04:20:57 sb:w-f-t-m and press tab in slime 04:26:14 it helps to have fuzzy turned on 04:26:20 thanks guys! 04:29:27 That didn't seem to do it 04:31:29 what traps did you specify? 04:31:34 I set nil 04:31:37 no traps 04:32:01 with-float-traps-masked is inclusive, not exclusive 04:32:08 Oh. 04:32:09 so you need to specify what traps you want to mask 04:32:40 Sometimes I feel like an idiot 04:39:17 Okay, I have no idea how to pass it traps 04:39:30 did you read its docstring? 04:39:36 No docstring 04:39:52 ok, its comment 04:40:12 I'm looking for the source but slime doesn't know it's definition 04:40:30 do you have sbcl sources installed? 04:42:06 Used macports 04:42:37 I get some source. I think it was compiled and the source location was saved as the build location 04:43:10 you can set your source location with sb-ext:set-sbcl-source-location (sbcl 1.0.53 or newer) 04:48:02 I'll need to do that 04:48:13 Is it easy to run on git head? 04:48:40 most of the time, yes 04:48:58 plus you get to help by reporting bugs 04:50:30 Setting the w-f-t-p to (:inexact) didn't seem to do anything either 04:50:40 both around the event load and just around the entire function 04:50:58 what error does the code signal? 04:51:19 ; Evaluation aborted on #. 04:52:26 then it happens somewhere else 04:54:08 It happens in the sdl wrapper when switching bufferings 04:54:22 but the only way to fix this is to fork and patch 04:55:03 can't you wrap it at the outermost level where you call sdl? 04:55:22 I did 04:56:13 Okay now I got it 04:59:06 and the mask (:divide-by-zero :invalid) is required 04:59:21 Which is even stranger 04:59:27 just put them all 05:00:44 Okay 05:00:46 Awesome 05:01:09 And now if SBCL would work with swank communication :spawn while doing this stuff 05:01:59 of course 05:02:31 Thanks for setting me straight with the traps 05:03:19 i have (defmacro with-sbcl-float-traps (&body body) `(#+sbcl ,@'(sb-int:with-float-traps-masked (:invalid :divide-by-zero)) #-sbcl progn ,@body)) macro around some foreign code 05:04:37 ah I was just about that write that very thing! 05:05:18 Anywhere you can point me to learn as to why I need to do this? 05:05:43 that's just how your foreign code behaves 05:06:00 Okay, good to know 05:06:01 not bothering to clear the flags 05:08:12 sbryant: C supposes that all traps are masked. 05:17:04 -!- Phoodus [~foo@ip72-223-116-248.ph.ph.cox.net] has quit [Read error: Connection reset by peer] 05:17:21 Phoodus [~foo@ip72-223-116-248.ph.ph.cox.net] has joined #sbcl 06:21:05 sdemarre [~serge@91.176.168.137] has joined #sbcl 06:59:30 -!- stassats [~stassats@wikipedia/stassats] has quit [Ping timeout: 240 seconds] 07:17:53 angavrilov [~angavrilo@217.71.227.181] has joined #sbcl 07:25:11 -!- whoops [u549@gateway/web/irccloud.com/x-fyrawpshuatzbmhc] has quit [Read error: Connection reset by peer] 07:45:21 pchrist [~spirit@gentoo/developer/pchrist] has joined #sbcl 08:15:34 whoops [u549@gateway/web/irccloud.com/x-semtohuqaipkkjng] has joined #sbcl 08:33:25 -!- Phoodus [~foo@ip72-223-116-248.ph.ph.cox.net] has quit [Ping timeout: 248 seconds] 08:33:43 Phoodus [~foo@ip72-223-116-248.ph.ph.cox.net] has joined #sbcl 08:42:23 -!- Cryotank2011 [~Cryotank2@c-24-17-62-152.hsd1.wa.comcast.net] has quit [Quit: Cryotank2011] 11:21:27 -!- Phoodus [~foo@ip72-223-116-248.ph.ph.cox.net] has quit [Read error: Connection reset by peer] 11:21:44 Phoodus [~foo@ip72-223-116-248.ph.ph.cox.net] has joined #sbcl 12:04:29 saschakb [~saschakb@p4FEA04FE.dip0.t-ipconnect.de] has joined #sbcl 12:07:46 tcr [~tcr@95-88-46-7-dynip.superkabel.de] has joined #sbcl 12:09:54 -!- tcr [~tcr@95-88-46-7-dynip.superkabel.de] has quit [Client Quit] 12:10:02 tcr [~tcr@95-88-46-7-dynip.superkabel.de] has joined #sbcl 12:11:15 -!- saschakb [~saschakb@p4FEA04FE.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 12:11:42 saschakb [~saschakb@p4FEA04FE.dip0.t-ipconnect.de] has joined #sbcl 12:22:13 -!- saschakb [~saschakb@p4FEA04FE.dip0.t-ipconnect.de] has left #sbcl 12:47:26 tcr1 [~tcr@95-88-46-7-dynip.superkabel.de] has joined #sbcl 12:47:26 -!- tcr [~tcr@95-88-46-7-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 14:40:24 LiamH [~healy@pool-108-18-171-26.washdc.east.verizon.net] has joined #sbcl 15:18:49 -!- sdemarre [~serge@91.176.168.137] has quit [Ping timeout: 240 seconds] 16:07:39 -!- edgar-rft [~user@HSI-KBW-078-043-123-191.hsi4.kabel-badenwuerttemberg.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 16:26:58 stassats [~stassats@wikipedia/stassats] has joined #sbcl 16:43:21 gabnet [~gabnet@ACaen-257-1-125-222.w86-220.abo.wanadoo.fr] has joined #sbcl 17:24:08 homie [~levgue@xdsl-87-79-248-99.netcologne.de] has joined #sbcl 17:44:56 -!- gabnet [~gabnet@ACaen-257-1-125-222.w86-220.abo.wanadoo.fr] has quit [Quit: Quitte] 17:47:57 -!- stassats [~stassats@wikipedia/stassats] has quit [Read error: Connection reset by peer] 17:48:57 stassats [~stassats@wikipedia/stassats] has joined #sbcl 18:38:59 -!- homie [~levgue@xdsl-87-79-248-99.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 18:47:09 -!- LiamH [~healy@pool-108-18-171-26.washdc.east.verizon.net] has quit [Ping timeout: 240 seconds] 19:04:21 -!- Phoodus [~foo@ip72-223-116-248.ph.ph.cox.net] has quit [Ping timeout: 248 seconds] 19:04:37 Phoodus [~foo@ip72-223-116-248.ph.ph.cox.net] has joined #sbcl 19:22:10 -!- tcr1 [~tcr@95-88-46-7-dynip.superkabel.de] has quit [Quit: Leaving.] 19:25:01 tcr [~tcr@95-88-46-7-dynip.superkabel.de] has joined #sbcl 19:37:34 alex_white [~Alexey@ppp85-141-146-94.pppoe.mtu-net.ru] has joined #sbcl 19:37:39 -!- alex_white is now known as alexzin 19:44:16 -!- tcr [~tcr@95-88-46-7-dynip.superkabel.de] has quit [Quit: Leaving.] 20:05:55 -!- angavrilov [~angavrilo@217.71.227.181] has quit [Ping timeout: 252 seconds] 20:32:48 -!- alexzin [~Alexey@ppp85-141-146-94.pppoe.mtu-net.ru] has quit [Quit: Leaving] 20:43:27 LiamH [~healy@pool-108-18-171-26.washdc.east.verizon.net] has joined #sbcl 21:38:07 tcr [~tcr@95-88-46-7-dynip.superkabel.de] has joined #sbcl 21:51:43 -!- ruru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has quit [Ping timeout: 268 seconds] 21:53:04 kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has joined #sbcl 21:54:18 -!- tcr [~tcr@95-88-46-7-dynip.superkabel.de] has quit [Quit: Leaving.] 22:26:55 tcr [~tcr@95-88-46-7-dynip.superkabel.de] has joined #sbcl 22:46:24 homie [~levgue@xdsl-87-79-248-99.netcologne.de] has joined #sbcl 23:43:07 -!- ASau` [~user@95-25-46-28.broadband.corbina.ru] has quit [Remote host closed the connection] 23:43:29 ASau` [~user@89-178-141-75.broadband.corbina.ru] has joined #sbcl