This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-06-22
Channels
- # admin-announcements (9)
- # beginners (18)
- # boot (20)
- # cider (32)
- # clojure (108)
- # clojure-berlin (5)
- # clojure-czech (3)
- # clojure-italy (5)
- # clojure-japan (70)
- # clojure-russia (37)
- # clojure-sg (2)
- # clojure-spain (3)
- # clojurescript (89)
- # core-async (5)
- # core-typed (12)
- # datomic (11)
- # dunaj (2)
- # editors (30)
- # euroclojure (33)
- # events (1)
- # jobs (10)
- # ldnclj (18)
- # off-topic (45)
- # reagent (12)
Any recommendations on good UI libraries for Clojure? I’m attempting to build a program visualization tool vaguely reminiscent of http://noflojs.org/ and am looking for a good front end. I started hacking something together using https://github.com/daveray/seesaw, but I’m not sure I’m sold on using Swing. I know LightTable went the node-webkit/cljs route, but I always had performance issues with it.
@minimal: I looked at manifold
library before. And yes, you’re right, let-flow
macro sells pretty the same idea of using values as they don’t have "computation container” around them
about applicative do, hmm seems like a great idea, we can think on implement it for the next version
@kachayev: really appreciated the new examples in the readme.md
@kachayev: looks great with mlet
syntax. I read the Haxl paper and is very interesting, in case someone is curious http://community.haskell.org/~simonmar/papers/haxl-icfp14.pdf
Hi, I'm new to clojure and I'm trying to fix a namespace conflict between two macros. lein dev
works, but lein uberjar
fails. Can anyone advise me on general debugging techniques for this? I've already made sure everything is explicitly :refer'd and I'm a bit lost as to what to do next.
if it helps, here is a link to the question I asked on stack: http://stackoverflow.com/questions/30935458/schema-causing-uberimage-build-failure
@calum, I think @txus mentioned a similar problem the other day
have you tried aot'ing only the namespace containing the entry point?
.o0(aha)
@tcrayford: 1.6 AFAIK
@calum @txus latest schema release has a fix for that AOT bug (iirc). lein deps :tree
it
using clojure 1.6.0 and schema 0.4.3 @tcrayford
iirc 0.4.4 fixes a number of AOT bugs. Unsure though - I don't use schema directly (just plumbing)
@calum, @txus, otherwise try creating a minimal example reproducing the bu7g
@calum: we’ll have to exclude schema from compojure-api’s dependencies and include our own with schema’s 0.4.4-SNAPSHOT
with that you should get a quick response on a bug report
@pesterhazy: sure thing. I'll give that a go if updating doesn't solve it
so, quick poll - fastest way to get a decent emacs on a retina mac?
http://jetbrains.com -> cursive 😄
@sveri - that is what I am using and love love love it. But I like to keep on top of emacs as well
@zoldar - yep, community version running latest - all working fine for me
@colin.yates: Spacemacs in emacs mode? https://github.com/syl20bnr/spacemacs
@colin.yates: thanks, just asking, because last time I recall there were hiccups
@voxdolo: talk about a vertical learning curve!
@colin.yates: Ok, sounds reasonable, I know, my comment wasn't constructive, but I just cannot keep myself from giving them 😄
@colin.yates: just use it in emacs mode. If you run through the instructions, it will guide you to choose vim or emacs mode. It's a great all-in-one (opinionated) packaging of the best packages in the emacs landscape. I'm using it daily for clojure dev.
and to be clear it is emacs, it's just a collection of great packages with an alternative keymapping that you opt out of by choosing emacs mode.
@voxdolo - thanks. How does it compare to emacs live or prelude for example (if that isn’t too big an answer)?
@colin.yates: I'm not familiar with either 😕 I'm a long-time vimmer in emacs land for the first time. I've been using spacemacs for about 3 months now.
@voxdolo - ok - thanks, I will take a look
@colin.yates: https://github.com/clojure-emacs/example-config might be a simple start for clojure-specific work
Is there a reason you can't add metadata via the reader to a symbol? as (meta ^:foo bar) ;; => nil
yet (meta (with-meta bar {:foo true})) ;;=> {:foo true}
but the above works for collection types... e.g. (meta ^:foo []) ;; => {:foo true}
@colin.yates: also, there’s an #C050AN6QW channel if you have more questions
@jcsims - thanks, I didn’t realise there was an official one - good to know.
@voxdolo: wow, spacemacs makes really nice first impression, installation went smoothly and theme looks really slick
@rickmoynihan: I think you're seeing the difference between metadata applied by the reader to the symbol bar
and metadata applied to the value of bar
at runtime.
(meta (read-string "^:foo bar"))
=> {:foo true}
Read-time metadata is tricky; it's generally easier to use with-meta
.
@stuartsierra: Yeah I suspect its an expansion order thing... e.g. (meta '^:foo bar)
=> {:foo true}
its ok this is going in a macro anyway... I'd just tried it at the REPL and was surprised
Yeah, you almost always want with-meta
in a macro, not reader metadata.
@stuartsierra: but its ok for a user of the macro to call like this? (mymacro foo ^:somemeta bar)
and my macro to process the metadata right?
@rickmoynihan: Yes. defn
does this.
thanks for your help
You're welcome.
@stuartsierra: pretty sure that could be a "Clojure Don't", though wondering how big your backlog is on that series now 😉
not necessarily clojure-specific question: if you're creating a method that does a SQL insert and you need to make sure the value isn't in the table, would you put the SELECT check at the beginning of the new method or before calling the new method?
@bmay: IMO, it's easiest to just try to insert it and catch the exception but I'd be interested to hear what others think too
hi guys. a possible side project i've been thinking recently: would it make sense to convert this deep learning tutorial into clojure + deeplearning4j: http://deeplearning.net/tutorial/deeplearning.pdf
which language makes more sense for this particular purpose: scala or clojure? also, is this too ambitions for a one-person project?
also, asking in a clojure channel what language they would use, is kind of ‘misleading’.
Anyone used elephant (https://github.com/clojurewerkz/elephant) in production for Stripe integrations?
it wraps the official Stripe Java API, which I approve of. I'm slightly wary of the "Elephant is very young and under active development." disclaimer though.
though I suppose "active development" is preferable to the "stagnant development" that seems to prevail in the other libs for interacting with Stripe
@michaelklishin: what say you? is elephant good to go for production?
@voxdolo: I'm fairly certain it doesn't have any major issues. It is not complete, though, and the docs are lacking.
I am going live with it fairly soon
@arrdem: fortunately not most of ClojureWerkz libraries
@michaelklishin: okay, thanks for the input.
we've got a super straightforward integration, just a charge. I'll likely give it a whirl.
@voxdolo: my use case is focused exclusively on subscriptions
@voxdolo: I don't even know if we implemented charges. The API and test suite make it easy to contribute that, though. And we wrap Stripe Java instead of working from scratch.
@michaelklishin: looks like it's there, but I haven't had a play with it yet: https://github.com/clojurewerkz/elephant/blob/master/src/clojure/clojurewerkz/elephant/charges.clj
and yeah, my other two options are wrap the Java API myself (which wouldn't be terrible) or potentially use https://github.com/racehub/stripe-clj instead, as it seems fairly active
RaceHub folks are pretty sharp. I suspect they already use stripe-clj in prod.
I appreciated the fact that elephant wrapped the Java API, but yeah… stripe-clj is a contender.
thanks for the thoughts @michaelklishin
Stripe Java actually misses some things that Stripe HTTP API provides
and their Java code is, ahem, Ruby-programmers-had-to-write-Java
@kachayev: muse library looks great. Liked the real world datasources examples. Going to try in my projects