00:48 (quit) mwolfe: Remote host closed the connection 01:10 (nick) Lajla -> Natalkas_pms 01:10 (join) lewis1711 01:11 lewis1711: is there a construct like "try and do (this), if that returns an error, do (this) instead" ? 01:11 (join) cinch 01:11 lewis1711: err, where the two (this) are different things 01:33 (join) cinch- 01:35 (quit) cinch: Ping timeout: 260 seconds 01:38 (quit) cinch-: Ping timeout: 264 seconds 01:40 jonrafkind: lewis1711, `with-handlers', at least with that you could make up such a construct 01:41 lewis1711: thats a starting point, thanks 01:41 (join) cinch- 01:41 lewis1711: I am mainly trying to write a function where you can pass undefined variables in 01:47 Natalkas_pms: jonrafkind, you never answer my quaestions with such love. 02:13 (quit) jonrafkind: Ping timeout: 250 seconds 03:21 (part) lewis1711 04:59 (join) masm 05:03 (join) lucian 05:27 (quit) lucian: Remote host closed the connection 06:11 (quit) cinch-: Ping timeout: 265 seconds 06:13 (join) cinch 06:21 (join) mentus 06:21 mentus: hi all 06:22 mentus: i am new here 06:22 (join) jao 06:22 (quit) jao: Changing host 06:22 (join) jao 06:22 mentus: i am using racket for fun and for refreshing my programming knowledge 06:23 mentus: i got to know about racket/scheme at my university in the first year course 06:23 mentus: i really like this language 06:23 mentus: now i am doing some exercises for my own 06:23 mentus: and i have a concrete question 06:24 mentus: i am exercises with programming tree structures 06:24 mentus: i would like to graphically print the defined trees 06:24 mentus: i was thinking about using the slideshow library 06:24 mentus: do You have any experiences using that for trees? 07:17 eli: mentus: Might not be a best fit, but ask on the list -- there might be some code somewhere. 07:17 mentus: Thanks for tip eli 07:18 mentus: i will take a look, but still try to implement something which can print directly in REPL with standard library 07:18 eli: mentus: Better to start from some existing code. 07:18 eli: BTW, there is code that draws graphs that is used by redex and the module browser. 07:19 eli: It's not using slideshow, and I don't know if it's in shape to be used outside of these tools, but it won't hurt to ask. 07:20 (join) kingping 07:21 kingping: (moin) 07:22 mentus: yes, i saw some post suggesting redex 07:22 kingping: Is there some kind of backtrace info I can add to an exception when raising one to allow a developer debug the code? 07:23 mentus: but for that i need to know how to use regular expressions, don't i? 07:30 Demosthenex: eli: i refuse to believe you sleep 07:33 Demosthenex: so if i'm making a list that i want expanded without the extra braces,ie: (func (1 2 3)) vs (func 1 2 3) where i made a syntax entry of (1 2 3), where do i look? 07:35 kingping: maybe '(1 2 3) or (list 1 2 3) ? 07:36 Demosthenex: *ponder* yeah, i'm still fighting with this syntax thing 07:36 Demosthenex: i think i've got it down pat for individual replacements... 07:36 Demosthenex: i'm trying to make a list of items to pass now, and getting too many layers 07:37 kingping: (map (lambda (x) (+ x)) (list 1 2 3)) ? 07:39 eli: mentus: exceptions already have backtrace information -- that's the continuation marks field, which is a kind of a user-extensible stacktrace thing. 07:39 kingping: rudybot: (map (lambda (x) (+ x)) (list 1 2 3)) 07:39 rudybot: kingping: ; Value: (1 2 3) 07:39 eli: Demosthenex: In this case I'm writing a test, but I do sleep, occasionally. 07:41 kingping: eli: So I suspect I can determine as to where the exception occured, and what functions are called in turn. 07:42 eli: kingping: Yes, roughly. 07:42 eli: rudybot: (define (foo x) (/ x 0)) 07:42 rudybot: eli: your racket sandbox is ready 07:42 rudybot: eli: Done. 07:42 eli: rudybot: (define (bar x) (+ (foo x) 1)) 07:42 rudybot: eli: Done. 07:43 eli: rudybot: (define e (with-handlers ([(lambda (_) #t) values]) (foo 4))) 07:43 rudybot: eli: Done. 07:43 eli: rudybot: (exn-message e) 07:43 rudybot: eli: ; Value: "/: division by zero" 07:43 eli: rudybot: (exn-continuation-marks e) 07:43 rudybot: eli: ; Value: # 07:43 eli: rudybot: (continuation-mark-set->context (exn-continuation-marks e)) 07:43 rudybot: eli: ; Value: ((foo . #(struct:srcloc eval 1 0 1 24)) (call-with-limits . #(struct:srcloc # 333 0 13350 1825)) (call-with-custodian-shutdown . #(struct:srcloc # 383 0 15343 326)) (call-with-break-parameterization . #(struct:srcloc # 158 2 5099 519)) (loop . #(struct:srcloc #context (exn-continuation-marks e))) 07:43 rudybot: eli: ; Value: (foo call-with-limits call-with-custodian-shutdown call-with-break-parameterization loop) 07:43 kingping: Oh great. Thank you eli. ^^ 07:44 eli: That list is your stack trace. 07:44 eli: It's a list of pairs, each one has the name of the function (if any) and its location (again, if any). 07:44 eli: In the above case you see some context from the sandbox that rudybot is making all code run in. 07:47 kingping: Yes, that's helpful 08:12 (quit) jao: Ping timeout: 260 seconds 08:18 (join) MayDaniel 08:25 (join) jao 08:25 (quit) jao: Changing host 08:25 (join) jao 08:27 (join) b-man_ 08:32 (quit) masm: Quit: Leaving. 08:35 (quit) MayDaniel: Read error: Connection reset by peer 08:39 (join) mheld 08:53 (nick) samth_away -> samth 08:55 (quit) b-man_: Remote host closed the connection 08:59 Demosthenex: is there a standard way of naming syntax tamplate vars to id them in the template? 09:06 (join) mceier 09:14 clklein: "to id them in the template"? 09:19 (join) b-man_ 09:20 (quit) Demosthenex: Ping timeout: 265 seconds 09:22 (join) Demosthenes 09:27 Demosthenes: ugh, got knocked 09:28 clklein: Demosthenes: What do you mean by "to id them in the template?" 09:29 Demosthenes: i saw a code piece that did ?var in the templates, i was curious if there was a standard 09:31 clklein: Used the name `?var' for a template variable? No, I wouldn't say that's a convention. 10:08 (quit) Gwyth: Ping timeout: 250 seconds 10:12 (quit) mheld: Quit: mheld 10:18 (join) mheld 10:21 (quit) mheld: Client Quit 10:23 (join) trigen 10:39 (quit) b-man_: Remote host closed the connection 10:53 (quit) kingping: Quit: Vale. 10:55 Demosthenes: hrm. 10:55 Demosthenes: i still can't seem to splice proper 10:57 samth: Demosthenes, can you give an example? 10:58 Demosthenes: samth: yeah, i'm posting to pastebin :P 10:59 (join) mheld 11:02 (join) MayDaniel 11:05 Demosthenes: nm, i got it... 11:05 Demosthenes: was trying to splice using #,@, turned out not needed 11:07 (quit) mheld: Quit: mheld 11:13 Demosthenes: omg, i'm loving scheme. this is what this project should have been all along 11:13 (quit) rapacity: *.net *.split 11:17 askhader: Which project? 11:17 (join) rapacity 11:24 (quit) mentus: Quit: Page closed 11:30 (join) mheld 11:34 (join) anRch 11:38 (quit) mheld: Quit: mheld 12:02 (quit) jao: Ping timeout: 250 seconds 12:06 (quit) anRch: Quit: anRch 12:12 (join) b-man_ 12:14 (join) mwolfe 12:15 (join) lucian 12:15 (quit) mwolfe: Remote host closed the connection 12:15 (join) mwolfe 12:19 (join) anRch_ 12:20 (quit) MayDaniel: 12:24 (join) jonrafkind 12:24 (quit) jsj: 12:28 (join) masm 12:36 (quit) lucian: Read error: Connection timed out 12:37 (join) lucian 12:44 (quit) offby1: Ping timeout: 265 seconds 12:55 (quit) anRch_: Quit: anRch_ 13:02 (join) MayDaniel 13:05 (quit) MayDaniel: Read error: Connection reset by peer 13:05 (join) danbrown 13:09 (join) carleastlund 13:16 (join) mheld 13:37 (quit) danbrown: Remote host closed the connection 14:02 (join) anRch 14:10 (quit) hanDerPeder: Quit: hanDerPeder 14:54 jonrafkind: (require redex) used to necessitate using 'gracket', right? its nice that i can do it in the command line repl now 15:09 clklein: yes, you used to have to use redex/reduction-semantics to avoid the GUI baggage 15:13 (quit) b-man_: Remote host closed the connection 15:14 (join) losvedir 15:17 (quit) em: Ping timeout: 255 seconds 15:45 (quit) losvedir: Quit: losvedir 15:51 (quit) parcs: Ping timeout: 245 seconds 15:53 (join) parcs 15:56 (quit) anRch: Quit: anRch 15:59 (quit) parcs: Read error: Operation timed out 16:00 (join) parcs 16:03 (quit) lucian: Remote host closed the connection 16:05 (quit) parcs: Ping timeout: 240 seconds 16:07 (join) parcs 16:09 (join) losvedir 16:16 Natalkas_pms: jonrafkind, what place does the eval function have in your model? 16:16 Natalkas_pms: Is (eval some-symbol) still a symbol? 16:17 jonrafkind: if some-symbol is bound to an identifier whose value is a symbol it is 16:18 Natalkas_pms: Can strings be bound to identifiers whose values are symbols? 16:18 Natalkas_pms: Immutable strings, that is. 16:18 jonrafkind: no 16:20 Natalkas_pms: Hmm 16:20 Natalkas_pms: jonrafkind, 16:20 Natalkas_pms: But you say that 'jonrafkind is a symbol. 16:20 Natalkas_pms: Surely this cannot be bound to anything? 16:20 Natalkas_pms: Only jonrafkind can 16:20 jonrafkind: ok lets do this later 16:20 Natalkas_pms: No 16:20 Natalkas_pms: =( 16:20 Natalkas_pms: I wish to make you see the evil of your ways. 16:20 Natalkas_pms: So that you can turn 16:33 (quit) Demosthenes: Ping timeout: 240 seconds 16:35 (join) Demosthenes 17:00 (join) petey_ 17:00 (quit) tv|z: Ping timeout: 265 seconds 17:01 (quit) petey_: Client Quit 17:02 (join) tv|z 17:03 (join) petey 17:15 (quit) parcs: Ping timeout: 245 seconds 17:16 (join) parcs 17:40 (nick) mheld -> mheld|wiredin 17:54 (join) em 18:25 (quit) losvedir: Quit: losvedir 18:27 (join) losvedir 18:39 (quit) cinch: Ping timeout: 276 seconds 18:44 (quit) masm: Quit: Leaving. 19:17 (quit) petey: Quit: Leaving 19:26 (quit) mheld|wiredin: Quit: mheld|wiredin 19:34 (nick) Natalkas_pms -> talibs_pms 19:35 (nick) talibs_pms -> pms_ul_talib 19:39 (quit) parcs: Ping timeout: 245 seconds 19:40 (join) parcs 19:42 (quit) mwolfe: Remote host closed the connection 19:52 (part) devinus 19:58 (join) shofetim 20:07 (quit) jonrafkind: Ping timeout: 255 seconds 20:20 (quit) losvedir: Quit: losvedir 20:22 (join) mheld 20:23 Demosthenes: man, thats awesome 20:24 Demosthenes: i think i'm hooked on racket. between the builtin regexp, snooze, and macros, i'm now parsing text reports (ala mainframe) with typechecking, direcly into sql 20:24 Demosthenes: with only the bare minimum code for each ;] 20:42 (quit) mceier: Quit: leaving 20:50 pms_ul_talib: All it needs is a way to forbid republicans how to vote. 20:50 pms_ul_talib: but it'sll get there 20:50 pms_ul_talib: It's totally amazing 21:10 (join) Gwyth 21:47 (quit) Fare: Quit: Leaving 21:49 (quit) Gwyth: Ping timeout: 255 seconds 21:54 (join) b-man_ 22:11 (quit) b-man_: Read error: Connection reset by peer 22:18 (quit) shofetim: Ping timeout: 265 seconds 22:22 (join) offby1 22:37 (join) shofetim 23:00 (part) shofetim: "ERC Version 5.3 (IRC client for Emacs)" 23:26 (quit) carleastlund: Quit: carleastlund 23:27 (quit) mheld: Quit: mheld 23:40 (join) rotty_ 23:40 (join) clklein_ 23:41 (join) em_ 23:52 (quit) parcs: *.net *.split 23:52 (quit) rapacity: *.net *.split 23:52 (quit) abbe: *.net *.split 23:52 (quit) Guest74073: *.net *.split 23:52 (quit) philo: *.net *.split 23:52 (quit) clklein_: *.net *.split 23:52 (quit) martinhex: *.net *.split 23:52 (quit) fmu: *.net *.split 23:52 (quit) sid3k: *.net *.split 23:52 (quit) rudybot: *.net *.split 23:52 (quit) samth: *.net *.split 23:52 (quit) em: *.net *.split 23:52 (quit) clklein: *.net *.split 23:52 (quit) rotty: *.net *.split 23:52 (quit) Demosthenes: *.net *.split 23:52 (quit) pms_ul_talib: *.net *.split 23:52 (quit) Quetzalcoatl_: *.net *.split 23:52 (quit) certainty: *.net *.split 23:52 (quit) spacebat: *.net *.split 23:53 (join) Guest74073 23:54 (join) Demosthenes 23:54 (join) parcs 23:54 (join) rapacity 23:55 (join) clklein_ 23:55 (join) martinhex 23:55 (join) fmu 23:55 (join) sid3k 23:55 (join) rudybot 23:55 (join) samth 23:55 (join) pms_ul_talib 23:55 (join) Quetzalcoatl_ 23:55 (join) certainty 23:55 (join) spacebat 23:56 (join) abbe 23:57 (join) philo 23:57 (quit) philo: *.net *.split 23:57 (quit) abbe: *.net *.split 23:57 (quit) pms_ul_talib: *.net *.split 23:57 (quit) Quetzalcoatl_: *.net *.split 23:57 (quit) certainty: *.net *.split 23:57 (quit) spacebat: *.net *.split 23:57 (quit) clklein_: *.net *.split 23:57 (quit) martinhex: *.net *.split 23:57 (quit) fmu: *.net *.split 23:57 (quit) sid3k: *.net *.split 23:57 (quit) rudybot: *.net *.split 23:57 (quit) samth: *.net *.split 23:57 (quit) parcs: *.net *.split 23:57 (quit) rapacity: *.net *.split 23:57 (quit) Demosthenes: *.net *.split 23:57 (quit) Guest74073: *.net *.split 23:58 (join) philo 23:58 (join) abbe 23:58 (join) spacebat 23:58 (join) certainty 23:58 (join) Quetzalcoatl_ 23:58 (join) pms_ul_talib 23:58 (join) samth 23:58 (join) rudybot 23:58 (join) sid3k 23:58 (join) fmu 23:58 (join) martinhex 23:58 (join) clklein_ 23:58 (join) rapacity 23:58 (join) parcs 23:58 (join) Demosthenes 23:58 (join) Guest74073