This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-29
Channels
- # announcements (10)
- # babashka (18)
- # beginners (136)
- # calva (9)
- # cider (14)
- # clara (12)
- # clj-kondo (32)
- # cljsrn (3)
- # clojure (133)
- # clojure-europe (21)
- # clojure-nl (4)
- # clojure-uk (15)
- # clojurescript (60)
- # conjure (40)
- # cursive (12)
- # datomic (6)
- # emacs (2)
- # fulcro (19)
- # jackdaw (25)
- # jobs-discuss (3)
- # kaocha (3)
- # leiningen (5)
- # off-topic (99)
- # pedestal (1)
- # re-frame (49)
- # reagent (4)
- # ring (5)
- # rum (5)
- # shadow-cljs (53)
- # spacemacs (2)
- # sql (13)
- # timbre (2)
- # tools-deps (23)
- # vim (11)
- # xtdb (7)
I've received quite a few messages to make Fork work solely with Reagent. Well, I've finally found some spare time over the weekend to finally make this happen. 🙂 V2.0.0 is out with a few extra improvements as well. 🍴 https://github.com/luciodale/fork
A new tiny CLJS library for more accurate alternatives to setTimeout
and setInterval
which leverage web workers: https://github.com/dvlopt/timer.cljs
For instance, those timers are not throttled to once per second when the tab is inactive and every
(alternative to setInterval
) tries to offer drift protection. I personally use them to schedule MIDI music in a rather timing-intensive fashion and they perform surprisingly well.
Wasn’t performance.now being intentionally crippled by browsers to remedy timing attacks?
That’s great, thx! Was just getting ready to port this over for a web audio project but now don’t need to. https://www.html5rocks.com/en/tutorials/audio/scheduling/
@U5J5ME2NQ Interesting, I was not aware of that article but the lookahead strategy is exactly what I am using with web MIDI and I confirm it works really well. Depending on what you do, you can go pretty low regarding that lookahead window. @UDF11HLKC I believe that by default, if enabled, the result gets rounded to 1 ms which is not that bad and anyway, I guess this is the best we can do in the browser.
@U5J5ME2NQ you can see an example of that technique implemented in Clojurescript here: https://github.com/chr15m/speccy/blob/master/src/speccy/engine.cljs#L281