[racket-users] Re: Beautiful Racket v1.0

2017-10-22 Thread Gour
On Thu, 16 Mar 2017 02:04:53 -0700 (PDT)
Vincent Nys  wrote:

> Congrats! I've gone through all the chapters and it has been the most
> entertaining programming book I have ever read. It's been practical,
> too, as I have already used bits of it in a medium-sized (first)
> Racket project. I would gladly buy it and will recommend it to many
> of my co-workers.

I want to (finally) start learning/using Racket and have Realm of Racket
in *.epub format, but wonder which one you find as more suitable for beginner
not having any experience with Lisp/Scheme/Racket?


Sincerely,
Gour

-- 
Just try to learn the truth by approaching a spiritual master.
Inquire from him submissively and render service unto him.
The self-realized souls can impart knowledge unto you because
they have seen the truth.


-- 
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] Open source projects

2017-10-22 Thread Stephen De Gabrielle
>
> auto-completion of filenames in DrRacket, probably using a pop-up. That
> is: I type a string containing a path fragment, and then I hit, say, C-c
> C-r or some other unused combination (ha!), and I get a dialog that will
> allow me with a small number of keystrokes to auto-complete to the filename
> that I’m looking for.


I'd like that too.  While cmd-shift-O is great fro require paths, I find
navigating after the " difficult to use get to my ~/Dev/projectname folder
(I may be doing it wrong).

I have added 'auto-completion of filenames in DrRacket' to
https://github.com/racket/racket/wiki/Larger-Projects
Kind regards,

Stephen


On Sat, Oct 21, 2017 at 5:16 AM, Robby Findler 
wrote:

