Re: [racket-users] Sharing a udp socket between threads via parameters

2019-12-05 Thread David Storrs
Cool, thanks! On Thu, Dec 5, 2019, 4:11 PM Matthew Flatt wrote: > At Thu, 5 Dec 2019 14:26:17 -0500, David Storrs wrote: > > My understanding is that parameters are copied between threads, but I'm > not > > sure how this interacts with things like file ports, network connections, > > etc. Would

Re: [racket-users] Re: GUI (get-directory)

2019-12-05 Thread Sam Tobin-Hochstadt
First, one thing I would suggest is that you can create pull requests for anything right from the GitHub UI, although that doesn't let you test them. Especially for small documentation changes where there's no chance you're breaking something, I find that to be very effective and lightweight. Seco

Re: [racket-users] Re: GUI (get-directory)

2019-12-05 Thread Matt Jadud
It feels like much of the information needed to make some of the sign posts for easy contribution are available either 1) automatically available at time of documentation build, or 2) could be added to the info file. Would someone in the Racket team be able to recommend or suggest some concrete wa

Re: [racket-users] Re: GUI (get-directory)

2019-12-05 Thread wanderley.guimar...@gmail.com
I think your point is totally valid, and I feel that I already saw such discussion in the mail list. You can simplify the process by searching a piece of the documentation in github. For example, I search for a piece of the docs from rackjure (1) which is the second result in my search. (1) htt

Re: [racket-users] Vector length and indices contracts

2019-12-05 Thread Jack Firth
What if we had a `(vector-index/c vec)` contract combinator? It would be equivalent to `(integer-in 0 (sub1 (vector-length vec)))`. On Wednesday, December 4, 2019 at 1:29:22 PM UTC-8, Matthew Flatt wrote: > > At Wed, 4 Dec 2019 22:24:10 +0100, Dominik Pantůček wrote: > > What about all the vecto

Re: [racket-users] GUI (get-directory)

2019-12-05 Thread Jens Axel Søgaard
FWIW I just found an introduction to Racket GUIs by Andres Ramos: https://www.youtube.com/watch?v=yo6wVXS6dkU /soegaard Den tir. 19. nov. 2019 kl. 18.49 skrev pow bam : > Hello, I am very new to programming and up until this point I had only > seriously messed with the AutoIt language - it was

Re: [racket-users] Sharing a udp socket between threads via parameters

2019-12-05 Thread Matthew Flatt
At Thu, 5 Dec 2019 14:26:17 -0500, David Storrs wrote: > My understanding is that parameters are copied between threads, but I'm not > sure how this interacts with things like file ports, network connections, > etc. Would the following code be problematic? > > > (define conn (make-parameter)) >

Re: [racket-users] Re: GUI (get-directory)

2019-12-05 Thread David Storrs
For the record, my big concern with the documentation is that it's extremely hard to contribute to. I would be delighted to contribute documentation if the process was easy, but it's just not. For a language as amazing as Racket and a documentation set as high-quality as Racket's, the difficulty

[racket-users] Sharing a udp socket between threads via parameters

2019-12-05 Thread David Storrs
My understanding is that parameters are copied between threads, but I'm not sure how this interacts with things like file ports, network connections, etc. Would the following code be problematic? (define conn (make-parameter)) (define s (udp-open-socket)) (udp-bind! s #f 12345) (conn s) (threa

Re: [racket-users] Limiting consecutive identical elements with match

2019-12-05 Thread Daniel Prager
While playing around with this I came across an error message in match that could perhaps stand some improvement ... > (define (super-cool?/flawed ds) (match ds [(list _ ... a a ... _) #t] [_ #f])) a59: unbound identifier; also, no #%top syntax transformer is bound in: a59 Dan -

Re: [racket-users] Scribble output without navigation

2019-12-05 Thread Sam Tobin-Hochstadt
The usual way I've done this is with some custom CSS to set the navigation to "display: none". Sam On Wed, Dec 4, 2019 at 5:12 PM 'Reuben Thomas' via Racket Users wrote: > > How can I get scribble/base to output HTML without the navigation elements? I > just want a plain HTML page, similar to t