This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-09
Channels
- # admin-announcements (40)
- # beginners (6)
- # boot (69)
- # braid-chat (43)
- # business (3)
- # cljsrn (99)
- # clojure (51)
- # clojure-art (2)
- # clojure-brasil (2)
- # clojure-dev (23)
- # clojure-portugal (1)
- # clojure-russia (15)
- # clojurescript (52)
- # community-development (319)
- # core-async (1)
- # cursive (40)
- # datomic (6)
- # editors (11)
- # emacs (1)
- # hoplon (20)
- # jobs (1)
- # ldnclj (5)
- # leiningen (2)
- # mount (5)
- # off-topic (1)
- # om (45)
- # proton (5)
- # re-frame (29)
- # reagent (4)
- # ring-swagger (1)
- # yada (6)
@spacepluk: with a delay of a day, here is the tutorial trying to explain how to make a library compliant with Reader Conditional extension. HIH. https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-19.md
why does for example (doc inc)
say clojure.core/inc ([x])
and not clojure.core/inc (x)
?
@notjonas: Because it can have multiple arities. It's showing all those arities as a list. inc
just happens to have one. An example of one that returns more to show this is range
. (doc range)
will give you:
clojure.core/range
([] [end] [start end] [start end step])
Meaning you can do (range)
, (range end)
, (range start end)
, etc.In your opinion which graph database best fits with Clojure? Datomic? Neo4j? OrientDB? Other?
Hi, I am trying to use sparkling against a standalone cluster, however i get the following message on spark master logs
6/01/09 21:00:14 INFO LocalActorRef: Message [akka.remote.transport.ActorTransportAdapter$DisassociateUnderlying] from Actor[<akka://sparkMaster/deadLetters>] to Actor[<akka://sparkMaster/system/transports/akkaprotocolmanager.tcp0/akkaProtocol-tcp%3A%2F%2FsparkMaster%40192.168.1.100%3A64328-2#27545407>] was not delivered. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 16/01/09 21:00:50 ERROR EndpointWriter: AssociationError [<akka.tcp://[email protected]:7077>] <- [<akka.tcp://[email protected]:64333>]: Error [org.apache.spark.deploy.DeployMessages$RegisterApplication; local class incompatible: stream classdesc serialVersionUID = -5495080032843259921, local class serialVersionUID = 352674063933172066] [ java.io.InvalidClassException: org.apache.spark.deploy.DeployMessages$RegisterApplication; local class incompatible: stream classdesc serialVersionUID = -5495080032843259921, local class serialVersionUID = 352674063933172066 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:616) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1623) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518) a
Any ideas
i have figured this out, I was using the latest sparkling with spark 1.2.0. Now i have moved to spark1.5.0 and everything works
Does this line:
(let [{:keys [list/one list/two]} …] …)
bind local symbols one and two?Yeah, I know, but I never seen let used like that, so, I didn’t know it would automatically discard the namespace part to make a local. That’s actually neat.
@pupeno : you did a deep dive into reagent/re-frame, correct? Will be interesting to hear comparison/thoughts on om.next.
donmullen: yes, I did and once I’m done figuring out Om Next (that is, if sales, marketing and product validation do not distract me too much), I’ll be happy to do that.
donmullen: I can tell you that I’m very intrigued by Om Next’s approach to APIs in which it can get all the data for the app in one call. My super tiny project already makes like 5 calls and that’s a very inefficient. @dnolen also advocates against a visible event system and even though I haven’t suffer this pain yet, I can see his point as that’s one of my fears with re-frame.
Does anyone here have any experience with clj-rethinkdb? I’m trying to get without
to work in a filter
but nothing I pass to it which describes the field I want to exclude seems to work.
for the ones new to clojure as I'm, some nice app examples from heroku https://devcenter.heroku.com/categories/clojure
As I mentioned I'm new to Clojure. I'm developing a microservice using clojure,compojure, ring, etc. I've been following some tutorials and books however most part of them don't include the test part of it and when they do, like Parens of the dead, they don't explain how to setup it. Can you describe or point to a tutorial that covers how to setup a testing environment (maybe a way to watch / run tests as they are modified)?
@esnunes: you mean like setting up unit or integration tests? If so you can try the clojure test ns.
@tom: sorry, I think I wasn't clear enough. I mean the workflow to run tests. How to configure my editor, lein project, etc
maybe I'm just making the things complex. In node-js I have a package.json script that watches for changes and re-run the tests.
@esnunes, it matters what your editor is and what test framework you’re using. At the very least, you can run lein test
. I usually use expectations (https://github.com/jaycfields/expectations) with lein-expect
to run my tests automatically whenever I save a file.
@esnunes: There is also https://github.com/seancorfield/boot-expectations now for boot - which has several other test tasks : https://github.com/boot-clj/boot/wiki/Community-Tasks
uhmm I thought lein
was the standard build tool (note: learn more about difference between *boot and lein*)
@esnunes: Sounds like you are doing mostly backend stuff. Boot is great tool for that as well - check out the #C053K90BR channel, where several people use docker + boot for deployment. Clojurescript and custom builds are better suited to using boot IMO : modern-cljs 2nd edition steps through using boot : https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-01.md
@esnunes, boot is just a different approach and, unlike Leiningen, it’s still actively developed. I prefer lein but honestly it’s mostly because it’s what I’m more familiar with. boot stays in the background for me, something to learn one day.
@donmullen: in the js/node-js world I do both backend and frontend. I will take a look on boot too. I extensively use docker in production as well as in development.
One last note, if I were new to Clojure, I’d learn boot. I’d learn lein too simply because it’s been the ’standard' but I’d use boot for all my projects.
thanks, it is always good to receive some advices from experienced devs. I'm travelling this tough journey to learn Functional paradigm, Clojure, Emacs, main clojure libs, ClojureScript + Om, all at once.