> Do you want drr to open the files? If so, is cmd-shift-O followed by
> typing an open double quote close enough?
>
> Robby
>
> On Fri, Oct 20, 2017 at 11:42 AM 'John Clements' via Racket Users <
> racket-users@googlegroups.com> wrote:
>
>>
>> > On Oct 20, 2017, at 8:06 AM, Vincent St-Amour <
>> stamo...@eecs.northwestern.edu> wrote:
>> >
>> > That page is pretty out of date.
>> >
>> > This list is more focused on contributing to Racket itself, but is more
>> > up to date. It was compiled for the "office hours" portion of the last
>> > RacketCon, ~2 weeks ago.
>> >
>> >  https://github.com/racket/racket/wiki/Racketeer-Office-
>> Hours-2017-Task-Ideas
>>
>> There’s something that I now want, and I’m not sure which list to add it
>> to. Following a discussion with William Hatch about shell usage in Racket,
>> what I think I really want is auto-completion of filenames in DrRacket,
>> probably using a pop-up. That is: I type a string containing a path
>> fragment, and then I hit, say, C-c C-r or some other unused combination
>> (ha!), and I get a dialog that will allow me with a small number of
>> keystrokes to auto-complete to the filename that I’m looking for.
>>
>> Should be not-too-impossible.
>>
>> If I get a spare ten hours, I’d love to do it myself…
>>
>> Which list should I add this to?
>>
>> John
>>
>> cc: william hatch except I’m too busy to
>>
>> >
>> > Vincent
>> >
>> >
>> > On Fri, 20 Oct 2017 05:14:28 -0500,
>> > Stephen De Gabrielle wrote:
>> >>
>> >> There is also a suggested projects page on the wiki
>> >>
>> >> https://github.com/racket/racket/wiki/Intro-Projects
>> >>
>> >> I don’t know if it is still accurate.
>> >>
>> >> Kind regards,
>> >>
>> >> Stephen
>> >>
>> >> On Fri, 20 Oct 2017 at 06:45, Jack Firth  wrote:
>> >>
>> >> Welcome, we're very glad to have you!
>> >>
>> >> Open source Racket projects are scattered all over the place, but here
>> are some good ways to find actively maintained and hopefully accessible
>> projects that might interest you:
>> >>
>> >> - Watch some talks from recent RacketCons, especially the most recent
>> one (which, conveniently, was barely a week and a half ago). A lot of talks
>> are on interesting and wildly unusual open source projects, and as a bonus
>> most presenters
>> >> give out their contact information so people can reach out if they
>> have questions or might be interested in contributing. You can find
>> information on the most recent RacketCon at con.racket-lang.org
>> including video and livestream recordings,
>> >> talk descriptions, and slides for each talk. Info for previous
>> RacketCons are available at con.racket-lang.org/2016/,
>> con.racket-lang.org/2015/, etc. Alas we don't yet have individual
>> prettily-edited videos for each talk at RacketCon 2017; they're
>> >> only viewable via the saved livestream on youtube.
>> >> - Search the official package catalog at pkgs.racket-lang.org for
>> packages whose descriptions sound interesting and which are hosted on
>> GitHub / GitLab / some other platform that makes it easy to contribute.
>> Every package includes links to its
>> >> docs and repostiory, as well as a contact email address for whoever
>> maintains it. If you're not looking for a package in a particular problem
>> domain your best bet is probably to restrict your search to only packages
>> that build, have passing tests,
>> >> and have docs. Decent issue / todo lists in the project repo are a
>> nice bonus.
>> >> - Browse around the front page of the online Racket documentation at
>> docs.racket-lang.org. The online docs includes all docs from all
>> successfully built user packages at pkgs.racket-lang.org, grouped into
>> top level categories. Once you find
>> >> some docs for a project that's interesting, it's (hopefully!) not
>> difficult to find the package containing those docs by searching
>> pkgs.racket-lang.org.
>> >> - Hop in the Racket IRC (#racket on freenode) or the Racket Slack
>> channel (signup at racket-slack.herokuapp.com) and ask around about what
>> people are working on. I'm sure many folks will be delighted to talk about
>> their projects. And this
>> >> mailing list isn't a bad place to ask either.
>> >> - If you want to try something more ambitious, you can take a peek at
>> the Github repos in the "racket" organiza

Re: [racket-users] European Racketeers and conferences

2017-10-22 Thread Stephen De Gabrielle
Hi,

I’ve taken it upon myself to add the map link to the github wiki homepage
https://github.com/racket/racket/wiki - with the hope that it will help
provide a way for Racketeers to meetup.

The wiki incidentally includes some advice on starting a local meetup
https://github.com/racket/racket/wiki/Start-a-Meetup , as well as a place
to list your meetup: https://github.com/racket/racket/wiki/Racket-Meetups -
that badly needs updating

Kind Regards,

Stephen


On Sun, 22 Oct 2017 at 05:28,  wrote:

> On Tuesday, October 17, 2017 at 7:16:13 PM UTC+2, Ben Greenman wrote:
>
> I just changed the map settings so anyone can edit it.
>>
>
> Great idea; thanks for this, Ben. I've just added myself.
>
> --
> 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-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-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] Define/override for mouse event?

2017-10-22 Thread Stephen De Gabrielle
They way I look at it is the Racket/gui libraries are already calling the
‘on-event’ method, you have to override their calls so your code can pass
mouse events to your code.

I suppose the trade-off is your code should work on windows, Linux and
macOS with no change.

Kind regards,

Stephen
On Sat, 21 Oct 2017 at 07:50, Andreas Olsson  wrote:

> Why do one have to use define/override to get the mouse working on a
> canvas? Why not just call the method? It’s a little bit confusing.
>
> --
> 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] Open source projects

2017-10-22 Thread 'John Clements' via Racket Users
+1. The specific use case for me is super-scripty things like this:

(csv->list “~/clements/datasets/poly-dashboards/2178-data-schedule.csv’)

… to load a file from disk. One could make the claim that I should choose paths 
and filenames that I always remember, but in fact, shell-based completion is 
super-useful for this task, and in fact, to generate this path, I just switched 
to the shell. In fact, the easiest way to implement this would probably just be 
to run tcsh (or your favorite shell) in a wrapper that taps into the filename 
completion engine, rather than trying to re-invent the wheel.

John



