Hi Reid,
This is excellent. Just experimenting and trying to get my head around it.
Not sure if I'm doing any wrong or stupid!! If I test a function that
relies on Exception handling internally as I reach 100 tests it takes
forever and eventually blows the heap.
Simple contrived example:
(ns
I used CongoMongo for my base web app with authentication
(https://github.com/xavi/noir-auth-app). When asked (a year ago) why I
didn't use Monger I said I prefer CongoMongo because it's smaller and so
probably easier to understand, and it does all I need
Congrats Reid, thanks a lot for all your work on this!
Have only been using simple-check for a little while now, but it's already
paid big dividends in production. One of the most concretely useful testing
tools I've ever used. For folks that haven't tried it, I'd absolutely
recommend taking a
Maybe one additional thing to note is that the book shows that the Clojure
web development ecosystem is a reflection of its general philosophy and
it's not about any particular framework but more focused on composing
simple components/libraries. Once you understand the basic concepts (HTTP
I would recommend this combination of libraries:
- Compojure
- lib-noir
- Enlive and Enfocus, for server-side and client-side templating
respectively (I've also used Hiccup, but I prefer Enlive/Enfocus because
with these, templates are pure HTML; I prefer them even for solo projects,
but I
OK, took my usual approach when stuck, which is to try and turn it into a
different problem! Decided to stop trying to use handle* directly, but
rather explicitly start an nREPL server on a socket, and relay those
messages over websocket. Seems to work fine :-)
Thanks,
Jony
On Thursday, 27
Really useful, concise library - thanks!
James
On Saturday, 15 February 2014 18:53:58 UTC, Jason Stewart wrote:
I've just pushed the first version of ring-token-authentication, a Ring
middleware to authenticate HTTP API requests.
Token authentication is a popular way to authenticate API
is there a recommended way of accessing the ReactCSSTransitionGroup tag
that is a part of react-wtih-add-ons.js?
Specifically I am having trouble avoiding an Uncaught Error: Assert failed:
Unknown tag: ':ReactCSSTransitionGroup'
--
You received this message because you are subscribed to the
I assume you're referring to https://github.com/neatonk/im4clj ?
On Thu, Feb 27, 2014 at 10:24 PM, exel...@gmail.com exel...@gmail.com wrote:
Hi Michael,
Got some good results on img processing tests. I got image resizer working
nice, it was a resource path issue.
However after some side
Yes, Reagent doesn't know about React components that don't live in React.DOM
(ReactCSSTransitionGroup is in React.addons).
So what you would need to do is to get hold of the component constructor,
with something like
(def ctg (- js/React (aget addons) (aget ReactCSSTransitionGroup)))
and
If you are learning go with a simple approach (compojure + http-kit +
hiccup for example). If you already know clojure I recommend going with
some library that provide everything as data, specially the routes, as the
function composition approach of compojure only gets you so far (been
there).
Here're some notes on the lean compiler I've been working on for
clojure-objc
http://galdolber.tumblr.com/post/78110050703/reduce-startup
Feedback's welcome
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
Monger, and any other popular driver?
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe
Great, will it impact the runtime performance?
On Friday, February 28, 2014 11:16:44 PM UTC+8, Gal Dolber wrote:
Here're some notes on the lean compiler I've been working on for
clojure-objc
http://galdolber.tumblr.com/post/78110050703/reduce-startup
Feedback's welcome
--
You received
The runtime impact should be none or minimal, but I didn't benchmark it yet.
On Fri, Feb 28, 2014 at 12:44 PM, bob wee@gmail.com wrote:
Great, will it impact the runtime performance?
On Friday, February 28, 2014 11:16:44 PM UTC+8, Gal Dolber wrote:
Here're some notes on the lean
This sounds like an awesome shortcut to speeding things up on android/ios
while we're waiting for CinC and friends. Do you know how much work it
would be to port your changes to clojure-android and try it out there? I'd
be very interested to test it out and do some debugging on android. Is it
just
2014-02-28 14:35 GMT+04:00 xavi xavi.caba...@gmail.com:
When asked (a year ago) why I didn't use Monger I said I prefer CongoMongo
because it's smaller and so probably easier to understand
Monger's API follows MongoDB shell. CongoMongo invents a completely new
API. I'll let you decide which
No, its a bit more than that, but it shouldn't be hard to port. The changes
already generate the right bytecode. I'm working a clean patch for
clojure-jvm that should work on android.
On Fri, Feb 28, 2014 at 12:58 PM, Adam Clements adam.cleme...@gmail.comwrote:
This sounds like an awesome
Sounds promising, looking forward to testing the clojure-jvm patch!
Ambrose
On Sat, Mar 1, 2014 at 12:08 AM, Gal Dolber g...@dolber.com wrote:
No, its a bit more than that, but it shouldn't be hard to port. The
changes already generate the right bytecode. I'm working a clean patch for
I'm having some trouble with java constants in a case statement. I know I
could use condp, but these are things I could put in a java switch
statement and so it's annoying to give up constant time dispatch:
(case (.getActionMasked event)
MotionEvent/ACTION_POINTER_DOWN :down
I'm not 100% sure if this works, but have you tried writing a macro that
gets the
Java field value, and inserting into the case statement?
(defmacro motion-case [...]
`(case ..
~MotionEvent/ACTION_POINTER_DOWN ...
~ MotionEvent/ACTION_UP ...
))
On Sat, Mar 1, 2014 at 12:15 AM, Adam
IMO that would needlessly complicate an otherwise simple construct,
especially since a simple macro can endlessly customise it.
Thanks,
Ambrose
On Sat, Mar 1, 2014 at 12:40 AM, Adam Clements adam.cleme...@gmail.comwrote:
That works perfectly, thanks!
It does feel like it should just work as
That works perfectly, thanks!
It does feel like it should just work as a normal case statement though,
where the value is static final, and warn if it isn't. Is there a good
reason this shouldn't be supported by the case statement that anyone can
think of? Worth filing an enhancement request on
Hi,
Can someone correct my misunderstanding here. I was lead to believe that
map produced a lazy sequence, so why do I get three printed trace lines in
the following code :
user= (take 1 (map #(do (println (str trace: %)) %) [1 2 3]))
(trace:1
trace:2
trace:3
1)
Thanks for your help
Andy
--
Clojure works on a chunked basis for performance reasons...THe size of a
chunk is 32 elements - thus you would actually get 32 printouts if you
supplied a collection larger than 31 elements.
Jim
On 28/02/14 17:04, Andy Smith wrote:
Hi,
Can someone correct my misunderstanding here. I was
Hi Andy,
Lazy sequences are realised in chunks of 32.
You can see this by running:
(take 1 (map prn (range)))
(0
1
..
30
31
nil)
Thanks,
Ambrose
On Sat, Mar 1, 2014 at 1:04 AM, Andy Smith the4thamig...@googlemail.comwrote:
Hi,
Can someone correct my misunderstanding here. I was lead to
On Friday, February 28, 2014 5:04:59 PM UTC+1, Michael Klishin wrote:
Monger's API follows MongoDB shell. CongoMongo invents a completely new
API. I'll let you decide which one is easier to understand.
How is CongoMongo inventing a completely new API?
Taking an example adapted from
Not everything is chunked, but data-structures like vectors produce
chunked-seqs.
On Fri, Feb 28, 2014 at 5:06 PM, Jim - FooBar(); jimpil1...@gmail.comwrote:
Clojure works on a chunked basis for performance reasons...THe size of a
chunk is 32 elements - thus you would actually get 32
2014-02-28 17:21 GMT+01:00 Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com:
(defmacro motion-case [...]
`(case ..
~MotionEvent/ACTION_POINTER_DOWN ...
~MotionEvent/ACTION_UP ...
))
That's a neat trick! Didn't know case could do this.
Wouldn't it be great to mention this
Long story short. You should be learning Pedestal, but the app component is
on pause at the moment. My advice is to learn pedestal-service and Om. When
Pedestal-app gets going again, learning Om will have given you a good context
for transitioning to Pedestal 100%.
--
You received this
doh!, thanks for the above. I actually did read this a few weeks ago but
totally forgot about it. :o/
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are
On Feb 28, 2014, at 9:08 AM, xavi xavi.caba...@gmail.com wrote:
(monger.collection/find products { :price_in_subunits { gt 1200 lte
4000 } })
And you could use $gt, $lte directly if you require/refer Monger's operators
namespace:
(monger.multi.collection/find db :products {:price_in_subunits
Anyone who has a good working example of this can add it to
clojuredocs.orgin a few minutes, if they are so inclined:
http://clojuredocs.org/clojure_core/clojure.core/case
I know that within 5 seconds of reading this one or more people will
complain that the site is out of date. It is true
On Feb 28, 2014, at 7:29 AM, action actioncao2...@gmail.com wrote:
Monger, and any other popular driver?
CongoMongo -- but see this thread:
https://groups.google.com/forum/#!topic/clojure/JOREq-Jl1Ns
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the
Yes via im4clj - https://github.com/neatonk/im4clj
[im4clj 0.0.1]
The developer recommends shell scripting with Conch with standard command
line syntax, however im4clj works perfectly fine for 2 core needs for photo
gallery apps:
1. resize with proportions, and
2. crop thumbnails from center
Hey Andrew,
Good question. tl;dr, change your test to:
(tc/quick-check 100 prop1 :max-size 50) ;; and that should pass.
Longer explanation:
test.check's generators take two parameters, a random number generator, and an
integer 'size'. During testing, the size starts at 0, and increases up to
Hi,
Looking at the
codehttps://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/LazySeq.javafor
LazySeq.seq() I was wondering why a 'while' loop is used rather than an
'if' and a recursive call to ls.seq(), which would be cleaner code I guess?
Am I right to suspect this simply an
The main disadvantage with this, of course, being requiring
imagemagick on the command line.
On Fri, Feb 28, 2014 at 2:51 PM, The Dude (Abides) exel...@gmail.com wrote:
Yes via im4clj - https://github.com/neatonk/im4clj
[im4clj 0.0.1]
The developer recommends shell scripting with Conch with
Agreed if your img processing use case is minor, prob not worth it.
If there's a lot of member submitted content for example and speed/smaller
file sizes are important, there's value in graphicmagick. Its a simple 1
line command install and thereafter I've never touched it except via code
to
Taking the code below, if I repeatedly read from a cache I will
occasionally get nil back from the cache. This seems to happen on my
machine for ttl's under 5 ms.
Although I'm sure I would never use such a short TTL in the wild, I would
like to know why I am seeing this... Has anybody else
So I just booted up my ubuntu to check if the same happens here too. And
see, it does.
What I did was:
1. run lein install for subproject
2. create checkouts folder in main project
3. do an ln -s ../../subproject
Then I fired up my server to see if hot code reloading works, but still it
wont.
Ok, finally i found it myself after days of days of digging :D
In core.clj there is this code:
(http-kit/run-server
(if (dev? args) (reload/wrap-reload app) app)
Simply change it to this one:
(http-kit/run-server
(if (dev? args) (reload/wrap-reload app {:dirs [src
I would appreciate a jira enhancement ticket for this.
Alex
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
Hi,
Can I ask a newbie question about clojure performance?
What make clojure performance slow than java?, it seems clojure has the 1/4
performance compared to java in general, according to tests, some cases it
might be 1/10. the reasons I can think out are
- the byte code is not efficient
Think you.
在 2014年3月1日星期六UTC+8上午3时44分19秒,Sean Corfield写道:
On Feb 28, 2014, at 7:29 AM, action action...@gmail.com javascript:
wrote:
Monger, and any other popular driver?
CongoMongo -- but see this thread:
https://groups.google.com/forum/#!topic/clojure/JOREq-Jl1Ns
Sean Corfield --
I have seen (and I keep seeing) a ton of Java code that performs poorly.
Empirically, it's equally easy to write a slow Java app. You always need a
discerning programmer to get good performance from any language/tool.
Numbers like 1/4 or 1/10 can be better discussed in presence of the
Hi,
Is there anything like http://codemirror.net/ or
http://ace.c9.io/#nav=about in cljs ?
The goal is not to use codemirror/ace in a cljs project. The goal is
to read some interesting cljs code on how to write an editor.
Thanks!
--
You received this message because you are subscribed to
47 matches
Mail list logo