Re: [racket-dev] [plt] Push #28633: master branch updated

2014-04-28 Thread Sam Tobin-Hochstadt
On Apr 28, 2014 12:16 AM, Neil Toronto neil.toro...@gmail.com wrote: For anyone wondering what this stuff means: most mixed exact/inexact math in Racket should be up to 5x or so faster now, depending on how conversion-heavy it is and how large the numbers are. On my machine, `real-double-flonum`

[racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Matthias Felleisen
So far we have had two threads of reactions to my 'comments on comments.' They have produced requests that I consider actionable items though I have counter-proposal to some of them. The list below does not include other actionable items I had on my list that did not get comments. With

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Robby Findler
On Monday, April 28, 2014, Matthias Felleisen matth...@ccs.neu.edu wrote: So far we have had two threads of reactions to my 'comments on comments.' They have produced requests that I consider actionable items though I have counter-proposal to some of them. The list below does not include

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Laurent
On Mon, Apr 28, 2014 at 3:47 PM, Matthias Felleisen matth...@ccs.neu.eduwrote: o Are you a student learning to program? o Are you an experienced programmer learning to use Racket? (why /learning/ to use Racket? I could well be that s/he's on a new machine) Why not simply Choose a language

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Sam Tobin-Hochstadt
On Mon, Apr 28, 2014 at 9:47 AM, Matthias Felleisen matth...@ccs.neu.edu wrote: * SAM suggests to always start in #lang racket. Tell students to switch to #lang htdp/bsl or use Choose Language. I think this is plain unfriendly to our largest audience. Here is my counter-proposal: when

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Matthias Felleisen
On Apr 28, 2014, at 9:51 AM, Robby Findler ro...@eecs.northwestern.edu wrote: So you are asking to go back to the way it was before we added the not a language language? I don't think we asked simple questions like that. We popped up the dialogue itself, no? _

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Jens Axel Søgaard
2014-04-28 16:12 GMT+02:00 Matthias Felleisen matth...@ccs.neu.edu: SAM: Also, I think that in almost every course using DrRacket, the students will need to learn how to choose languages, because they will switch from one teaching language to the next. So I think this won't be unfriendly.

[racket-dev] Refactoring Idea

2014-04-28 Thread Jens Axel Søgaard
From time to time the topic of refactoring pop up on the mailing list. Here is one feature I'd like: After renaming an exported identifier in a module foo, any references to the identifier in external modules need to be renamed too. DrRacket could after renaming in foo is done, ask

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Sam Tobin-Hochstadt
On Mon, Apr 28, 2014 at 9:47 AM, Matthias Felleisen matth...@ccs.neu.edu wrote: when drracket starts w/o a preference file, we pop up a radio menu: o Are you a student learning to program? o Are you an experienced programmer learning to use Racket? Depending on which bullet the person

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Stephen Bloch
On Apr 28, 2014, at 10:40 AM, Sam Tobin-Hochstadt sa...@cs.indiana.edu wrote: Another problem with this approach is that BSL is not the right choice for many people in the first category. They might be starting using DMDA, or Picturing Programs, or working on their own with SICP. I don’t

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread J. Ian Johnson
Yes, there are many cases to cover. The important problem to solve is what is the right default? What is appropriate 95% of the time? I don't have that data. You could have different distributions also, with the appropriate default. Tell students to get the picturing programs drracket or the

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Matthias Felleisen
I withdraw my support for this item. _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Stephen Chang
You could have different distributions also, with the appropriate default. Tell students to get the picturing programs drracket or the Pyret drracket, etc etc. This seems like the way to go. There won't be one optimal solution for Racket's wide spectrum of users. There wouldn't even need to

Re: [racket-dev] Refactoring Idea

2014-04-28 Thread Robby Findler
I guess this would work best if DrRacket were given a package (and it could infer the current package from the location of the file being edited). So if someone wants to implement a function that, given a package spec and a renaming and then does the work, I'd be happy to try to integrate it into

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Jay McCarthy
They could even be different variations of DrRacket... drpyret.rkt: #lang drracket/template #lang pyret and bam! New DrRacket binary. On Mon, Apr 28, 2014 at 8:59 AM, Stephen Chang stch...@ccs.neu.edu wrote: You could have different distributions also, with the appropriate default. Tell

Re: [racket-dev] Refactoring Idea

2014-04-28 Thread Matthias Felleisen
This is one of those places where our desire to not include extra-linguistic mechanisms conflicts with our desire to support our programmers. I have had this idea many times, as I am sure have many others and Jens probably had it tons of times over the years. Even a package isn't enough

Re: [racket-dev] Refactoring Idea

2014-04-28 Thread Robby Findler
But giving drracket a list of packages is probably a very useful special case and the rename in the package I'm in is even yet more useful special case, especially when the file is a private module. Robby On Mon, Apr 28, 2014 at 10:20 AM, Matthias Felleisen matth...@ccs.neu.edu wrote: This is

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Jay McCarthy
Of course, the big problem with different versions is that the error message may be even worse because it won't say Go choose the Racket language, since the teaching distribution may not even have that included. On Mon, Apr 28, 2014 at 9:04 AM, Jay McCarthy jay.mccar...@gmail.com wrote: They

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Ryan Culpepper
On 04/28/2014 10:08 AM, Laurent wrote: On Mon, Apr 28, 2014 at 3:47 PM, Matthias Felleisen matth...@ccs.neu.edu mailto:matth...@ccs.neu.edu wrote: [...] Why not something like `apply-list` or `apply/list`? (personally I usually call it `cvl` for call/values-list, but that's because I often use

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Matthias Felleisen
Time to move it to a place easy to find? But why a macro? On Apr 28, 2014, at 1:10 PM, Ryan Culpepper ry...@ccs.neu.edu wrote: On 04/28/2014 10:08 AM, Laurent wrote: On Mon, Apr 28, 2014 at 3:47 PM, Matthias Felleisen matth...@ccs.neu.edu mailto:matth...@ccs.neu.edu wrote: [...] Why

Re: [racket-dev] Compile racket without native compare-and-swap support?

2014-04-28 Thread Juan Francisco Cantero Hurtado
On 04/28/14 01:03, Matthew Flatt wrote: At Mon, 28 Apr 2014 00:58:48 +0200, Juan Francisco Cantero Hurtado wrote: I'm trying to compile Racket 6.0 on OpenBSD/hppa but the compilation fails because there is not support for CAS on OpenBSD/hppa. Is it possible compile racket on platforms without

Re: [racket-dev] Compile racket without native compare-and-swap support?

2014-04-28 Thread Matthew Flatt
I think `--enable-pthread` is triggering the attempt to use CAS. Can you leave that one out? At Mon, 28 Apr 2014 19:59:10 +0200, Juan Francisco Cantero Hurtado wrote: On 04/28/14 01:03, Matthew Flatt wrote: At Mon, 28 Apr 2014 00:58:48 +0200, Juan Francisco Cantero Hurtado wrote: I'm trying

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Ryan Culpepper
(values-list (values 1 2 3)) = (list 1 2 3) It can't be a function; a function-argument continuation only accepts a single value. As to why prefer a macro instead of a function like 'call/values-list', I think 'values-list' represents a smaller, more coherent bit of behavior. You can

Re: [racket-dev] Compile racket without native compare-and-swap support?

2014-04-28 Thread Juan Francisco Cantero Hurtado
On 04/28/14 20:08, Matthew Flatt wrote: I think `--enable-pthread` is triggering the attempt to use CAS. Can you leave that one out? I tried without enable-pthread. I see the same problem http://juanfra.info/bl/racket-2014/racket-6.0-2.log At Mon, 28 Apr 2014 19:59:10 +0200, Juan

Re: [racket-dev] comments on comments on learning Racket

2014-04-28 Thread Kevin Forchione
From: Laurent laurent.ors...@gmail.com Subject: Re: [racket-dev] comments on comments on learning Racket Date: April 27, 2014 at 2:39:50 AM MST To: Matthias Felleisen matth...@ccs.neu.edu Cc: dev@racket-lang.org Devs dev@racket-lang.org On Sun, Apr 27, 2014 at 1:09 AM, Matthias

[racket-dev] TR optimizations and Racket overhead [was Re: [plt] Push #28633: master branch updated]

2014-04-28 Thread Neil Toronto
On 04/28/2014 04:46 AM, Sam Tobin-Hochstadt wrote: On Apr 28, 2014 12:16 AM, Neil Toronto neil.toro...@gmail.com mailto:neil.toro...@gmail.com wrote: For anyone wondering what this stuff means: most mixed exact/inexact math in Racket should be up to 5x or so faster now, depending on how

[racket-dev] make-empty-namespace vs make-base-empty-namespace; ie attaching racket/base does other stuff

2014-04-28 Thread Stephen Chang
Motivated by some recent email threads, I decided to better understand how Racket namespaces work by re-reading some docs but I got confused. Paraphrasing the examples from this part of the guide: http://docs.racket-lang.org/guide/mk-namespace.html the following example fails because the module

Re: [racket-dev] make-empty-namespace vs make-base-empty-namespace; ie attaching racket/base does other stuff

2014-04-28 Thread Vincent St-Amour
Extra bit of information, this works too: #lang racket (define ns (make-empty-namespace)) (namespace-attach-module (current-namespace) ''#%builtin ns) (parameterize ([current-namespace ns]) (namespace-require m.rkt)) But replacing ''#%builtin with ''#%kernel or ''#%boot

Re: [racket-dev] make-empty-namespace vs make-base-empty-namespace; ie attaching racket/base does other stuff

2014-04-28 Thread Matthew Flatt
If you start with an empty namespace, then the handful of primitive modules needed to bootstrap `racket/base` are not there. Attaching `racket/base` doesn't make m.rkt available, but it makes it possible to load m.rkt, after which m.rkt will be declared in the namespace. It's not a matter of