00:03 (quit) kofno: Remote host closed the connection 00:04 (join) RacketCommitBot 00:04 RacketCommitBot: [racket] plt pushed 1 new commit to master: https://github.com/plt/racket/commit/f42cc6f14aec8a46f9f5c3ff801cd6570a2d55b7 00:04 RacketCommitBot: racket/master f42cc6f Neil Toronto: Fixed major performance issue with matrix arithmetic; please merge to 5.3.2... 00:04 (part) RacketCommitBot 00:04 (part) sw2wolf: "ERC Version 5.3 (IRC client for Emacs)" 00:04 (join) adu_ 00:06 (nick) adu_ -> adu 00:10 (join) kofno 00:11 (join) vu3rdd 00:11 (quit) vu3rdd: Changing host 00:11 (join) vu3rdd 00:15 (join) myx 00:15 (quit) kofno: Ping timeout: 240 seconds 00:19 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 00:19 (quit) myx: Read error: Connection reset by peer 00:19 (join) myx_ 00:20 dented42: the futures visualizer will tell me on what operation a future blocks, but I'm asking something a bit more fundamental. What is it about futures and arithmetic that causes some mixed-type arithmetic block? 00:25 (quit) myx_: Ping timeout: 256 seconds 00:28 (quit) tcsc: Quit: bye! 00:29 (join) myx 00:29 (quit) Fare: Quit: Leaving 00:30 (quit) Kaylin: Quit: Leaving. 00:33 (quit) myx: Read error: Connection reset by peer 00:36 (join) bjz 00:36 (quit) bjz: Client Quit 00:38 (join) myx 00:40 (quit) myx: Client Quit 00:40 (join) myx 00:42 lewis1711: "lol.cpp::37: read: cannot begin with `e' in efine 00:42 lewis1711: " weird error message when doing (file->list "lol.cpp") 00:44 lewis1711: I can file->string just fine 00:44 lewis1711: a bug? 00:44 didi: lewis1711: It uses `read'. 00:44 didi: lewis1711: If you don't provide any `proc'. 00:44 lewis1711: and what's wrong with read? :) 00:45 didi: lewis1711: It expects datums. 00:45 lewis1711: huh :/ 00:46 lewis1711: why would it expect datums? 00:46 didi: lewis1711: Because it's `read'. ;^) 00:46 (quit) jao: Ping timeout: 245 seconds 00:46 didi: Like in REPL. 00:46 didi: ReadEPL. 00:47 didi: Read Eval Print Loop 00:47 (quit) myx: Ping timeout: 246 seconds 00:48 lewis1711: that's a sort of weird default use-case for file->string 00:49 didi: ITYM `file->list' 00:50 lewis1711: yes 00:50 lewis1711: my mistake 00:50 didi: lewis1711: You might want to try `file->lines'. 00:51 didi: Maybe that's what you expected. 00:51 lewis1711: aha 00:51 lewis1711: that's what I wanted, thanks did 00:51 didi: :^) 00:52 lewis1711: someone on reddit is wrong about racket and they need to be educated >( 00:58 (join) dnolen 01:00 (join) myx 01:06 neilv: http://xkcd.com/386/ 01:07 lewis1711: neilv, yes that's what I was thinking of too :) 01:08 lewis1711: http://www.reddit.com/r/programming/comments/16xz2e/realm_of_racket_an_illustrated_guide_to_a_modern/c81bhr0 01:08 lewis1711: I have two goals on reddit: to convince people that racket is amazing, and to convince people that python is garbage. it's thankless work but someone has to do it. 01:08 rudybot: http://tinyurl.com/borketm 01:12 (join) myx_ 01:15 (quit) myx: Ping timeout: 252 seconds 01:15 (quit) dnolen: Remote host closed the connection 01:21 neilv: python isn't garbage. it was just only intended to be a scripting language for the casual programmers, and things got out of hand 01:22 (quit) Nisstyre: Ping timeout: 246 seconds 01:24 lewis1711: that is a great description of python 01:24 adu: that describes most languages 01:25 adu: I'd like someone to design a huge language from the start 01:25 (quit) Demosthenex: Ping timeout: 244 seconds 01:25 lewis1711: racket seems to be able to deal with added complexity well 01:26 neilv: racket starts with scheme (a small language, but not a dumbed-down scripting one), and goes from there 01:27 lewis1711: I thought it was quite a small language until last year 01:27 neilv: java was intended to be a real app development language from the start. it got dumbed down *afterwards* 01:27 adu: how hard would it be to write a lang-module like "r6rs" for "r7rs"? 01:27 adu: neilv: srsly? 01:28 adu: neilv: pointers? references? 01:28 neilv: java was a decent language initially. then it got perverted in a few ways, mainly due to its popularity and who picked it up 01:28 lewis1711: I was going to say "I like java". but I think what I really mean is "I like the JVM and netbeans" 01:28 adu: are you talking about sun? 01:28 adu: or oracle? 01:29 neilv: way before oracle 01:29 (join) myx__ 01:29 (quit) myx_: Ping timeout: 248 seconds 01:29 adu: neilv: who picked it up then? 01:30 neilv: the problem is, it got picked up by the kinds of developers who were traditionally corporate MIS programmers, who were usually the clerk typists of software development 01:31 neilv: and it got wildly popular. so some good things were done, but some dumb things. and the development community, percentage-wise, is probably the least-smart i have ever seen 01:31 adu: hmm 01:31 adu: sounds like that enterprise integration stuff 01:31 neilv: contrast with something like haskell, where you there is a big bar to entry, and people *don't* do it because they want a job 01:32 (quit) mceier: Quit: leaving 01:32 neilv: going back to racket, racket could appeal to the masses, but the trick is to elevate the masses, rather than dumb-down 01:33 (join) myx_ 01:33 adu: I think the biggest barier to that is consistant module support 01:33 adu: for scheme that is 01:34 neilv: i think it's a bit more complicated than that 01:35 neilv: i had a book project that i thought would do just the right thing to appeal to large numbers of the right kind of developer for racket, but got burnt out on that idea 01:35 adu: ouch 01:35 lewis1711: there are a few things in racket that make me think "hmm.. why?" 01:35 lewis1711: like accessing members of a struct 01:36 (quit) myx__: Ping timeout: 272 seconds 01:36 lewis1711: (a few things compared to... half the things in just about every other language :P) 01:36 adu: I also think that racket and clojure should cross-polinate :) 01:36 (join) Nisstyre 01:37 (quit) didi: Ping timeout: 248 seconds 01:37 lewis1711: neilv, as a partial member of the dumbed down masses, the biggest issue for me is that noone uses it. I mean there's the docs, and you guys, but for other langauges I can google stuff and get 100s of ways of doing something. where as often in racket I am really lost. so it's like a critical mass thing 01:37 lewis1711: once it's pointed out how to do something it's often pretty simple 01:38 neilv: lewis1711: yes, the critical mass is understood 01:38 adu: I wonder what percentage of programmers would remain if google went out of business 01:39 adu: I would certainly stop being a php programmer 01:39 neilv: you mean, if google sealed the exits and set their employees on fire? how many programmers would be left alive outside? 01:39 adu: although, I do have a backup of php docs somewhere 01:39 neilv: oh 01:40 adu: I mean if it was impossible to google library docs, how many programmers would continue to function 01:40 neilv: lots. it's not that hard. lots of people taught themselves to program from paper books when they were 12 01:41 adu: so you think 90%? 01:41 lewis1711: adu, I don't think I would. or at least I'd find it really hard do begin with. maybe I'd adapt 01:41 neilv: also, people used work places where they would ask coworkers questions, rather than google 01:42 adu: I think closer to 60% 01:42 adu: I must be a pessimist 01:42 neilv: so, the more knowledgeable developers were even more valuable, as gurus 01:43 neilv: not only could they make better things than others, but others relied on them for help 01:43 lewis1711: is IRC down as well in this scenario? :) 01:44 adu: I have backup docs for CLHS, scheme (and 7 impl-specific docs) python (2 & 3) posix (susv3 & susv4), java, java3d, grails, and a bunch of HTML/CSS specifications 01:45 adu: just in case W3C goes out of business 01:46 neilv: you also need a really good faraday cage, for the emp 01:46 lewis1711: like the software equivalent if someone stockpiling ammunition in an underground bunker 01:46 adu: neilv: good point 01:46 adu: lewis1711: basically 01:47 adu: also, now google will never know what I'm working on :) 01:49 adu: lewis1711: no, I didn't say "if internet goes down", just "google out-of-business" 01:49 (quit) myx_: Ping timeout: 252 seconds 01:50 adu: and the most likely scenario for the internet going down is just the DNS servers, which means you might be able to continue with pure IP 01:51 (join) myx_ 01:52 adu: so stockpileing IP address might also be prudent 01:52 neilv: actually, i just thought of a prepper connection for racket 01:53 neilv: but it's complicated to explain without giving the wrong idea 01:53 adu: then don't, *they might be watching* 01:53 adu: lol 01:54 neilv: it's not the crazy gun-nut kind of prepper connection, but a long explanation, and i have to get back to kindle hacking 01:55 (join) myx__ 01:55 adu: hey I resemble that remark 01:55 adu: not the crazy part, of course 01:56 (quit) myx_: Ping timeout: 248 seconds 01:59 (quit) myx__: Ping timeout: 252 seconds 02:01 (join) Demosthenex 02:03 (join) snowylike 02:21 (quit) jonrafkind: Ping timeout: 252 seconds 02:32 (join) mceier 02:41 (quit) Demosthenex: Ping timeout: 256 seconds 02:43 (quit) otterdam: Ping timeout: 276 seconds 02:43 (join) otterdam 02:44 (join) Demosthenex 02:48 (join) bitonic 02:49 (quit) gridaphobe: Remote host closed the connection 02:50 (join) gridaphobe 02:50 (join) mithos28 02:55 (quit) gridaphobe: Ping timeout: 256 seconds 02:57 (quit) bitonic: Ping timeout: 255 seconds 02:58 lewis1711: I've been doing way too much java recently. time to write a little utility program in racket. 03:03 lewis1711: is there anyway to filter out the directories from "directory-list"? 03:05 lewis1711: (filter file-exists? (directory-list)) 03:12 (join) RacketCommitBot 03:12 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/sZC40A 03:12 RacketCommitBot: racket/master c298062 Matthew Flatt: racket/match: add doc note on `for-syntax' exports 03:12 (part) RacketCommitBot 03:13 Cryovat: lewis1711: Sure you don't need a factory with that? ;) 03:14 lewis1711: LOL 03:14 Cryovat: Sorry, it's too easy to take cheap shots at Java ;) 03:14 (quit) mithos28: Quit: mithos28 03:15 Cryovat: I'm looking forward to the day you can write Android apps in Clojure 03:19 lewis1711: racket has made me too xenophobic against other lisps. sometimes I go to try them but then I'm like "no contracts? unit tests? pattern matching? sequence comprehensions? meh...") 03:20 (join) gridaphobe 03:21 Cryovat: Hehe 03:22 Cryovat: Personally I'd trade contracts for full Typed Racket support 03:22 (join) hkBst 03:23 lewis1711: I always thought that they should be merged. 03:23 Cryovat: Me too 03:23 Cryovat: It feels like duplicated effot 03:23 Cryovat: *effort 03:24 Cryovat: Simple contracts are just basic types, complex ones opaque ones 03:26 (quit) noam_: Read error: Connection reset by peer 03:27 (join) noam_ 03:27 (join) sw2wolf 03:28 (part) sw2wolf: "ERC Version 5.3 (IRC client for Emacs)" 03:29 (quit) gridaphobe: Ping timeout: 244 seconds 03:30 (quit) Demosthenex: Ping timeout: 246 seconds 03:31 (join) hkBst_ 03:32 (quit) hkBst: Ping timeout: 272 seconds 03:32 (join) Demosthenex 03:37 (join) tzafrir_laptop 03:41 lewis1711: "(define (directory->files path) 03:41 lewis1711: (filter file-exists? (directory-list path)))" - why doesn't that work unless I've cd'd into it from racket? 03:42 lewis1711: hmm looks like I misunderstand "file exists" 03:43 Cryovat: I guess directory-list doesn't give full paths? 03:45 (join) sw2wolf 03:48 lewis1711: > (car (directory-list "/home/lewis/Music")) 03:48 lewis1711: # 03:48 lewis1711: > (file-exists? (car (directory-list "/home/lewis/Music"))) 03:48 lewis1711: #f 03:49 lewis1711: Cryovat, you're probably right 03:50 lewis1711: (file-exists? (car (directory-list "/home/lewis/Music" #:build? #t))) 03:50 lewis1711: that works ^_^ 03:53 (join) grettke 04:01 (join) tilde` 04:04 (join) myx 04:05 (quit) tilde`: Read error: Connection reset by peer 04:06 (quit) rmathews: Quit: ... 04:07 (join) myx_ 04:09 (quit) Demosthenex: Ping timeout: 260 seconds 04:09 (quit) myx: Ping timeout: 272 seconds 04:10 (quit) myx_: Read error: Operation timed out 04:12 (part) sw2wolf: "ERC Version 5.3 (IRC client for Emacs)" 04:13 (join) myx_ 04:13 (join) Demosthenex 04:17 (join) myx__ 04:18 (quit) myx_: Ping timeout: 255 seconds 04:22 (join) myx_ 04:22 (quit) myx__: Ping timeout: 240 seconds 04:26 (join) myx__ 04:27 (quit) myx_: Read error: Operation timed out 04:29 (join) bniels 04:29 (join) bitonic 04:35 (join) mye 04:35 (join) myx_ 04:36 (quit) myx__: Ping timeout: 260 seconds 04:39 (quit) grettke: Quit: Leaving 04:40 (join) tilde` 04:40 (quit) bitonic: Ping timeout: 252 seconds 04:43 (quit) myx_: Ping timeout: 272 seconds 04:43 (join) myx_ 04:46 (join) pinupgeek 04:48 (quit) myx_: Ping timeout: 260 seconds 04:52 (join) myx 04:57 (join) myx_ 04:58 (quit) myx: Ping timeout: 244 seconds 05:04 (join) tilde`_ 05:04 (quit) tilde`: Read error: Connection reset by peer 05:07 (quit) tilde`_: Client Quit 05:08 (join) myx__ 05:08 (quit) myx_: Read error: Connection reset by peer 05:12 (quit) myx__: Read error: Operation timed out 05:16 (join) tilde` 05:21 (join) shriphani_ 05:25 (join) gridaphobe 05:26 (quit) pinupgeek: Quit: pinupgeek 05:33 (quit) gridaphobe: Ping timeout: 251 seconds 05:43 shriphani_: Hi. I am trying to use a lang other than racket from geyser (i.e. #lang at-exp racket or #lang lazy) and Geiser always responds with racket@> ,enter "/tmp/foo.rkt" 05:43 shriphani_: get-module-code: no such file: # Is there a solution to this problem? I'd rather work in emacs and with a good repo as opposed to Dr. Racket 06:08 lewis1711: might be more of an emacs problem 06:08 lewis1711: dunno, give dr. racket a chance. I didn't used to like it much but it's improved muchly in the past year 06:21 (join) rmathews 06:32 (join) shriphani__ 06:32 (quit) shriphani_: Ping timeout: 252 seconds 06:38 (quit) mye: Quit: mye 07:04 (quit) neilv: Quit: Leaving 07:10 (join) jeapostrophe 07:10 (quit) jeapostrophe: Changing host 07:10 (join) jeapostrophe 07:13 (quit) rmathews: Ping timeout: 272 seconds 07:19 bremner: shriphani__: try geiser 0.3, it has a fix for that bug 07:20 (join) rmathews 07:26 (join) kofno 07:29 lewis1711: hmm I can never make out the code in the racket con videos 07:32 (join) kofno_ 07:34 (quit) kofno: Ping timeout: 260 seconds 07:35 lewis1711: cky, where in new zealand are you from? 07:39 bremner: anyone have an example of using match with a recursively defined type? It seems the result of matching "foo ... 07:40 bremner: is (Listof Any), which is too general 07:47 bremner: I guess one answer might be, don't use "..." 07:47 (join) neilv 07:54 (quit) snowylike: Read error: Connection reset by peer 08:05 (quit) kofno_: Remote host closed the connection 08:13 (join) soegaard 08:19 (join) MightyFoo 08:19 (nick) MightyFoo -> tim-brown 08:20 tim-brown: folks, i'm trying to make an installation with both 3m and cgc libraries (i need cgc for embedding). what are the configure and make steps for that? 08:21 tim-brown: i keep getting errors from the make scripts along the lines of "cannot find thiscgc or thatcgc" 08:21 bremner: I could be wrong, but I have vague memories of you have to choose 08:22 tim-brown: one or the other? 08:22 bremner: that's my memory. 08:23 bremner: but I'd be happy learn otherwise. 08:24 tim-brown: there's a makefile target "plain-install-both" (and install-both) which, at least on my solaris box gives me both 08:25 bremner: oh. Well, I guess I was wrong. 08:37 tim-brown: ahh.. seems i have to "make both", then "make install-both" or "make plain-install-both" 08:41 (quit) vu3rdd: Ping timeout: 244 seconds 08:53 (join) jao 08:53 (quit) jao: Changing host 08:53 (join) jao 08:58 (join) hash_table 09:04 (quit) hash_table: Ping timeout: 256 seconds 09:19 (nick) jrslepak_neu -> jrslepak 09:24 (join) RacketCommitBot 09:24 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/9cDXeQ 09:24 RacketCommitBot: racket/master 7b33298 Jay McCarthy: Adding no-cache to the Web server's default index 09:24 RacketCommitBot: racket/master d071dc4 Jay McCarthy: Clarify http/response docs re: Norman 09:24 (part) RacketCommitBot 09:34 (quit) shriphani__: Ping timeout: 252 seconds 09:39 (join) mizu_no_oto 09:45 (join) anRch 09:50 (join) RacketCommitBot 09:50 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/9ZQCdw 09:50 RacketCommitBot: racket/master 62b8c7a Jay McCarthy: Typo 09:50 (part) RacketCommitBot 09:56 (join) kofno 10:05 (quit) mizu_no_oto: Read error: Connection reset by peer 10:07 (join) mizu_no_oto 10:09 (quit) parcha: Remote host closed the connection 10:11 (quit) bniels: Quit: WeeChat 0.3.8 10:11 (quit) mizu_no_oto: Ping timeout: 245 seconds 10:11 (join) myx 10:11 (join) parcha 10:14 (join) shriphani_ 10:16 (join) snowylike 10:33 (quit) shriphani_: Ping timeout: 256 seconds 10:33 (quit) neilv: Quit: Leaving 10:34 (join) didi 10:35 (join) hash_table 10:37 (join) RacketCommitBot 10:37 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/K9E1fg 10:37 RacketCommitBot: racket/master c02dab0 Matthias Felleisen: typo fixed 10:37 RacketCommitBot: racket/master bcec8bc Matthias Felleisen: history updated for 5.3.2; PLEASE MERGE 10:37 (part) RacketCommitBot 10:42 (join) mizu_no_oto 10:45 (quit) jeapostrophe: Ping timeout: 248 seconds 10:49 (quit) eikonos: Read error: Connection reset by peer 10:49 (join) eikonos 10:49 (quit) eikonos: Read error: Connection reset by peer 10:49 (join) eikonos1 10:56 stamourv: dented42: Re arithmetic and blocking: Here's a paper that describes the implementation of futures in Racket: http://cs.northwestern.edu/~pdinda/Papers/oopsla10.pdf 10:57 stamourv: The short story is that by default, everything blocks, and the runtime system is changed gradually to block in fewer and fewer places. 11:00 (quit) lewis1711: Quit: Leaving 11:01 (quit) anRch: Quit: anRch 11:04 (join) francisl 11:07 (quit) soegaard: Quit: soegaard 11:07 (join) francisl_ 11:08 (join) soegaard 11:11 (quit) francisl: Ping timeout: 256 seconds 11:11 (nick) francisl_ -> francisl 11:25 (quit) sirdancealot: Ping timeout: 246 seconds 11:27 (join) sirdancealot7 11:27 (quit) noelw: Quit: noelw 11:30 (quit) errstr: Quit: ZNC - http://znc.in 11:31 (nick) eikonos1 -> eikonos 11:31 (join) eikonos 11:32 (join) errstr 11:37 (join) ianjneu 11:44 (join) myx_ 11:45 (quit) hkBst_: Quit: Konversation terminated! 11:46 (quit) myx: Ping timeout: 244 seconds 11:54 (join) mithos28 11:57 (quit) mizu_no_oto: Read error: Connection reset by peer 12:02 (quit) tilde`: Ping timeout: 244 seconds 12:07 (join) shriphani_ 12:15 (join) dyoo 12:17 (join) MayDaniel 12:17 (join) jeapostrophe 12:17 (quit) jeapostrophe: Changing host 12:17 (join) jeapostrophe 12:19 (quit) Demosthenex: Read error: Operation timed out 12:21 (join) Demosthenex 12:28 (quit) Shvillr: Ping timeout: 256 seconds 12:29 (join) Shvillr 12:30 (quit) didi: Ping timeout: 248 seconds 12:38 (part) dyoo 12:38 (quit) soegaard: Quit: soegaard 12:39 (join) gridaphobe 12:48 (join) ASau 12:52 (quit) mceier: Quit: leaving 12:55 (join) francisl 13:14 (join) bartbes 13:15 (join) RacketCommitBot 13:15 RacketCommitBot: [racket] plt pushed 2 new commits to release: http://git.io/FosBgQ 13:15 RacketCommitBot: racket/release 5f8c473 Neil Toronto: Fixed major performance issue with matrix arithmetic; please merge to 5.3.2... 13:15 RacketCommitBot: racket/release 42a1012 Matthias Felleisen: history updated for 5.3.2; PLEASE MERGE... 13:15 (part) RacketCommitBot 13:24 (join) Nisstyre-laptop 13:25 (join) eikonos1 13:25 (quit) eikonos: Read error: Connection reset by peer 13:27 (join) didi 13:30 (nick) eikonos1 -> eikonos 13:30 (join) eikonos 13:39 (quit) rmathews: Quit: ... 13:51 (join) shriphani__ 13:53 (quit) gridaphobe: Remote host closed the connection 13:53 (quit) shriphani_: Ping timeout: 255 seconds 13:53 (join) gridaphobe 13:53 (quit) jaimef: Quit: Emacs must have died 13:53 (quit) Nisstyre-laptop: Ping timeout: 256 seconds 13:55 (join) jaimef 13:56 (join) Nisstyre-laptop 13:58 (quit) gridaphobe: Ping timeout: 252 seconds 14:05 (quit) shriphani__: Ping timeout: 248 seconds 14:07 (join) mceier 14:08 cky: later tell lewis1711 I'm from Auckland. As for the code in my RacketCon video, look at github:cky/rackona.git. 14:10 (join) gridaphobe 14:14 (quit) snowylike: Ping timeout: 248 seconds 14:14 (quit) kofno: Remote host closed the connection 14:15 (join) snowylike 14:19 (join) kofno 14:25 (join) dyoo 14:25 samth: dyoo: does the SSL cert on pnr.racket-lang.org work for you now? 14:26 dyoo: let me test... 14:27 dyoo: ok, that's working now. However, there is a weirdness: if I mistype 'pnr' to 'prn', the system automatically redirects me to the main racket-lang web site. I'm not sure this default is right. 14:29 samth: dyoo: i don't get that 14:29 samth: it sends me to a site with an index listing with a single directory called `il` 14:29 dyoo: odd. Let me see if it's just my DNS setting doing something funky on me.. :) 14:29 samth: eli: ping 14:30 samth: eli: currently, all foo.racket-lang.org requests resolve 14:30 asumu: samth: try with https 14:30 samth: eli: and they point to this weird index page with the `il` directory 14:30 asumu: samth: https://prn.racket-lang.org/ redirects to frontpage for me 14:30 dyoo: samth: thanks, yes, that's the behavior I'm seeing. 14:31 samth: eli: and with https it redirects (with a wrong cert) to the main site 14:33 (quit) gridaphobe: Remote host closed the connection 14:34 (join) gridaphobe 14:36 (join) jonrafkind 15:03 (join) snorble_ 15:05 (join) RacketCommitBot 15:05 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/BxcyOA 15:05 RacketCommitBot: racket/master 40d2fd6 Sam Tobin-Hochstadt: Add OrderedAnd patterns, and use them in `?` patterns.... 15:05 (part) RacketCommitBot 15:13 (quit) Nisstyre-laptop: Quit: Leaving 15:15 (join) Kaylin 15:18 (quit) dyoo: Quit: dyoo 15:29 asumu: Hmm, why would Scribble complain to me that `require` from scheme/base is undefined when I (require (for-label racket/base))? 15:29 asumu is thoroughly confused... 15:33 samth: asumu: they might be different 15:34 samth: asumu: nope, they're the same 15:34 asumu: Oh, `cond` has a broken link too. Argh. 15:39 asumu: Maybe I have an info.rkt or something broken somewhere. Ah well. 15:42 (quit) jonrafkind: Ping timeout: 244 seconds 15:44 (quit) kofno: Remote host closed the connection 15:51 (quit) Kaylin: Read error: Connection reset by peer 15:53 (quit) francisl: Ping timeout: 252 seconds 15:55 (quit) cdidd: Read error: Connection reset by peer 15:57 (join) francisl 15:57 (quit) myx_: Quit: ушёл 15:59 (quit) snowylike: Read error: Connection reset by peer 16:01 (join) mizu_no_oto 16:01 (join) kofno 16:02 (join) jonrafkind 16:03 (join) dyoo 16:10 (join) netrino 16:10 (quit) netrino: Remote host closed the connection 16:13 (quit) francisl: Remote host closed the connection 16:13 (join) francisl 16:23 (quit) hash_table: Ping timeout: 256 seconds 16:26 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 16:40 (join) Kaylin 16:42 (join) mye 16:47 (join) anRch 16:53 (join) mizu_no_oto 16:54 (quit) jeapostrophe: Ping timeout: 252 seconds 16:55 (join) soegaard 16:55 (quit) gridaphobe: Remote host closed the connection 16:56 (join) gridaphobe 17:00 (quit) gridaphobe: Ping timeout: 248 seconds 17:05 (join) gridaphobe 17:07 mye: in syntax parse I need to express, a pattern matching only "Z". Just writing it literally doesn't bind a pattern variable, which I need. But using (~bind [z "Z"]) in a (pattern …) gives me pattern: action pattern not allowed here at: (~bind (z "Z")) in: (patter...ax->datum (syntax h))) (syntax->datum (syntax m)))))) (case (attribute sign) (("+") o) (("-") (... 17:08 mye: maybe I must wrap it in another pattern 17:09 stamourv: mye: ~and may be what you want. 17:09 stamourv: Something like: (~and z (~datum "Z")) 17:11 dyoo: mye: following up on stamourv: https://gist.github.com/4599022 17:11 jonrafkind: ive always hated that trick, even in match 17:12 stamourv: jonrafkind: How is that a trick? 17:12 samth: jonrafkind: how is it a "trick"? 17:12 jonrafkind: because its completely non-obvious 17:12 jonrafkind: its an abuse of (and) 17:13 samth: jonrafkind: it's hardly an abuse -- that's the primary use case 17:13 jonrafkind: i thought the primary use case was to make sure the pattern matched multiple things 17:13 jonrafkind: not to bind a variable 17:13 jonrafkind: much like `or' is used to test if it matches at least one pattern 17:14 samth: jonrafkind: i predict that `and` is used that way more than 50% of the time in the code base 17:14 jonrafkind: if the primary use case was to bind a variable then imo it should be called `bind', not `and' 17:15 jonrafkind: i mean certainly the docs do not lead to you believe the use of `and' is to bind a variable 17:15 jonrafkind: oh heh actually it does say that.. oops! 17:16 mye: ~bind should have an example in the docs, maybe it should point to ~and ? 17:17 dyoo: mye: agreed. Actually, just from reading the docs, I have no idea how to use ~bind. :) 17:17 jonrafkind: mye, usually I make things like that a syntax class and do z:Z 17:17 jonrafkind: if you know its going to be bound to "Z" do you really need it to be bound to a variable? 17:18 mye: jonrafkind: I have this in an ~or and compute a value based on whether it matches or not so I need to check for #f 17:18 mye: at least that is how I understand this to be done. It's my first time. 17:21 mye: I have factored the patterns into syntax classes and I got a so many for this one function already. 17:22 mye: Heres what I got to parse timestamps: https://gist.github.com/4599155 17:23 mye: the Z issue is in the offset stx class, there I must compute either 0, or positive/negative offset 17:25 (quit) kofno: Remote host closed the connection 17:31 (join) kofno 17:32 dyoo: mye: oh, sweet. You're definitely doing things with syntax-parse that I haven't learned yet. 17:34 mye: dyoo: ragg gave me the opportunity (as in "pressing need) to loose a bit of the fear I had regarding learning syntax-parse :-) 17:35 mye: the (attribute) vs. (syntax->datum) stuff confuses me still. But having syntax-parse raise exact error messages is a god send 17:35 mye: At first I spend a couple wasted hours in the lexer trying to enforce bounded repetition for the different message parts 17:35 mye: that was horrible 17:40 (quit) MayDaniel: Read error: Connection reset by peer 17:48 (quit) mizu_no_oto: Ping timeout: 248 seconds 17:49 (quit) anRch: Quit: anRch 17:51 soegaard: dyoo: Could define-primitive-splicing-syntax-class be used to solve the datum problem? 17:51 (quit) Kaylin: Read error: Connection reset by peer 17:54 dyoo: soegaard: sorry, I have to admit that I'm very clueless on this 17:55 soegaard: okay, I'll try out my vague idea and see if it works or not 18:15 (quit) francisl: Ping timeout: 252 seconds 18:19 (join) jeapostrophe 18:19 (quit) jeapostrophe: Changing host 18:19 (join) jeapostrophe 18:23 (quit) gridaphobe: Remote host closed the connection 18:23 (join) gridaphobe 18:24 (quit) didi: Ping timeout: 256 seconds 18:28 (quit) gridaphobe: Ping timeout: 264 seconds 18:34 (join) gridaphobe 18:35 (join) mizu_no_oto 18:42 (quit) mizu_no_oto: Ping timeout: 248 seconds 18:43 (join) mizu_no_oto 18:54 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 18:56 (quit) kofno: Remote host closed the connection 19:07 soegaard: dyoo: Is this a solution: (define-syntax-class drawing (pattern (~datum drawing))) and the use _:drawing in the pattern ? 19:09 dyoo: soegaard: I think the objection is having to put annotations on all the things that should be treated literally. But using literal-sets is funky when the syntax objects are entirely without lexical context 19:11 soegaard: A #:daturms corresponding to the #:litereals would of course be a nice solution. 19:12 mye: yes, although I found using syntax classes is what I want to use anyway for the postprocessing of the matches 19:13 dyoo: Yes. Maybe I'm missing something in ragg, that it should have an option in parse to get its lexical context from some syntax. Maybe something like (parse … #:lexical-context #'here) 19:15 soegaard: https://gist.github.com/4600286 19:15 (quit) ianjneu: Remote host closed the connection 19:17 mye: soegaard: good workaround, I didn't know about _: 19:24 (quit) soegaard: Quit: soegaard 19:25 (join) kofno 19:25 (join) dnolen 19:48 (join) Nereid 19:48 (quit) Nereid: Client Quit 19:58 mye: is this rounding error in seconds->date expected? (seconds->date (+ 0.003 (find-seconds 2 0 0 1 2 2013))) I see 3000020 for the nanosecond part instead of 3000000 20:09 (quit) dyoo: Quit: dyoo 20:11 asumu: rudybot: (seconds->date (+ 0.003 (find-seconds 2 0 0 1 2 2013))) 20:11 rudybot: asumu: your sandbox is ready 20:11 rudybot: asumu: error: reference to an identifier before its definition: find-seconds in module: 'program 20:11 asumu: rudybot: (require racket/date) 20:11 rudybot: asumu: Done. 20:11 asumu: rudybot: (seconds->date (+ 0.003 (find-seconds 2 0 0 1 2 2013))) 20:11 rudybot: asumu: error: car: expects argument of type ; given: #f 20:11 asumu: ? 20:11 mye: :-) 20:12 asumu: I see the 20 at the end too. 20:13 mye: asumu: ok, thanks, I'll construct the date* manually. But now I must compute the day of week and day of year manually. Is there some easy way you know of by any chance? 20:14 (join) rmathews 20:14 mye: like another way to construct dates that will fill in the day of week and year fields 20:14 (join) safekeeping 20:15 mye: but it's probably not too hard to implement, I'll have a go 20:17 asumu: mye: if you're on git HEAD, srfi/19 returns date*s now. 20:17 asumu: And doesn't require the week-day/year-day. 20:17 asumu: Or on older Rackets, srfi/19 can tell you a week-day/year-day in general. 20:17 asumu: (but different date struct) 20:17 asumu: rudybot: (date->seconds (seconds->date (+ 0.003 (find-seconds 2 0 0 1 2 2013)))) 20:17 rudybot: asumu: error: car: expects argument of type ; given: #f 20:18 asumu: If that worked, it would show the fraction is ignored for some reason. 20:19 (join) lewis1711 20:21 mye: ah forgot about these functions, thanks asumu for aligning them with racket! 20:22 lewis1711: would there be a way of getting the free space in a drive in racket? would me best bet be an external shell command? 20:23 (join) sw2wolf 20:38 (nick) sw2wolf -> sw2wolf{away} 20:41 (quit) gridaphobe: Remote host closed the connection 20:41 (join) gridaphobe 20:46 (quit) gridaphobe: Ping timeout: 252 seconds 20:51 (quit) jonrafkind: Ping timeout: 255 seconds 21:27 (join) univyrse 21:27 (part) univyrse 21:43 (quit) kofno: Remote host closed the connection 21:46 (join) RacketCommitBot 21:46 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/L_TGHQ 21:46 RacketCommitBot: racket/master d5fe602 Ryan Culpepper: added #:datum-literals, like #:literals but for ~datum patterns 21:46 (part) RacketCommitBot 22:01 (join) Kaylin 22:02 (join) tsion 22:06 (join) kofno 22:10 (quit) kofno: Ping timeout: 252 seconds 22:13 (join) kofno 22:16 (quit) kofno: Read error: Connection reset by peer 22:17 (join) kofno 22:20 (join) adu 22:30 (quit) rmathews: Quit: ... 22:30 (join) ijp 22:45 (quit) jeapostrophe: Ping timeout: 252 seconds 22:55 asumu: greghendershott: BTW, your library has a new user: https://github.com/takikawa/racket-gist 22:56 (quit) tsion: Quit: Leaving 23:00 greghendershott: asumu: Oh, cool. 23:04 asumu: greghendershott: wffi worked pretty great. Though I did have some trouble with `current-markdown-files-path`. 23:04 asumu: Because I had to set it for both phase 0 and 1 to get it to work. 23:04 asumu: (quite possibly I'm just doing something stupid :p) 23:04 (join) rmathews 23:05 greghendershott: asumu: Yeah I was just noticing that in your code, and realizing that aspect is the least battle tested, and wondering if/how I could make that simpler in wffi itself. 23:05 greghendershott: I'm up to my eyeballs in something else right now but will definitely loop back to this. Thanks for trying it. 23:13 greghendershott: asumu: I logged this so I won't forget. https://github.com/greghendershott/wffi/issues/2 Thanks again! 23:14 asumu: NP, and thanks for writing the library. :) 23:20 (quit) adu: Quit: adu 23:25 lewis1711: how do I read the output of a system command? (system) prints stuff to the screen but returns booleans 23:33 asumu: lewis1711: `process` gives you an input port to use. 23:33 (quit) dnolen: Remote host closed the connection 23:35 (quit) Kaylin: Ping timeout: 248 seconds 23:35 (join) gridaphobe 23:38 (quit) ijp: Ping timeout: 256 seconds 23:40 sw2wolf: hello,good afternon 23:56 (join) jonrafkind 23:57 (join) Kaylin