This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-17
Channels
- # babashka (9)
- # beginners (10)
- # calva (10)
- # cider (2)
- # clojure (19)
- # clojure-denver (11)
- # clojure-europe (13)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-uk (3)
- # clojurescript (30)
- # conjure (1)
- # core-typed (15)
- # cursive (26)
- # data-science (4)
- # datomic (5)
- # emacs (6)
- # events (1)
- # fulcro (14)
- # honeysql (15)
- # hyperfiddle (51)
- # lsp (1)
- # obb (36)
- # off-topic (7)
- # polylith (4)
- # practicalli (12)
- # reitit (20)
- # shadow-cljs (25)
- # xtdb (4)
Hi 🙂
I’ve been mucking about with obb
a bit and hit something odd, it seems prn
goes to std error (my unix-fu is not very strong so I might not be doing the redirection correctly):
❯ obb -e '(prn "goes to error")' > out 2> error
❯ cat error
"goes to error"
❯ cat out
nil
❯ obb --version
obb v0.0.3
Sure, it’s a bit roundabout: I’m using it to really explore available options in plain JXA. Once I’ve got it down with obb I’m translating to JXA as it executes faster than the whole of Clojurescript + obb. In terms of why… I’m mucking about with turning Emacs into a Spotlight/Alfred/Raycast like tool, for e.g., I can hit a key in Safari which copies the title and URL and opens up a floating Emacs frame with Org capture for taking notes
I’ve got all the bits and pieces working and a few example commands… now I’m trying to nail down the best way to script MacOS… you’re right, Apple really have seemed to abandoned MacOS scripting… Interestingly you can script in Swift with just a shebang but it’s not as user friendly as JXA or AppleScript
> I’m translating to JXA as it executes faster than the whole of Clojurescript + obb. Do you mean in terms of startup time of performance?
yeah, obb
is about 200ms for something simple my side (I can get the numbers I’m just pulling off the top of my head)
well, obb uses SCI and SCI yields about 1mb of JS. The OSAscript thing isn't the most optimized one I guess. With nbb (Node.js) I have about 100ms of startup time