Re: [racket] Adding a raco command not working for me

2013-04-08 Thread Greg Hendershott
Ah. You mean I need an info.rkt for the package, and _another_ one for the frog collection? That seems obvious now that you say it, but I hadn't realized that. So: info.rkt files are used both for packages and collections. Thank you. My next dumb question: My frog.rkt has the command-line "main

Re: [racket] Cannot log in to the racket bug tracker

2013-04-08 Thread Danny Yoo
I've run into this problem. What's most likely happening is mistyping your password, which for whatever reason causes the bug tracker to "log" you in, but as someone with _negative_ privileges. It's an antisocial bug tracker. Racket Users list: http://lists.racket-lang.or

Re: [racket] sustained network

2013-04-08 Thread Danny Yoo
An interesting example might be an echo-style server, where the server reads input and writes output forever. Here's what it can look like: --- #lang racket/base (provide start-server) (require racket/tcp) ;; start-server: #:port nu

Re: [racket] Adding a raco command not working for me

2013-04-08 Thread Matthew Flatt
Here's a thought: At Sat, 6 Apr 2013 10:21:53 -0400, Greg Hendershott wrote: > I'm trying to add a raco command, following > http://docs.racket-lang.org/raco/command.html > > My info.rkt is simply this: > > #lang setup/infotab > (define deps (list "markdown" "rackjure")) > (define ra

Re: [racket] Planet2 questions

2013-04-08 Thread Berthold Bäuml
On 04.04.2013, at 17:09, Jay McCarthy wrote: > On Thu, Apr 4, 2013 at 8:58 AM, Laurent wrote: >> Some questions about Planet 2, using github, but not really used to it. > > I think these questions are about the Racket package system, since I > don't know what "Planet 2" is, so I'll answer them

Re: [racket] random big nat, please

2013-04-08 Thread Robby Findler
Thanks! What a great message! Robby On Mon, Apr 8, 2013 at 2:47 PM, Neil Toronto wrote: > Moving this to the list because it seems general-interest-y. > > > On 04/02/2013 11:08 AM, Robby Findler wrote: > >> Hi Neil; any advice on how to pick, at random, an natural number less >> than 604707155

Re: [racket] random big nat, please

2013-04-08 Thread Neil Toronto
Moving this to the list because it seems general-interest-y. On 04/02/2013 11:08 AM, Robby Findler wrote: Hi Neil; any advice on how to pick, at random, an natural number less than 6047071558442633408797999878063656490199914790037659740579688354375333108700179625697869824, or other large intege

Re: [racket] Math - factorial.rkt, binomial.rkt and memoization

2013-04-08 Thread Jens Axel Søgaard
> Would it make sense to use memoization more broadly for the definition of the factorial > in the math lib, maybe with a `provide'd parameter to control how many values can be > memoized? An interesting question. First of all it seems that especially binomial can be improved. Second I think there

Re: [racket] Math - factorial.rkt, binomial.rkt and memoization

2013-04-08 Thread Bradley Lucier
On Apr 8, 2013, at 3:11 PM, users-requ...@racket-lang.org wrote: I would never recommend against using GMP for bignum code, but I use code like this for factorial, based on the idea of binary splitting: (define (iota m n) (let loop ((result '()) (n (- n 1))) (if (<= m n)

Re: [racket] Math - factorial.rkt, binomial.rkt and memoization

2013-04-08 Thread Jens Axel Søgaard
Hi Laurent, I am curious to see how fast the libgmp versions of factorial and binomial are on your computer. Om my computer libgmp is much faster than the Racket one. Since the libgmp versions converts a Racket bignum into a mpz, there is some overhead, so a proper solution would be to use

Re: [racket] Developing DrRacket Extensions in the same process

2013-04-08 Thread Nick Main
Thanks for the enhancements ! I will check them out soon (for now I'm sticking to stable releases). I found that creating an info.rkt for the tool and setting it up via "raco link" gives me reasonable workflow. After the initial "raco setup" I deleted the "compiled" folder since that seems to cau

Re: [racket] Typed Racket HashTable vs Racket HashTable

2013-04-08 Thread Greg Hendershott
Andrey, you could write your own function like this: (define (hashes-equal? h0 h1) (for/and ([k (in-list (hash-keys h0))]) (and (hash-has-key? h1 k) (equal? (hash-ref h0 k) (hash-ref h1 k) This should work in general. If you know that the two hashes use a specific comparison f

[racket] Math - factorial.rkt, binomial.rkt and memoization

2013-04-08 Thread Laurent
Would it make sense to use memoization more broadly for the definition of the factorial in the math lib, maybe with a `provide'd parameter to control how many values can be memoized? https://github.com/plt/racket/blob/master/collects/math/private/number-theory/factorial.rkt While building big numb

[racket] Third CfP for the International Workshop on Trends in Functional Programming In Education (TFPIE)

2013-04-08 Thread Prabhakar Ragde
Philip wrote: It should be noted that BYU's "Honor Code" applies only to students & staff. It does *not* apply to visitors. Does that mean there will be coffee at "coffee breaks"? --PR Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Typed Racket HashTable vs Racket HashTable

2013-04-08 Thread Andrey Larionov
Right now i'm understand my mistake. Is there any function to perform equality check between mutable and immutable hash-tables? On Mon, Apr 8, 2013 at 7:06 PM, Asumu Takikawa wrote: > is is actually not a bug. In your example, the TR code creates an > immutable hash literal with `#hash`. The unt

