[racket-users] Re: Sequential vs. Parallel 13-Queens program

2016-03-11 Thread Brian Adkins
On Friday, March 11, 2016 at 7:42:22 PM UTC-5, Brian Adkins wrote: > I coded up a sequential and parallel version of N-Queens, then did a ton of > benchmark runs of 13-Queens to compare the time. For each configuration > (sequential or parallel w/ M workers), I ran the programs 6 times, threw out

[racket-users] Requiring parent modules within module* forms?

2016-03-11 Thread Alexis King
The documentation for module* would seem to indicate that submodules declared with module* can require their parent modules: > Like module, but only for declaring a submodule within a module, > and for submodules that may require the enclosing module. However, this doesn’t seem to actually work w

[racket-users] Sequential vs. Parallel 13-Queens program

2016-03-11 Thread Brian Adkins
I coded up a sequential and parallel version of N-Queens, then did a ton of benchmark runs of 13-Queens to compare the time. For each configuration (sequential or parallel w/ M workers), I ran the programs 6 times, threw out the high two & low two and averaged the middle two numbers. The spread

Re: [racket-users] regexp-match? problem

2016-03-11 Thread Neil Van Dyke
You also need to match the beginning and end of the string: #rx"^DPTO[1-9][0-9]?$" Benjamin Greenman wrote on 03/11/2016 05:41 PM: I'm glad you found #px. The issue here is that bounded repetitions like {1,2} are not part of the #rx grammar. But #px supports them just fine. http://docs.racket

Re: [racket-users] regexp-match? problem

2016-03-11 Thread Benjamin Greenman
I'm glad you found #px. The issue here is that bounded repetitions like {1,2} are not part of the #rx grammar. But #px supports them just fine. http://docs.racket-lang.org/reference/regexp.html On Fri, Mar 11, 2016 at 5:38 PM, Héctor Mc wrote: > > Hey, I have this problem, I want filter values

[racket-users] regexp-match? problem

2016-03-11 Thread Héctor Mc
Hey, I have this problem, I want filter values from DPTO1 to DPTO99 (DPTO is a word with letter O not zero) but I don't get that. with #rx mark error/false with DPTO2, DPTO3, etc but with DPTO111, DPTO100 is good. with #px all is true for both DPTO222 or DPTO12. How filter this range correctly. Th

Re: [racket-users] for/vector with accumulator?

2016-03-11 Thread Matthias Felleisen
Three observations: 1. The counter-argument to the RnRS quotation would be that for/vector/accum is that it expands into a plain old use of the same feature, because "it's just a macro." 2. People designed all kinds of 'loops' in the 70s to find just the right one: for/while/repeat/do and a

Re: [racket-users] Re: Alternatives for installing packages?

2016-03-11 Thread phil jones
Yep. Worked :-) Thanks Sam Tobin-Hichstadt, Asumu Takikawa. Phil On Friday, 11 March 2016 12:38:44 UTC-3, phil jones wrote: > OK. Thanks, I'm trying the new PPA > > On Friday, 11 March 2016 12:19:30 UTC-3, Sam Tobin-Hochstadt wrote: > > Ok, in that case I think I know why it fails, and the so

[racket-users] for/vector with accumulator?

2016-03-11 Thread 'John Clements' via Racket Users
Often, mutation provides “obvious” ways to do things that may be more difficult to do without it. Here’s one that I came across today: for/vector with an accumulator. In this case, I want to create an array of length ’n’ where each cell contains a list of n copies of the symbol ‘zzz. That is,

Re: [racket-users] Re: Alternatives for installing packages?

2016-03-11 Thread phil jones
OK. Thanks, I'm trying the new PPA On Friday, 11 March 2016 12:19:30 UTC-3, Sam Tobin-Hochstadt wrote: > Ok, in that case I think I know why it fails, and the solution is to > upgrade to a more recent version of Racket, perhaps using the PPA that > Asumu pointed out. > > The problem was that we

Re: [racket-users] Re: Alternatives for installing packages?

2016-03-11 Thread Sam Tobin-Hochstadt
Ok, in that case I think I know why it fails, and the solution is to upgrade to a more recent version of Racket, perhaps using the PPA that Asumu pointed out. The problem was that we weren't passing quite the right options to openssl, leading to the error you see. Sam On Fri, Mar 11, 2016 at 10:

Re: [racket-users] Re: Alternatives for installing packages?

2016-03-11 Thread Asumu Takikawa
On 2016-03-11 07:09:47 -0800, phil jones wrote: > It's the one that comes as standard with Ubuntu 14.04 (LTS) Just as an aside, there is a PPA for Ubuntu if you wanted to upgrade to a more recent version: https://launchpad.net/~plt/+archive/ubuntu/racket 14.04 should be supported. Cheers, Asu

Re: [racket-users] Re: Alternatives for installing packages?

2016-03-11 Thread phil jones
raco pkg config catalogs raco pkg config: unsupported config key key: "catalogs" On Friday, 11 March 2016 12:09:47 UTC-3, phil jones wrote: > DrRacket, version 5.3.6 > > It's the one that comes as standard with Ubuntu 14.04 (LTS) > > Yes, I seem to be able to get both of those pkgs files w

Re: [racket-users] Re: Alternatives for installing packages?

2016-03-11 Thread phil jones
DrRacket, version 5.3.6 It's the one that comes as standard with Ubuntu 14.04 (LTS) Yes, I seem to be able to get both of those pkgs files with wget. Phil On Friday, 11 March 2016 11:33:24 UTC-3, Sam Tobin-Hochstadt wrote: > Hi Phil, > > First, which version of Racket do you have, and where

Re: [racket-users] Re: Alternatives for installing packages?

2016-03-11 Thread Sam Tobin-Hochstadt
Hi Phil, First, which version of Racket do you have, and where did you download it from? Second, can you try running the following: - wget https://download.racket-lang.org/releases/6.4/catalog/pkgs - wget https://pkgs.racket-lang.org/pkgs And report what happens? Third, can you run `raco pkg c

[racket-users] Re: Alternatives for installing packages?

2016-03-11 Thread phil jones
Sam, >From reading through those comments (or maybe on another page) it definitely >seems to pop up more generally than just Tomcat. Here's the complete dialogue : phil@hawksmoor:~$ raco pkg install sxml ssl-connect: connect failed (error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 aler

Re: [racket-users] Alternatives for installing packages?

2016-03-11 Thread Sam Tobin-Hochstadt
Also, I think it's unlikely to be the specific issue discussed in that Ubuntu bug, since that seemed to be about misconfigured tomcat servers. Can you share the entire output of `raco pkg install ...` that you got? Thanks, Sam On Fri, Mar 11, 2016 at 8:56 AM, phil jones wrote: > So far I was jus

Re: [racket-users] Alternatives for installing packages?

2016-03-11 Thread phil jones
So far I was just trying raco pkg install PKGNAME where I assume the package is coming from the online repository Thanks I'll try the github / install from local suggestion. That's exactly the kind of thing I was looking for. Phil On 11 March 2016 at 10:51, Asumu Takikawa wrote: > Hi Phil, >

Re: [racket-users] Alternatives for installing packages?

2016-03-11 Thread Asumu Takikawa
Hi Phil, On 2016-03-10 22:46:14 -0800, phil jones wrote: > Unfortunately it's preventing me from installing new packages with > > raco pkg install Are you saying that running `raco pkg install` with any arguments causes this issue? Or just with the package catalog? If it's the latter, you can