00:17 (join) jonrafkind 02:23 (nick) ne -> nicktick 02:27 (quit) jonrafkind: Ping timeout: 240 seconds 04:11 (join) masm 04:56 (quit) adadgltmut: Max SendQ exceeded 04:57 (join) adadgltmut 06:21 (quit) nicktick: Ping timeout: 240 seconds 07:04 (join) jeapostrophe 07:18 (quit) jeapostrophe: Quit: jeapostrophe 07:19 (join) jeapostrophe 07:26 (join) sunnyps 07:33 (join) jeapostrophe_ 07:33 (quit) jeapostrophe: Read error: Connection reset by peer 07:33 (nick) jeapostrophe_ -> jeapostrophe 07:34 jeapostrophe: askhader: dispatch-rules takes function identifiers so you can't have an expression like (redirect-to) 07:35 jeapostrophe: askhader: you could have 'redirect-to' except it's contract doesn't match what dispatch-rules expects 07:35 jeapostrophe: (which is request _pattern-outputs_ -> response) 07:38 (quit) sunnyps: Quit: Ex-Chat 08:33 (join) sunnyps 09:35 (topic) samth: Racket -- http://racket-lang.org/ (logs at http://racket-lang.org/irc-logs/ ) 09:39 (join) lisppaste 09:56 (quit) jeapostrophe: Quit: jeapostrophe 10:20 (join) jeapostrophe 10:36 (quit) sunnyps: Remote host closed the connection 10:36 (join) sunnyps 10:37 (quit) sunnyps: Client Quit 10:40 (join) sunnyps 10:45 (quit) jeapostrophe: Quit: jeapostrophe 11:11 (quit) clklein: Ping timeout: 265 seconds 11:40 (join) anRch 12:01 (quit) anRch: Quit: anRch 12:07 (join) anRch 12:14 (join) jonrafkind 12:20 (quit) anRch: Read error: Connection reset by peer 12:20 (join) anRch 12:25 (join) carleastlund 12:35 (quit) anRch: Quit: anRch 13:17 (quit) sunnyps: Quit: Ex-Chat 13:24 (quit) jonrafkind: Read error: Connection reset by peer 13:25 (join) jonrafkind 13:43 (join) anRch 13:46 (quit) jonrafkind: Read error: Connection reset by peer 13:47 (join) jonrafkind 13:49 (join) newuser 13:50 newuser: hello 13:50 jonrafkind: hi 13:50 newuser: can I ask a question about drracket 13:51 jonrafkind: yes 13:52 newuser: Thanks. How do I make it so a .scm file (with many defines) is loaded every time I start drracket? 13:52 (quit) jonrafkind: Read error: Connection reset by peer 13:53 (join) jonrafkind 13:53 jonrafkind: hm, I suppose you can add (load "foo.scm") to ~/.racketrc 13:53 jonrafkind: are you in linux or windows? 13:53 newuser: windows 13:54 newuser: where is ".racketrc"? 13:54 jonrafkind: thats a linux thing 13:55 newuser: any idea how to do it on windows? 13:55 jonrafkind: ok in drracket type this in 13:55 jonrafkind: (find-graphical-system-path 'init-file) 13:55 newuser: I get "reference to undefined identifier: find-graphical-system-path" 13:55 jonrafkind: change the lang line to #lang racket/gui 13:56 newuser: okay one min 13:57 newuser: uh, I get "module: name is not defined, not a parameter, and not a primitive name" 13:57 newuser: oh wait 13:57 newuser: okay, I got a file path "" 13:58 jonrafkind: ok edit that file and add (load "c:/whatever/foo.scm") 13:58 newuser: okay one min 13:59 (join) shofetim 13:59 newuser: okay done. I will restart drracket 14:00 newuser: hmm, it is stil not working 14:00 newuser: the functions define are "reference to an identifier before its definition: [funciton name]" 14:01 newuser: when i try to use them 14:02 jonrafkind: what exactly did you add to gracket.rktl 14:02 newuser: well, first there was no gracketrc.rktl before 14:03 newuser: so I created one added "(load "C:/Program Files/Racket/collects/user/simply.scm")" 14:03 newuser: on a single line 14:04 jonrafkind: hm, works for me on the command line 14:04 jonrafkind: maybe drracket is doing something wierd 14:04 newuser: okay, but when i try to manually load the file using "(load "simply.scm")" 14:05 newuser: "reference to an identifier before its definition: load" 14:06 newuser: okay, it is working when I changed language to "Essentals of Prograaming language 3rd" 14:06 newuser: but i get this error: "simply.scm:17:15: reference to undefined identifier: error" 14:06 newuser: this is line 17: "(error error)" 14:07 newuser: (define whoops (let ((string? string?) (string-append string-append) (error error) (cons cons) 14:07 jonrafkind: hm, im not sure what environment gracket.rktl is executed in 14:08 jonrafkind: it might not have all the definitions you are looking for 14:08 newuser: that's strange when I try to do "(error "hello"), I get "reference to undefined identifier: error" 14:09 newuser: (at the command prompt) 14:09 newuser: I adde "#lang racket" to the top of simply.scm 14:09 newuser: now, the "error" message is gone, but i get 14:10 newuser: "simply.scm:385:17: if: bad syntax (must have an "else" expression) in: (if (symbol? thingy) (symbol->string thingy))" when I load it 14:10 samth: jonrafkind, newuser, there is not a way to start something everytime you run dr racket 14:10 samth: when would it run? 14:10 jonrafkind: when it starts up 14:10 newuser: i just want some definitions 14:10 newuser: so i dont have to keep redefining them 14:10 samth: newuser, where should the definitions be available? 14:10 newuser: in the source file i am editing 14:10 jonrafkind: you could just put the definitions in a file and (require ...) them 14:10 newuser: like for homework 14:11 jonrafkind: or I guess you could make a new language and use #lang mylang, that automatically has those definitions 14:11 newuser: how can i do this? 14:11 jonrafkind: the require thing is easiest 14:11 newuser: the real language I am using is plain Scheme 14:11 samth: when you use drracket, the contents of the definitions window is a module, and if you want something there, you need to explictly require it 14:11 jonrafkind: put #lang racket in the file simply.scm and add (provide (all-defined-out)) 14:11 jonrafkind: then in another file do (require "simply.scm") 14:11 jonrafkind: now you can use those definitions 14:11 newuser: okay let me try that 14:13 newuser: okay, looks like it works! But, I still get erros with "simply.scm" loading 14:13 newuser: " simply.scm:386:17: if: bad syntax (must have an "else" expression)" 14:13 newuser: (colon-thingy->string (lambda (thingy) (if (keyword? thingy) (keyword->string thingy) (if (symbol? thingy) (symbol->string thingy))))) 14:13 jonrafkind: replace `if' with `when' 14:14 jonrafkind: but thats not really a great practice, your `else' branch should have an error case 14:14 jonrafkind: what if thingy is not a symbol? 14:14 newuser: okay, that works, but I get an error on line 785 now 14:14 newuser: hmm, the thing is i didnt write these 14:14 newuser: definitions. my school did 14:14 newuser: we are using regular scheme 14:15 jonrafkind: ok maybe you can try using r5rs 14:15 samth: try putting '#lang mzscheme' at the top of simply.scm 14:15 newuser: ijay 14:15 newuser: okay 14:15 newuser: now, i get " simply.scm:2:9: #%provide: bad syntax in: (all-defined-out)" 14:15 newuser: line 2: "(provide (all-defined-out))" 14:15 jonrafkind: oh that has to change to something else.. 14:15 samth: you'll need to change some things 14:16 samth: (provide (all-defined)) 14:16 newuser: okay, that error is gone, but now i get this: "simply.scm:934:18: expand: unbound identifier in module in: set-cdr!" 14:16 (quit) jonrafkind: Read error: Connection reset by peer 14:16 newuser: "(define remove! (let ((null? null?) (cdr cdr) (eq? eq?) (set-cdr! set-cdr!)" 14:16 newuser: (sorry for all the errors) 14:17 samth: then that code is unlikely to work in racket 14:17 (join) jonrafkind 14:17 (quit) jonrafkind: Read error: Connection reset by peer 14:17 samth: you can use the r5rs language 14:17 (join) jonrafkind 14:17 newuser: hmm, that is leading to more errors on line 18 14:17 jonrafkind: yea, change #lang mzscheme to #lang r5rs 14:17 newuser: maybe mzscheme is the best bet 14:18 newuser: because it doesnt have error until line 934 14:18 jonrafkind: mzscheme got rid of set-cdr! 14:18 jonrafkind: now its set-mcdr! 14:18 samth: neither mzscheme nor racket will have set-cdr! 14:18 samth: you need to use the r5rs language 14:18 newuser: okay let me change those to set-mcdr! 14:18 jonrafkind: you'll have to make a bunch of changes if you want to use mzscheme 14:18 jonrafkind: no, leave the code alone 14:18 (quit) jonrafkind: Read error: Connection reset by peer 14:18 samth: just changing those will not fix the problem - you'll just get more errors 14:18 newuser: what sthe difference 14:18 newuser: oh 14:19 (join) jonrafkind 14:19 newuser: is there any way for me to get scheme suport 14:19 jonrafkind: r5rs is scheme 14:20 samth: if you want to use a version of scheme that supports your course's software, i recommend using the r5rs language 14:20 newuser: let me try r5rs 14:20 newuser: "simply.scm:2:1: expand: unbound identifier in module in: provide" 14:20 newuser: note that the code works just fine in emacs 14:20 jonrafkind: take out the provide 14:20 samth: you'll have to remove the provides, and use 'load' instead of require 14:21 newuser: okay now i get "simply.scm:18:15: expand: unbound identifier in module in: error" 14:21 (join) digi9 14:21 newuser: " (error error)" 14:21 newuser: line 18: " (error error)" 14:21 newuser: "(define whoops (let ((string? string?) (string-append string-append) (error error)" 14:21 samth: unfortunately, the r5rs language doesn't provide the error procedure 14:21 samth: did you change the language in the language dialog? 14:21 samth: or just at the top of the file? 14:22 newuser: i set it to "determine language from source" 14:22 newuser: just the top of the file 14:22 samth: change it in the language dialog to 'R5RS' 14:22 samth: and remove the #lang 14:23 newuser: okay, i ge thte same error "simply.scm:16:15: reference to undefined identifier: error" 14:24 newuser: should i post the simply.scm file on a snippet webiste 14:25 newuser: any suggestions for a webiste? 14:25 samth: lisppaste, url 14:25 lisppaste: To use the lisppaste bot, visit http://paste.lisp.org/new/racket and enter your paste. 14:26 samth: however, newuser, it's unlikely that this will work at all in racket 14:26 lisppaste: newuser pasted "simply.scm" at http://paste.lisp.org/display/112095 14:26 newuser: hmm 14:27 newuser: how come it works in emacs? 14:27 newuser: i am not sure which dialect it is 14:27 samth: in what way does it work in emacs? 14:27 samth: emacs is not a scheme system 14:27 samth: you must be running some scheme from emacs 14:28 newuser: well i installed minGW and type "emacs" in the command prompt 14:28 samth: and how do you run scheme from emacs? 14:29 newuser: "stk interpreter" I think it is this: http://kaolin.essi.fr/STk/ 14:29 samth: right, that's not the same as racket 14:29 newuser: hmm, so it wont work? 14:29 samth: if that's what your class recommends, i would use that 14:30 newuser: okay, thanks for all your help though 14:30 samth: sure 14:30 samth: what class is this? 14:30 newuser: cs61a: http://inst.eecs.berkeley.edu/~cs61a/su10/ 14:30 lisppaste: digi9 pasted "compilation on freebsd/sparc64" at http://paste.lisp.org/display/112097 14:31 digi9: as the lisppaste bot indicates, I'm having a bit of trouble compiling racket on FreeBSD/sparc64 14:31 (quit) newuser: Quit: Page closed 14:31 digi9: sconfig.h seems to show that FreeBSD/sparc64 is supported 14:31 samth: digi9, you should post to the racket mailing list 14:32 samth: i don't think anyone here has a sparc machine 14:32 digi9: Ok, will do 14:33 (part) digi9: "Leaving" 14:35 (join) digi9 14:35 (part) digi9: "Leaving" 14:35 samth: digi9, you should try 'make cgc' 15:01 (join) jaj_ 15:01 (quit) jaj_: Client Quit 15:25 (quit) anRch: Quit: anRch 18:22 (quit) masm: Quit: Leaving. 18:29 (join) deren 18:29 deren: ctcp version? 18:29 jonrafkind: ignore that 18:30 deren: well, major Racket success story this week. Wrote an automated testing script using the FFI, works perfectly. 18:30 deren: (automated testing of an instrument) 18:31 jonrafkind: nice 18:31 deren: 3 days with scheme, I (an EE) get it done. Months with C++, my company's programming department still can't implement what I ask of them. :( 18:32 jonrafkind: i wrote an ffi testing framework with mzscheme a long time ago, it was pretty neat 18:32 deren: FFI is magical 18:33 jonrafkind: actually I tried to load different versions of the same library, and for that I had to change the RTLD_GLOBAL thing to RTLD_LOCAL I think, so I had to hack the mzscheme c code 18:33 deren: haha.. thankfully I didn't have to, or I'd probably not get it done. My C knowledge only seems to work on microcontrollers. 18:37 (join) masm 18:38 (quit) ri4a: *.net *.split 18:38 (quit) samth: *.net *.split 18:40 (quit) chandler: *.net *.split 18:41 (join) samth 18:41 (join) ri4a 18:41 (join) chandler 18:51 (quit) masm: Quit: Leaving. 19:28 (quit) deren: Ping timeout: 252 seconds 19:35 (nick) samth -> samth_away 20:24 (quit) carleastlund: Quit: carleastlund 21:47 (part) shofetim: "ERC Version 5.3 (IRC client for Emacs)" 22:52 (quit) jonrafkind: Ping timeout: 240 seconds 23:48 (join) poet