It will also see versions of any object or array referenced by those
final fields that are **at least as up-to-date as the final fields**
are.
To me this means that the value of the final field will be correctly
published **as of the time it was assigned**. So in your example,
there are two
Its Chrome, no way around it AFAICT. FWIW you can mouseover the filename in
the console and the title popup will show the entire URL to the file.
On Friday, May 16, 2014 5:45:28 AM UTC+2, t x wrote:
Hi,
* background:
* I have clojurescript + lein cljsbuild auto working perfectly fine.
Ah, that's better. Thank you!
Phil
Michał Marczyk michal.marc...@gmail.com writes:
Use pr-str:
user= (str (lazy-seq (list 1 2 3)))
clojure.lang.LazySeq@7861
user= (pr-str (lazy-seq (list 1 2 3)))
(1 2 3)
Cheers,
Michał
On 15 May 2014 16:29, Phillip Lord phillip.l...@newcastle.ac.uk
Seems worth a bug report/feature request to the Chrome Dev Tools team.
On Thu, May 15, 2014 at 11:45 PM, t x txrev...@gmail.com wrote:
Hi,
* background:
* I have clojurescript + lein cljsbuild auto working perfectly fine.
* I have source maps working (when I click on a file in Chrome,
I suspect it was something of that nature.
Ended up being that someone else was in the process of moving my VM and I
didn't read my emails :-)
All working now.
On Thursday, May 15, 2014 3:49:08 PM UTC-4, Gary Trakhman wrote:
Oh yea, GC churn can take up a lot of time. The illusion of
On Thursday, 15 May 2014 14:58:50 UTC+1, Phillip Lord wrote:
Again, based on the dubious ID that an DOI makes things citable.
A URL is already citable!
Well, there's no shortage of broken links out there to suggest that people
have trouble keeping content associated with stable URLs.
Are you almost ready to provide something a la React.js for JavaFX2 ? :-)
2014-05-04 15:50 GMT+02:00 Timothy Baldridge tbaldri...@gmail.com:
I highly recommend taking a look again at JavaFX2. The latest version
(released as part of Java 8 or as a separate jar with Java 7) has a very
unified
Bah, I've reverted to a flat namespace, i.e. foo_internal.cljs,
foo_public.cljs, bar_internal.cljs, bar_public.cljs ... :-)
On Fri, May 16, 2014 at 6:24 AM, Tim Visher tim.vis...@gmail.com wrote:
Seems worth a bug report/feature request to the Chrome Dev Tools team.
On Thu, May 15, 2014 at
(defrecord Foo [bar])
(:bar (Foo. 1))
Is clojure smart enough to make the :bar lookup O(1) as a known field of
Foo? Or is it still a map-like O(logN) lookup?
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
I'd love to start using more FSM modeling in my web app. Users on
PaddleGuru move through various states for each regatta - paid, signed
up, invited, etc, and this feels like the best way to model all of those
transitions. I'd love to figure out how to use Automat to generate a
series of
;; I think this shed should be painted red
(def immutable-string
foo)
(def ^java.lang.reflect.Field value-field
(doto (.getDeclaredField String value)
(.setAccessible true)))
(aset (.get value-field immutable-string) 1 \i)
(aset (.get value-field immutable-string) 2 \e)
(println
In the sample code I pasted, there is nothing to prevent the fill(1) and
fill(2) from running concurrently, and essentially write into the same array
concurrently. My intent was that the fill(1) be complete before the second
thread proceeds.
A simple change to have the 1st thread instead fill
On Thu 15 May 2014 at 10:45:52AM -0700, Bob Larrick wrote:
A single element in the cli-options can be as brief as
[-p --port A port number]
What is non-obvious is that specifying
--port PORT
has entirely different semantics than specifying
--port
Like I mentioned on the issue page,
Hi,
afaik the Clojure compiler will compile such calls to a direct field
access, i.e. the fastest possible.
This will happen whenever the compiler can infer the type information.
You can facilitate this by using type hints if necessary.
Regards,
Las
2014-05-16 15:44 GMT+01:00 Dave Tenny
As Tim McCormack's helpful web page on Collections and Sequences in
Clojurehttp://www.brainonfire.net/files/seqs-and-colls/main.htmlsays,
Newcomers to Clojure are often confused by the collection and
sequence abstractions and how they relate to one another. I'd been using
collections and
On May 16, 2014, at 12:53 PM, Mars0i marsh...@logical.net wrote:
Sometimes I write a function that will work in the intended way only with
collections that are not maps. (For example, suppose I write a function
that's supposed to operate on vectors, lists, sets, or lazy sequences of
On Friday, May 16, 2014 12:09:36 PM UTC-5, squeegee wrote:
I think I’d use “kws” or “keywords” in that case. I’d expect a seq of
keywords.
I don’t think keyw-seq is too narrow though. The items in a seq on a map
are “map entries or more generically “pairs”, not “keywords”.
OK, but seq
On May 16, 2014, at 1:23 PM, Mars0i marsh...@logical.net wrote:
I think I'd use kws or keywords in that case. I'd expect a seq of
keywords.
I don't think keyw-seq is too narrow though. The items in a seq on a map are
map entries or more generically pairs, not keywords.
OK, but seq
What I meant was that you use all b's to generate the max date for B (used as
input for its dependencies) but simply bundle all b's into B's bill. You can't
bill them before or after B because they're effectively line items on B.
--
You received this message because you are subscribed to
I'm pretty new to Clojure so I'm trying out simple examples to see if I can
get myself in the functional programming/Lisp mindset. My team lead sends
out puzzles from his Mensa calendar, and every once in a while I find one
that seems fun to solve as a Clojure program.
With this particular
On Friday, May 16, 2014 12:46:10 PM UTC-5, squeegee wrote:
On May 16, 2014, at 1:23 PM, Mars0i mars...@logical.net javascript:
wrote:
OK, but seq implies that sets aren't appropriate, but as long as I don't
care about order, they may be perfectly fine.
Good point. Technically kw-seq
For what it's worth, I would either choose kws/keywords for brevity, or
keywords-seqable for explicitness.
All in all, better imprecise but correct than precise and incorrect.
Hope this helps,
--
Laurent
2014-05-16 22:38 GMT+02:00 Mars0i marsh...@logical.net:
On Friday, May 16, 2014
I have since fixed the original stack overflow error I was getting, it was
a result of not using recur. However, I'm still trying to find the best
way to actually iterate through the permutations to find the result...
On Friday, May 16, 2014 2:31:26 PM UTC-5, Brad Kurtz wrote:
I'm pretty new
On May 14, 2014, at 9:43 AM, Bruno Vecchi vecch...@gmail.com wrote:
Throttler[1] is a little library I wrote out of need for one of my personal
projects. It lets you control the maximum rate of function calls or message
transmissions through core.async channels.
This is way cool, thanks
I came across this today in a library:
results (seq (doall (filter modified? files)))]
I believe the seq is to coerce the empty list to nil. What is the doall for?
Context here:
https://github.com/ibdknox/watchtower/blob/master/src/watchtower/core.clj
--
You received this message because you
The doall evaluates all items in the seq, effectively removing any lazy
evaluation. In this case it's necessary because the filter is checking the
modification date of the file, which is obviously mutable.
- James
On 17 May 2014 00:39, Brian Craft craft.br...@gmail.com wrote:
I came across
I'm going thru the book Web Development with Clojure
I entered the following commands:
lein new compojure-app guestbook
It ran ok.
I then ran:
lein ring server
It returned the error message:
'ring' is not a task. See 'lein help'.
Did you mean this?
run
I'd appreciate any
you have to be inside the guestbook dir.
On Fri, May 16, 2014 at 7:50 PM, patrick lynch kmandpjly...@verizon.netwrote:
I'm going thru the book Web Development with Clojure
I entered the following commands:
lein new compojure-app guestbook
It ran ok.
I then ran:
lein ring server
Ah, thanks. Seems like there's still a race, though. In a long list of
files, a sequence like
1) doall evaluates modification date of the first file, which is less than
*last-pass*, so it is filtered out
2) something touches the first file
3) the doall finishes evaluating the rest of the list,
On Friday, May 16, 2014 6:53:08 PM UTC+2, Mars0i wrote:
Is there a single term that covers vectors, lists, sets, lazy sequences,
cons's, etc., but not maps?
I would use a collection of keywords in your example. As mentioned by
Steve, a map is a collection of map entries/pairs, so a map
A quick shoutout to the Clojure Community - thanks for the way you've all
contributed to make my life (mentally) richer.
James Reeves (author of Compojure and many other wonderful libraries) made
this interesting comment on Hacker News:
Clojure has libraries that implement monads, but these
...solved it - if anyone is reading this book - you're going to have to
change your $PATH in order to get this to work.
...hope to see you all in the future - if anyone can recommend a Clojure
User Group in NY/NJ area please let me know.
thanks again
On Friday, May 16, 2014 8:09:30 PM UTC-4,
It's clear that the answer to my question is:
No. There is no common term for non-map collections.
Btw, the way that I expressed the question has been misleading. I'm not
really interested in a function that is supposed to accept only collections
of keywords. I defined a function, which in
When I first wrote the core.async go macro I based it on the state monad.
It seemed like a good idea; keep everything purely functional. However,
over time I've realized that this actually introduces a lot of incidental
complexity. And let me explain that thought.
What are we concerned about when
Nginx-Clojure is a Nginx http://nginx.org/ module for embedding Clojure
or Java programs, typically those
Ringhttps://github.com/ring-clojure/ring/blob/master/SPEC based
handlers.
The release v0.2.1 has these new features:
1. Support to close coroutine based socket from non-main thread
35 matches
Mail list logo