[racket] DrRacket init file on WIndows 8

10 views
Skip to first unread message

Jongwon Choi

unread,
Mar 8, 2015, 6:27:17 AM3/8/15
to us...@racket-lang.org
Finally it is time to teach programming to my kid!

I've installed DrRacket 6.1.1 [3m] on Windows 8, added atom? function
and saved it as racketrc.rktl



But DrRacket does not load it at startup. I confirmed like below:

> (find-system-path 'init-file)
#<path:C:\Users\Jongwon\racketrc.rktl>

> (define in (open-input-file "C:\\Users\\Jongwon\\racketrc.rktl"))
> in
#<input-port:C:\Users\Jongwon\racketrc.rktl>


Any ideas?


Thanks!

- Jongwon
____________________
Racket Users list:
http://lists.racket-lang.org/users

Gustavo Massaccesi

unread,
Mar 8, 2015, 4:38:39 PM3/8/15
to Jongwon Choi, Racket Users
The file racketrc.rktl is loaded only in Racket.exe, not it
GRacket.exe or DrRacket.exe.

I think that the easier way to do something similar is

1) Save a file "mylibrary.rkt" with the code you want.
2) Open DrRacket
3) Type in the definition window
#lang racket
(require "mylibrary.rkt")
4) Save this to the same folder of "mylibrary.rkt"
5) Press the Run Button
6) You can use now the interaction window


I actually prefer to program only in the definition windows, and use
the interaction windows for debugging.

It's also possible to define your own language, for example
super-racket that is racket with even more libraries included, and
then you only have to type
#lang super-racket
This is not difficult but it require many steps to create all the
folders and files to configure the new language.

Gustavo

Jong-won Choi

unread,
Mar 9, 2015, 5:09:54 AM3/9/15
to Gustavo Massaccesi, Racket Users
Thanks, Gustavo

That is inconvenient :(




Is it possible to do incremental saving DrRacket image with my own
extension?
Or are there easy ways to make DrRacket 'executable' again with my own
extension?

Thanks!

- Jong-won
Reply all
Reply to author
Forward
0 new messages