This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-17
Channels
- # architecture (14)
- # aws (4)
- # aws-lambda (2)
- # beginners (66)
- # cider (63)
- # clara (39)
- # cljsjs (4)
- # cljsrn (3)
- # clojure (111)
- # clojure-berlin (5)
- # clojure-italy (17)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-uk (93)
- # clojurescript (19)
- # core-async (60)
- # cursive (13)
- # datomic (22)
- # devcards (2)
- # dirac (4)
- # duct (44)
- # emacs (18)
- # fulcro (1)
- # graphql (10)
- # jobs (13)
- # jobs-discuss (27)
- # lumo (1)
- # mount (1)
- # off-topic (22)
- # om-next (1)
- # onyx (16)
- # philosophy (3)
- # planck (4)
- # precept (34)
- # re-frame (66)
- # reagent (6)
- # ring (2)
- # ring-swagger (1)
- # shadow-cljs (333)
- # specter (8)
- # tools-deps (4)
- # vim (15)
- # yada (1)
Quick question. Suppose I have a JavaScript object with a deep chain of functions, so that I have to do something like obj.fn1().fn2().fn3(“hiworld”). In clojurescript, I’m trying (.. obj fn1 fn2 (fn3 “hiworld)), but not getting the expected results. Is the .. macro supposed to work with clojurescript? (ps - i know the alternative, was just curious to see if .. macro should work)
@ecolui that looks ok to me at first glance
I tried in http://ClojureScript.io and:
cljs.user=> (macroexpand '(.. obj fn1 fn2 (fn3 "hello")))
(. (. (. obj fn1) fn2) (fn3 "hello"))
Does anyone know a library for controlling the mouse and keyboard? To simulate key presses and clicks?
Oh that’s hard — on macOS you can work with the Accessibility API, but your app needs to have an explicit permission set by the user for that to work.
@jco, I believe https://docs.oracle.com/javase/8/docs/api/java/awt/Robot.html does what you want
@jco What is the use case? For tests?
Faking user input. The touch events need to be indistinguishable from real human touches (on mobile device). Cannot go into details, but it's nothing nefarious.
i haven’t done clojurescript in a while, so i feel like i’m having to relearn some basics… for a project i’m playing with now, i expected the output to be a single .js file, but i’m seeing main.js
, and a main.out
directory that has lots of subdirectories and other .js files (`goog/array/array.js` as one example). this is with :optimizations :advanced
; is there something else i need to do to get a single output file? or is that not a thing i should expect?
@wiseman it is a bit confusing but the main.js
should contain the modules, still main.out
is produced as part of the compilation phase if I remember correctly
you can check the content (or the size)