> On Oct 22, 2017, at 10:37, Stephen De Gabrielle  
> wrote:
> 
> auto-completion of filenames in DrRacket, probably using a pop-up. That is: I 
> type a string containing a path fragment, and then I hit, say, C-c C-r or 
> some other unused combination (ha!), and I get a dialog that will allow me 
> with a small number of keystrokes to auto-complete to the filename that I’m 
> looking for.
> 
> I'd like that too.  While cmd-shift-O is great fro require paths, I find 
> navigating after the " difficult to use get to my ~/Dev/projectname folder (I 
> may be doing it wrong). 
> 
> I have added 'auto-completion of filenames in DrRacket' to 
> https://github.com/racket/racket/wiki/Larger-Projects 
> 
> Kind regards, 
> 
> Stephen
> 
> 
> On Sat, Oct 21, 2017 at 5:16 AM, Robby Findler  
> wrote:
> Do you want drr to open the files? If so, is cmd-shift-O followed by typing 
> an open double quote close enough?
> 
> Robby
> 
> On Fri, Oct 20, 2017 at 11:42 AM 'John Clements' via Racket Users 
>  wrote:
> 
> > On Oct 20, 2017, at 8:06 AM, Vincent St-Amour 
> >  wrote:
> >
> > That page is pretty out of date.
> >
> > This list is more focused on contributing to Racket itself, but is more
> > up to date. It was compiled for the "office hours" portion of the last
> > RacketCon, ~2 weeks ago.
> >
> >  
> > https://github.com/racket/racket/wiki/Racketeer-Office-Hours-2017-Task-Ideas
> 
> There’s something that I now want, and I’m not sure which list to add it to. 
> Following a discussion with William Hatch about shell usage in Racket, what I 
> think I really want is auto-completion of filenames in DrRacket, probably 
> using a pop-up. That is: I type a string containing a path fragment, and then 
> I hit, say, C-c C-r or some other unused combination (ha!), and I get a 
> dialog that will allow me with a small number of keystrokes to auto-complete 
> to the filename that I’m looking for.
> 
> Should be not-too-impossible.
> 
> If I get a spare ten hours, I’d love to do it myself…
> 
> Which list should I add this to?
> 
> John
> 
> cc: william hatch except I’m too busy to
> 
> >
> > Vincent
> >
> >
> > On Fri, 20 Oct 2017 05:14:28 -0500,
> > Stephen De Gabrielle wrote:
> >>
> >> There is also a suggested projects page on the wiki
> >>
> >> https://github.com/racket/racket/wiki/Intro-Projects
> >>
> >> I don’t know if it is still accurate.
> >>
> >> Kind regards,
> >>
> >> Stephen
> >>
> >> On Fri, 20 Oct 2017 at 06:45, Jack Firth  wrote:
> >>
> >> Welcome, we're very glad to have you!
> >>
> >> Open source Racket projects are scattered all over the place, but here are 
> >> some good ways to find actively maintained and hopefully accessible 
> >> projects that might interest you:
> >>
> >> - Watch some talks from recent RacketCons, especially the most recent one 
> >> (which, conveniently, was barely a week and a half ago). A lot of talks 
> >> are on interesting and wildly unusual open source projects, and as a bonus 
> >> most presenters
> >> give out their contact information so people can reach out if they have 
> >> questions or might be interested in contributing. You can find information 
> >> on the most recent RacketCon at con.racket-lang.org including video and 
> >> livestream recordings,
> >> talk descriptions, and slides for each talk. Info for previous RacketCons 
> >> are available at con.racket-lang.org/2016/, con.racket-lang.org/2015/, 
> >> etc. Alas we don't yet have individual prettily-edited videos for each 
> >> talk at RacketCon 2017; they're
> >> only viewable via the saved livestream on youtube.
> >> - Search the official package catalog at pkgs.racket-lang.org for packages 
> >> whose descriptions sound interesting and which are hosted on GitHub / 
> >> GitLab / some other platform that makes it easy to contribute. Every 
> >> package includes links to its
> >> docs and repostiory, as well as a contact email address for whoever 
> >> maintains it. If you're not looking for a package in a particular problem 
> >> domain your best bet is probably to restrict your search to only packages 
> >> that build, have passing tests,
> >> and have docs. Decent issue / todo lists in the project repo are a nice 
> >> bonus.
> >> - Browse around the front page of the online Racket documentation at 
> >> docs.racket-lang.org. The online docs includes all docs from all 
> >> successfully built user package

