Re: [racket-users] Conseil

2016-12-31 Thread Jens Axel Søgaard
What do you mean by "fenetre media"? /Jens Axel 2016-12-31 7:44 GMT+01:00 Masto Fine : > Comment editer un prigramme drracket dans une fenetre media > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To

Re: [racket-users] Conseil

2016-12-31 Thread David Storrs
Seconding the suggestion for racket-mode. Great job, Greg. On Sat, Dec 31, 2016 at 6:32 AM, Jens Axel Søgaard wrote: > You can edit Racket programs in for example Emacs or Sublime. > Use the command racket in a terminal to run the program. > Some editors have special

Re: [racket-users] Conseil

2016-12-31 Thread Jens Axel Søgaard
You can edit Racket programs in for example Emacs or Sublime. Use the command racket in a terminal to run the program. Some editors have special modes for editing racket. See https://www.youtube.com/watch?v=QWiteH8PARQ https://github.com/greghendershott/racket-mode /Jens Axel

Re: [racket-users] Are the order of hash-keys and hash-values equivalent?

2016-12-31 Thread David Storrs
On Fri, Dec 30, 2016 at 11:52 PM, Ben Greenman wrote: > > On Fri, Dec 30, 2016 at 10:45 PM, David Storrs > wrote: >> >> >> Can I assume that the elements of keys are in the same order as are >> the elements of vals? > > > No, because

Re: [racket-users] Narrow radix of string->number.

2016-12-31 Thread Robby Findler
As one data point, here's a histogram of the 20k or so calls to number->string that happen during the start up of DrRacket (first entry in each list is the argument passed to number->string and the second is the number of times that call happened): '((0 2399) (1 8116) (2 4278) (3 2196) (4

Re: [racket-users] Narrow radix of string->number.

2016-12-31 Thread Robby Findler
(PS: those are the calls only in the special case that a fixnum was supplied and it was base 10 or base 16.) On Sat, Dec 31, 2016 at 2:05 PM, Robby Findler wrote: > As one data point, here's a histogram of the 20k or so calls to > number->string that happen during

Re: [racket-users] Narrow radix of string->number.

2016-12-31 Thread Matthew Butterick
> On Dec 31, 2016, at 10:57 AM, Matthew Butterick wrote: > >> I started with Ryan's code from `~r` and tried to emulate some special >> cases I see the C code (and didn't worry about negative numbers) and >> ended up with something 4-5x slower than the C code version. :( Code

Re: [racket-users] Narrow radix of string->number.

2016-12-31 Thread Robby Findler
On Sat, Dec 31, 2016 at 12:57 PM, Matthew Butterick wrote: > Is it cheating to avoid divisions by using table lookups? Everything is fair in love, war, and benchmarking. :) But this introduces an additional cost that's a little bit more troublesome to measure. Specifically,