00:49 (join) las_ 00:49 las_: quick question, how does one run mit scheme through racket? 00:50 las_: there are some differences, the code I have works on emacs with scheme but not on racket 00:56 Lajla: las_, what error does it give? 00:56 Lajla: Also, try #lang r5rs or #lang r6rs I guess 01:00 las_: reference to undefined identifier: write-line 01:00 las_: I set it to Essentials of Programming Languages 01:03 (quit) asumu: Read error: No route to host 01:03 las_: any ideas? 01:09 las_: please guys 01:13 las_: if I change write-line to write it goes through 01:14 las_: then I also need to change prompt-for-command-char to whatever it is in the newer version 01:18 (join) vu3rdd 01:18 las_: vu3rdd u here? 01:21 vu3rdd: las_: yes 01:21 las_: Im trying to run some code 01:21 las_: in mitscheme 01:21 las_: in racket 01:21 vu3rdd: ok 01:21 las_: so some things from mitscheme dont work 01:21 las_: for example 01:21 las_: write-line 01:22 las_: I replaced with write 01:22 vu3rdd: ok. Do you have the code somewhere ? I am using Racket these days. 01:22 las_: and that works with r5rs 01:22 las_: yea hold on 01:22 vu3rdd: ok 01:22 las_: http://pages.cs.brandeis.edu/~mairson/Courses/cs21b/lunar.scm 01:23 las_: do you know if r5rs is the closest thing to mitscheme 01:25 vu3rdd: las_: I think mitscheme has r5rs support. That's what I read somewhere. But I can try this code in Racket. 01:25 las_: please do 01:25 (join) las_2 01:25 vu3rdd: Also Racket can be configured for r5rs 01:25 las_2: Im using racket 01:26 vu3rdd: Just put #lang r5rs in the first line and run. 01:26 las_2: with r5rs 01:26 las_2: thats the thing 01:26 las_2: but the code is for mitscheme 01:26 las_2: so u get reference to undefined identifier: write-line 01:27 vu3rdd: yes. Hold on 01:29 vu3rdd: I replaced write-line with displayln and put #lang racket as the first line 01:29 vu3rdd: now it complains about prompt-for-command-char 01:29 las_2: yup 01:31 (quit) las_: Quit: Page closed 01:32 las_2: I wish racket had mitscheme as one of the languages :/ 01:34 (join) jonrafkind 01:35 vu3rdd: las_2: yes. 01:36 las_2: so what can prompt-for-command-char be replaced with? 01:39 vu3rdd: I am trying to look at the readline library documentation (require readline) 01:42 vu3rdd: las_2: from shell prompt, invoke racket (or mzscheme) 01:44 las_2: how do i invoke from shell prompt? 01:45 vu3rdd: now, do (require readline/readline) 01:45 vu3rdd: just type racket at shell prompt 01:45 vu3rdd: once you have require'ed readline, do (readline ">>>>") 01:45 vu3rdd: and you should see the new prompt string 01:47 las_2: see where? 01:47 vu3rdd: on the command prompt 01:47 las_2: > (readline ">>>>") 01:47 las_2: reference to undefined identifier: readline 01:47 las_2: === context === 01:47 las_2: H:\Program Files (x86)\Racket\collects\mred\private\repl.rkt:127:15 01:47 las_2: # 01:47 las_2: this is where it ends 01:47 las_2: after the sequence 01:47 vu3rdd: did you do (require readline/readline) ? 01:47 las_2: yes 01:47 vu3rdd: hmm.. 01:47 las_2: Welcome to GRacket v5.0.1. 01:47 las_2: This is a simple window for evaluating Racket expressions. 01:47 las_2: Quit now and run DrRacket to get a better window. 01:47 las_2: The current input port always returns eof. 01:47 las_2: > racket 01:47 las_2: reference to undefined identifier: racket 01:47 las_2: === context === 01:47 las_2: H:\Program Files (x86)\Racket\collects\mred\private\repl.rkt:127:15 01:47 las_2: # 01:47 las_2: > require readline/readline 01:47 las_2: require: bad syntax in: require 01:47 las_2: === context === 01:47 las_2: H:\Program Files (x86)\Racket\collects\mred\private\repl.rkt:127:15 01:47 las_2: # 01:47 vu3rdd: it seem to work for me here 01:48 vu3rdd: I am running the latest from git (4-5 days old code) 01:48 las_2: do you know what I can use instead of it? 01:48 las_2: same here 01:48 las_2: does it tell you what I can use instead of it then? 01:48 vu3rdd: this is what I get 01:48 vu3rdd: rkrishnan@rkrishnanT510~ $ racket 01:48 vu3rdd: Welcome to Racket v5.0.1.5. 01:48 vu3rdd: > (require readline/readline) 01:48 vu3rdd: > (readline ">>>") 01:48 vu3rdd: >>> 01:49 vu3rdd: 01:49 vu3rdd: see that the prompt changed from > to >>> 01:49 las_2: yea 01:49 las_2: I dont see how that helps me though 01:50 vu3rdd: hmm.. is n't this what is meant by prompt-for-command=char? 01:51 las_2: I mean I need to get this code to run 01:51 las_2: just this code 01:51 las_2: I cant invoke anything from shell secondary to it 01:52 vu3rdd: How do I run the program? where function is the start? 01:52 vu3rdd: p;ay? 01:52 vu3rdd: play? 01:53 las_2: yea 01:53 las_2: (play) 01:54 vu3rdd: hmm.. there seem to be some problems with the readline 01:54 las_2: yea 01:54 las_2: the two problems are 01:54 las_2: write-line 01:54 vu3rdd: char->integer: expects argument of type ; given "" 01:54 vu3rdd: that's the error I get 01:55 las_2: huh 01:55 las_2: what language are u using? 01:55 vu3rdd: #lang racket 01:55 vu3rdd: I modified all write-line calls to displayln 01:55 las_2: right 01:55 vu3rdd: and changed prompt... with readline 01:55 las_2: ah 01:56 las_2: well u need an integer for the input 01:56 las_2: but apparently it reads them as chars? 02:05 las_2: lol 02:05 las_2: alright 02:05 las_2: are you familiar with emacs? 02:10 vu3rdd: las_2: yes 02:11 las_2: I installed xemacs 02:11 las_2: c x c f 02:12 las_2: loaded the file 02:12 las_2: how would I compile? 02:13 vu3rdd: you mean you loaded a Scheme input file? 02:13 las_2: yes 02:13 vu3rdd: are you using quack or any other mode with it? 02:13 las_2: no 02:13 vu3rdd: if not, you may have to use quack and it will have a command to compile. 02:14 vu3rdd: you may also use raco to compile from cmd line 02:15 las_2: lol I think Im just gonna go download linux 02:16 las_2: so much simpler to do all of this in linux 02:17 vu3rdd: :-) 02:17 vu3rdd: I think there could be ways to do in windows too. Just that we are not familiar 02:18 vu3rdd: I guess if you wait till the evening (well.. morning for you, I guess) then you may be able to talk to Prof. Robby or Prof. Jay, who may be able to help.. 02:23 (quit) jonrafkind: Ping timeout: 240 seconds 02:27 vu3rdd: But I will try to get it to work on racket. Seems like a good exercise to learn the I/O facilities 02:31 vu3rdd: las_2: I replaced the readline "prompt string" with read-char 02:31 vu3rdd: and it seem to work 02:32 vu3rdd: Language: racket; memory limit: 512 MB. 02:32 vu3rdd: > (play) 02:32 vu3rdd: (height 50 velocity 0 fuel 20) 02:32 vu3rdd: 1 02:32 vu3rdd: (height 50 velocity -0.5 fuel 20) 02:32 vu3rdd: (height 49.5 velocity -1.0 fuel 20) 02:32 las_2: yup 02:32 vu3rdd: 2 02:32 vu3rdd: (height 48.5 velocity -1.5 fuel 20) 02:32 las_2: thats whats supposed to happen :) 02:32 vu3rdd: (height 47.0 velocity -2.0 fuel 20) 02:34 las_2: lol doesnt work for me 02:34 las_2: youre using racket right? 02:37 vu3rdd: yes 02:37 las_2: #lang racket? 02:37 vu3rdd: yes 02:38 las_2: read-char: expects argument of type ; given " action: " 02:39 vu3rdd: las_2: I pasted it here: http://paste.lisp.org/display/114745 02:41 vu3rdd: I removed the "action .." string 02:42 las_2: ffi-lib: couldn't open "libreadline.dll.5" (The specified module could not be found.; errno=126) 02:42 vu3rdd: also the (require ... ) is not required. 02:42 vu3rdd: my mistake. Sorry, please remove the (require readline/readline) 02:43 las_2: IT WORKS 02:43 las_2: xD 02:43 las_2: love you man 02:44 vu3rdd: thanks. :-) 02:44 vu3rdd: glad I can be of any help. 02:49 (join) rbarraud__ 02:49 (quit) rbarraud_: Ping timeout: 276 seconds 02:51 (quit) rbarraud__: Client Quit 02:51 (join) rbarraud__ 03:08 (join) masm 03:52 (quit) masm: Ping timeout: 276 seconds 03:56 (join) masm 04:01 (quit) las_2: Quit: Leaving. 05:05 (quit) offby1: Ping timeout: 255 seconds 05:39 (join) dzhus 06:12 (join) jao 06:46 (join) writer 06:50 (quit) writer: Client Quit 07:15 (quit) rbarraud__: Ping timeout: 265 seconds 07:20 (join) writer 08:10 (join) hanDerPeder 08:18 (join) asumu 08:19 (quit) masm: Quit: Leaving. 08:45 (quit) asumu: Read error: Connection reset by peer 08:47 (join) mceier 09:31 (join) b-man_ 10:58 (quit) vu3rdd: Remote host closed the connection 10:59 (join) MayDaniel 11:05 (quit) b-man_: Ping timeout: 272 seconds 11:10 (part) fjl 11:29 (join) b-man_ 11:33 (quit) hanDerPeder: Quit: hanDerPeder 11:42 (quit) emma: Ping timeout: 264 seconds 12:04 (join) anRch 12:09 (join) jonrafkind 12:11 (quit) jao: Ping timeout: 240 seconds 12:21 (join) offby1 12:23 (join) asumu 12:56 (quit) anRch: Quit: anRch 13:16 (join) hanDerPeder 13:24 (join) carleastlund 13:26 (join) emma 13:52 (join) anRch 13:56 (join) Fare 14:15 (join) blake_johnson 14:36 (quit) anRch: Quit: anRch 14:39 (join) anRch 15:02 (quit) anRch: Quit: anRch 15:15 (quit) writer: Quit: writer 15:18 (join) writer 15:21 Fare: is github the new official racket code repository? http://github.com/plt/racket/ 15:23 carleastlund: That's an official mirror; the main repository is at: http://git.racket-lang.org/plt.git 15:23 carleastlund: But for most purposes using the github one should give you the same results. 15:31 (quit) blake_johnson: Quit: blake_johnson 15:43 Fare: ok 15:49 Fare: when I make install prefix=/usr/local/stow/racket I get: standard-module-name-resolver: collection not found: "setup" in any of: (# #) 15:49 Fare: what does that mean and how do I fix it (using latest github checkout) 15:50 jay-mccarthy: what is in that directory? 15:50 jay-mccarthy: oh i see 15:50 Fare: which? /usr/local/stow/racket/collects ? 15:50 jay-mccarthy: i think you need to pass the prefix to the configure script 15:50 jay-mccarthy: ya 15:50 jay-mccarthy: i think that changing the prefix with make install is "too late" 15:50 Fare: nothing. It's all in /usr/local/stow/racket/racket/collects 15:51 Fare: oh. 15:51 Fare: when should I change the prefix? in configure? 15:51 jay-mccarthy: racket uses itself during the compilation/install and i think you are seeing how it thinks it should be somewhere else 15:51 jay-mccarthy: I do: ../configure --prefix=~/plt && make && make install 15:52 Fare: ok. Doing that. 15:52 chandler: why not just make an in-place version so you can move it around as you please? 15:53 Fare: chandler, uh? 15:55 chandler: I believe you can just move an in-place build of racket around and everything will continue to work 15:56 chandler: yes, I just tested it and it does 15:56 chandler: so, build in-place (see http://github.com/plt/racket/blob/master/src/README) and just move the results into your stow directory 16:01 Fare: too late, I rm'ed and am rebuilding. 16:01 Fare: thanks for the tip, though. 16:22 (join) blake_johnson 16:46 (join) masm 16:47 (quit) blake_johnson: Quit: blake_johnson 16:48 (quit) b-man_: Ping timeout: 272 seconds 16:49 (quit) dzhus: Remote host closed the connection 17:07 (quit) writer: Remote host closed the connection 17:59 (quit) asumu: Ping timeout: 272 seconds 18:03 (quit) jonrafkind: Ping timeout: 252 seconds 18:17 (join) blake_johnson 18:18 (join) blake_johnson_ 18:20 (join) asumu 18:22 (quit) blake_johnson: Ping timeout: 272 seconds 18:22 (nick) blake_johnson_ -> blake_johnson 18:25 (join) hanDerPeder_ 18:28 (quit) MayDaniel: 18:28 (quit) hanDerPeder: Ping timeout: 276 seconds 18:28 (nick) hanDerPeder_ -> hanDerPeder 18:42 (quit) hanDerPeder: Quit: hanDerPeder 18:55 (part) blake_johnson 19:05 (quit) masm: Quit: Leaving. 19:17 (quit) mceier: Quit: leaving 19:40 (quit) Fare: Quit: Leaving 20:54 (join) rbarraud 20:58 (quit) asumu: Ping timeout: 252 seconds 21:10 (quit) rbarraud: Read error: Connection reset by peer 21:14 (join) rbarraud 21:48 (part) carleastlund 22:16 (join) asumu 23:22 (join) jonrafkind 23:24 (quit) Lajla: Ping timeout: 264 seconds