Simplify
authorSiraaj Khandkar <siraaj@khandkar.net>
Thu, 12 Nov 2020 12:47:50 +0000 (07:47 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Thu, 12 Nov 2020 12:48:23 +0000 (07:48 -0500)
tt

diff --git a/tt b/tt
index 45f4d56..2bbe402 100755 (executable)
--- a/tt
+++ b/tt
                             [(cons x xs) (begin
                                            (thread-send thd (cons 'unit x))
                                            (dispatch ws xs ys))])])))
-  (define workers
-    (range 1 (add1 num_workers)))
-  (define threads
-    (map (λ (id) (thread (make-worker id f))) workers))
-  (define results
-    (dispatch workers xs '()))
+  (define workers (range num_workers))
+  (define threads (map (λ (id) (thread (make-worker id f))) workers))
+  (define results (dispatch workers xs '()))
   (for-each thread-wait threads)
   results)
 
   (define user-agent
     (let*
       ([prog-name      "tt"]
-       [prog-version   "0.3.2"]
+       [prog-version   "0.3.3"]
        [prog-uri       "https://github.com/xandkar/tt"]
        [user-feed-file (expand-user-path "~/twtxt-me.txt")]
        [user
This page took 0.037981 seconds and 4 git commands to generate.