[racket] raco pkg install/remove problem

2013-08-17 Thread Tony Garnock-Jones
Hi all, I just installed a package with raco pkg install: $ raco pkg install github://github.com/tonyg/racket-pretty-printing-combinators/master ... and then removed it with raco pkg remove: raco pkg remove racket-pretty-printing-combinators ... only to be told: Inferred package scope: /home/

Re: [racket] (check-equal? hash1 hash2) fails

2013-08-17 Thread John Griffin
alternative like >> (check-true (hash-equal? hash1 hash2)) >> >> but it turns out hash-equal? is not what I expected it to be. >> >> Other than writing a custom comparison, is there a handy way to compare 2 >> #hash? >> >> jGc >> >> __

Re: [racket] Windows build problems on 5.90.0.7

2013-08-17 Thread Matthew Flatt
At Sat, 17 Aug 2013 11:30:40 -0700, Ben Goetter wrote: > At Vince's advice, I tried > raco pkg install -i main-distribution > to complete my installation, but got a SSL error > > Resolving "main-distribution" via https://pkg.racket-lang.org > SSLv23_client_method: implementation not

Re: [racket] Windows build problems on 5.90.0.7

2013-08-17 Thread Ben Goetter
Thank you. That's exactly what happened: I missed the submodule nature of native-pkgs. These directions are already in INSTALL.txt, which I did not reread. I didn't look beyond http://git.racket-lang.org/intro.html#clone_the_plt_repository. On 8/17/2013 11:52 AM, Nick Shelley wrote: I just

Re: [racket] Windows build problems on 5.90.0.7

2013-08-17 Thread Nick Shelley
I just ran into this very thing today because I didn't realize the packages were put into a submodule and I'm in the habit of not reading error messages. However, after trying some things and getting this error multiple times, I finally read it carefully. The answer is in your skimmed "something so

[racket] Windows build problems on 5.90.0.7

2013-08-17 Thread Ben Goetter
I apologize for the semi-clueless nature of this message. I know that Racket's been going through a lot of changes in the last few months. Rip van Winkle here is trying to come back up to speed. I did a fresh git clone, then built Racket's core on Windows with VS2008 via the script in racket

Re: [racket] Racket in computational science?

2013-08-17 Thread Doug Williams
I should also add that Neal wrote the new plot package which is wonderful for analysis work. I've rewritten my large analysis packages using the plot package and they work great [As Matthias said, it isn't something I can release publicly, but could share some sanitized screen shots and talk about

Re: [racket] Racket in computational science?

2013-08-17 Thread Doug Williams
I wrote the Science Collection to support my own knowledge-based simulation work, which is basically the Simulation and Inference collections that are also on PLaneT. The Science Collection basically had what I needed to support that work. We use the code on a daily basis for many analysis applicat

Re: [racket] (check-equal? hash1 hash2) fails

2013-08-17 Thread Greg Hendershott
p.s. Probably better names would be `hash=?` and `dict=?`. Following the example of `string=?`, `symbol=?`, etc. On Sat, Aug 17, 2013 at 9:57 AM, Greg Hendershott wrote: > Well you could write your own predicate -- what you expected > `hash-equal?` to be. Let's call it `hash-equivalent?`: > > #la

Re: [racket] (check-equal? hash1 hash2) fails

2013-08-17 Thread Greg Hendershott
Well you could write your own predicate -- what you expected `hash-equal?` to be. Let's call it `hash-equivalent?`: #lang racket (define (hash-equivalent? a b) (for/and ([(k v) (in-hash a)]) (and (hash-has-key? b k) (equal? (hash-ref b k) v ;; Testing (require rackunit) (defin

Re: [racket] (check-equal? hash1 hash2) fails

2013-08-17 Thread J G Cho
You were right on. So I converted one of the mutable and it worked: (make-immutable-hash (hash->list mutable-hash)) Is there a better way? On Sat, Aug 17, 2013 at 9:18 AM, Robby Findler wrote: > Those are equal if they are both mutable or both immutable. Probably one > is mutable and the othe

Re: [racket] (check-equal? hash1 hash2) fails

2013-08-17 Thread Robby Findler
Those are equal if they are both mutable or both immutable. Probably one is mutable and the other isn't (this, unfortunately, doesn't show up in the print outs). It is quite confusing, I agree. > (equal? #hash((6 . 1) (4 . 1) (3 . 2) (2 . 2)) #hash((2 . 2) (3 . 2) (4 . 1) (6 . 1))) #t Robby On

[racket] (check-equal? hash1 hash2) fails

2013-08-17 Thread J G Cho
FAILURE actual: #hash((6 . 1) (4 . 1) (3 . 2) (2 . 2)) expected: #hash((2 . 2) (3 . 2) (4 . 1) (6 . 1)) name: check-equal? I tried alternative like (check-true (hash-equal? hash1 hash2)) but it turns out hash-equal? is not what I expected it to be. Other than writing a custom compar

[racket] real world application

2013-08-17 Thread Mag. Dr. Nikolaus Klepp
For the "Racket Hall of Fame": we programmed the core component for ecg analysis with DrRacket: http://pulse7.at -- Mag. Dr. Nikolaus Klepp Einnehmerstraße 14 A-4810 Gmunden Tel.: +43 650 82 11 724 email: off...@klepp.biz Racket Users list: http://lists.racket-lang.o

Re: [racket] Racket in computational science?

2013-08-17 Thread Konrad Hinsen
Neil Toronto writes: > Anyway, the math library came about because I was sitting on a pile of > code I thought I should share. When I announced it, people asked for > arrays, so I added them, and Jens Axel volunteered number theory and > linear algebra functions. Sounds fine. But "... so I