Discussion:
[racket] DrRacket init file on WIndows 8
Jongwon Choi
2015-03-08 10:24:14 UTC
Permalink
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
(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
2015-03-08 20:34:11 UTC
Permalink
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
Post by Jongwon Choi
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
(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
____________________
http://lists.racket-lang.org/users
____________________
Racket Users list:
http://lists.racket-lang.org/users
Jong-won Choi
2015-03-09 09:07:04 UTC
Permalink
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
Post by Gustavo Massaccesi
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
Post by Jongwon Choi
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
(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
____________________
http://lists.racket-lang.org/users
____________________
Racket Users list:
http://lists.racket-lang.org/users

Loading...