This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
I'm writing a blog post about Reader Conditionals, I'd be happy to have some feedback before I publish it if anyone's interested - https://gist.github.com/danielcompton/bd07ce46d14d5849be57
@arrdem: that's a fair point, could look a little funky with the do, but I'll mention it.
I got really confused on an older 1.7 release before they added the exception. Before that it would just silently fail. I was converting a ns to reader conditionals and wrapped the whole thing in a splice and it didn't work as expected
Other gotcha with reader conditionals- http://danielcompton.net/2015/05/21/conditional-read-not-allowed-clojure-reader-conditionals
I’ll be keeping an eye on it from time time, so feel free to ask questions and discuss problems/suggestions about cider there
Hey! Just curious … is there something like a durable/persistent atom? I don’t need a full database, just an atom that is able to survive application restarts
maybe I do need a database, just haven’t realised it yet. But it’s on a single proces, on a single machine, multi-threaded though. It’s for maintaining a simple id -> meta-data map
@joelkuiper: just writing the contents of an atom to a file and read it back in also works of course
@borkdude: well yes, but then I need to watch the atom for changes and keep flushing out to disk each time something changes. I was hoping somebody already did that, since it can involve some peculiarities 😉
@martinklepsch: the file backed atom seems to be at least very similar to what I had in mind … I’ll play with it, thanks
@joelkuiper: very simple implementation w/ Nippy serialization https://bitbucket.org/ul/runes24/src/931419f4619ac7882b0c0970ebcac6cc9bddbc59/src/clj/runes24/edb.clj?at=default
@joelkuiper: it seems to do just that https://github.com/alandipert/enduro/blob/master/src/alandipert/enduro.clj#L60
yep I’ll try enduro! it would have been easy to write, surely, but not as easy as asking the power of the interweb 😉
How do I make Quil on MacOS create Dock icons for my sketches? The following doesn't help:
;; In core.clj (before defsketch) (System/setProperty "apple.awt.UIElement" "false") ;; In project.clj ... :jvm-opts ["-Dapple.awt.UIElement=false"]
The Quil FAQ shows it's something of a mystery... https://github.com/quil/quil/wiki/FAQ#i-cannot-see-sketch-on-os-x
hey friends, i was curious how you guys typically auto start clojure apps? i was considering using supervisord to manage the standalone jar and nginx as proxy in front of that clojure web app.
Wrote a blog about leiningen -> boot: http://blog.michielborkent.nl/blog/2015/06/06/from-leiningen-to-boot/
does this sound crazy? (if you have an opinion or advice could you atmention me) thanks!
@chadhs: We just use an upstart script. (And nginx as proxy too.) I'll look later at supervisord to see if it has advantages over upstart, thanks!
Thanks all! Was considering supervisor to avoid writing different init scripts for Ubuntu and FreeBSD
i use supervisord a lot and nginx, although for one of our high volume apis we use uwsgi with nginx to load the ring app
Honestly, only reason why I use upstart is because it’s what was there when I jumped from Heroku to DigitalOcean.
@chadhs: It’s really fast and has some interesting features http://uwsgi-docs.readthedocs.org/en/latest/Ring.html
Hey all, I’m looking to totally gut and simplify my test suite for a web project I have… I have too many mocks, and the integration testing is brittle, because of occasional schema and/or API changes. Any suggestions on tools that might make this easier, or approaches to testing that are specific to Clojure?