[racket-users] handin-server: writing a first checker

2019-08-21 Thread 'Wayne Harris' via Racket Users
I haven't been able to write a first checker. I'm always getting map: all lists must have same size in the server's log. The submission always shows this in the log file: [16|2019-08-21T21:12:35] connect from 191.35.15.190 [16|2019-08-21T21:12:39] running 12KB (123MB 133MB)

Re: [racket-users] Seeking good benchmark code for immutable hash and hash set usage

2019-08-21 Thread Ben Greenman
A few of the GTP benchmarks [1] use immutable hashes. Here's a link with the ones that look most interesting: http://ccs.neu.edu/home/types/tmp/gtp-hash.tar.gz And here's a small (untyped) program that uses code from the tr-pfds library to make a trie:

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Gustavo Massaccesi
The expander in racket adds something equivalent to [else (void)] if there is no else clause. (Try an example with the Macro Stepper.) So an explicit else clause would not change the speed of the programs. In some cases the compiler can prove that the else part is not necessary and drop it,

Re: [racket-users] is there a list of racket relevant papers/thesis/posters/etc.?

2019-08-21 Thread Neil Van Dyke
AFAIK, the publication list is currently split up between the different universities.  If you scroll to the "PLT Research" section of either of the two below (near-identical?) pages, you can click through to the different research groups: https://www.racket-lang.org/team.html

[racket-users] is there a list of racket relevant papers/thesis/posters/etc.?

2019-08-21 Thread Stephen De Gabrielle
Hi Racketeers, I know some of the documentation refers to papers[*], but I'm wondering if there is a centralised list. I don't want to duplicate effort, but if there isn't, I'll try add one to the wiki. Kind regards, Stephen [*] https://docs.racket-lang.org/reference/doc-bibliography.html

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread George Neuner
On 8/21/2019 11:01 AM, Hendrik Boom wrote: On Wed, Aug 21, 2019 at 10:52:57AM -0400, George Neuner wrote: > > I don't like the idea of compulsory 'else' - for 'cond' or 'case' or > 'match' or ... > > 'Else' isn't needed if all input cases are covered, but in almost all > real world uses,

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread George Neuner
On 8/21/2019 1:13 PM, Gustavo Massaccesi wrote: The expander in racket adds something equivalent to     [else (void)] if there is no else clause. (Try an example with the Macro Stepper.) So an explicit else clause would not change the speed of the programs. In some cases the compiler can

Re: [racket-users] Racket News - Issue 14

2019-08-21 Thread Annaia Berry
the SSL cert seems to have expired the other day. On Wed, Aug 21, 2019 at 8:37 PM Stephen Foster wrote: > My browser is telling me that the SSL certificate for racket-news.com is > invalid. > Is it just me? > > On Monday, August 19, 2019 at 7:54:54 AM UTC-7, Stephen De Gabrielle wrote: >> >>

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Chris Stephenson
Yes this year we put a lot of effort into reducing any kind of change between the two halves of the course, even changes of approach independent of language This worked well for students. the first 5 days or so was a slightly enhanced version of Bootstrapworld Algebra. However, we wanted

Re: [racket-users] does handin-server really need racket/gui/base?

2019-08-21 Thread 'Wayne Harris' via Racket Users
On Monday, August 19, 2019 10:40 PM, John Clements wrote: > I’m not looking at the code here, but I believe the issue here is that the > handin-server receives user code in a serialized-could-contain-images-format > that can’t be decoded properly without importing the gui libraries. That

Re: [racket-users] Racket News - Issue 14

2019-08-21 Thread Stephen Foster
My browser is telling me that the SSL certificate for racket-news.com is invalid. Is it just me? On Monday, August 19, 2019 at 7:54:54 AM UTC-7, Stephen De Gabrielle wrote: > > Thank you Paulo! > Another awesome issue of Racket News. > > S. > > > > > On Fri, Aug 16, 2019 at 9:49 PM Paulo

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Christopher Lemmer Webber
Christopher Lemmer Webber writes: > Gerald Sussman explained Python's success, and the reason for the switch > from Scheme and SICP to a Python based curriculum, as being because > Python had for whatever reason libraries that allowed students to be > able to lego together examples very quickly.

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Jon Zeppieri
On Wed, Aug 21, 2019 at 2:43 PM George Neuner wrote: > > > On 8/21/2019 1:13 PM, Gustavo Massaccesi wrote: > > The expander in racket adds something equivalent to > > [else (void)] > > if there is no else clause. (Try an example with the Macro Stepper.) > > So an explicit else clause would

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Christopher Lemmer Webber
Chris Stephenson writes: > Parantheses and learners - experience with 14-18 year olds > > I have just finished giving a two week intensive course to 14-18 year olds > at the Mathematics Village near Ephesus in Turkey Very interesting email all around! > (a) A change of syntax between the two

