Re: [racket-users] Can anyone help me with a change?

2017-10-23 Thread Josh Paley
John,

If your name is ever submitted for sainthood, I'll sign the documents.

Many thanks from a grateful teacher!  (Now I need to learn how to do this
stuff myself...)

Regards,

Josh

On Sun, Oct 22, 2017 at 8:58 PM, John Clements 
wrote:

> Okay, this might now be done. You should be able to install it using
>
> raco pkg install simply-scheme
>
> OR you can use the package manager from within DrRacket.
>
> MAJOR disclaimer: I am not a user of Simply Scheme, and this package does
> not appear to include any tests.
>
> However, it appears that
>
> (+ “40” 2)
>
> does evaluate to 42, and
>
> (random 34)
>
> evaluates to different numbers on subsequent runs. That’s about all I know
> to test ….
>
> Let me know if you have any questions or problems with it.
>
> John Clements
>
> (and now I’m yet another hour behind on my grading… If only I still had an
> advisor to tell me to stop wasting time on these things.)
>
> > On Oct 22, 2017, at 18:50, Josh Paley  wrote:
> >
> > While I appreciate the level of detail that Stephen provided, I am
> absolutely slammed and don't know github usage, so what looks smallish to
> you (and probably would be for me if I were better educated on the system)
> is looking mighty large to me.  In terms of the fix, what needs to change
> is that there is code in simply.scm that needs to be commented out;
> everything else remains as it originally was.  And the code is actually
> documented within simply.scm: it says to remove the RANDOM code if the
> underlying interpreter supports it (which is the case here) and that's it.
> >
> > The version of Scheme this was designed for was at UC-Berkeley.  It
> wouldn't surprise me if there was some common ground with MIT Scheme, but I
> don't know for sure.
> >
> > I do plan to learn github at some point, but I'm kind of stuck at the
> moment.  If it only took an evening from where I am right now, I'd do this,
> but my lack of familiarity with the overall system has me very
> uncomfortable.
> >
> > On Sun, Oct 22, 2017 at 1:49 PM, Robby Findler <
> ro...@eecs.northwestern.edu> wrote:
> > On Sun, Oct 22, 2017 at 3:34 PM, Stephen De Gabrielle
> >  wrote:
> > > I don’t think packages on PLaneT can be updated but I may be wrong.
> >
> > They can be updated, but I would recommend that, instead of updating
> > them, you move them to pkgs, as Stephen suggests.
> >
> > (Of course, if you know people are using them and they cannot easily
> > change your code, please do update the planet version! But in any
> > other situation, I'd recommend abandoning them.)
> >
> > Robby
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to racket-users+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Can anyone help me with a change?

2017-10-22 Thread 'John Clements' via Racket Users
Okay, this might now be done. You should be able to install it using 

raco pkg install simply-scheme

OR you can use the package manager from within DrRacket.

MAJOR disclaimer: I am not a user of Simply Scheme, and this package does not 
appear to include any tests.

However, it appears that 

(+ “40” 2)

does evaluate to 42, and 

(random 34)

evaluates to different numbers on subsequent runs. That’s about all I know to 
test ….

Let me know if you have any questions or problems with it.

John Clements

(and now I’m yet another hour behind on my grading… If only I still had an 
advisor to tell me to stop wasting time on these things.)

> On Oct 22, 2017, at 18:50, Josh Paley  wrote:
> 
> While I appreciate the level of detail that Stephen provided, I am absolutely 
> slammed and don't know github usage, so what looks smallish to you (and 
> probably would be for me if I were better educated on the system) is looking 
> mighty large to me.  In terms of the fix, what needs to change is that there 
> is code in simply.scm that needs to be commented out; everything else remains 
> as it originally was.  And the code is actually documented within simply.scm: 
> it says to remove the RANDOM code if the underlying interpreter supports it 
> (which is the case here) and that's it.
> 
> The version of Scheme this was designed for was at UC-Berkeley.  It wouldn't 
> surprise me if there was some common ground with MIT Scheme, but I don't know 
> for sure.
> 
> I do plan to learn github at some point, but I'm kind of stuck at the moment. 
>  If it only took an evening from where I am right now, I'd do this, but my 
> lack of familiarity with the overall system has me very uncomfortable.
> 
> On Sun, Oct 22, 2017 at 1:49 PM, Robby Findler  
> wrote:
> On Sun, Oct 22, 2017 at 3:34 PM, Stephen De Gabrielle
>  wrote:
> > I don’t think packages on PLaneT can be updated but I may be wrong.
> 
> They can be updated, but I would recommend that, instead of updating
> them, you move them to pkgs, as Stephen suggests.
> 
> (Of course, if you know people are using them and they cannot easily
> change your code, please do update the planet version! But in any
> other situation, I'd recommend abandoning them.)
> 
> Robby
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Can anyone help me with a change?

2017-10-22 Thread 'John Clements' via Racket Users
Okay, I spent half an hour on this, and I think I’m done… um, almost.

Actually, it appears that my quick job of updating the drracket tool has 
resulted in a configuration that can reliably make DrRacket seg fault (!). 
Since this package does not involve FFI in any way, this is a bug in DrRacket, 
so now I’m duty-bound to see what the heck is going on.

John

> On Oct 16, 2017, at 21:09, Andrew Gwozdziewycz  wrote:
> 
> Hi,
> 
> I think it's the case that making the change to `random` is simple (or
> removing it if that's the appropriate thing), though I *believe* that
> Danny would be the only one who could re-upload it to planet.
> 
> If you're willing to get it from a different source, e.g.
> pkgs.racket-lang.org, then it should be easy enough for anyone to
> upload the modified version there.
> 
> Cheers,
> 
> Andrew
> 
> On Mon, Oct 16, 2017 at 8:46 PM, Josh Paley  wrote:
>> Racket Community,
>> 
>> We use the book Simply Scheme at my high school.  Danny Yoo did a wonderful
>> job adapting the library content for that book, but he left the code for
>> random numbers in place.  The book assumed versions of Scheme that might not
>> have random and provided a fixed seed, meaning every time a new session is
>> run, the seed goes back to the same thing.
>> 
>> What I was hoping was that Danny would have time to do an update that would
>> remove the random code in the simply.scm file, but he's unable to do so and
>> suggested that I see if someone in racket-users might be able to help by
>> forking planet-dyoo-simply-scheme2 and doing whatever it is that needs to be
>> done to create an update.  If someone could guide me on how the process of
>> modifying an existing package, I'd do it as I know exactly what code I am
>> looking for and it ought to be an easy change.
>> 
>> If you can help, please let me know.  My fellow teachers and I would be
>> extremely grateful.
>> 
>> Regards,
>> 
>> Josh
>> 
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to racket-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> 
> -- 
> http://www.apgwoz.com
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Can anyone help me with a change?

2017-10-22 Thread Josh Paley
While I appreciate the level of detail that Stephen provided, I am
absolutely slammed and don't know github usage, so what looks smallish to
you (and probably would be for me if I were better educated on the system)
is looking mighty large to me.  In terms of the fix, what needs to change
is that there is code in simply.scm that needs to be commented out;
everything else remains as it originally was.  And the code is actually
documented within simply.scm: it says to remove the RANDOM code if the
underlying interpreter supports it (which is the case here) and that's it.

The version of Scheme this was designed for was at UC-Berkeley.  It
wouldn't surprise me if there was some common ground with MIT Scheme, but I
don't know for sure.

I do plan to learn github at some point, but I'm kind of stuck at the
moment.  If it only took an evening from where I am right now, I'd do this,
but my lack of familiarity with the overall system has me very
uncomfortable.

On Sun, Oct 22, 2017 at 1:49 PM, Robby Findler 
wrote:

> On Sun, Oct 22, 2017 at 3:34 PM, Stephen De Gabrielle
>  wrote:
> > I don’t think packages on PLaneT can be updated but I may be wrong.
>
> They can be updated, but I would recommend that, instead of updating
> them, you move them to pkgs, as Stephen suggests.
>
> (Of course, if you know people are using them and they cannot easily
> change your code, please do update the planet version! But in any
> other situation, I'd recommend abandoning them.)
>
> Robby
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Can anyone help me with a change?

2017-10-22 Thread Robby Findler
On Sun, Oct 22, 2017 at 3:34 PM, Stephen De Gabrielle
 wrote:
> I don’t think packages on PLaneT can be updated but I may be wrong.

They can be updated, but I would recommend that, instead of updating
them, you move them to pkgs, as Stephen suggests.

(Of course, if you know people are using them and they cannot easily
change your code, please do update the planet version! But in any
other situation, I'd recommend abandoning them.)

Robby

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Can anyone help me with a change?

2017-10-22 Thread Stephen De Gabrielle
I don’t think packages on PLaneT can be updated but I may be wrong.

I have moved things from PLaneT to the Racket Package system, and it isn’t
very hard, certainly wasn’t time consuming (an evening).

1. Make a new github repo
2. add the old code,
3. Run it to see what breaks
4. Fix it - I don’t mean to sound flippant - the Racket docs and release
notes are very helpful
5. Repeat 3-4 till it works

Another option, given the book was released in 1999 for (MIT? R4RS?) Scheme
and noting the select language dialog in DrRacket allows you to select the
Scheme language; it may be easier to adapt the scheme library that came
with the book to the more recent version of scheme available in DrRacket.

There are also professional educators (I’m not) on this list who can
probably give better advice, but they probably not checking the Racket
mailing list on Sunday night!

Kind regards,

S.


On Tue, 17 Oct 2017 at 04:46, Josh Paley  wrote:

> Racket Community,
>
> We use the book Simply Scheme at my high school.  Danny Yoo did a
> wonderful job adapting the library content for that book, but he left the
> code for random numbers in place.  The book assumed versions of Scheme that
> might not have *random* and provided a fixed seed, meaning every time a
> new session is run, the seed goes back to the same thing.
>
> What I was hoping was that Danny would have time to do an update that
> would remove the *random* code in the simply.scm file, but he's unable to
> do so and suggested that I see if someone in racket-users might be able to
> help by forking planet-dyoo-simply-scheme2 and doing whatever it is that
> needs to be done to create an update.  If someone could guide me on how the
> process of modifying an existing package, I'd do it as I know exactly what
> code I am looking for and it ought to be an easy change.
>
> If you can help, please let me know.  My fellow teachers and I would be
> extremely grateful.
>
> Regards,
>
> Josh
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Kind regards,
Stephen
--
Ealing (London), UK

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Can anyone help me with a change?

2017-10-16 Thread Andrew Gwozdziewycz
Hi,

I think it's the case that making the change to `random` is simple (or
removing it if that's the appropriate thing), though I *believe* that
Danny would be the only one who could re-upload it to planet.

If you're willing to get it from a different source, e.g.
pkgs.racket-lang.org, then it should be easy enough for anyone to
upload the modified version there.

Cheers,

Andrew

On Mon, Oct 16, 2017 at 8:46 PM, Josh Paley  wrote:
> Racket Community,
>
> We use the book Simply Scheme at my high school.  Danny Yoo did a wonderful
> job adapting the library content for that book, but he left the code for
> random numbers in place.  The book assumed versions of Scheme that might not
> have random and provided a fixed seed, meaning every time a new session is
> run, the seed goes back to the same thing.
>
> What I was hoping was that Danny would have time to do an update that would
> remove the random code in the simply.scm file, but he's unable to do so and
> suggested that I see if someone in racket-users might be able to help by
> forking planet-dyoo-simply-scheme2 and doing whatever it is that needs to be
> done to create an update.  If someone could guide me on how the process of
> modifying an existing package, I'd do it as I know exactly what code I am
> looking for and it ought to be an easy change.
>
> If you can help, please let me know.  My fellow teachers and I would be
> extremely grateful.
>
> Regards,
>
> Josh
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
http://www.apgwoz.com

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.