[racket-users] a matrix question

2018-03-25 Thread Tim Hanson
hi, I'm trying out matrices (without typed racket, though I read the performance caveat -- I'm not worried about performance at the moment) and am trying to find the best idioms for a small function I'd like to build. Q1: is there an elegant away to assemble a matrix column-wise? (my first

[racket-users] Re: Splitting up a GUI source file?

2018-03-25 Thread Jack Firth
On Friday, March 23, 2018 at 8:39:52 AM UTC-7, HiPhish wrote: > > I might reconsider the rentals part, but that's not relevant at the > moment. My > problem is that even though the three panes don't need to know anything > about > each other, they need to know about their parent (the main tab

Re: [racket-users] a matrix question

2018-03-25 Thread Jens Axel Søgaard
Hi Tim, Here is one way to do it: #lang typed/racket (require math/matrix math/array) (: columns->matrix (All (A) ((Listof (Matrix A)) -> (Matrix A (define (columns->matrix cs) (define m (matrix-num-rows (first cs))) (define n (length cs)) (: has-m-rows? : ((Matrix A) -> Boolean))

[racket-users] "conflicts" badge for pkgs page?

2018-03-25 Thread 'John Clements' via Racket Users
I’m fixing problems related to documentation on the libgit2 package, and it appears there are a number of issues to fix, but the first one was that the package was written with a main scribblings file called “manual.scrbl”. It turns out this is a bad idea, and in fact this is mentioned in the

[racket-users] No scroll ability in DrRacket v6.12

2018-03-25 Thread Stephen Smith
Hi All, I'm not sure if it just happened after installing 6.12 but after working on a program of some length I noticed I can't scroll any windows in DrRacket with the scroll wheel (grabbing a scrollbar works). Even the Help -> About DrRacket window won't scroll. I'm using an external

Re: [racket-users] No scroll ability in DrRacket v6.12

2018-03-25 Thread 'John Clements' via Racket Users
> On Mar 25, 2018, at 12:25, Nadeem Abdul Hamid wrote: > > I had a student in class the other day also complaining about sluggish > scrolling in DrRacket (while all other applications work fine), but I think > he was using 6.11 on Mac OS X. > — nadeem FWIW, I think these are

[racket-users] Another pkgs badge improvement, re needing documentation

2018-03-25 Thread Philip McGrath
While we're (sort of) on the subject of badges on pkgs.racket-lang.org: the "This package needs documentation" badge is mostly great, both as a producer and consumer of packages. I've encountered at least two types of cases, though, where packages may intentionally and justifiably lack

Re: [racket-users] No scroll ability in DrRacket v6.12

2018-03-25 Thread Nadeem Abdul Hamid
I had a student in class the other day also complaining about sluggish scrolling in DrRacket (while all other applications work fine), but I think he was using 6.11 on Mac OS X. --- nadeem On Sun, Mar 25, 2018 at 1:20 PM, Stephen Smith wrote: > Hi All, > > I'm not

[racket-users] Re: sharing an awesome plot - warms the cockles of my heart

2018-03-25 Thread Sanjeev Sharma
http://pasterack.org/pastes/59894 for your desktop (4k monitor) : (require plot)(plot-new-window? #t) (plot(polar (λ(θ)(+(exp(sin θ))(*(cos(* 4 θ))-2)(expt(sin(/(-(* 2 θ)pi)24))5))) -99 99 #:samples 9)#:width 3870 #:height 2170) On Friday, March 23, 2018 at 5:17:03 PM UTC-4,

[racket-users] Re: sharing an awesome plot - warms the cockles of my heart

2018-03-25 Thread Sanjeev Sharma
http://pasterack.org/pastes/84326 (again - for your desktop) (require plot)(plot-new-window? #t) (plot(polar(λ(θ) (*(+(*(cos(* 8 θ)).9)1) (+(*(cos(* 24 θ)).1)1) (+(*(cos(* 200 θ)).05).9) (+(sin θ)1))) (* pi -1) pi #:samples 9)#:width 3870 #:height 2170) On Friday,