[racket-users] Error when I try to use slideshow?

2019-08-21 Thread Stephen De Gabrielle
Hi I’m trying to help a user who is getting an error when trying to run slideshow: > I typed "#lang slideshow" into DrRacket and got the following error: > > CreateIconIndirect: call failed (87) > > Interactions disabled: slideshow does not support a REPL (no > #%top-interaction) > They have

[racket-users] Re: Error when I try to use slideshow?

2019-08-21 Thread Alex Harsanyi
This may or may not work for them, but ask the user to open the "viewer.rkt" file in their racket installation (it should be in C:\Program Files\Racket\share\pkgs\slideshow-lib\slideshow) and comment out the `set-icon` call around line 1512. That is, comment out the following block:

Re: [racket-users] Splicing the result of one macro into another

2019-08-21 Thread Sorawee Porncharoenwase
> > I appreciate all of the Racket documentation, but I think there is a need >> for a much better presentation of the material in a graduated way. >> > I think what you are saying is, there should be more Racket Guide content, and I think everyone agrees on that... > you seem to have an

[racket-users] Re: [standard-fish] Summer competiton 2019

2019-08-21 Thread Stephen De Gabrielle
Only 10 days left! Get your entries in! https://github.com/standard-fish/summer-competititon-2019/blob/master/README.md On Wed, 31 Jul 2019 at 04:28, Stephen De Gabrielle wrote: > *Subject: [standard-fish] Summer competiton 2019* > *'Summer standard fish competition 2019'* > [image: image] >

[racket-users] Re: [standard-fish] Summer competiton 2019

2019-08-21 Thread Stephen De Gabrielle
I'd forgotten about Planet Cute - another valid way to enter. [image: Post image] 2htdp/planetcute image try this: https://docs.racket-lang.org/teachpack/2htdpPlanet_Cute_Images.html #lang racket (require 2htdp/image 2htdp/planetcute) ;The

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Chris Stephenson
Parantheses and learners - experience with 14-18 year olds I have just finished giving a two week intensive course to 14-18 year olds at the Mathematics Village near Ephesus in Turkey The course is based on Bootstrapworld Algebra and Reactive. Internet is very poor in the village, so we cannot

Re: [racket-users] rel-string module path suffix not added automatically?

2019-08-21 Thread Štěpán Němec
[resending to the list; I originally posted via Gmane but the mail-to-news direction doesn't seem to work, sorry for the duplication/confusion] On Wed, 21 Aug 2019 06:39:42 +0200 Matthew Flatt wrote: > It looks to me like the Guide documentation is wrong there. A ".rkt" > suffix is added for

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Sorawee Porncharoenwase
Pyret was a pain. Error messages were not clear and the whole change > confused students. > Can you elaborate more on this? My personal experience with Pyret is that it has an exceptionally good error message, except when an internal error occurs (which should not happen). Two language features

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Chris Stephenson
Hi Shriram Nice to hear from you! In a course for 14-18 year olds where we are rigorously enforcing the design recipe, the overwhelming majority of errors are, indeed, syntax errors. (Except for missiing-else conds, of course) So that was what I meant. Pyret syntax errors are reported

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Shriram Krishnamurthi
> > > Pyret was a pain. Error messages were not clear and the whole change >> confused students. >> > > Can you elaborate more on this? My personal experience with Pyret is that > it has an exceptionally good error message, except when an internal > error occurs (which should not happen). > IMO,

[racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread George Neuner
On Wed, 21 Aug 2019 03:48:29 -0700, Sorawee Porncharoenwase wrote: > On Wed, 21 Aug 2019 02:55:46 -0700 (PDT), Chris Stephenson > wrote: >> (b) Conds allowed without else. Even beginner student allows this. It >> causes bugs. In htdp/universe you can end up with a void universe or a void >>

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Hendrik Boom
On Wed, Aug 21, 2019 at 02:55:46AM -0700, Chris Stephenson wrote: > Parantheses and learners - experience with 14-18 year olds ... ... > > Do we have parenthesis problems? > > Yes. Worse for students with previous programming experience. We solved > them by educating our students in the clues

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Hendrik Boom
On Wed, Aug 21, 2019 at 10:52:57AM -0400, George Neuner wrote: > > I don't like the idea of compulsory 'else' - for 'cond' or 'case' or > 'match' or ... > > 'Else' isn't needed if all input cases are covered, but in almost all > real world uses, the compiler is not able to prove the 'else' is >

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Shriram Krishnamurthi
I agree that struct-copy is almost essential. That's why it's baked into the syntax of Pyret (where we're very sparing in what we provide syntactic surface to). It might be better to just import struct-copy and leave the language-level intact, in the future (if not create a language level that