00:15 (quit) em: Ping timeout: 240 seconds 00:23 (join) mithos28 00:59 (quit) mithos28: Quit: mithos28 01:06 offby1: joeshmo: "find", probably 01:06 offby1: rudybot: doc find 01:06 rudybot: *offby1: no docs for a current binding, but provided by: unstable/find, srfi/1, rnrs/lists-6 01:06 offby1: rudybot: (require srfi/1) 01:06 rudybot: *offby1: Done. 01:06 offby1: rudybot: doc find 01:06 rudybot: *offby1: http://docs.plt-scheme.org/srfi-std/srfi-1.html#find 01:18 (quit) mwolfe: Remote host closed the connection 01:36 (join) stis 03:03 (join) Yann 03:03 (nick) Yann -> Guest15947 03:04 (quit) Guest75957: Ping timeout: 276 seconds 03:33 (quit) stis: Ping timeout: 250 seconds 04:32 (join) Prometheus_ 04:33 Prometheus_: rudybot: (string->list "a") 04:33 rudybot: Prometheus_: ; Value: (#\a) 04:33 Prometheus_: why does that function add the '#/' before the character 04:33 Prometheus_: I need it to be just the char :\ 04:33 Prometheus_: rudybot: (string->list "abc") 04:33 rudybot: Prometheus_: ; Value: (#\a #\b #\c) 04:45 (quit) chturne: Ping timeout: 265 seconds 04:47 Prometheus_: ahh I see how this works 04:47 Prometheus_: :) 04:48 Prometheus_: rudybot: (string #\a #\space #\ 'space) 04:48 rudybot: Prometheus_: error: string: expects type as 4th argument, given: space; other arguments were: #\a #\space #\space 04:48 Prometheus_: member:rudybot: (string #\a #\space #\ space) 04:48 Prometheus_: rudybot: (string #\a #\space #\ 'space) 04:48 rudybot: Prometheus_: error: string: expects type as 4th argument, given: space; other arguments were: #\a #\space #\space 04:49 Prometheus_: rudybot: (string #\a #\space #\space) 04:49 rudybot: Prometheus_: ; Value: "a " 04:49 Prometheus_: member:rudybot: (string #\a #\space space) 04:50 Prometheus_: rudybot: (string #\a #\space space) 04:50 rudybot: Prometheus_: error: reference to undefined identifier: space 04:50 (quit) Prometheus_: Quit: Prometheus_ 05:04 (quit) rien: Ping timeout: 276 seconds 05:05 (join) rien 05:52 (quit) incandenza: Remote host closed the connection 05:54 (join) mceier 06:14 (quit) rien: Remote host closed the connection 06:14 (join) rien 06:27 (join) PLT_Notify 06:27 PLT_Notify: racket: master Mike Sperber * 85e02db (1 files in 1 dirs): Tweak world to enable interoperability with DMdA gui teachpack. - http://bit.ly/elVi5E 06:27 (part) PLT_Notify 06:51 (quit) rien: Remote host closed the connection 06:51 (join) rien 07:11 (join) MayDaniel 07:19 (join) lucian 07:21 (quit) lucian: Remote host closed the connection 07:23 (join) em 07:45 (join) masm 07:56 (quit) em: Ping timeout: 240 seconds 08:04 (join) chturne 08:38 (join) mithos28 09:12 (quit) mithos28: Quit: mithos28 09:34 rapacity: is there a built-in function for checking file equality ? 09:37 Lajla: rapacity, defie 'file equality' 09:37 rapacity: err all the bytes in a file 09:37 Lajla: Ah, so its path shouldn't? 09:37 rapacity: being equal to another 09:37 rapacity: the file can have a different path 09:41 (join) anRch 09:43 rapacity: and another question, I wrote a couple of functions for checking if the bytes in 2 files are equal one uses read-byte and compares the bytes stopping where there's a difference, the other hashes using sha1 and compares the hashes 09:43 rapacity: the read-byte one was 23x slower 09:44 rapacity: I would've thought that using a hash function would take more computation 09:44 rapacity: http://pastey.net/144952-23fs 09:52 (join) mithos28 09:53 (quit) CoolgyFurlough: 10:10 (quit) rien: Ping timeout: 265 seconds 10:10 (join) rien 10:11 (join) emma 10:11 (nick) emma -> em 10:23 Lajla: rapacity, so, only the contents 10:23 Lajla: not the title, creation time, last update time, priveledges ad all that fancy stuff? 10:32 rapacity: only the contents 10:50 (quit) chturne: Read error: Connection reset by peer 11:04 (quit) anRch: Quit: anRch 11:11 (join) dnolen 11:22 (quit) mceier: Quit: leaving 11:28 (join) Sam___ 11:29 (join) Yann 11:30 (quit) Guest15947: Ping timeout: 265 seconds 11:30 (nick) Yann -> Guest88089 11:32 (quit) mithos28: Quit: mithos28 11:34 offby1: rapacity: I'd have thought so, too. 11:34 Sam___: Can someone write me a function what can calculate a cross product ? 11:34 offby1: rapacity: perhaps your reading isn't buffered, but sha1 properly buffers 11:35 offby1: Sam___: https://gist.github.com/781926 11:37 (join) mithos28 11:38 Sam___: thx 11:46 askhader: Where can I find the latest on racket development for the Android `os` ? 11:51 bremner: fwiw, I have never heard of such an effort. 11:52 bremner: racket doesn't use the JVM, which might put a wrench in things. 11:52 askhader: Interesting. Perhaps it was for scheme then.. 11:53 bremner: there are various scheme-like things on JVM. 11:53 rapacity: perhaps you were thinking of moby ? 11:54 rapacity: http://planet.racket-lang.org/package-source/dyoo/moby.plt/3/9/planet-docs/manual/index.html 11:54 rudybot: http://tinyurl.com/4c2786p 11:54 bremner: ah, that sounds plausible. 11:57 askhader: Yeah that's what I was thinking of, thank you sir. 12:01 rapacity: offby1: I think the buffering is on, because when I set file-stream-buffer-mode to 'none it becomes 135x slower 12:04 offby1: ow 12:05 offby1: well, I don't understand what's going on, but I bet you'll speed things up if you first compare the files' _sizes_, and only start comparing their actual _bytes_ if the sizes are equal. 12:06 offby1: you could run both your program, and the sha1 program, under 'strace', and see what they're doing differently at a low level. 12:06 (join) mwolfe 12:07 rapacity: yeah I'm doing that, I think you were right about the buffer thing, I loaded the whole file to memory and that speeded up the whole thing 12:08 (join) rexim 12:09 rapacity: ok now I'm doing (bytes=? (port->bytes port-1) (port->bytes port-2)) 12:10 rapacity: now it's 1.5x faster than the sha1 :p 12:10 rapacity: yay 12:12 offby1: that was easy 12:13 (join) jonrafkind 12:13 rapacity: though for some reason it hops between being 3x slower and 1.5x faster :p than the sha1 12:13 rapacity: while the sha1 is consistent in performance 12:16 bremner: rapacity: are you garbage collecting? 12:19 rapacity: I wasn't 12:19 rapacity: ah the gc is adding all the time 13:28 (join) aw_ 13:32 (join) epochwolf|2 13:35 (quit) aw_: Quit: Page closed 13:39 (quit) MayDaniel: 13:44 (quit) dnolen: Quit: dnolen 13:46 (join) anRch 14:05 (join) PLT_Notify 14:05 PLT_Notify: racket: master Mike Sperber * 1b97013 (1 files in 1 dirs): In QuickCheck, fix bug in lift->generator. ... - http://bit.ly/hALxxP 14:05 (part) PLT_Notify 14:07 (quit) rexim: Remote host closed the connection 14:08 (quit) mithos28: Quit: mithos28 14:13 (quit) anRch: Quit: anRch 14:16 (quit) Sam___: Quit: Page closed 14:18 (quit) jonrafkind: Read error: Operation timed out 14:31 (join) mithos28 14:34 (join) MayDaniel 14:37 (join) dnolen 14:43 (quit) mithos28: Quit: mithos28 14:44 (join) mithos28 14:57 (join) traisen 14:57 (quit) traisen: Client Quit 15:19 (join) jonrafkind 15:38 (join) PLT_Notify 15:38 PLT_Notify: racket: master Matthew Flatt * b1e13e7 (1 files in 1 dirs): fix `codeblock' linking ... - http://bit.ly/hnruvp 15:38 (part) PLT_Notify 15:55 (quit) MayDaniel: Read error: Connection reset by peer 16:00 (quit) Demosthenes: Quit: leaving 16:02 (quit) mwolfe: Remote host closed the connection 16:06 (join) mwolfe 16:13 mithos28: Does anyone know what is supposed to happen if the error escape handler doesn't actually escape but tries to return a value? 16:15 mithos28: In DrRacket I get a hang, and in racket i get a message and then the process dies with an error code of 1 16:25 (quit) mithos28: Quit: mithos28 16:28 (join) mithos28 16:35 (join) dunkel^ 16:35 dunkel^: hi 16:35 dunkel^: got a quick question 16:36 dunkel^: is there something like curry, but not to bind the first parameters but a certain one (second of two in this case) 16:38 offby1: not that I know of. 16:38 offby1: I suspect you can mix and match "curry" with "curryr" to get what you want 16:38 offby1: but after a certain point, it's probably clearer to just write a plain lambda expression 16:53 (join) mceier 16:57 dunkel^: curryr might just be what I want 16:57 dunkel^: didn't know about that one 16:59 (quit) mwolfe: Remote host closed the connection 17:00 offby1: rudybot: ((curry cons 2) 'frotz) 17:00 rudybot: *offby1: ; Value: (2 . frotz) 17:00 offby1: rudybot: ((curryr cons 2) 'frotz) 17:00 rudybot: *offby1: ; Value: (frotz . 2) 17:03 (join) MayDaniel 17:26 rapacity: there's also cut 17:26 rapacity: from srfi/26 17:27 rapacity: rudybot: (require srfi/26/cut) 17:27 rudybot: rapacity: your sandbox is ready 17:27 rudybot: rapacity: Done. 17:28 rapacity: rudybot: ((cut cons <> 2) 1) 17:28 rudybot: rapacity: ; Value: (1 . 2) 17:34 offby1: I abandoned "cut" once I learned about curry 17:34 fds: There has to be a cookery joke in there somewhere! 17:39 Lajla: rudybot, (eqv? (compose) values) 17:39 rudybot: Lajla: your sandbox is ready 17:39 rudybot: Lajla: ; Value: #t 17:39 Lajla: offby1, see 17:41 (quit) MayDaniel: Read error: Connection reset by peer 17:48 offby1: Lajla: didn't that break the bot last time you tried? 17:48 offby1: fds: I know, I searched for one for a while, but then gave up 17:48 offby1: rudybot: (eq? (compose) values) 17:48 rudybot: *offby1: ; Value: #t 17:48 offby1: *shrug* 17:48 offby1: phase of the moon, I guess 17:50 fds: offby1: Indeed, it's harder than it looks. 17:52 Lajla: offby1, see 17:52 Lajla: it works 17:52 Lajla: I tolld you 17:52 Lajla: rudybot: (compose) 17:52 rudybot: Lajla: ; Value: # 17:52 Lajla: rudybot, is the values procedure simply an n-ary identity function? 17:52 rudybot: Lajla: I was referring to n-ary EXPT. 17:54 offby1: rudybot: you want fries with that? 17:54 rudybot: *offby1: right, french fries and "home made" mayo at the dutch pub is pretty nice 18:16 (join) CoolgyFurlough 18:17 (join) dnolen_ 18:18 (quit) dnolen: Ping timeout: 240 seconds 18:18 (nick) dnolen_ -> dnolen 18:28 (quit) Guest88089: Ping timeout: 260 seconds 18:28 (join) Yann 18:28 (nick) Yann -> Guest16438 19:06 (quit) dunkel^: Quit: Hast du die T?r zu gemacht oder ist da dunkel? 19:32 (join) meltingwax 19:32 (quit) mithos28: Quit: mithos28 19:33 meltingwax: is there a preferred procedure i can use to hash passwords, say for storing in a database? 19:33 offby1: there's a planet package for HMAC-SHA1; that's probably the right thing 19:33 offby1: I think you'd generate a "salt", and store that along with the hash 19:34 meltingwax: offby1: cool, thanks! 19:42 (join) mithos28 19:44 (quit) mithos28: Client Quit 20:03 (quit) masm: Quit: Leaving. 20:16 (quit) mceier: Quit: leaving 21:13 (join) mithos28 21:14 (join) PLT_Notify 21:14 PLT_Notify: racket: master Matthew Flatt * 113e49a (3 files in 3 dirs): extend `date->seconds' and `find-seconds' to work with UTC ... 21:14 PLT_Notify: racket: master Matthew Flatt * 090f82c (1 files in 1 dirs): fix `codeblock' interaction with reader macros ... 21:14 PLT_Notify: racket: master Matthew Flatt * 21eee45 (3 files in 3 dirs): fix `read-language' when input has only comments 21:14 PLT_Notify: racket: master Matthew Flatt * c8e3d45 (2 files in 2 dirs): make `codeblock' work without a #lang line ... 21:14 PLT_Notify: racket: master commits b1e13e7...c8e3d45 - http://bit.ly/eS5SOz 21:14 (part) PLT_Notify 21:20 (join) gcr 21:20 gcr: Hey there! Is there a way to convert a string into a Basic Latin string? E.g. (string-utf8->string-basic-latin "Ångström") => "Angstrom" 21:21 gcr: or just characters? 21:21 offby1: I think you'd convert bytes-utf8->string, then string->bytes-latin 21:21 offby1: not that those are actual procedures 21:21 offby1: but the conversion lets you specify an encoding, I'm pretty sure. 21:21 offby1: oooh wait 21:22 offby1: you're talking about converting one character into another that is somehow similar 21:22 offby1: i.e., Å => A 21:22 offby1: no idea how to do that 21:22 offby1: not even sure it's possible 21:22 gcr: Hm, alright. 21:23 offby1: you might need to build a giant map 21:24 (quit) mithos28: Quit: mithos28 21:24 gcr: Oh. Ew. Instead, is there an easy way of telling whether my string contains such non-latin characters? 21:25 gcr: e.g. (= (string-length string) (bytes-length (string->bytes string))) probably wouldn't be what I want for values between 128 and 255, but close 21:26 gcr: anything better than (not (regexp-match? #rx"[^a-zA-Z]" string)) 21:27 (join) mithos28 21:27 offby1: here's a crude way to do it (something like this might already be built-in; I dunno): 21:27 offby1: here's a crude way to do it (something like this might already be built-in; I dunno): https://gist.github.com/782407 21:28 gcr: Oh! Clever. 21:28 offby1: I dunno that my way is any better than yours, though 21:28 gcr: meh... blame Scrabble for not including an Å tile 21:29 gcr: Many thanks 21:31 (quit) em: Remote host closed the connection 21:37 (quit) mithos28: Quit: mithos28 21:53 (quit) jonrafkind: Ping timeout: 265 seconds 21:54 (join) PLT_Notify 21:54 PLT_Notify: racket: master Matthew Flatt * 15381e7 (1 files in 1 dirs): fix type mismatch in plot binding ... - http://bit.ly/ehrVxa 21:54 (part) PLT_Notify 21:54 (join) aw_ 21:55 aw_: Is there a version of copy-files that won't throw an exception if the target already exists? 21:56 aw_: ...I mean copy-file (singular) 22:10 (join) emma 22:23 (quit) aw_: Ping timeout: 265 seconds 22:24 (nick) emma -> em 22:30 (join) PLT_Notify 22:30 PLT_Notify: racket: master Matthew Flatt * 07a7916 (2 files in 1 dirs): fix `string-ref' and `bytes-ref' error message ... - http://bit.ly/e6NUgn 22:30 (part) PLT_Notify 22:32 (join) mithos28 22:33 (quit) mithos28: Client Quit 22:35 (join) mithos28 22:36 (quit) gcr: Quit: leaving 23:48 (quit) CoolgyFurlough: Ping timeout: 264 seconds