Re: [racket] Typed Racket HashTable vs Racket HashTable

2013-04-08 Thread Andrey Larionov
Oh. Sorry. I was confused by ability to construct hash table many ways. And problem with type inference for hash in typed racket. Just rewrited my code and test passed. sorry for inconvenience. I'm new to Racket :) On Mon, Apr 8, 2013 at 7:04 PM, Tobias Hammer wrote: > From the docs (3.13) > "

Re: [racket] Typed Racket HashTable vs Racket HashTable

2013-04-08 Thread Asumu Takikawa
On 2013-04-08 18:49:35 +0400, Andrey Larionov wrote: >Is it a known bug what Typed Racket hash-table fail equality check >with untyped variant? I'm attaching a source file with a test >which prove it as on 5.3.3 and Today nightlies. This is actually not a bug. In your example, the TR

[racket] Third CfP for the International Workshop on Trends in Functional Programming In Education (TFPIE)

2013-04-08 Thread p.k.f.holzenspies
L.S., Apologies for any duplicates you may receive. EasyChair now open! [3] Please find below the Third Call for Papers for the Second International Workshop on Trends in Functional Programming In Education (TFPIE). As an addendum to previous CfPs for this event, I would like you to consider t

Re: [racket] Typed Racket HashTable vs Racket HashTable

2013-04-08 Thread Tobias Hammer
From the docs (3.13) "Two hash tables cannot be equal? unless they use the same key-comparison procedure (equal?, eqv?, or eq?), both hold keys strongly or weakly, and have the same mutability." Your TR hash is immutable (created with #hash) and your racket hash is mutable (created with ma

[racket] Typed Racket HashTable vs Racket HashTable

2013-04-08 Thread Andrey Larionov
Is it a known bug what Typed Racket hash-table fail equality check with untyped variant? I'm attaching a source file with a test which prove it as on 5.3.3 and Today nightlies. hash-table-test.tar.gz Description: GNU Zip compressed data Racket Users list: http://lists.rac

Re: [racket] Misleading label when registering with pkg.racket-lang.org

2013-04-08 Thread Carl Eastlund
Thanks for fixing that, Jay. I went through the same confusion as Tony when I submitted the "mischief" package. Nice to know it's clearer, now. Carl Eastlund On Sat, Apr 6, 2013 at 5:06 PM, Jay McCarthy wrote: > K, I just changed it > > On Sat, Apr 6, 2013 at 3:03 PM, Robby Findler > wrote:

Re: [racket] Misleading label when registering with pkg.racket-lang.org

2013-04-08 Thread Jay McCarthy
Done. On Mon, Apr 8, 2013 at 8:09 AM, Matthias Felleisen wrote: > > On Apr 8, 2013, at 7:51 AM, Jay McCarthy wrote: > >> "Package name" is a technical concept defined in the documentation >> (section 1, the first bullet on the page). This name is used >> throughout the system to refer to depende

Re: [racket] Misleading label when registering with pkg.racket-lang.org

2013-04-08 Thread Matthias Felleisen
On Apr 8, 2013, at 7:51 AM, Jay McCarthy wrote: > "Package name" is a technical concept defined in the documentation > (section 1, the first bullet on the page). This name is used > throughout the system to refer to dependencies, install arguments, > etc. Perhaps the web page for submitting pa

[racket] tcp-connection

2013-04-08 Thread deepak verma
every time i try to send data through lisner to connect or from connect to listen i have to run the whole program again and again.. Racket Users list: http://lists.racket-lang.org/users

[racket] sustained network

2013-04-08 Thread deepak verma
how to get a sustained network using tcp over which we can send data and receive it using ports... Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Adding a raco command not working for me

2013-04-08 Thread Greg Hendershott
p.s. My ~/Library/Racket/5.3.3.8/collects/info-domain/compiled/cache.rktd is currently just this: ((#"/Users/greg/Library/Racket/5.3.3.8/pkgs/installed/ragg/ragg" (name categories can-be-loaded-with required-core-version version repositories scribblings blurb release-notes deps) (lib "ragg") 1

Re: [racket] Adding a raco command not working for me

2013-04-08 Thread Greg Hendershott
Thank you for following up. > And, just to be sure, `raco setup frog' has no effect? Correct, it has no effect. From subdir above frog: $ raco setup frog raco setup frog raco setup: version: 5.3.3.8 [3m] raco setup: variants: 3m raco setup: main collects: /Users/greg/src/plt/racket/collects raco

Re: [racket] Misleading label when registering with pkg.racket-lang.org

2013-04-08 Thread Jay McCarthy
"Package name" is a technical concept defined in the documentation (section 1, the first bullet on the page). This name is used throughout the system to refer to dependencies, install arguments, etc. The package system only deals with its own terms and concepts, so it explicitly ignores the first

Re: [racket] full path in #

2013-04-08 Thread Jos Koot
error-print-width ? Jos > -Original Message- > From: users-boun...@racket-lang.org > [mailto:users-boun...@racket-lang.org] On Behalf Of Tom Schouten > Sent: domingo, 07 de abril de 2013 16:29 > To: users@racket-lang.org > Subject: [racket] full path in # > > Hello, > > Is there a way