Il giorno lunedì 28 ottobre 2013 04:12:50 UTC+1, Christopher Allen ha
scritto:
You can use Korma with Stuart Sierra's workflow just fine.
>
> Really? Nice! Last time I tried I didn’t managed to get it to work
properly.
What happens to an open connection binded to a Var (via defdb) when the n
On 28 October 2013 05:23, Jiaqi Liu wrote:
>> 2013/10/28 Jiaqi Liu
>>>
>>> i really don't get it.
>>> Any suggestion??
>>
>>
>> Clojure data structures are immutable. clojure.core/assoc
>> produces a new data structure instead of changing the one you have.
>>
>> You can use an atom if you need t
Hi everyone,
I'm happy to announce the Rush Hour platform - highly realistic traffic
simulations
done with a careful, exemplar architecture all in Clojure.
GitHub platform page:
https://github.com/MichaelDrogalis/rush-hour
Blog post about the architecture:
http://michaeldrogalis.tumblr.com/po
Hi David,
awesome to see all those recent improvements in the ClojureScript compiler!
Thanks for the hard work.
Compilation is super fast in optimizations :none mode. A dumb change will be
compiled in below a second. Now the same change in optimizations :simple takes
30 s.
Is that expected? Is
Nice! Incremental compilation of whitespace optimizations + source
maps are now working for me!
On Sun, Oct 27, 2013 at 9:32 PM, David Nolen wrote:
> ClojureScript, the Clojure compiler that emits JavaScript source code.
>
> README and source code: https://github.com/clojure/clojurescript
>
> New
On Mon, Oct 28, 2013 at 9:05 AM, Julien Eluard wrote:
> Compilation is super fast in optimizations :none mode. A dumb change will
> be compiled in below a second. Now the same change in optimizations :simple
> takes 30 s.
> Is that expected? Is it worth my time to investigate that?
>
:simple was
Thanks that's clearer now. Somehow I understood that output-to was supposed to
be relative to output-dir.
One thing that prevents me to use optimizations :none is that the generated js
are not as straightforward to use as with others optimizations: you need to
manually include some js files (at
Haven't tested source maps before, works perfectly !
On Mon, Oct 28, 2013 at 6:25 AM, David Nolen wrote:
> Given the source map improvements to ClojureScript, now is a good time to
> present a newbie friendly guide to hacking with ClojureScript. Emphasis on
> no fuss and getting as quickly as p
New version of core.matrix now available.
This release brings quite a lot of changes including:
- Many performance optimisations: this should be noticeably faster than
previous releases for many operations
- The shape of a scalar is now defined to be nil. This seems to work better
for people wh
Great to hear.
On Mon, Oct 28, 2013 at 6:53 AM, Deniz Kurucu wrote:
> Haven't tested source maps before, works perfectly !
>
>
> On Mon, Oct 28, 2013 at 6:25 AM, David Nolen wrote:
>
>> Given the source map improvements to ClojureScript, now is a good time to
>> present a newbie friendly guide
Or a shorter variant of the sentinel approach:
(let [r (get a-map :b ::unfound)]
(if (= r ::unfound)
(my-foo)
r))
On Sun, Oct 27, 2013 at 2:57 PM, Cedric Greevey wrote:
> (get a-map :b my-foo) will result in the function object itself being
> returned if :b is not found. If you want
I don't know about the rest of this thread, but loom seems to suffer
from what I've outlined in
http://dev.clojure.org/jira/browse/CLJ-322?focusedCommentId=32246&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-32246
pulling in the interface that the protocol generates
... or the no-sentinel find-based approach:
(if-let [[_ v] (find a-map :b)]
v
(my-foo))
Cheers,
Dave
On Mon, Oct 28, 2013 at 9:08 AM, Alex Baranosky <
alexander.barano...@gmail.com> wrote:
> Or a shorter variant of the sentinel approach:
>
> (let [r (get a-map :b ::unfound)]
> (if (= r
I want to add some additional configuration after I have loaded a
library. Is there anything equivalent to eval-after-load in emacs, which
enables me to do something after a namespace has been loaded? Or a file?
Phil
--
--
You received this message because you are subscribed to the Google
Grou
Good work. Thanks for putting this out.
On Monday, October 28, 2013 6:03:54 AM UTC-7, Michael Drogalis wrote:
>
> Hi everyone,
>
> I'm happy to announce the Rush Hour platform - highly realistic traffic
> simulations
> done with a careful, exemplar architecture all in Clojure.
>
> GitHub platform
Separate from DSLs like Korma, etc. I have written a simple library for
doing database migrations with clojure (clj-sql-up (
https://github.com/ckuttruff/clj-sql-up )). There are also other libraries
still maintained along these lines (drift, migratus, ragtime, etc.)
Hopefully one of these wi
I've run into problems with it in a few areas:
1) Bundled connection pooling. You can disable it or change it, but it
takes work. Bundling seems against the idea of keeping libraries and
dependencies small and composable.
2) Default behaviour of delete can be inefficient. It returns the entire
Doesn't simply putting some executable forms at the end of the namespace's
source code do that? e.g.
(ns foo
...)
(defn ...)
(def ...)
(defn ...)
...
(do-something!)
On Mon, Oct 28, 2013 at 1:05 PM, Phillip Lord
wrote:
>
> I want to add some additional configuration after I have loaded
Wow, source maps make things much more pleasant. Time to give
clojurescript another shot, I think.
But I was under the impression that clojurescript insulated us from
javascript's more distasteful behaviors. The numeric functions seem to
have the original anything-goes zany semantics. Is the
On Mon, Oct 28, 2013 at 10:53 PM, Leif wrote:
> I was under the impression that clojurescript insulated us from
> javascript's more distasteful behaviors.
>
Such as "turning it on indiscriminately for all web sites instead of using
NoScript will get you hacked"? :)
--
--
You received this mes
Thank you for the link, but I don't think what you outlined there is the
same as what I have. I'm referring to records by class and protocols
defined in the namespace, so I think my situation is different.
On Monday, October 28, 2013 12:08:52 PM UTC-4, red...@gmail.com wrote:
>
> I don't know ab
Absolutely not true with respect to numeric functions. In JS the behavior
is *defined* in CLJS not defined and may warn or even throw in the future.
On Monday, October 28, 2013, Leif wrote:
> Wow, source maps make things much more pleasant. Time to give
> clojurescript another shot, I think.
>
>
This is essentially the same as some of the other solutions, but more
succinct:
(or (get a-map :b) (println "Oh no!"))
--
--
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
Thank you all for your answers :)
Ryan
On Tuesday, October 29, 2013 7:40:41 AM UTC+2, Mars0i wrote:
>
> This is essentially the same as some of the other solutions, but more
> succinct:
>
> (or (get a-map :b) (println "Oh no!"))
>
>
--
--
You received this message because you are subscribed t
24 matches
Mail list logo