00:00 (join) Demosthenes 00:03 ozzloy: actually, all i really need in this instance is to check (equal? (find-system-path 'run-file) (find-executable-path "racket")) 00:03 ozzloy: find-executable-path == which 00:07 offby1 rubs chin 00:10 loz`: any example of semaphore usage? 00:11 ozzloy: nope, i'm still wrong 00:12 ozzloy: ok, i cave. doing what eli suggested and offby1 does for rudybot 00:14 offby1 cackles evilly 00:15 IKEAnnesP: offby1, don't you ever feel when writing syntax-case that you have absolutely no idea what you are doing but it still works in the end 00:15 IKEAnnesP: Kind of like speaking English. 00:17 ozzloy: offby1, you win this round! 00:19 offby1: IKEAnnesP: I get the "no idea what I'm doing" bit, but not the "still works out" bit. I almost never write macros, and when I do, I generally use "define-syntax", which is the kindergarten version. 00:19 offby1: Any syntax-rules in rudybot were probably written by eli, not me. 00:20 IKEAnnesP: syntax rules is fucking easy to understand 00:20 IKEAnnesP: I feel like syntax-case is so complicated that my concious mind delegated it to my subconscious like with all mind bogglingly complex stuff like maintaing balance and recognising facial expressions 00:21 IKEAnnesP: you know, the kind of stuff you just get right without truly knowing how you get it right, like recognising what odour smells like it's rotten food or what identifies as an object you cn comfortably sit on. 00:35 (quit) jrslepak: Quit: Leaving 00:35 (quit) Demosthenes: Ping timeout: 252 seconds 00:42 (join) Demosthenes 00:52 loz`: argh, how to generate list in racket? for example from 1 to 100? 00:57 ohwow: rudybot: eval (require srfi/1) 00:57 rudybot: ohwow: your sandbox is ready 00:57 rudybot: ohwow: Done. 00:57 ohwow: rudybot: eval (iota 100 1) 00:57 rudybot: ohwow: ; Value: (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100) 00:58 ohwow: there's probably a better way, though 00:58 (quit) malkomalko: Remote host closed the connection 00:58 ohwow: without srfi/1 01:14 (quit) Demosthenes: Read error: Connection reset by peer 01:14 (join) Demosthenes 01:18 asumu: rudybot: eval (build-list 100 identity) 01:18 rudybot: asumu: your sandbox is ready 01:18 rudybot: asumu: ; Value: (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99) 01:19 asumu: loz`: ^ is a way to do it without srfi/1 01:20 asumu: rudybot: eval (for/list ([i 100]) i) 01:20 rudybot: asumu: ; Value: (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99) 01:20 asumu: (and yet another way) 01:29 loz`: asumu: ok, thanks :) 01:37 loz`: is list thread-safe datastructure? 01:41 (quit) Demosthenes: Read error: Connection reset by peer 01:41 (join) Demosthenes 02:03 (quit) freakazoid: Quit: Computer has gone to sleep. 02:04 jonrafkind: list is immutable, so yes 02:12 (join) EmmanuelOga 02:23 (quit) Demosthenes: Read error: Connection reset by peer 02:28 (join) Demosthenes 02:40 (quit) Demosthenes: Ping timeout: 252 seconds 02:41 (join) Demosthenes 02:42 (quit) jonrafkind: Ping timeout: 252 seconds 02:49 (quit) realitygrill: Quit: realitygrill 02:58 (quit) Demosthenes: Read error: Connection reset by peer 03:03 (join) Demosthenes 03:34 (quit) Demosthenes: Ping timeout: 240 seconds 03:37 (join) Blkt 03:38 (quit) Shviller: Ping timeout: 252 seconds 03:38 (join) Shviller 03:45 (quit) mironovd: Read error: Connection reset by peer 03:45 (join) mironovd 03:47 (quit) Blkt: Remote host closed the connection 03:54 (join) Blkt 04:12 (quit) rgrinberg: Remote host closed the connection 04:46 (join) jao 04:55 (quit) EmmanuelOga: Ping timeout: 244 seconds 04:56 (join) sindoc 04:56 (part) sindoc 04:57 (join) sindoc 05:18 (quit) noelw: Quit: noelw 05:30 (join) ahinki 06:00 (join) epsil 06:15 (join) masm 06:47 (join) noelw 06:50 epsil: how do I match a const in a pattern? 06:50 epsil: for example, say I want to match the form (foo bar) 06:50 epsil: I want to match foo followed by the specific symbol bar 06:50 epsil: but (syntax-rules () [(foo bar) ...]) will match foo followed by anything 06:50 epsil: so I'm unable to distinguish (foo bar) from (foo something-else) 06:53 noelw: (syntax-rules (bar) [(foo bar) …] ...) 06:56 epsil: ah, so that's what literal-id is for 06:56 epsil: I overlooked that whole argument :) 07:06 noelw: Easy enough to do! 07:26 (quit) noam_: Read error: Connection reset by peer 07:27 (join) noam_ 07:29 epsil: thanks for the help 07:40 (quit) ahinki: Remote host closed the connection 07:40 (join) ahinki 07:46 (quit) noam_: Read error: Connection reset by peer 07:46 (join) noam_ 08:28 (join) EmmanuelOga 08:42 (quit) ambrosebs: Ping timeout: 240 seconds 08:44 (quit) noam_: Read error: Connection reset by peer 08:44 (join) noam_ 09:17 (join) metadave 09:30 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/GKBXQQ 09:30 RacketCommitBot: [racket/master] When `make-evaluator' receives a path to a file, it allows reading it. - Eli Barzilay 09:30 RacketCommitBot: [racket/master] Remove links to the cookbook and the schematics project. - Eli Barzilay 09:38 (quit) jao: Ping timeout: 240 seconds 09:40 (quit) noam_: Read error: Connection reset by peer 09:45 (quit) acarrico: Remote host closed the connection 09:47 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/ebXrWA 09:47 RacketCommitBot: [racket/master] Bring back the search-the-web paragraph, with a pointer to SO instead. - Eli Barzilay 09:47 (join) jrslepak 09:57 (join) acarrico 10:03 (join) veer 10:13 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/0-8u4w 10:13 RacketCommitBot: [racket/master] add `datum-case', etc. as `syntax/datum' - Matthew Flatt 10:40 (quit) jrslepak: Quit: This computer has gone to sleep 10:41 (join) freakazoid 10:42 (quit) ahinki: Quit: ChatZilla 0.9.87 [Firefox 9.0/20111206234556] 10:42 (quit) veer: Quit: Leaving 11:08 (quit) freakazoid: Quit: Computer has gone to sleep. 11:11 (join) freakazoid 11:12 _p4bl0: hello 11:12 _p4bl0: Is there a way to do what syntax-id-rules can do but with syntax-case? (binding an identifier to a macro) 11:13 (join) JoelMcCracken 11:16 (nick) danking_ -> danking 11:21 noelw: _p4bl0: I don't' understand the question 11:28 _p4bl0: noelw: I'd like to know (but I don't really need it) if it's possible to bind an alone identifier to a macro like syntax-id-rules can do, but using syntax-case 11:29 noelw: I think I understand and I think the answer is yes 11:29 noelw: Instead of a pattern (foo bar ...) 11:29 noelw: try just foo 11:29 (join) samth 11:29 noelw: You can use this to turn a macro into a function, for example, so it can be used in a higher-order context 11:33 _p4bl0: noelw: it doesn't want to work, what am I doing wrong: (define-syntax (foo stx) (syntax-case stx () (foo #'(display "foo")))) ? 11:37 noelw: This works for me: 11:37 noelw: > (define-syntax (foo stx) (syntax-case stx () (foo (identifier? #'foo) #'(lambda () (display "foo!"))))) 11:37 noelw: > foo 11:37 noelw: # 11:39 _p4bl0: mmm it works now, it certainly was something else, strange... anyway, thanks! 11:41 (quit) freakazoid: Quit: Computer has gone to sleep. 11:42 (join) noam 11:46 (join) dnolen 12:01 (quit) sindoc: Quit: Leaving. 12:06 (join) noam_ 12:08 (join) anRch 12:10 (quit) noam: Ping timeout: 255 seconds 12:14 (join) MayDaniel 12:23 (join) jonrafkind 12:26 (quit) Blkt: Quit: ERC Version 5.3 (IRC client for Emacs) 12:31 (join) malkomalko 12:46 (quit) anRch: Quit: anRch 12:54 (join) Emerick 12:57 (join) jao 13:01 Emerick: Hi guys, I have what I think to be a simple racket bug(I tried to run the pyramidstack 1.0 by Mccarthy and I get this error: "send: target is not an object: #f for method: call-as-current"). It has something to do with big-bang, or with the opengl libs, but I followed everyadvice I found on google without success. Thx 13:01 (join) anRch 13:04 (quit) loz`: Remote host closed the connection 13:04 Emerick: can anybody help me pls? 13:05 (join) loz` 13:08 Emerick: Am I at least in the right place to ask these types of questions? 13:08 (quit) JoelMcCracken: Disconnected by services 13:09 (join) JoelMcCr` 13:09 (join) freakazoid 13:09 (nick) JoelMcCr` -> JoelMcCracken` 13:10 (quit) zakwilson: Read error: Operation timed out 13:12 bremner: Emerick: yes to the right place part 13:14 Emerick: thx, any ideea? :) 13:20 (quit) Emerick: Quit: Page closed 13:22 (part) JoelMcCracken`: "ERC Version 5.3 (IRC client for Emacs)" 13:24 bremner: sorry, nope. 13:26 (quit) metadave: Quit: Leaving 13:28 (quit) anRch: Quit: anRch 13:33 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/ERe_zA 13:33 RacketCommitBot: [racket/master] Removing stderr output from archive? - Jay McCarthy 13:33 RacketCommitBot: [racket/master] Apache not in docs - Jay McCarthy 13:35 (join) metadave 13:37 (join) sstrickl 13:49 (nick) chaozzbubi -> ChaozZBubi 14:12 (join) sindoc 14:20 (quit) sindoc: Quit: Leaving. 14:34 (quit) MayDaniel: Read error: Connection reset by peer 14:40 (join) kudkudyak 15:00 (quit) freakazoid: Quit: Computer has gone to sleep. 15:04 (join) freakazoid 15:06 (quit) kudkudyak: Read error: Connection reset by peer 15:08 (join) kudkudyak 15:44 (quit) Shviller: Quit: bye 15:46 (join) Shviller 15:48 (quit) freakazoid: Quit: Computer has gone to sleep. 15:52 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/vhI11Q 15:52 RacketCommitBot: [racket/master] minor refactoring - Robby Findler 15:52 RacketCommitBot: [racket/master] when double clicking in a comment, fall back to word-based instead - Robby Findler 16:00 (join) anRch 16:01 (join) MayDaniel 16:16 (join) tauntaun 16:27 (quit) metadave: Quit: Leaving 16:30 (quit) dobroerlanger: Ping timeout: 258 seconds 16:31 (join) Vir 16:32 (nick) Vir -> Guest68150 16:33 (join) shofetim 16:33 (quit) tauntaun: Remote host closed the connection 16:33 (quit) Guest68150: Remote host closed the connection 16:41 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/Jp8lXA 16:41 RacketCommitBot: [racket/master] Remove "Affiliates" section which is less relevant now. - Eli Barzilay 16:48 ozzloy: sorta off-topic: what programming languages allow you to use unicode, like λ, in your code? 16:49 (quit) kudkudyak: Quit: Leaving. 16:49 stamourv: ozzloy: Racket. ;) 16:49 jonrafkind: fortress supports unicode 16:49 asumu: ozzloy: Haskell as well, off the top of my head. 16:49 stamourv: Some Schemes too, like Gauche. 16:50 ozzloy: ruby? 16:50 asumu: Funny, ocaml REPL errors with "Error: Illegal character" 16:51 asumu: ozzloy: IRB crashes when I try "Θ = 5" 16:51 asumu: (or just exits, not sure what it's doing) 16:52 ozzloy: oh, but you can do print "λ" 16:53 ozzloy: oh maybe it was added in 1.9.2 16:53 chandler: ozzloy: most CL implementations do. (maybe all of the popular ones at this point?) 16:55 jonrafkind: I think all languages should be able to parse a string containing a unicode character 16:55 jonrafkind: since its just an array of bytes 16:55 ozzloy: you'd think so 16:55 jonrafkind: i have ruby 1.8.7 and it works here 16:55 ozzloy: in irb? 16:56 jonrafkind: yea 16:56 ozzloy: like you can do λ = 3? 16:56 ozzloy: mine just exits 16:56 jonrafkind: wait i did print "λ" 16:56 jonrafkind: thats all i meant 16:56 ozzloy: oh, yeah, that's doable 16:56 jonrafkind: yea λ = 3 exits for me 16:56 ozzloy: but λ=3 not so much 16:56 jonrafkind: thats pretty funny actually 16:56 ozzloy: is λ a keyword in racket? 16:56 jonrafkind: i wonder if its just an exit(0) in the lexer, rofl 16:56 jonrafkind: its an identifier like anything else 16:57 ozzloy: ic 16:57 ozzloy: i've seen it used where "lambda" is in the racket source 16:57 jonrafkind: yea its the same thing as lambda 16:57 ozzloy: oh 16:57 ozzloy: lambda isn't a keyword? 16:57 jonrafkind: no there are no keywords in racket 16:57 ozzloy: it's just defined and used that way? 16:57 ozzloy: oh 16:57 jonrafkind: i mean theres a thing called "keywords" but those are different 16:57 ozzloy: heh, yeah not those 16:58 ozzloy: not function argument keywords 16:59 ozzloy: so racket gives you the power to change even the "keywords" 16:59 jonrafkind: yea racket syntax (and scheme) is pretty minimal 16:59 ozzloy: that's cool 16:59 ozzloy: it's just another identifier 16:59 ozzloy: and by convention it means one thing, but you _could_ if you so desired make it mean another 17:00 ozzloy: i really enjoy that. the more i learn about little things in racket, the more i like it 17:00 (quit) stchang: Read error: Connection reset by peer 17:02 (join) stchang 17:02 chandler: Hm, I'm getting "dyld: warning, could not relocate position independent executable" when running executables created by "raco exe" with 64-bit 5.2 on OS X 10.6 17:03 (quit) anRch: Quit: anRch 17:03 ozzloy: i'm guessing arc does unicode code since it's a racket derivative 17:11 (join) slecuyer 17:14 slecuyer: is it possible to use #:servlet-path as a parameter of serve/servlet while using serve/dispatch? 17:16 slecuyer: the problem I'm trying to solve is that I want to use url dispatching all with a common base name. for instance, I want to write handlers for "myurl.com/services/additem" and "myurl.com/services/checkout", but when I try to dispatch with a servlet-path, I get "myurl.com/additem" and "myurl.com/checkout" instead 17:19 (quit) malkomalko: Remote host closed the connection 17:25 (quit) slecuyer: Quit: Lost terminal 17:30 (join) freakazoid 17:54 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/-01tNw 17:54 RacketCommitBot: [racket/master] Missing data character - Jay McCarthy 18:05 ozzloy: does racket have docstrings? like (define (foo) "docstring" body) ? the lambda http://docs.racket-lang.org/reference/lambda.html reference makes no mention of it, so i'm guessing no 18:05 (join) sindoc 18:05 freakazoid: ozzloy: there's scribble 18:05 freakazoid: http://docs.racket-lang.org/scribble/ 18:08 ozzloy: freakazoid, ic ic 18:16 ozzloy: freakazoid, thanks 18:16 freakazoid: sure thing 18:25 (quit) MayDaniel: Read error: Connection reset by peer 18:29 (join) tauntaun 18:29 (nick) tauntaun -> Guest67838 18:31 (quit) Guest67838: Remote host closed the connection 18:32 (join) tauntaun` 18:34 (nick) tauntaun` -> tauntaun 18:37 (quit) tauntaun: Remote host closed the connection 19:06 (join) otzi 19:08 (quit) otzi: Client Quit 19:11 (quit) epsil: Ping timeout: 248 seconds 19:13 (quit) crk: Quit: Leaving 19:19 (quit) dnolen: Quit: Page closed 19:28 (quit) masm: Quit: Leaving. 19:34 (join) sindoc1 19:36 (join) realitygrill 19:37 (quit) sindoc: Ping timeout: 252 seconds 19:44 (join) sindoc 19:45 (quit) sindoc1: Ping timeout: 255 seconds 20:18 (join) sindoc1 20:18 (quit) sindoc: Read error: Connection reset by peer 20:33 (quit) jonrafkind: Ping timeout: 240 seconds 20:57 (join) dnolen 21:27 (join) jrslepak 21:27 (join) grettke 21:35 (quit) sindoc1: Ping timeout: 252 seconds 21:39 (quit) grettke: 22:16 (quit) freakazoid: Quit: Computer has gone to sleep. 22:17 (part) shofetim: "ERC Version 5.3 (IRC client for Emacs)" 23:24 (quit) dnolen: Quit: dnolen 23:29 (quit) jao: Ping timeout: 240 seconds 23:47 (join) jonrafkind