Re: [racket-users] how to uninstall Racket 5.3.6?

2019-06-26 Thread Norman Ramsey
> TL;DR: build a new version in its own tree, then use that as a > guide to carefully deleting the old one from /usr/local by hand. Sounds workable. If a bit unpleasant. Thanks! > "/usr/local" sounds like it wasn't from a Debian package. Alas not. I've never actually used a Debian version:

[racket-users] how to uninstall Racket 5.3.6?

2019-06-21 Thread Norman Ramsey
discovered that the current version is reluctant to install over an existing version in /usr/local/bin. My system does not contain a `racket-uninstall` script, and searching the documentation does not turn up anything about how to remove an installation. How can I uninstall Racket 5.3.6? Norman Ramsey

Re: [racket] the definition of 'form'?

2014-05-23 Thread Norman Ramsey
> If you refer to the "Syntax Model" section of the reference > (http://docs.racket-lang.org/reference/syntax-model.html), you'll see > that Racket syntax is defined by two passes, called "read" and "expand". > > The grammar you gave in your message is what I would call a > "term"---it's

[racket] the definition of 'form'?

2014-05-16 Thread Norman Ramsey
Where would I find out, preferably in the Racket documentation, the definition of what a 'form' is? I'm thinking along these lines: A form is one of: - a symbol - a numeric literal - a string literal - ... possibly other literals? ... - a sequence of forms wrapped in one pai

Re: [racket] [plt-edu-talk] Using separate files as modules with HtDP

2013-11-18 Thread Norman Ramsey
> This is easily doable with a teachpack: > > 1. how to create a teachpack > http://docs.racket-lang.org/htdp/index.html?q=teachpack > > 2. the key is to document the (a) structure type definition and (b) the > data definition you export. Any recommendations for delivering the documentat

Re: [racket] Separate files in the HtDP languages?

2013-11-17 Thread Norman Ramsey
> You can `require` a module that is implemented in ISL, but ISL doesn't > include `provide`, so you normally don't get anything from the module. > > Since ISL includes `require`, you can use it to get `provide`. For > example, if "p.rkt" has > > #lang racket > (provide provide) > >

[racket] Using separate files as modules with HtDP

2013-11-17 Thread Norman Ramsey
[Shifting to plt-edu-talk] > > At Sat, 16 Nov 2013 12:44:03 -0500, Norman Ramsey wrote: > > >> On their next assignment, my students will reuse code they have built > >> for binary search trees. I would prefer that they place the old code in > >> a dif

Re: [racket] serializability of ISL structures?

2013-11-16 Thread Norman Ramsey
> > [Are ISL structures made with define-struct serializable?] > > Kind of. If this is about Universe programming (so that students can send > messages back and forth), I have them write conversion functions: > > (define-struct hh (cakes henries)) > > (define (hh->lists hh) >(list

[racket] Separate files in the HtDP languages?

2013-11-16 Thread Norman Ramsey
On their next assignment, my students will reuse code they have built for binary search trees. I would prefer that they place the old code in a different source file than the new code. I tried doing this using "require", but I cannot figure out how to get "require" to load a file that is written

[racket] serializability of ISL structures?

2013-11-16 Thread Norman Ramsey
A structure is defined with `define-struct` in Intermediate Student Language. Is it serializable? That is, can it be written and then re-read successfully with `write` and `read`? If not, is there a way to make it so? (I have found the function `make-serialize-info` in the racket/serialize libra

Re: [racket] What #lang to use to create teachpack?

2013-11-04 Thread Norman Ramsey
> I think you will find "#lang racket" the best language for writing > teachpacks. Using "#lang racket" I have successfully create a package, installed it, and require'd it. But when I print a structure defined in my package, the arguments don't print: > (require geo) > (length geonames)

[racket] What #lang to use to create teachpack?

2013-11-03 Thread Norman Ramsey
I'm trying to create a teachpack for use with Intermediate Student Language. I believe that I need to create a source file that uses the (provide ...) form and I need to put it into a package. I have two questions: - What, if anything, can I put into the info.rkt file to get my teachpack on

Re: [racket] Is it possible to create a package without including source code?

2013-10-20 Thread Norman Ramsey
> In HEAD, you can do "raco pkg create --binary" I need to distribute to students using vanilla 5.3.6. Should I expect the binaries to be compatible? Can I create a 5.3.6 binary package by hand somehow? The problem I am actually trying to solve is to provide students with some functionality with

[racket] Is it possible to create a package without including source code?

2013-10-20 Thread Norman Ramsey
I'd like to create a package that includes only compiled code, no source code. I don't see a suitable option on 'raco pkg create'. Is this possible? If so, how should it be done? Norman Racket Users list: http://lists.racket-lang.org/users

Re: [racket] launching DrRacket from a web browser

2013-09-21 Thread Norman Ramsey
> 10 minutes ago, Norman Ramsey wrote: > > I'd like to set up a web site with links that cause the server to > > deliver Racket source code. Receiving such could would cause the > > web server to launch DrRacket. I believe the right mechanism to use > > he

[racket] converting GRacket editor file to HTML or PDF?

2013-09-17 Thread Norman Ramsey
I've just received a stack of forty homework submissions which I'd like to page through quickly *en masse*. But they are in GRacket editor format, which means that using my usual pager is not profitable.Is there a way to take a file in this format and turn it into relatively readable PDF, or e

[racket] launching DrRacket from a web browser

2013-09-16 Thread Norman Ramsey
s whether there is an existing MIME type used for describing Racket source files and if installing the Racket system tells local web browsers about this type---or if I will have to figure out for myself how to configure this behavior? Norman Ramsey Racket Users list: http