This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-06-16
Channels
- # admin-announcements (72)
- # beginners (41)
- # boot (93)
- # cider (50)
- # clojure (173)
- # clojure-berlin (19)
- # clojure-dev (2)
- # clojure-greece (3)
- # clojure-israel (2)
- # clojure-italy (32)
- # clojure-japan (33)
- # clojure-nl (8)
- # clojure-russia (3)
- # clojure-seattle (1)
- # clojure-sg (1)
- # clojure-spain (16)
- # clojure-uk (4)
- # clojure-ukraine (1)
- # clojurescript (170)
- # code-reviews (20)
- # core-async (3)
- # datomic (5)
- # docs (28)
- # editors (17)
- # euroclojure (2)
- # events (7)
- # instaparse (18)
- # jobs (25)
- # ldnclj (11)
- # om (26)
- # overtone (3)
- # remote-jobs (3)
- # sneer (1)
@yusup: what about adding this as arguments to java execution command?
java -server -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -Djava.rmi.server.hostname= -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.rmiserver.port=9010 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
/path/to/my.jar
also, you might be interested in Flight Recorder for remote profiling http://www.oracle.com/technetwork/java/javaseproducts/mission-control/java-mission-control-1998576.html@trybeee: thanks. My problem solved. I was using fab to sync my project on remote machine, and it kinda failed for some reason. After being able to sync the project, everything worked. I am trying out Yourkit and it is great.
@chris: I'm new to Om and clojure so I can't give any kind of definitive answer, but I'll take a bit of a stab. What reify means in Om is what it means in clojurescript in general, which is also what it means in clojure. Om uses reify to construct things that satisfy the requirements of React for protocols and interfaces and so forth. Beyond that it is a rabbit hole that I haven't yet gone down, so I'll anxiously await more knowledgeable answers than mine.
@chris @meow As I understand it, it takes the function and the name and implements the protocol. "make (something abstract) more concrete or real."
More or less that. It's saying, "I'm making a thing that implements these protocols" which is another way of saying, "You can call the protocol fns on the thing that is returned"
@chris: The other impression I get is that Om exposes the use of reify and such to allow one to get "close to the metal" of React, whereas other tools like Reagent and Quiescent hide those details under more functional/familiar code. Hence the criticism that Om is more OO and not as Clojure-ish but that is a known tradeoff that @dnolen has taken and will likely remain even in Om.next (I'm channeling @dnolen so hopefully he will correct me where I am wrong). So while om.next will be different than om and "simpler", it won't be radically different because it has the design intent of adhering rather closely to React and allowing exposure to all that React offers. This makes it easy for Om to stay in sync with React and allows others to build additional abstractions on top of Om.
I'm really most familiar with Interfaces from the Python world where some projects like Zope adopted them in a big way. I get the impression that React uses Interfaces and therefore Om and other wrappers need to use them as well and reify is how one does that in cljs.
@meow: in the next version Om components will literally just be React components, so the protocols are going away. You just implement React lifecycle methods directly.
@dnolen: Cool. I can't wait to see what om.next brings to the table. These are very exciting times for cljs. Thank you for your awesome efforts, David - you rock!
hi there, suppose I have a function defined like that
(defn func [x y] (+ x y))
is there a way to define my input as map instead, for example {:x 10 :y 20}
and pass that in? I can't rely on the order being maintained I suppose?
if I assume the order is kept it seems to work actually
doing (apply func (vals {:x 10 :y 20}))
@akiva: ah ok nice, yes well these functions are already defined
playing around with Qil
Quil sorry
@andrea.crotti: also look at prismatic/pluming defnk