00:02 (join) ambrosebs 00:02 (quit) ambroseb_: Read error: No route to host 00:03 (join) ambroseb_ 00:03 (quit) ambrose__: Ping timeout: 252 seconds 00:05 (quit) ambros___: Ping timeout: 255 seconds 00:06 (quit) ambrosebs: Ping timeout: 248 seconds 00:19 (quit) jbclements: Quit: jbclements 00:25 (join) atomx 00:25 atomx: hi 00:25 mithos28: atomx: Hello 00:25 atomx: I try to work with geiser and I do not manage to execute (require "x.rkt") 00:26 mithos28: does it give an error message? 00:26 atomx: yes, this one 00:26 atomx: get-module-code: no such file: # 00:26 atomx: however, I keep the x. file in pwd 00:27 mithos28: I don't know how geiser works, so cannot tell what is going wrong 00:28 atomx: The second problem that I have is that I never used auto-complete mode before, and I installed it, and I do not know what keybindings it uses, and how to configure it. 00:28 atomx: ok 00:28 atomx: mithos28: the problem is not from geiser 00:29 atomx: forget of geiser. With geiser I just sent the code to racket 00:29 atomx: the error is from racket. 00:29 mithos28: ok, so why are you sending (require "x.rkt") and getting an error message about hw4.rkt 00:30 atomx: because it looks on bad path : get-module-code: no such file: # 00:36 atomx: 00:36 atomx: 00:36 atomx: This is the full error 00:37 mithos28: You get that when not using emacs? 00:37 atomx: not tried. 00:37 mithos28: Can you paste the actual contents of your files somewhere? like gist.github.com or something? 00:38 atomx: No , I do not get that error . I get another error. 00:39 (join) yacks 00:41 atomx: http://pastebin.com/MyUkPjCU 00:42 mithos28: what is the error message you get from running racket on hwtest? 00:42 (quit) gridaphobe: Ping timeout: 244 seconds 00:48 (join) jonrafkind 00:54 atomx: It is pasted there the Geiser *dbg* buffer. The err message is get-module-code: no such file: # 00:54 atomx: 00:54 mithos28: What if you are not using Geiser? 00:57 atomx: mithos28: I have been programming in racket for 1 day, and I try to use emacs. I have to finish the homework in 48 hours. How other possibility do I have in emacs ? I read on wiki that geiser is the best 00:58 atomx: I do not have experience with racket at all. I have 5 years of experience with scheme, and with scheme emacs works perfectly. 00:58 mithos28: I don't know Geiser. I believe that geiser is your issue, but cannot confirm it. 00:58 atomx: But now I need to commute to racket. 00:58 mithos28: does running racket in the command line work? 00:58 atomx: I will ask on stack overflow now 00:58 atomx: yes 00:58 atomx: in command line it is perfect 00:58 atomx: the problem is config of geiser 00:59 mithos28: Exactly, which is what I said earlier 00:59 mithos28: and you said that it was not from geiser 00:59 atomx: Yes, but I need to find a way to work with emacs quickly 00:59 atomx: Ha ? 01:02 (join) RacketCommitBot 01:02 RacketCommitBot: [racket] plt pushed 5 new commits to master: http://git.io/WM3XCg 01:02 RacketCommitBot: racket/master 0b87c99 Eric Dobson: Make struct types overlap with procedures.... 01:02 RacketCommitBot: racket/master ddb8e7f Eric Dobson: Add subtyping for Parameters.... 01:02 RacketCommitBot: racket/master a7bc758 Eric Dobson: Fix subtyping of invariant data structures.... 01:02 (part) RacketCommitBot 01:03 atomx: k 01:03 mithos28: Success, I have bent git to my will. 01:03 atomx: I will have to see how to make it. 01:20 (quit) jao: Remote host closed the connection 01:22 (quit) mceier: Quit: leaving 01:58 (join) patrick_ 01:59 (quit) patrick_: Read error: Connection reset by peer 02:00 (join) patrick_ 02:00 (nick) patrick_ -> paddymahoney 02:01 (join) gridaphobe 02:06 (quit) Fare: Ping timeout: 260 seconds 02:13 (join) patrick__ 02:16 (join) jao 02:16 (quit) vipjun: 02:16 (quit) jao: Changing host 02:16 (join) jao 02:16 (nick) patrick__ -> paddymahoney 02:16 (quit) dauterive: Quit: Leaving 02:17 (quit) ambroseb_: Remote host closed the connection 02:20 (join) mceier 02:20 (join) rohni 02:22 (join) ambrosebs 02:23 (quit) ambrosebs: Remote host closed the connection 02:25 (join) ambrosebs 02:29 (quit) atomx: Remote host closed the connection 02:32 (join) hkBst 02:32 (quit) hkBst: Changing host 02:32 (join) hkBst 02:37 (quit) jao: Ping timeout: 276 seconds 02:40 (join) paddymahoney 02:45 (quit) paddymahoney: Quit: Ex-Chat 02:45 (join) paddymahoney 02:45 (join) patrick__ 02:47 (nick) paddymahoney -> Guest57137 02:49 (nick) patrick__ -> paddymahoney 02:55 (join) Kaylin 02:57 (quit) gridaphobe: Remote host closed the connection 02:57 (join) tilde` 03:01 (quit) mithos28: Quit: mithos28 03:08 (quit) rohni: Quit: Leaving. 03:20 (quit) leo2007: Ping timeout: 240 seconds 03:21 (join) soegaard 03:26 (quit) jonrafkind: Ping timeout: 252 seconds 03:28 (quit) ambrosebs: Remote host closed the connection 03:30 (join) RacketCommitBot 03:30 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/3nrViA 03:30 RacketCommitBot: racket/master de2aa50 Eli Barzilay: New Racket version 5.3.3.5. 03:30 (part) RacketCommitBot 03:32 (join) rmathews_ 03:32 (join) DGASAU 03:34 (quit) rmathews: Ping timeout: 272 seconds 03:34 (nick) rmathews_ -> rmathews 03:34 DGASAU: I think that FFI chapter could be a lot better if it provided more examples how to interface C. 03:35 DGASAU: In particular, it isn't clear enough how to interface functions that return values in a buffer. 03:35 DGASAU: E.g. gettimeofday. 03:35 DGASAU: It isn't much clear how to deal with functions that allocate memory, 03:36 DGASAU: e.g. asprintf. 03:36 DGASAU: And the paper that is referenced is not easily accessible. 03:37 soegaard: FWIW the paper helped my understanding of how the FFI works. 03:37 DGASAU: Probably it would help, but it isn't easily downloadable. 03:38 DGASAU: (At least I haven't found it yet.) 03:40 (join) duikboot 03:40 (join) ambrosebs 03:44 DGASAU: Also, I find curses as bad source for inspiration. 03:45 DGASAU: It would be better, if the chapter used another, saner library for examples. 03:47 (quit) ambrosebs: Remote host closed the connection 03:47 (quit) ASau: Ping timeout: 272 seconds 03:48 (join) bitonic 03:48 (quit) cdidd: Remote host closed the connection 03:50 (quit) Slavisa: Ping timeout: 256 seconds 04:00 (join) rohni 04:09 (join) vkz 04:12 (quit) hkBst: Read error: Connection reset by peer 04:12 (join) hkBst 04:12 (quit) hkBst: Changing host 04:12 (join) hkBst 04:23 (quit) soegaard: Quit: soegaard 04:24 (quit) vkz: Quit: vkz 04:28 (quit) racycle: Quit: racycle 04:30 (quit) hkBst: Ping timeout: 252 seconds 04:33 DGASAU: How do I get pointer of some object and how do I convert "just a pointer" to typed one? 04:34 (join) hkBst 04:36 (join) vkz 04:40 (join) rmathews 04:56 (quit) hkBst: Remote host closed the connection 04:56 (join) hkBst_ 05:09 (quit) Nisstyre-laptop: Ping timeout: 255 seconds 05:14 (quit) hkBst_: Ping timeout: 240 seconds 05:14 (join) hkBst__ 05:18 (join) Slavisa 05:22 DGASAU wonders how to call "void" functions via FFI. 05:22 (quit) vkz: Quit: vkz 05:34 (quit) rohni: Quit: Leaving. 05:50 (quit) Kaylin: Quit: Leaving. 05:51 (join) mye 06:06 (join) Kaylin 06:06 (quit) Kaylin: Client Quit 06:11 (quit) bremner: Ping timeout: 245 seconds 06:17 (quit) Shvillr_: Read error: Connection reset by peer 06:24 DGASAU: Alright, it is just called "_void" and is described in another section. 06:27 (join) rohni 06:30 (quit) Slavisa: Ping timeout: 260 seconds 06:33 (join) bremner 06:33 (quit) bremner: Changing host 06:33 (join) bremner 06:48 (quit) DGASAU: Read error: Connection reset by peer 06:52 (quit) rmathews: Quit: ... 07:19 (quit) mye: Quit: mye 07:23 (quit) tilde`: Read error: Connection reset by peer 07:23 (join) mye 07:23 (join) tilde` 07:29 (join) troydm 07:30 troydm: how do i check in racket if two lists are identical? 07:30 troydm: is there a builtin function for this? 07:31 bremner: troydm: does equal? work for you ? 07:31 troydm: bremner: i'll check it now 07:31 (join) rmathews 07:31 troydm: bremner: thx it does 07:31 (join) Aune 07:32 troydm: i was checking with eq? before 07:32 troydm: but it was apparently not working 07:32 troydm: but equal? does work indeed 07:32 bremner: yeah, let me see if I can find the equality operator discussion... 07:34 bremner: I guess this: http://docs.racket-lang.org/reference/booleans.html?q=equal 07:34 troydm: thx, i'll read it 07:34 (quit) tilde`: Read error: Connection reset by peer 07:35 (join) tilde` 07:35 bremner: it isn't the best intro, but there are some examples 07:37 troydm: is there a version of display that will automaticly add new line character to the end of the string? 07:37 troydm: like println in Java 07:38 bremner: displayln ;) 07:38 troydm: ohh it's not scheme standard yes? 07:39 troydm: e.g. not standard function 07:39 bremner: oh, I don't know much about that. 07:39 troydm: ic, thx 07:40 bremner: searching on docs.racket-lang.org suggests not, since it would show up in e.g. r5rs if it was 07:42 (quit) hkBst__: Ping timeout: 272 seconds 07:43 (join) jeapostrophe 07:43 (quit) jeapostrophe: Changing host 07:43 (join) jeapostrophe 07:44 (join) hkBst__ 07:44 (quit) tilde`: Read error: Connection reset by peer 07:45 (join) tilde` 07:52 troydm: also one more thing 07:52 troydm: if i do (require "some.rkt") 07:52 troydm: that loads my file the first time i do that 07:52 troydm: but how do i force it to reload it on the next call? 07:54 (quit) Aune: Quit: Hath Deprated 07:59 (join) Fare 08:00 (join) Slavisa 08:01 (quit) hkBst__: Read error: Connection reset by peer 08:03 (join) hkBst__ 08:09 bremner: troydm: how are you evaluating your code, in DrRacket? 08:09 troydm: bremner: no in racket repl 08:10 bremner: troydm: in that case I recommend you look at xrepl 08:10 (quit) mye: Quit: mye 08:11 troydm: bremner: hmm i'll check it out 08:11 bremner: but actually, I'm not sure that ",require" will work better than (require ) for you. 08:13 bremner: maybe ",require-reloadable some.rkt" 08:14 (quit) rohni: Quit: Leaving. 08:14 (quit) tilde`: Read error: Connection reset by peer 08:14 (join) tilde` 08:18 (join) mizu_no_oto 08:18 (quit) mizu_no_oto: Client Quit 08:19 (join) mizu_no_oto 08:30 (join) didi` 08:33 (join) rohni 08:34 (nick) didi` -> didi 08:41 (join) anonymou1 08:44 (quit) whoops: Ping timeout: 264 seconds 08:47 (join) whoops 08:49 (join) RacketCommitBot 08:49 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/OGntig 08:49 RacketCommitBot: racket/master c37cd38 Robby Findler: adjust docs example to use collection-file-path and... 08:49 (part) RacketCommitBot 08:53 (quit) hkBst__: Ping timeout: 276 seconds 08:58 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 08:59 (join) hkBst 09:00 (quit) bitonic: Ping timeout: 240 seconds 09:01 (quit) Slavisa: Ping timeout: 244 seconds 09:01 (join) Slavisa 09:06 asumu: bremner: Hmm, I guess there isn't actually a guide section on equality. That seems like an oversight to fix. 09:06 (quit) rohni: Quit: Leaving. 09:11 (join) mizu_no_oto 09:19 (quit) hkBst: Ping timeout: 260 seconds 09:22 (join) hkBst 09:22 (quit) hkBst: Changing host 09:22 (join) hkBst 09:23 anonymou1: rudybot: (when #t) 09:23 rudybot: anonymou1: your sandbox is ready 09:23 rudybot: anonymou1: error: #:1:0: when: bad syntax in: (when #t) 09:23 anonymou1: http://docs.racket-lang.org/guide/begin.html 09:23 anonymou1: (when test-expr then-expr ...) 09:23 anonymou1: Does it lies? 09:23 didi: rudybot: (when #t #f) 09:23 rudybot: didi: your sandbox is ready 09:23 rudybot: didi: ; Value: #f 09:23 didi: anonymou1: Nope. 09:26 anonymou1: Does it lie* 09:26 anonymou1: sorry 09:27 bremner: asumu: I think the material is there, it mainly just needs to be cut down 09:27 (join) anRch 09:27 (quit) hkBst: Ping timeout: 248 seconds 09:27 anonymou1: didi: AFAIK, ... means it is ok to not put a then-expr 09:27 anonymou1: Am I wrong? 09:27 bremner: yes 09:27 anonymou1: ...+ - you must put at least one... 09:27 bremner: ... implies 0 or more repetitions 09:27 anonymou1: bremner: yes = I am wrong? 09:28 bremner: correct, you are wrong. 09:30 anonymou1: Deoes "... implies 0 or more repetitions" mean "in (a-expr b-id) it is ok to enter (a b), or (b c), but incorrect - (b)? 09:30 anonymou1: Does* 09:31 (join) hkBst 09:31 (quit) hkBst: Changing host 09:31 (join) hkBst 09:31 bremner: I don't understand your question. There are no ... in your question. 09:31 anonymou1: ah, sorry, I meant (a-expr b-id ...) 09:32 bremner: it means (test expr1) is ok, (test expr1 expr2) is ok, (test expr1 expr2 expr3) is ok, and so on. 09:33 anonymou1: what about (test)? 09:33 bremner: no 09:33 anonymou1: I definitely think you are wrong! What is the difference between (a-expr b-expr ...) and (a-expr b-expr ...+)? 09:34 bremner: the second is nonsense 09:34 anonymou1: (it is ok to not reply or abruptly stop if you are busy, of course!) 09:34 anonymou1: (begin0 expr ...+) 09:34 anonymou1: http://docs.racket-lang.org/guide/begin.html 09:34 samth: anonymou1: in the docs, the latter means that at least one b-expr is required 09:34 samth: whereas the former means that there might not be any b-expr 09:34 bremner: I stand by it being nonsense ;) 09:35 anonymou1: (begin0 expr ...+) 09:35 anonymou1: is not 09:35 bremner: oh, well, that explains the confusion with when? 09:35 anonymou1: a definition 09:35 bremner: BNF exists, I don't see the point of inventing new semi-formal syntax. 09:36 bremner: (a-expr b-expr+) 09:36 (quit) hkBst: Ping timeout: 248 seconds 09:36 anonymou1: bremner: you admit you were wrong since lack of the habit? 09:36 anonymou1: the* 09:36 bremner: I don't know, I would take samth's word about the racket docs. 09:37 bremner: I was only commenting on common technical English usage. 09:37 (join) bitonic 09:37 (quit) rmathews: Read error: Connection reset by peer 09:38 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 09:38 (join) hkBst 09:39 anonymou1: have you ever read it? http://docs.racket-lang.org/guide/syntax-notation.html 09:39 bremner: no 09:40 anonymou1: ah... then I am not sure you can get why do I think this is a bug 09:41 anonymou1: So, I am repeating the question: 09:41 anonymou1: http://docs.racket-lang.org/guide/begin.html 09:41 (join) rmathews 09:41 anonymou1: Does it lie? 09:42 anonymou1: It says (when test-expr then-expr ...) 09:42 anonymou1: rudybot: (when #t) 09:42 rudybot: anonymou1: error: #:1:0: when: bad syntax in: (when #t) 09:42 (quit) hkBst: Read error: Connection reset by peer 09:42 bremner: yeah, it sounds like the racket docs invent some notation, but don't stick to it completely. 09:43 (join) hkBst 09:45 stamourv: adu: Re futures blocking: I don't know whether the class system is future-safe. Maybe that's the issue. 09:45 stamourv: You could try using vectors for your bitmaps and see if that makes a difference. 09:46 anonymou1: How do people here prefer to study Racket? 09:46 stamourv: vipjun: Re colors in Optimization Coach: They tell you where the compiler optimized your code (green), and where it almost could (red) and could succeed with a bit of help. 09:46 anonymou1: bremner: ? 09:46 bremner: anonymou1: write code, solve problems 09:47 stamourv: vipjun: Right-click on the colored regions and click "show optimization info" for more details. 09:47 didi: rudybot: I hate solving problems. 09:47 rudybot: didi: to be fair though the most common instance I see that is easily quantifiable is the assumption that understanding an explanation of a solution to a problem is adequate preparation for solving problems in the same domain. which is certainly a classroom phenomena. so I take it back. 09:47 anonymou1: bremner: where do you get your knowledge from? 09:47 anonymou1 googled bremner . It seems he is a cool guy, but he didn't look very much. 09:47 stamourv: ambrosebs: Cool! 09:48 didi laughs at bremner 09:48 didi: bremner: Sorry. 09:50 anonymou1: ah. 09:50 anonymou1: Nevermind: 09:50 anonymou1: just pay attention to my bug, please :(( 09:51 anonymou1: (17:40-17:41) 09:51 bremner: anonymou1: so report a bug? 09:52 anonymou1 wants to be admired 09:52 bremner: first report the bug, then we will admire. 09:54 (quit) hkBst: Ping timeout: 255 seconds 09:55 (join) hkBst 09:55 (quit) hkBst: Changing host 09:55 (join) hkBst 09:57 stamourv: anonymou1: I have up-to-date docs (from yesterday's git HEAD), and the docs for `when' use `...+'. 09:57 stamourv: Which version are you using? 09:58 didi: stamourv: There is a difference in the docs between the Guide and the Reference. 09:58 didi: stamourv: I can confirm this in 5.3.1 09:58 stamourv: I'm looking at the reference. 09:59 stamourv goes to look at the guide. 09:59 didi: stamourv: Yes, the offending part is at the Guide. 09:59 stamourv: Yep, guide got it wrong. 09:59 (join) dnolen 09:59 stamourv: I'll go ahead and fix it. 10:00 stamourv: anonymou1: Thanks for the report, but in the future, it would be better if you reported the bugs on the bug tracker instead of IRC. 10:00 stamourv: That way, it's easier for us to keep track. 10:01 (join) soegaard 10:01 (quit) hkBst: Ping timeout: 260 seconds 10:02 anonymou1: stamourv: ok. /me has sent the bugreport and only then looked at the chat with stamourv's message 10:02 anonymou1: Not at all! 10:03 stamourv: Yeah, sometimes we fix bugs too fast. ;) 10:03 stamourv: I'll push the fix later, there are other changes I want to push at the same time. 10:08 didi: What type of exception would you use if it is about a malformed structured string that you read? (e.g. `key:value0,value1' where `key' is not a recognized key) 10:10 didi: I guess that's not actually a malformed string. 10:10 didi *sigh* 10:14 stamourv: didi: I'd create a new exception struct and have it be a sub-struct of `exn:fail'. 10:14 stamourv: As for the name, unrecognized key sounds good to me. :) 10:15 didi: stamourv: Nice. Thank you. 10:19 (join) mizu_no_oto 10:22 (join) rohni 10:27 (join) gridaphobe 10:28 (join) didi` 10:28 (quit) didi`: Remote host closed the connection 10:28 (join) hkBst 10:28 (quit) hkBst: Changing host 10:28 (join) hkBst 10:29 (quit) anonymou1: Ping timeout: 255 seconds 10:29 (join) didi 10:35 (quit) dnolen: Ping timeout: 260 seconds 10:35 (join) RacketCommitBot 10:35 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/XnAwZA 10:35 RacketCommitBot: racket/master 772afd9 Matthew Flatt: fix docs for `begin0'... 10:35 RacketCommitBot: racket/master 71cffcf Matthew Flatt: fix Guide spec for `when' and `unless'... 10:35 RacketCommitBot: racket/master 42b8163 Matthew Flatt: fix docs on `case'... 10:35 (part) RacketCommitBot 10:38 (join) ambrosebs 10:41 stamourv: Oh well, looks like Matthew got to it first. 10:49 (join) hkBst_ 10:49 (quit) hkBst: Ping timeout: 248 seconds 10:56 (quit) rohni: Quit: Leaving. 10:59 (join) vkz 11:00 (quit) duikboot: Quit: Leaving 11:01 (join) racycle 11:02 (join) cdidd 11:02 (join) mithos28 11:02 (quit) tilde`: Read error: Connection reset by peer 11:02 (join) tilde` 11:03 (join) hkBst__ 11:03 (quit) hkBst_: Ping timeout: 276 seconds 11:05 (quit) mceier: Quit: leaving 11:11 (quit) yacks: Quit: Leaving 11:13 (join) RacketCommitBot 11:13 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/KbDZnA 11:13 RacketCommitBot: racket/master 12aaa22 Vincent St-Amour: Fix subtyping for Negative-Single-Flonum. 11:13 RacketCommitBot: racket/master 034d724 Vincent St-Amour: Filters for comparisons with inifinity. 11:13 RacketCommitBot: racket/master e69f66f Vincent St-Amour: Add examples of function types with keyword arguments. 11:13 (part) RacketCommitBot 11:20 (nick) hkBst__ -> hkBst 11:27 (quit) ambrosebs: Remote host closed the connection 11:29 (join) mye 11:30 (join) hkBst_ 11:30 (quit) hkBst_: Changing host 11:30 (join) hkBst_ 11:31 (quit) hkBst_: Client Quit 11:36 (quit) gridaphobe: Remote host closed the connection 11:41 (join) ambrosebs 11:45 (quit) anRch: Quit: anRch 11:45 (quit) vkz: Read error: Connection reset by peer 11:45 (join) vkz 11:46 (quit) vkz: Read error: Connection reset by peer 11:46 (join) vkz_ 11:47 (quit) soegaard: Quit: soegaard 11:47 (quit) ambrosebs: Remote host closed the connection 11:49 (join) clements_ 11:49 troydm: say i have (and e1 e2) 11:50 troydm: will e2 be evaluated if e1 is false? 11:50 troydm: i think it will since all expressions are evaluated 11:50 (quit) tilde`: Read error: Connection reset by peer 11:51 (join) tilde` 11:51 (quit) tilde`: Client Quit 11:51 didi: troydm: No. 11:51 didi: troydm: It will not. 11:51 troydm: why? 11:51 (join) karswell 11:51 didi: Short circuit. 11:52 didi: rudybot: (and #f (displayln "hello, world")) 11:52 rudybot: didi: (match/values (values 1 2) [(a b) (displayln a) (displayln b)]) 11:52 didi: rudybot: Weird. 11:52 rudybot: didi: hmm weird. sh acts abnormally for me. did you try zsh? (maybe sh too?) 11:53 mithos28: rudybot: init racket 11:53 rudybot: mithos28: your sandbox is ready 11:53 mithos28: rudydobt: eval (and #f (displayln "hello, world")) 11:53 mithos28: rudybot: eval (and #f (displayln "hello, world")) 11:53 rudybot: mithos28: ; Value: #f 11:54 mithos28: troydm: 'and' is not a function, which is why it doesn't evaluate all of its 'arguments' 11:54 troydm: oic 11:54 troydm: it's a builtin construct 11:54 mithos28: no, its a macro 11:55 mithos28: actually are you using htdp? 11:55 mithos28: or #lang racket, or something else? 11:55 didi: troydm: It's list `if', for example, evaluating only the "right" branch. 11:55 didi: s/list/like 11:56 clements_: mithos28: whether or not 'and' is a macro is pretty much an implementation detail. In a well-designed macro system, you can't tell whether something is implemented via a macro or not. Right? 11:56 troydm: mithos28: #lang racket 11:57 mithos28: clements_: right, but in a well designed macro system you can reimplement and 11:57 clements_: mithos28: +1 11:58 (quit) clements_: Quit: clements_ 11:58 mithos28: troydm: So you can write your own and like form, and here is an example for swap: http://docs.racket-lang.org/guide/pattern-macros.html#%28part._define-syntax-rule%29 11:58 rudybot: http://tinyurl.com/bap4wav 11:58 (join) jbclements 11:59 (join) myx 11:59 troydm: mithos28: i learned how to write macroses 11:59 (join) soegaard 11:59 mithos28: troydm: Great 11:59 troydm: but was wondering if e2 is evaluated or not 12:00 troydm: because if it would be a function it would evaluate it despite first e1 returning false 12:00 mithos28: nope. (and e1 e2) => (let ((x e1)) (if x e2 #f)) 12:00 mithos28: where => means 'expands to' 12:01 mithos28: and actually that could be rewritten as (if e1 e2 #f), only 'or' needs the local binding. 12:02 troydm: ic 12:02 troydm: thx 12:04 (join) anonymou1 12:08 (quit) soegaard: Quit: soegaard 12:13 (join) z0lt 12:18 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 12:19 (join) Kaylin 12:19 (join) jao 12:19 (quit) jao: Changing host 12:19 (join) jao 12:21 (join) mceier 12:22 (join) gridaphobe 12:28 (quit) merijn: Ping timeout: 255 seconds 12:29 (nick) eikonos1 -> eikonos 12:29 (join) eikonos 12:37 (quit) didi: Ping timeout: 264 seconds 12:40 (join) ASau 12:42 (quit) anonymou1: Ping timeout: 255 seconds 12:44 (join) jonrafkind 12:51 (quit) Kaylin: Quit: Leaving. 12:58 (quit) jbclements: Quit: jbclements 12:59 (quit) Slavisa: Ping timeout: 255 seconds 13:01 (join) jbclements 13:08 (quit) jeapostrophe: Ping timeout: 252 seconds 13:23 paddymahoney: hello all. Is anyone aware of a program like Google Summer of Code where you can be paid a stipend to work on Racket, but without requiring the university affiliation? I just recently graduated, and so wouldn't be eligible for GSOC, but I'd love to make a living working on Racket projects. 13:25 jonrafkind: try to become a graduate student 13:31 (join) rmathews_ 13:32 (join) rudybot_ 13:32 (quit) snorble_: Read error: Connection reset by peer 13:32 (quit) rmathews: Ping timeout: 256 seconds 13:32 (quit) rudybot: Ping timeout: 256 seconds 13:32 (nick) rmathews_ -> rmathews 13:34 (join) acarrico 13:39 (quit) jbclements: Quit: jbclements 13:41 (join) Kaylin 13:44 (join) jbclements 13:44 stchang: asumu: yes I fixed the integer-set bug 13:45 stchang: there was a problem with the stream-rest implementation 13:46 stchang: to see the bug, try to use integer set as a sequence in a for loop 13:46 stchang: (before you pull my fix) 13:49 (quit) bitonic: Ping timeout: 276 seconds 13:57 (quit) gridaphobe: Remote host closed the connection 14:03 (join) xaxisx 14:06 (quit) xaxisx: Quit: xaxisx 14:06 (join) jeapostrophe 14:06 (quit) jeapostrophe: Changing host 14:06 (join) jeapostrophe 14:10 asumu: stchang: oh, I was just wondering if you were using integer sets for some application. 14:10 asumu: I looked at the patch and figured out how it worked 14:10 asumu: And thanks, because I think it was my mistake. :p 14:11 asumu: paddymahoney: it'd be nice if we had the resources to organize something like that, but I don't think it'll happen anytime soon. 14:12 asumu: I've seen some hackers get projects funded through sources like kickstarter though, but that usually requires having an idea people want to fund and some code/designs to show it's feasible. 14:12 asumu: e.g., http://git-annex.branchable.com/assistant/ was crowdfunded 14:16 (join) jwdunne 14:22 (join) snorble_ 14:26 (join) rashkov 14:29 rashkov: Anyone know why DrRacket (running under a linux virtual machine) might be constantly giving me: Racket virtual machine has run out of memory; aborting 14:30 jonrafkind: ulimit? 14:30 jonrafkind: what does ulimit -a say 14:34 rashkov: pasted here: http://sprunge.us/eQZB 14:35 jonrafkind: looks ok to me 14:35 jonrafkind: could be a custodian memory limit 14:36 jonrafkind: look at racket -> limit memory 14:39 rashkov: it has been set to 128 MB, seems like it should be enough. I'm not running any code that's more than a couple lines long. 14:40 jonrafkind: can you ask on the racket list 14:41 rashkov: definitely 14:42 (join) anRch 14:42 rashkov: hmm you know what, my Virtual Machine memory is limited to 384 MB "RAM". Maybe that's the problem. 14:42 jonrafkind: oh haha yea 14:43 rashkov: heh heh 14:46 (join) RacketCommitBot 14:46 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/dcUc0w 14:46 RacketCommitBot: racket/master 1cf1e1b Asumu Takikawa: Add an example for `local-require` 14:46 (part) RacketCommitBot 14:46 (quit) rashkov: Quit: leaving 14:53 (quit) mye: Quit: mye 14:54 (join) rashkov 14:59 (join) vipjun 15:01 rashkov: yep turned out to be too little memory available for the linux virtual machine. Doubled it from 386MB and now it's running nicely. 15:04 jonrafkind: nice 15:06 vipjun: In racket everything is evaluated unless it's thunked? for example in a if statement, even if it's true the else would still be evaluated ? 15:06 chandler: no, that's not true. `if' is syntax, not a function 15:07 (join) gridaphobe 15:08 vipjun: http://pastebin.com/S9CtPwh5 15:09 vipjun: i'm trying to wrap my head around why it wouldn't terminate if x gets to 0 15:09 (quit) jeapostrophe: Ping timeout: 276 seconds 15:11 (join) mye 15:11 (quit) zeom: Ping timeout: 252 seconds 15:11 (join) mizu_no_oto 15:12 (quit) gridaphobe: Ping timeout: 260 seconds 15:14 (quit) Fare: Ping timeout: 248 seconds 15:17 (quit) myx: Ping timeout: 246 seconds 15:20 asumu: vipjun: what are my-if-bad and my-if supposed to be? 15:21 paddymahoney: yeah, can you post a snippet that passes drracket Check Syntax? 15:24 vipjun: sorry, i forgot to include those functions from the notes 15:25 vipjun: should be working now 15:26 vipjun: ok, i think i get it.. the earlier examples i posted are actually function calls, not an if statemeent 15:26 vipjun: i didn't catch that at first 15:26 (quit) jbclements: Quit: jbclements 15:28 (join) dyoo 15:30 (join) myx 15:33 dyoo: vipjun: just for reference: your question is pretty much exercise 1.6 of SICP: http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-10.html#%_sec_1.1.6 15:35 (quit) jao: Ping timeout: 255 seconds 15:35 vipjun: dyoo: thanks i'll take a read on that 15:36 (join) RacketCommitBot 15:36 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/Pyjk-w 15:36 RacketCommitBot: racket/master e8b49e2 Asumu Takikawa: Add doc subforms for keyword types 15:36 (part) RacketCommitBot 15:38 (quit) Kaylin: Quit: Leaving. 15:40 dyoo: vipjun: I just have fond memories of SICP, so basically everything reminds me of it. :) 15:41 (join) Fare 15:43 (quit) anRch: Quit: anRch 15:58 (quit) z0lt: Ping timeout: 256 seconds 16:02 (quit) myx: Quit: ушёл 16:24 (join) jbclements 16:24 (join) andres-v` 16:26 (quit) mizu_no_oto: Ping timeout: 276 seconds 16:28 (quit) vkz_: Quit: vkz_ 16:29 (quit) mye: Quit: mye 16:41 (join) Slavisa 16:55 (join) rohni 16:56 (quit) jwdunne: Quit: Leaving. 17:02 (join) gridaphobe 17:04 (join) igstan 17:04 (part) igstan 17:08 (join) RacketCommitBot 17:08 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/7P-JCw 17:08 RacketCommitBot: racket/master 61db1d6 Danny Yoo: Add link to the syntax of the @-reader.... 17:08 (part) RacketCommitBot 17:08 (join) igstan 17:08 (quit) igstan: Client Quit 17:10 (quit) rashkov: Quit: leaving 17:11 (quit) dyoo: Quit: dyoo 17:12 (join) mizu_no_oto 17:19 (join) dyoo 17:25 (join) tacoman 17:25 tacoman: which executable should I be using for a text REPL- mzscheme, racket, gracket-text? 17:26 jonrafkind: racket 17:26 tacoman: was mzscheme the old one, or did it have a different meaning historically as well? 17:29 asumu: It is just the old one. 17:29 asumu: It's just there for backwards compatibility. 17:29 tacoman: good to know. thanks! 17:30 jonrafkind: hm how did I get a sake executable in plt/bin 17:30 jonrafkind: is that instaleld by defauled? 17:30 asumu: Don't think so. What does it do even? 17:30 asumu: Oh wait, it is. 17:30 jonrafkind: i think its like a make replacement written in racket 17:30 dyoo: tacoman: if you're working on the command line, make sure to take a glance at: http://docs.racket-lang.org/guide/cmdline-tools.html 17:30 jonrafkind: $ ./sake 17:30 jonrafkind: default-load-handler: cannot open input file 17:30 jonrafkind: path: /home/jon/.racket/planet/300/5.1.0.3/cache/schematics/sake.plt/1/0/sake.rkt 17:30 jonrafkind: 5.1.0.3.. amazing 17:31 jonrafkind: raco planet show says no packages installed 17:31 tacoman: ah, good to know. I'm actually hooking up Geiser/Emacs up to Racket, so I needed the REPL name. but RACO looks useful for sure 17:31 asumu: jonrafkind: ah, that explains it. Somehow I got the planet package too... 17:31 jonrafkind: it must be some old stuff in my .racket file or something 17:32 dyoo: tacoman: ah, good! More emacs-related goodness in the subsection: http://docs.racket-lang.org/guide/Emacs.html 17:33 tacoman: any gotchas to installing Quack concurrently, or should it be fine if I install both through ELPA without more configuration? 17:34 dyoo: tacoman: hmmm… not that I know of, but maybe someone else has had experience with both? 17:34 (join) igstan 17:34 (quit) igstan: Client Quit 17:35 tacoman: I'm sure I can work through it if there happens to be any, just wanted to see if anyone had something that jumped out 17:40 tacoman: anyway. thank you all for the help! 17:40 (quit) tacoman: Quit: ERC Version 5.3 (IRC client for Emacs) 17:40 (quit) gridaphobe: Remote host closed the connection 17:41 (join) Kaylin 17:42 (join) yeboot 17:46 (join) rohni1 17:46 (quit) rohni: Read error: Connection reset by peer 17:46 (join) bitonic 17:50 samth: asumu: i think the `mzscheme` binary may accept slightly different command line syntax 17:58 (quit) racycle: Quit: racycle 17:58 samth: from the typed racket is awesome files: https://gist.github.com/samth/5009113 18:00 (quit) Slavisa: Ping timeout: 276 seconds 18:02 stamourv: That is pretty awesome. 18:02 samth: sadly TR isn't smart enough to just leave off the kws that are Nothing 18:07 (join) z0lt 18:07 (join) Kaylin1 18:08 yeboot: what's the difference between typed and untyped 18:09 yeboot: I realize that this is a fundamental thing that I don't understand about languages like racket, but I have no idea what the terms mean 18:09 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 18:11 (quit) Kaylin: Ping timeout: 260 seconds 18:13 asumu: yeboot: have you used languages like Java, C#, or Haskell? 18:16 yeboot: Java 18:16 yeboot: C, Java, Python, some racket, reading sicp for the heck of it so some scheme, too 18:17 yeboot: I do a lot of C though, since I do hardware programming 18:17 dyoo: yeboot: in typed languages, the compiler will do a pass before execution that associates types to the elements in your program. This is a static analysis: it does this before even running your program, as a sanity check to make sure we're not doing silly things like adding a number to a string. 18:18 dyoo: in an untyped language, the compiler doesn't do this check at compile time: rather, the sanity checks are done during the running of the program. 18:18 asumu: ^ what dyoo said. In Java, you can't write "5 + new Object();" and have it run at all. 18:18 yeboot: I see 18:18 asumu: In contract with Python or ordinary Racket. 18:19 asumu: s/contract/contrast/ 18:19 asumu makes that typo *every single time* 18:19 dyoo: yeboot: for more information, see: http://cs.brown.edu/courses/cs173/2012/book/types.html 18:19 yeboot: thank you very much! :) 18:20 yeboot: so C is very much a typed language, cool 18:20 samth: yeboot: 18:21 samth: yeboot: yes 18:21 asumu: It is, though its type system doesn't guarantee much. 18:21 yeboot: makes sense, now. I've wondered about how the interpreter knows the type of everything 18:21 yeboot: it's also cool that that course is in racket 18:23 (join) vkz 18:28 (quit) bitonic: Ping timeout: 248 seconds 18:33 (join) hash_table 18:33 (quit) rohni1: Quit: Leaving. 18:34 (join) mizu_no_oto 18:36 (quit) mizu_no_oto: Client Quit 18:36 (join) soegaard 18:37 (join) mizu_no_oto 18:37 (join) mye 18:39 (join) Kaylin 18:40 (join) gridaphobe 18:41 (quit) Kaylin1: Ping timeout: 246 seconds 18:42 (quit) hash_table: Ping timeout: 245 seconds 18:45 (join) merijn 18:50 (join) jeapostrophe 18:50 (quit) jeapostrophe: Changing host 18:50 (join) jeapostrophe 18:53 (quit) Kaylin: Quit: Leaving. 18:53 (quit) jonrafkind: Ping timeout: 256 seconds 18:54 (join) bitonic 18:55 (join) jao 18:55 (quit) jao: Changing host 18:55 (join) jao 18:57 (join) dauterive 18:59 (quit) jeapostrophe: Ping timeout: 255 seconds 19:05 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 19:07 (quit) vkz: Quit: vkz 19:08 (join) racycle 19:09 (quit) soegaard: Quit: soegaard 19:16 (quit) bitonic: Ping timeout: 276 seconds 19:27 (quit) Fare: Ping timeout: 264 seconds 19:30 (join) mye_ 19:32 (quit) mye: Ping timeout: 264 seconds 19:32 (nick) mye_ -> mye 19:34 (quit) z0lt: Ping timeout: 276 seconds 19:41 (join) jeapostrophe 19:42 (join) z0lt 19:43 (join) vkz 19:48 (join) mizu_no_oto 19:53 (quit) z0lt: Ping timeout: 255 seconds 19:58 (quit) dyoo: Quit: dyoo 20:00 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 20:03 (join) mizu_no_oto 20:04 (quit) dauterive: Quit: Leaving 20:12 (quit) vkz: Quit: vkz 20:15 (quit) SeanTAllen: Ping timeout: 252 seconds 20:17 (quit) merijn: Read error: Connection reset by peer 20:17 (join) merijn 20:23 (join) noam_ 20:26 (join) RacketCommitBot 20:26 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/FI7bNQ 20:26 RacketCommitBot: racket/master 09f9f31 Robby Findler: various 0-sized image repairs... 20:26 (part) RacketCommitBot 20:26 (quit) noam: Ping timeout: 255 seconds 20:30 (join) ambrosebs 20:38 (quit) gridaphobe: Remote host closed the connection 21:07 (join) Kaylin 21:09 (join) Kaylin1 21:10 (join) yacks 21:11 (join) dauterive 21:11 (quit) Kaylin: Ping timeout: 252 seconds 21:15 (join) rmathews 21:16 (quit) jao: Ping timeout: 252 seconds 21:31 yeboot: are there any good racket books out there yet 21:37 bremner: yeboot: there is "How to Design Programs" ; first and second editions are both on the web 21:38 jbclements: yeboot: also, depending on your intent, there's also the racket-for-command-line-hackers guide…. 21:40 yeboot: racket for command line hackers? 21:44 (quit) vipjun: Ping timeout: 276 seconds 21:49 (join) Fare 21:50 yeboot: jbclements which book are you referencing, exactly 21:50 yeboot: bremner do you have a copy of that book, would you recommend it? 21:50 (quit) ambrosebs: Remote host closed the connection 21:52 jbclements: yeboot: the book that bremner refers to, often called simply "HtDP", is available online at www.htdp.org. 21:52 yeboot: I'm going through a list of books that I want to physically own, or get copies of 21:54 jbclements: yeboot: HtDP is a lovely and thick MIT press book. It's physical. The other thing, called "More: Systems Programming with Racket", is online only, at http://docs.racket-lang.org/more/ 21:55 bremner: yeboot: I don't have a copy. 21:55 jbclements: yeboot: They're intended for wildly different audiences. 21:55 jbclements: HtDP is designed to teach you how to program. 21:55 yeboot: I already know. I program in C for a living and I learned lisp-like languages with sicp 21:56 yeboot: but that aside I'll probably read HtdP 21:56 yeboot: HtDP 21:57 jbclements: If you're familiar with sicp, you'll probably find yourself skimming quite a bit of it. Don't get me wrong: it takes a *very* different approach from sicp. However, a seasoned SICP programmer will find parts of HtDP quite hand-hold-y. Be patient, and it has a bunch of things that SICP doesn't. 21:58 yeboot: I'm pretty humble when it comes to reading, actually 22:00 asumu: There is also a book called Realm of Racket (inspired by Land of Lisp) coming out in May. 22:00 (quit) jbclements: Quit: jbclements 22:00 yeboot: because in the past I haven't been, and have found pretty awesome programming paradigms by reading books that have lead me to have a more humble attitude 22:00 bremner: yeboot: you might have a look at "Programming Languages, Application and Interpretation" 22:01 bremner: it's not about racket per se, but it uses racket, and the stuff it teaches is certainly applicable to racket. 22:01 (quit) mceier: Ping timeout: 260 seconds 22:01 (join) mceier 22:02 yeboot: in your opinion, though, can racket be used for scripting 22:02 yeboot: I know it's an abrupt change, I'm just trying to scope out what I'd be using the language ofr 22:02 yeboot: for* 22:03 (quit) majoh: Ping timeout: 252 seconds 22:03 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 22:04 (join) majoh 22:04 (join) mizu_no_oto 22:07 (quit) cipher: Quit: ERC Version 5.3 (IRC client for Emacs) 22:09 (join) cipher 22:09 (quit) cipher: Changing host 22:09 (join) cipher 22:09 (quit) dauterive: Ping timeout: 252 seconds 22:11 bremner: sure, you can write scripts in racket. 22:11 bremner: depends on the scale of the script probably, whether that makes sense. 22:12 (join) SeanTAllen 22:17 (join) gridaphobe 22:27 (join) Slavisa 22:28 yeboot: It does. I just like the idea of procedurally generated scripting 22:34 (quit) Slavisa: Read error: Connection reset by peer 22:36 (join) Slavisa 22:36 (nick) rudybot_ -> rudybot 22:38 (quit) yeboot: Read error: Connection reset by peer 22:43 (join) dauterive 22:44 (quit) racycle: Read error: Connection reset by peer 22:55 (join) jonrafkind 22:56 (quit) rmathews: Quit: ... 23:00 (join) antics 23:05 (quit) antics: Client Quit 23:14 (quit) Kaylin1: Quit: Leaving. 23:15 (quit) jeapostrophe: Ping timeout: 260 seconds 23:21 (join) brum 23:29 (join) ambrosebs 23:29 (quit) Fare: Ping timeout: 246 seconds 23:32 (quit) ambrosebs: Remote host closed the connection 23:34 (join) rmathews 23:35 (join) ambrosebs 23:38 (quit) ambrosebs: Remote host closed the connection 23:39 (join) ambrosebs 23:42 (quit) ambrosebs: Remote host closed the connection 23:51 (quit) acarrico: Ping timeout: 240 seconds 23:52 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 23:54 (join) vipjun 23:55 vipjun: need some help with challenge on A4, i've gotten it to print x 6 times, and also X to infinity, and prints x # . 23:55 vipjun: opps wrong channel 23:57 brum: whoops someone is getting homework help 23:58 vipjun: yupppppp 23:58 vipjun: not smart enough to figure it out myself. but on one hand its just an online thing that is not for university credit.