This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-31
Channels
- # announcements (7)
- # asami (2)
- # babashka (47)
- # beginners (8)
- # calva (42)
- # clj-kondo (58)
- # cljdoc (1)
- # clojure (88)
- # clojure-europe (11)
- # clojurescript (6)
- # conjure (7)
- # data-science (5)
- # emacs (9)
- # events (1)
- # holy-lambda (3)
- # introduce-yourself (5)
- # meander (3)
- # missionary (4)
- # nbb (18)
- # obb (5)
- # off-topic (1)
- # other-languages (10)
- # pathom (2)
- # reagent (6)
- # releases (3)
- # ring (3)
- # scittle (1)
- # shadow-cljs (1)
- # spacemacs (2)
- # xtdb (6)
bit-shift-right
compiles to 1024 >> 4
, while /
often will invoke the Clojure runtime checking for ratios and overflow and whatnot. I can recommend inspecting the generated byte code to appreciate the difference. In this video I show the use of a decompiler on this particular example: https://m.youtube.com/watch?v=tRPKSXullYs
that's a long video... what is the timing of the part where you inspect the byte code?
Checking it I'm not sure it even happens in that video. 😀 But in this one it does: https://youtu.be/T_wuPrHIupU Some 1 hour and 32 minutes in. And I think earlier than that too.
in face of a JIT ... why would anyone use bit-shift-right
? Or is the JIT actually terrible?