00:18 (quit) samth_: Ping timeout: 276 seconds 00:26 (join) dnolen 00:59 (quit) dnolen: Remote host closed the connection 03:00 (quit) jonrafkind: Ping timeout: 245 seconds 03:42 (join) mceier 03:51 (join) antithesis 03:59 (join) Shvillr_ 03:59 (quit) Shviller: Disconnected by services 03:59 (nick) Shvillr_ -> Shviller 04:05 (join) jhemann_ 04:05 (quit) jhemann: Read error: Connection reset by peer 04:24 (join) masm 04:27 (join) bitonic 04:34 (quit) antithesis: Remote host closed the connection 04:35 (join) antithesis 05:07 (quit) antithesis: Quit: yes leaving 05:53 (quit) Kaylin: Quit: Leaving. 06:48 (join) gciolli 06:58 (quit) gciolli: Ping timeout: 252 seconds 07:04 (quit) jhemann_: Ping timeout: 260 seconds 07:15 (join) dous 07:25 (join) bluezenix 07:28 (quit) bluezenix: Client Quit 07:39 (join) samth_ 07:50 (join) Skola 08:03 (quit) duomo: Quit: Linkinus - http://linkinus.com 08:04 (join) dzhus 08:19 (join) kanak 08:24 (quit) kanak: Quit: Leaving. 08:27 (quit) Skola: Quit: Changing server 08:31 (join) kanak 08:46 (join) jeapostrophe 08:58 (join) bluezenix 08:59 (quit) bluezenix: Client Quit 09:18 (quit) samth_: Ping timeout: 246 seconds 09:22 (join) dnolen 09:31 (quit) _danb_: Quit: ERC Version 5.3 (IRC client for Emacs) 09:58 (join) Skola 09:58 (quit) Skola: Client Quit 10:13 (quit) jeapostrophe: Ping timeout: 265 seconds 10:35 (quit) dnolen: Ping timeout: 248 seconds 10:46 (join) bluezenix 10:51 (join) jhemann_ 10:51 (join) antithesis 11:02 (join) jeapostrophe 11:15 (quit) dented42: Quit: Computer has gone to sleep. 11:23 (join) gorsuch 11:28 (join) dnolen 11:42 (join) anRch 11:43 (quit) bluezenix: Quit: Leaving. 11:49 (quit) jeapostrophe: Ping timeout: 252 seconds 11:52 (join) sstrickl 12:02 (quit) anRch: Quit: anRch 12:10 (join) anRch 12:19 (quit) anRch: Read error: Connection reset by peer 12:22 (join) anRch 12:26 (quit) jrslepak: Quit: This computer has gone to sleep 12:27 (join) gciolli 12:40 (quit) anRch: Quit: anRch 12:48 (quit) gciolli: Ping timeout: 240 seconds 12:53 (join) dented42 12:56 (join) jeapostrophe 13:03 (quit) tewk: Remote host closed the connection 13:23 (join) bluezenix 13:43 (join) jonrafkind 13:53 (join) fftb 13:54 (join) gciolli 13:59 (quit) fftb: Remote host closed the connection 14:00 (join) anRch 14:01 (join) Kaylin 14:19 (quit) m4burns: Quit: leaving 14:20 (join) noam_ 14:22 (quit) em: Ping timeout: 244 seconds 14:22 (quit) noam: Read error: Connection reset by peer 14:23 (join) aalix 14:33 (quit) gciolli: Ping timeout: 252 seconds 14:33 (join) ssbr_ 14:42 (nick) bremner -> _config 14:42 (nick) _config -> bremner 14:53 (join) RacketCommitBot 14:53 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/DQdRMA 14:53 RacketCommitBot: [racket/master] Fixing PR 12690 - Jay McCarthy 14:53 (part) RacketCommitBot 14:58 (quit) anRch: Quit: anRch 15:10 (quit) Fulax: Read error: Connection reset by peer 15:12 (join) Fulax 15:22 (join) RacketCommitBot 15:22 RacketCommitBot: [racket] plt pushed 5 new commits to master: http://git.io/y50kMg 15:22 RacketCommitBot: [racket/master] [Distributed Places] Merge place and connection - Kevin Tew 15:22 RacketCommitBot: [racket/master] [Distributed Places] fully connected network patch - Kevin Tew 15:22 RacketCommitBot: [racket/master] [Distributed Places] add solo connections and tcp-connection-died handler - Kevin Tew 15:22 (part) RacketCommitBot 15:26 (join) bmp 15:28 (quit) Kaylin: Ping timeout: 244 seconds 15:40 (join) chrissbx 15:41 (join) maahes 15:42 maahes: doing htdp, what's a better way to write the area of an open pipe other than (define (area_of_pipe inner outer length) (+ (+ (+ (* 2 (* pi (* inner length) etc.? 15:43 maahes: oh, define a function for the inner and outer surface area 15:43 maahes: nvm 15:43 chrissbx: Hi. What are the changes between srfi-42 and what racket uses? Is there a comparison somewhere, or can the diffs be found in the Git repo? 15:44 chrissbx: (For the iterations and comprehensions.) 15:45 maahes: the htdp program specifies a rather terrible way of writing that problem (consuming only inner, outer, and length) 15:47 jonrafkind: chrissbx, do you need to use srfi-42? otherwise you can use the for stuff 15:47 chrissbx: Yes, I've got code that uses for, and I want to port it to a Scheme system with srfi-42 15:48 chrissbx: so I need to know what macros to write for the adaption. 15:49 chrissbx: maahes: What are your (+ (+ (+ are doing there? I'm not sure what your question is. 15:50 chrissbx: Well, porting racket's implementation of for etc. would work, too. 15:50 jonrafkind: racket's for uses a lot of macro stuff that might be hard to port 15:55 (join) emma_ 15:57 (nick) emma_ -> em 15:57 (nick) em -> emma 15:57 (nick) emma -> em 15:58 (quit) bmp: Quit: Bye! 15:59 maahes: chris: the problem in the book says: define a function for producing the area of a pipe (open cylinder) it consumes 3 variables: Its inner radius, length, and thickness of it's wall. that would be (+ (+ (+ (* 2 ( * pi (* inner_radius length))) (* 2 (* pi (* outer_radius length))) (* 2 (- (* pi (* outer_radius outer_radius)) (* pi (* inner_radius inner_radius))))))) 16:00 maahes: which is a terrible way of writing that program. 16:01 bremner: can't + and * take multiple arguments? or is that restricted in student languages? 16:02 bremner: but yeah, it looks like 'let' could help 16:03 maahes: let hasn't been introduced yet, I'm just defining separate functions which feeds to a final area_of_pipe function 16:03 bremner: ok 16:12 maahes: hrrm, is there a way to make it infer for the function, that if I do: (inner_radius 5) (outer_radius 5) (length 5) (area_of_pipe) -> output for area of pipe? 16:13 Haffe: That would be constraint propagation. 16:13 Haffe: And message passing. 16:13 Haffe: But I don't think you have covered that yet. 16:13 maahes: ah, not there yet then. 16:14 Haffe: I guess you could curry it. 16:15 Haffe: Three nested lambdas. 16:30 (join) gciolli 16:37 maahes: is normal lisp like this? (define (somevar arg1 arg2 arg3) (/ (arg1 + arg2) arg3))) such that you get different outputs if you do (define (somevar arg3 arg1 arg2) (/ (arg1+arg2) arg3))) ? 16:38 jonrafkind: what is arg1+arg2 16:38 maahes: variable names. 16:38 jonrafkind: arg1+arg2 is not bound to anything 16:38 jonrafkind: so you should get an error 16:39 maahes: i.e., it doesn't matter what the are, the body of the statement remains the same. 16:39 maahes: the only thing that has changed is the order of the variables in the definition. 16:39 jonrafkind: ah right, well yes then thats a different function 16:39 jonrafkind: since order of arguments matter 16:40 jonrafkind: of course you meant (+ arg1 arg2) but thats probably just a typo 16:40 jonrafkind: if you want your function to be independant of argument ordering you can use keywords, (define (somevar #:arg1 arg1 #:arg2 arg2 #:arg3 arg3) ...) 16:41 (quit) dented42: Quit: Computer has gone to sleep. 16:42 maahes: ah! indeed, that's what I *would* want, but can you help me understand why the order matters? I don't know what the lisp is inferring from the order. (I.e., I think about the statements, not the order of my function variables in their definition) 16:42 jonrafkind: order matters because there needs to be some protocol between a function definition and its use 16:43 jonrafkind: the most traditional protocol is just a sequence of values 16:43 jonrafkind: an insane protocol could be alphabetical 16:43 jonrafkind: but the two protocols that exist today are order and keyword based 16:44 jonrafkind: in terms of your function it doesn't actually matter what order you choose, but if you choose one ordering then changing the ordering will mean clients of the function must also change 16:44 jonrafkind: so (lambda (x y) ...) is not the same as (lambda (y x) ...) even if their bodies are the same 16:45 (join) djcb 16:47 gciolli: maahes: you might read about alpha-equivalence in lambda calculus 16:49 maahes: thanks :) 16:52 gciolli: :) 16:52 (join) jao 16:52 (quit) jao: Changing host 16:52 (join) jao 16:56 (quit) gciolli: Quit: Leaving. 17:00 maahes: okay, wait, I have a followup question then what would be the correct values? or rather how would you be able to determine if (define (somevar foo bar baz) (/ (+ foo bar) baz)) produces the correct value, and (define (somevar baz bar foo) (/ (+ foo bar) baz)) does not? 17:06 (quit) dnolen: Quit: Page closed 17:06 maahes: ah! I understand now 17:06 (join) dnolen 17:08 maahes: it's the values of the function (somevar foo bar baz) -> (somevar 3 2 1) being different from (somevar baz bar foo) (somevar 3 2 1) 17:08 maahes: I forgot that portion from the last time I opened the book, heh 17:11 maahes: hrrm, okay, why would lisp *prefer* doing things that way vs using keywords? 17:12 jonrafkind: because its simpler 17:12 jonrafkind: and pretty much every language ever uses that way 17:17 (quit) antithesis: Remote host closed the connection 17:18 (quit) dzhus: Remote host closed the connection 17:27 (quit) bluezenix: Quit: Leaving. 17:35 (join) bluezenix 17:38 asumu: maahes: C, Java, etc. all have arguments whose order is significant. 17:43 (join) Kaylin 17:43 (join) jhemann__ 17:44 (join) jrslepak 17:47 (quit) jhemann_: Ping timeout: 245 seconds 17:47 (quit) cdidd: Remote host closed the connection 17:52 (quit) jeapostrophe: Ping timeout: 252 seconds 18:01 maahes: yeah, I see what my confusion was, I was holding the values in my head. 18:10 (join) duomo 18:23 (quit) dnolen: Ping timeout: 245 seconds 18:25 (quit) maahes: Read error: Connection reset by peer 18:25 jonrafkind: how do you get a < to show up in scribble 18:28 (quit) bluezenix: Quit: Leaving. 18:28 samth: jonrafkind: you write a literal < 18:28 samth: it's not a special character 18:28 jonrafkind: somehow its not showing up 18:28 jonrafkind: inside a verbatim 18:29 samth: jonrafkind: are you generating html? 18:29 samth: or latex? 18:29 jonrafkind: latex 18:37 (join) bobajett 18:38 samth: weird 18:46 (join) jeapostrophe 18:50 (quit) jonrafkind: Ping timeout: 246 seconds 18:51 bobajett: howdy folks, Im trying to work my way through htdp, but Im using racket in emacs - how can I use the DrRacket teachpacks from within my racket shell in emacs? 18:52 bobajett: Im on chapter 6 and trying to figure out how to get the "make-posn" function available to me 18:53 samth: bobajett: you need to use the beginning student language 18:54 samth: which is not fully supported in emacs 18:54 samth: i encourage you to (a) use drracket 18:54 samth: and (b) take a look at htdp 2nd edition 18:55 samth: which is here: http://www.ccs.neu.edu/home/matthias/HtDP2e/ 18:55 bobajett: oh ok, thanks samth - oh wow I didn't know about the 2nd ed 18:55 samth: bobajett: the 2nd ed uses a lot of graphics, which will work much better in drracket 18:55 samth: note that 2e isn't complete yet 18:56 samth: so you'll want to start with that 18:56 bobajett: Awesome! Thanks so much! 18:56 samth: and then transition back to the 1st ed when it runs out 18:57 (quit) mceier: Quit: leaving 18:58 (quit) jeapostrophe: Ping timeout: 272 seconds 19:00 bobajett: I just ordered the hardcover dead tree version today of the 1st version :( 19:01 samth: it's a great book 19:01 samth: you won't regret it 19:02 bobajett: :-) I read a great review of it by some PhD student who said it enlightened him even after having programmed for so many years, and that its a book to re-read every 5 years. 19:04 samth: bobajett: i've gotten a phd (from the author of htdp), and taught htdp to undergrads many times, and it's still worth re-reading for me 19:05 bobajett: :) that's awesome to hear. I guess it will be a valuable addition to my bookshelf then. 19:07 (join) maahes 19:22 (join) dented42 19:27 (quit) bitonic: Quit: WeeChat 0.3.5 19:37 (quit) chrissbx: Read error: Operation timed out 19:38 (quit) gorsuch: Remote host closed the connection 19:43 (nick) samth -> samth_away 19:48 (join) kvda 19:57 kvda: Hi, I'm a graphic designer learning Scheme/Racket, I'm looking to contributing to the visual part of Racket, (site/docs).. are you looking for help in these areas? 20:02 (quit) sstrickl: Quit: sstrickl 20:06 rapacity: kvda: try asking on the mailing list 20:07 kvda: Ok, thanks rapacity 20:28 (join) jonrafkind 20:40 (quit) jonrafkind: Ping timeout: 264 seconds 20:47 asumu: kvda: I think that would be great. 20:48 asumu: kvda: Just don't be discouraged if it becomes a bikeshedding argument. It would be great if a we had a designer around to just make decisions. :) 20:50 asumu: bobajett: another anecdote. Today I wrote part of a solution set for students. I followed the design recipe, wrote a bunch of tests, and it passed them all first try. 20:50 asumu: (it is a good feeling) 20:50 kvda: asumu: Do you know who's taking care of the design at the moment? 20:51 asumu: kvda: depends on which aspect of design you mean. I believe eli is mostly responsible for the website. 20:51 asumu: Neil Toronto has been working on some icons and logo stuff, I think. 20:52 asumu: I'm not sure about other things. 20:52 kvda: That's a good start, thanks asumu 20:58 (quit) acarrico: Quit: Leaving. 20:59 bobajett: asumu: nice! 20:59 bobajett: 21:03 maahes: what's the proper way to do something like this (define (interest-paid amount) (- (* amount pay-back-rate) payback-rate))? Since it complains about payback-rate expecting a function call. 21:03 maahes: or rather (- (amount pay-back-rate) pay-back-rate) 21:03 (join) yoklov 21:04 maahes: (also why does it error for (* amount pay-back-rate) but not (amount pay-back-rate)? 21:06 bobajett: is amount a function? 21:08 maahes: no, amount is a value 21:08 maahes: well, er, its a function argument 21:09 maahes: i.e., I'd do (interest-paid 100) or whatnot 21:09 bobajett: that function compiles and runs for me? But I had to define pay-back-rate first 21:09 bobajett: (define pay-back-rate 0.5) 21:09 bobajett: (define (interest-paid amount) 21:09 bobajett: (- (* amount pay-back-rate) pay-back-rate)) 21:09 bobajett: > (interest-paid 100) 21:09 bobajett: 49.5 21:13 maahes: I think it's a beginning student language issue 21:14 bobajett: :) 21:14 asumu: maahes: how are you defining pay-back-rate? 21:16 maahes: asumu: I'm not done writing that function actually, so I'll use the previous one as an example (which is built up in the same fashion) http://pastie.org/3759142 21:19 (quit) masm: Quit: Leaving. 21:20 bobajett: maahes: when you write (* grosspay hours), "*" is expecting two numbers as arguments, but grosspay is not a number, its a function. 21:20 maahes: ah, gotcha 21:22 bobajett: if you did want to multiply the result from grosspay hours with another number, you would write (* (grosspay hours) 123), this way (grosspay hours) would get evaluated as a function, return some number (Im assuming the grosspay function returns some number) and multiply it with 123. 21:22 maahes: makes sense, thanks :) 21:22 bobajett: you're welcome 21:43 (quit) dous: Remote host closed the connection 21:43 (quit) kvda: Quit: ["Textual IRC Client: www.textualapp.com"] 21:44 (join) jonrafkind 21:51 (join) samth_ 22:01 (join) kvda 22:21 bobajett: wow htdp2 is a whole lot of fun, even better than "The Land of Lisp"! 22:27 (join) antics 22:31 (join) jeapostrophe 22:40 (join) dented42_ 22:42 (quit) dented42: Ping timeout: 244 seconds 22:42 (nick) dented42_ -> dented42 22:46 (quit) dented42: Ping timeout: 264 seconds 22:50 (join) mithos28 23:07 (quit) jao: Ping timeout: 246 seconds 23:13 (quit) aalix: Ping timeout: 265 seconds 23:15 (join) dented42 23:40 (join) veer 23:42 (quit) ssbr_: Ping timeout: 252 seconds