From: Siraaj Khandkar Date: Thu, 12 Nov 2020 12:47:50 +0000 (-0500) Subject: Simplify X-Git-Tag: 0.3.4~1 X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=9926c9a99da3d862b95da39669f767e4f020ec72;p=tt.git Simplify --- diff --git a/tt b/tt index 45f4d56..2bbe402 100755 --- a/tt +++ b/tt @@ -73,12 +73,9 @@ [(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) @@ -203,7 +200,7 @@ (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