Re: [racket-users] Beautiful Racket v1.0

2017-10-22 Thread 'John Clements' via Racket Users

> On Oct 22, 2017, at 04:30, Gour  wrote:
> 
> On Thu, 16 Mar 2017 02:04:53 -0700 (PDT)
> Vincent Nys  wrote:
> 
>> Congrats! I've gone through all the chapters and it has been the most
>> entertaining programming book I have ever read. It's been practical,
>> too, as I have already used bits of it in a medium-sized (first)
>> Racket project. I would gladly buy it and will recommend it to many
>> of my co-workers.
> 
> I want to (finally) start learning/using Racket and have Realm of Racket
> in *.epub format, but wonder which one you find as more suitable for beginner
> not having any experience with Lisp/Scheme/Racket?

I am not personally a huge fan of the mutation-heavy approach of Realm of 
Racket. Please, correct me if I got the wrong impression from the first few 
exercises. For me, I think that Beautiful Racket is a better choice. Depends a 
lot on you, though.

And, of course, I do have to mention HtDP, which is structured as a textbook 
and is really about learning to program, not learning Racket, but is a really 
extraordinary book.

John

> 
> 
> Sincerely,
> Gour
> 
> -- 
> Just try to learn the truth by approaching a spiritual master.
> Inquire from him submissively and render service unto him.
> The self-realized souls can impart knowledge unto you because
> they have seen the truth.
> 
> 
> -- 
> 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] Beautiful Racket v1.0

2017-10-22 Thread Matthias Felleisen

> On Oct 22, 2017, at 5:45 PM, 'John Clements' via Racket Users 
>  wrote:
> 
> 
>> On Oct 22, 2017, at 04:30, Gour  wrote:
>> 
>> On Thu, 16 Mar 2017 02:04:53 -0700 (PDT)
>> Vincent Nys  wrote:
>> 
>>> Congrats! I've gone through all the chapters and it has been the most
>>> entertaining programming book I have ever read. It's been practical,
>>> too, as I have already used bits of it in a medium-sized (first)
>>> Racket project. I would gladly buy it and will recommend it to many
>>> of my co-workers.
>> 
>> I want to (finally) start learning/using Racket and have Realm of Racket
>> in *.epub format, but wonder which one you find as more suitable for beginner
>> not having any experience with Lisp/Scheme/Racket?
> 
> I am not personally a huge fan of the mutation-heavy approach of Realm of 
> Racket. Please, correct me if I got the wrong impression from the first few 
> exercises. For me, I think that Beautiful Racket is a better choice. Depends 
> a lot on you, though.


Realm is for people who cross over from other languages or teachings. It is 
also a follow-up to HtDP, teaching programming in Racket not design of 
programs. I consider it a bridge for Racket beginners between HtDP and Beauty. 


Heavily biased — Matthias, co-author 



> And, of course, I do have to mention HtDP, which is structured as a textbook 
> and is really about learning to program, not learning Racket, but is a really 
> extraordinary book.
> 
> John
> 
>> 
>> 
>> Sincerely,
>> Gour
>> 
>> -- 
>> Just try to learn the truth by approaching a spiritual master.
>> Inquire from him submissively and render service unto him.
>> The self-realized souls can impart knowledge unto you because
>> they have seen the truth.
>> 
>> 
>> -- 
>> 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.

-- 
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] Open source projects

2017-10-22 Thread Neil Van Dyke
I could be missing something, but I think a filename completion 
procedure (not the DrRacket integration part) might be a doable exercise 
for a budding Racket programmer, so long as they already have a basic 
familiarity with using the filesystem and shell as a normal user.


Point them to the "Paths" and "Filesystem" sections of the Racket 
Reference, and tell them they just need a few procedures from each 
(probably including `split-path` and `directory-list`).


They might want to first make a procedure like this:

(path-completions path-or-string?)
==> (listof completion-string)

And then make a second procedure, which uses the first procedure, then 
adds an additional step, to let it return two values instead of one:


