[racket-users] What are the most used Racket libraries, applications and languages?

2021-11-12 Thread Stephen De Gabrielle
What are the most used Racket libraries, applications and languages?

I’ll admit I’m guilty of going whole releases without installing anything
because the distribution has so much included.

If you reply with what you have installed I’ll tally it up!

Stephen

I’m also doing this on
https://racket.discourse.group/
-- 


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAGHj7-%2BUk2G886SVA%3DaaomD6Qm5S%3D765WyBznj_6kwz2K1AqCQ%40mail.gmail.com.


RE: [racket-users] future question

2021-11-12 Thread Jacob Jozef
Hi DominicThanks very much for your prompt reply.Your response works very well.I didn’t know there is a distinction between semaphores and fsemaphores.You have helped me a lot.Thanks again, Jos   From: Dominik PantůčekSent: viernes, 12 de noviembre de 2021 18:59To: racket-users@googlegroups.comSubject: Re: [racket-users] future question Hi, you are looking for make-fsempahore[1] and related: ===#lang racket (define sema (make-fsemaphore 1)) (define (make-th i) (λ ()   (let loop ((a 0))(when (zero? (modulo a #e1e6)) (fsemaphore-wait sema) "do what you have to do without disturbing other futures" (fsemaphore-post sema))    (loop (add1 a)(for ((i (in-range (processor-count (future (make-th i)))(sleep 10)(exit)=== The above updated source spins all your cores just fine.  Cheers,Dominik[1] https://docs.racket-lang.org/reference/futures.html#%28part._.Future_.Semaphores%29  On 12. 11. 21 18:44, Jacob Jozef wrote:> #lang racket> > (define sema (make-semaphore 1))> > (define (make-th i)> > (λ ()> >    (let loop ((a 0))> > #;(when (zero? (modulo a #e1e6))> >      (semaphore-wait sema)> >      "do what you have to do without disturbing other futures"> >      (semaphore-post sema))> >     (loop (add1 a)> > (for ((i (in-range (processor-count (future (make-th i)))> > (sleep 10)> > (exit)>  -- You received this message because you are subscribed to the Google Groups "Racket Users" group.To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/cc8c5754-9354-6367-7c62-b8c12cb60cd4%40trustica.cz. 



-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/3150F731-CB07-4078-9044-755ACDFE13DC%40hxcore.ol.


Re: [racket-users] future question

2021-11-12 Thread Dominik Pantůček

Hi,

you are looking for make-fsempahore[1] and related:

===
#lang racket

(define sema (make-fsemaphore 1))

(define (make-th i)

(λ ()
  (let loop ((a 0))
(when (zero? (modulo a #e1e6))
(fsemaphore-wait sema)
"do what you have to do without disturbing other futures"
(fsemaphore-post sema))
   (loop (add1 a)
(for ((i (in-range (processor-count (future (make-th i)))
(sleep 10)
(exit)
===

The above updated source spins all your cores just fine.


Cheers,
Dominik
[1] 
https://docs.racket-lang.org/reference/futures.html#%28part._.Future_.Semaphores%29



On 12. 11. 21 18:44, Jacob Jozef wrote:

#lang racket

(define sema (make-semaphore 1))

(define (make-th i)

(λ ()

   (let loop ((a 0))

#;(when (zero? (modulo a #e1e6))

     (semaphore-wait sema)

     "do what you have to do without disturbing other futures"

     (semaphore-post sema))

    (loop (add1 a)

(for ((i (in-range (processor-count (future (make-th i)))

(sleep 10)

(exit)



--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/cc8c5754-9354-6367-7c62-b8c12cb60cd4%40trustica.cz.


[racket-users] future question

2021-11-12 Thread Jacob Jozef
Hi The following runs 100% of my CPU, but when I uncomment the when-clause nothing happens (0% CPU)(processor-count) yields 8 on my PC. #lang racket (define sema (make-semaphore 1)) (define (make-th i) (λ ()  (let loop ((a 0)) #;(when (zero? (modulo a #e1e6))    (semaphore-wait sema)    "do what you have to do without disturbing other futures"    (semaphore-post sema))   (loop (add1 a) (for ((i (in-range (processor-count (future (make-th i))) (sleep 10)(exit) Can’t I use semaphores in futures? Help please.I have used semaphores earlier without trouble.Jos (Jacob J. A. Koot) PS My version:Welcome to DrRacket, version 8.2 [cs].Language: racket [custom]; memory limit: 6000 MB. 



-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/2E9C7601-1AC5-42A3-BA23-0B759791CD1B%40hxcore.ol.


Re: [racket-users] How to learn the *core* of Racket?

2021-11-12 Thread Daniel Prager
An alternative answer to the implied question: "How do I learn the core of
the language-oriented features of Racket?"

Check out Beautiful Racket: https://beautifulracket.com

- Dan




On Fri, Nov 12, 2021 at 2:03 PM Philip McGrath 
wrote:

> On Thu, Nov 11, 2021 at 9:20 PM Yushuo Xiao  wrote:
>
>> Thank you very much! I didn't know the set is not fixed. And thinking of
>> them as an IR really helps.
>>
>> On Friday, November 12, 2021 at 12:15:39 AM UTC+8 johnbclements wrote:
>>
>>> That’s a true statement… but that set is by no means fixed.
>>>
>>
> To nitpick a little, while it's true that the set of forms allowed in
> fully expanded programs is not fixed, the last change was in Racket 6.3,
> adding `(quote-syntax datum #:local)` and removing
> `letrec-syntaxes+values`:
> https://docs.racket-lang.org/reference/syntax-model.html#%28part._fully-expanded%29
>
> So, while not fixed, they are in fact quite stable, and the list of
> identifiers is exposed through APIs like the `kernel-literals`
> 
> literal set for `syntax-parse` and, at a lower level,
> `kernel-form-identifier-list`
> 
> and the `syntax/kerncase`
> 
> module. Authors of advanced macros that use `local-expand` and friends need
> a general awareness of their shapes, e.g. to recognize definitions, splice
> `begin`s, or recur into local binding forms, so changes have to be
> unobtrusive to avoid breaking compatibility.
>
> If you're interested in the low-level internals of Racket, you may also
> want to read the manual section on Linklets and the Core Compiler
> .
>
> -Philip
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/0100017d121a0121-031c9bd8-10ec-45b2-84b3-91c93d4e19bc-00%40email.amazonses.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAFKxZVVRy_KiT_trbN-KkrHbP5jeAm5zdAX_Jv8V-mM88t0oSg%40mail.gmail.com.