Re: [racket-users] How to tell if a package has been downloaded?

2018-04-23 Thread Greg Hendershott
I agree with 3. Which is why I said that. :) I also agree with the rest. What I didn't say is, I imagined the service could be pkgs.racket-lang.org. When a package is hosted at GitHub, there is some data available for "git clones" at https://github.com/{user}/{repo}/graphs/traffic But: - I'

Re: [racket-users] How to tell if a package has been downloaded?

2018-04-23 Thread Neil Van Dyke
Could you give the catalog a URL from a link-shortening service, to get metrics? I strongly recommend not using a link-shortening service for this, because: 1. It's bad security.  Racket packages already have a security weakness, and a link-shortening service introduces another point of weakn

Re: [racket-users] How to tell if a package has been downloaded?

2018-04-23 Thread Neil Van Dyke
I think that the official story of the current package system is that you can't make a backward-incompatible change to a package, and if you want to, then you should make a new package with a new name. (Which I think is an annoying discouragement to third-party developers who are altruistically

Re: [racket-users] How to tell if a package has been downloaded?

2018-04-23 Thread Greg Hendershott
On Mon, Apr 23, 2018 at 9:00 PM, Greg Hendershott wrote: > ... > Could you give the catalog a URL from a link-shortening service, to > get metrics? Maybe. That hadn't occurred to me until now. > > Ideally it wouldn't be a link _shortening i.e. obfuscating service, > per se. It wouldn't mask the re

Re: [racket-users] How to tell if a package has been downloaded?

2018-04-23 Thread Greg Hendershott
Unlike the old PLaneT system, there's no download count. If I understand correctly, the catalog server simply gives local clients the URL -- such as https://github.com/dstorrs/racket-dstorrs-libs/tree/master -- and then `raco pkg install` directly contacts that URL. Could you give the catalog a U

[racket-users] How to tell if a package has been downloaded?

2018-04-23 Thread David Storrs
I've got a package suite named 'handy' up on the server. I suspect that no one aside from myself and my co-founder has ever downloaded it; I'd like to make a breaking change to one of the functions, which is fine as long as no one else is using it. Is there a way to tell if it's been downloaded a

Re: [racket-users] Sequences in Typed Racket?

2018-04-23 Thread Philip McGrath
Yep, this works. Of course, it assumes that fibonacci is memoized or something to give good performance. #lang typed/racket (require math (for-syntax syntax/parse)) (: check-nat (-> Any Any)) (define (check-nat n) (unless (exact-nonnegative-integer? n) (raise-argument-error 'in-fi

Re: [racket-users] Sequences in Typed Racket?

2018-04-23 Thread Philip McGrath
It looks like you copied the code incorrectly: it should be (module adapter racket ...), but you have (module adapter racket/stream ...). To get the special performance you are referring to, you don't want to make a structure that's a sequence: you need to use `define-sequence-syntax` with `:do-in

Re: [racket-users] Sequences in Typed Racket?

2018-04-23 Thread HiPhish
The adapter submodule does not work, I get the following error (in both typed and untyped Racket): fib.rkt:9:0: module: no #%module-begin binding in the module's language in: (module adapter racket/stream (provide stream-first stream-rest (rename-out (stream-cons* stream-cons))) (defin

Re: [racket-users] Installing packages

2018-04-23 Thread Philip McGrath
Yes. For some package , you can install it for your current user with the command "raco pkg install " or for the entire installation (which I often prefer) with "raco pkg install -i ". So, to install DrRacket, "raco pkg install drracket". Installing the document you linked to illustrates another

[racket-users] Installing packages

2018-04-23 Thread Manuel G
Hi, I'm new to racket, and I'm very interested in DSL , I've installed the minimal distribution, and I'd like to "install" documentation such as https://docs.racket-lang.org/scribble/index.html , is that possible ? Can I install drracket using raco ? thanks ... manolo -- You received