(path-completion-prefix-and-suffixes path-or-string?)
==> (values prefix-string-shared-by-all-completions
    (listof completion-remainder-after-any-shared-prefix-string))

Then, when a user is interactively doing completion (like when they hit 
the Tab key in a shell), the first value returned by that second 
procedure is what would get added automatically to the path.  The second 
value is the list of possible completions following that shared prefix.


There are a few special cases to consider, but most should be easy to 
recognize and work through, just by thinking methodically about each 
point in your code.  For example, what do you do when the input path is 
relative, or when when there are no completions, or when the path is 
invalid or nonexistent or permissions-inaccessible, or when your path is 
already complete.  One case that's not obvious from the code: if the 
path is already complete and is a directory, a shell usually completes a 
directory separator, so consider whether you want to do that.


To make unit tests for these, they'll have to also look at more of the 
"Filesystem" section of the Racket Reference, to create and remove files 
and directories.


(I think wrapping a shell process, robustly, is much more difficult.)

--
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.


Filename completion (was: Re: [racket-users] Open source projects)

2017-10-22 Thread 'John Clements' via Racket Users

> On Oct 22, 2017, at 16:05, Neil Van Dyke  wrote:
> 
> I could be missing something, but I think a filename completion procedure 
> (not the DrRacket integration part) might be a doable exercise for a budding 
> Racket programmer, so long as they already have a basic familiarity with 
> using the filesystem and shell as a normal user.

(forgive me for hijacking this thread.)

I see what you’re saying. I was thinking of all of the fancy features that tcsh 
has around filename completion, but it’s true that most of those aren’t things 
I use every day. You definitely would want “~” to work right, though, and I had 
imagined a stateful notion of “current directory”, but really, that’s probably 
just gilding the lily.

John Clements

> 
> Point them to the "Paths" and "Filesystem" sections of the Racket Reference, 
> and tell them they just need a few procedures from each (probably including 
> `split-path` and `directory-list`).
> 
> They might want to first make a procedure like this:
> 
> (path-completions path-or-string?)
> ==> (listof completion-string)
> 
> And then make a second procedure, which uses the first procedure, then adds 
> an additional step, to let it return two values instead of one:
> 
> (path-completion-prefix-and-suffixes path-or-string?)
> ==> (values prefix-string-shared-by-all-completions
> (listof completion-remainder-after-any-shared-prefix-string))
> 
> Then, when a user is interactively doing completion (like when they hit the 
> Tab key in a shell), the first value returned by that second procedure is 
> what would get added automatically to the path.  The second value is the list 
> of possible completions following that shared prefix.
> 
> There are a few special cases to consider, but most should be easy to 
> recognize and work through, just by thinking methodically about each point in 
> your code.  For example, what do you do when the input path is relative, or 
> when when there are no completions, or when the path is invalid or 
> nonexistent or permissions-inaccessible, or when your path is already 
> complete.  One case that's not obvious from the code: if the path is already 
> complete and is a directory, a shell usually completes a directory separator, 
> so consider whether you want to do that.
> 
> To make unit tests for these, they'll have to also look at more of the 
> "Filesystem" section of the Racket Reference, to create and remove files and 
> directories.
> 
> (I think wrapping a shell process, robustly, is much more difficult.)
> 
> -- 
> 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.


[racket-users] proposed doc fix?

2017-10-22 Thread 'John Clements' via Racket Users
The documentation currently states:

"When DrRacket starts up, it looks for tools by reading fields in the info.rkt 
file of each collection and the newest version of each PLaneT package installed 
on the system. (Technically, DrRacket looks in a cache of the "info.rkt" files 
contents created by raco setup. Be sure to re-run raco setup if you change the 
contents of the info.rkt files). DrRacket checks for these fields:
• drracket-tools: (listof (listof string [subcollection-name]))

• drracket-tool-names: (listof (or/c #f string))
“

I think this should instead be

• drracket-tools: (listof (list/c string [subcollection-name]))

…where the inner ‘listof’ is replaced by ‘list/c’. Is this correct? If so, I 
can make a pull request.

John Clements



-- 
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 '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 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.