> Following Stuart's suggestion, I *could* just add a protocol called
> "PrettyPrintable" with one method and implement it on some of the new
> node types, but now I can't just call "pretty-print" on any node: I
> need to write another function that checks if it's a PrettyPrintable
> first and call
> Adding to Object works, but doesn't feel right: as libraries grow,
> they'll start bloating out the method sets on the global Object type.
No, you have this backwards. The protocol is not on Object, Object is on the
protocol. Protocols live in namespaces. You can have 10,000 different protocols
lus a little margin for error. So this should be very much on the
affordable side as conferences go. We'll get this info out as as soon as we
have it.
> Also, will there be cake? If this is Clojure's birthday party, there
> had better be cake.
Yes. And tea. Not necessarily se
e in addition to myself,
>> and I'd like to thank all of the contributors who've submitted fix and
>> enhancement patches, and everyone in the community who has
>> participated in terrific dialog that surrounds the development and use
>> of Clojure.
>>
>>
Those links are fixed, thanks.
And we are aware that there are a ton of other links that still point to
"richhickey" instead of "clojure", sprinkled throughout clojure.org. Anybody
know how to do a bulk search/replace across wikispaces? There seems to be no
facility...
Stu
> Hi guys. If you
Clojure 1.3's performance improvements will significantly impact perf on some
of the benchmarks. If you are trying these out, please try them on both 1.2 and
1.3.
Also: the benchmarks are totally a numbers game: throw idioms and readability
out the window. Clojure 1.3 should be able to match Ja
> On Aug 24, 6:44 am, Stuart Halloway wrote:
>> Clojure 1.3's performance improvements will significantly impact perf on
>> some of the benchmarks. If you are trying these out, please try them on both
>> 1.2 and 1.3.
>
>
> Has Clojure 1.3 been released?
&
The error messages are often the easiest the thing in the world to improve,
even if you are new to contributing to Clojure. Most of the bad error messages
are in the context of macroexpansion, so it is almost free (in performance
terms) to add rigorous checks and error messages.
Take a look at
I think the current behavior follows the principle of least surprise:
(1) bar is a function, in whatever namespace the protocol Foo is defined in
(2) you redefine bar (perhaps by reloading the file Foo is in)
(3) you call bar and get the new behavior
Remember that bar lives in Foo's namespace,
> I may have misunderstood what I've read about protocols, so please set
> me straight if the following is wrong -
>
> On Aug 25, 11:08 pm, Stuart Halloway
> wrote:
>> I think the current behavior follows the principle of least surprise:
>>
>> (1) bar is
code. Tools could indeed help
with this.
I realize that this is unfamiliar for people (including myself) coming from OO,
but I want to emphasize that your confusion is not about an ancillary point --
it is central to how protocols work.
Hope this helps,
Stu
Stuart Halloway
Clojure/core
http://c
Redefining Foo gives you a new implementation of bar, which, like any protocol
method, will fail for all inputs until a type has been extended to it.
> I ran your sequence without redefining Foo and got 20 instead of 1/5.
> I don't know how that redefinition affects the evaluation of bar.
>
> Cl
Hi Timothy,
All Clojure code compiles to Java bytecode. You can do this on-the-fly at
runtime, and this is fast enough to be a reasonable option. Or, you can
AOT-compile (see http://clojure.org/compilation).
Clojure has a lot of granular abstraction under the hood. (Said another way:
Clojure o
A student in the upcoming Clojure Studio is reporting the following problem
getting started with NetBeans. Any suggestions?
>> Some plugins require plugin Common Scripting Language API (new) to be
>> installed.
>> The plugin Common Scripting Language API (new) is requested in version >=
>> 1.9.
Code [this]
(java.util.Arrays/hashCode ^ints key))
(toString [this]
(str/join \, (seq key
(defn int-key [coll]
(Key. (int-array (count coll) coll)))
Stu
Stuart Halloway
Clojure/core
http://clojure.com
> If you don't do anything special, and create several Java a
Yes please.
> Hi,
> I noticed a bug in the clojure.java.io namespace at Line 57:
> URL
>
>
> (as-url [u] u)
>
>
> (as-file [u]
>
>
> (if (= "file" (.getProtocol u))
>
>
> (as-file (.getPath u))
>
>
> -- (throw (IllegalArgumentException. "Not a file: " u
Let's back up: what are you trying to do with 'extenders'?
Stu
> Yes, thats what I see.
> I just dont think this is very sensible.
>
> Thank you Meikel!
>
> Greetings, alux
>
> On 3 Sep., 13:10, Meikel Brandmeyer wrote:
>> Hi,
>>
>> On 3 Sep., 12:49, alux wrote:
>>
>>> shouldnt the type x
We're happy to announce that the official (first clojure-conj) conference site
is now live at http://clojure-conj.org, and that registration is open.
To register, visit http://clojure-conj.org and click "Register."
The conj begins Friday, October 22 and completes the next day, Saturday,
October
ntations, so
> to say, of the protocol.
> That was playing around, not a use case taken from reality. If I try
> to make a use case up, hm, I may need it in the development
> environment, to find functions to ponder their use.
>
> Regards, alux
>
> On 3 Sep., 16:05, S
Hi Mike,
I think this is more about convenience than simplicity. In both Unix and Java
deployment is complex, and often complicated as well. In spite of this, small,
one-off things should be convenient to deploy, and Unix does this better in
some contexts.
There is no reason we can't make one-
Can you look at the class of these keys and see if some are Long while others
are Integer?
Stu
> I'm running a large hadoop job in which merge-with is called millions
> of times to aggregate values among about 1000 keys. Basically we are
> counting the number of times the keys occur among all en
Actually, the second one is basically it. (Except that I don't know the Oracle
reference, so can't speak to that.)
Stu
> The first one is correct.
>
> On Tue, Sep 14, 2010 at 3:22 PM, peter veentjer wrote:
> I have got a question about the Clojure ensure and how it actually
> works and the doc
appy :) Thanks!
>
>
>
> On Tue, Sep 14, 2010 at 4:45 AM, Stuart Halloway
> wrote:
>> Can you look at the class of these keys and see if some are Long while
>> others are Integer?
>>
>> Stu
>>
>>> I'm running a large hadoop job in which merge-with
Encounter time. I am sitting next to Rich as I write this.
Stu
> Ok, I have a 1 and 2 :)
>
> So is it pessimistic or optimistic? So encounter time ensure or commit
> time ensure?
>
> On Sep 14, 9:36 pm, Stuart Halloway wrote:
>> Actually, the second one is basically
You can use "javap -c" out of the JDK to get the bytecodes that are handed to
the VM.
However, HotSpot does amazing things with the bytecodes after the code begins
to run, so a disassembly can be quite misleading. I measure far more often than
I view bytecode.
Stu
> In common lisp I use the (
This is in fact guaranteed. Eloquent documentation patch welcome.
Stu
The fact that currently having vals and keys return seqs in the same
>>> order is not guaranteed by the documentation ?
>
> At the recent Pragmatic Studio class I asked Rich and Stuart about
> this very point. As I recall
To relate this example to the OP's request for a concurrency example:
The Clojure versions shown below, if they are correct at all, are correct in
the face of concurrency.
The Java version is not generally correct, and cannot be made correct without
switching to Clojure's interfaces and persist
Mycroft is a generic JVM browser written in Clojure. Version 0.0.2 is now
available on clojars, and the project is at http://github.com/relevance/mycroft
on Github.
Mycroft can be embedded as a dev dependency in your own projects. Give it a
try! Feedback welcome.
Stu
Stuart Halloway
Clojure
up on the classpath and,
> well, you know what happens after that.
>
> Looking forward to using this.
>
> Brenton
>
> On Sep 22, 11:11 am, Stuart Halloway
> wrote:
>> Mycroft is a generic JVM browser written in Clojure. Version 0.0.2 is now
>> availabl
pendencies [[org.clojure/clojure "1.3.0-alpha1"]
Thanks!
Stu
Stuart Halloway
Clojure/core team at Relevance
http://clojure.com
http://thinkrelevance.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send ema
ical schedule for 1.3? Are people thinking of it as
> a year or something less than a year away?
The schedule is, as always, when it is ready. That said a year seems like a
*very* long time.
Stu
Stuart Halloway
Clojure/core team at Relevance
http://clojure.com
http://thinkrelevance.com
-
Other Stuart is working on this today. Contributions / suggestions / reactions
to the new modular build in contrib are most welcome.
Stu
> Are there plans to also make alpha builds of Clojure Contrib available
> that are built against the equivalent Clojure Alpha?
> --
> Sean A Corfield -- (904
Hi Glen,
Finding the *first* index isn't very Clojurish, what you want is to find *all*
the indexes, lazily. Then if you want the first one, just call first.
(use '[clojure.contrib.seq-utils :only (positions)])
(positions #{99} [0 99 3334 53 2 5 99 2 55 63])
-> (1 6)
Cheers,
Stu
> I have a vec
That's weird. I see no reflection warnings when loading this on 1.3 alpha 1.
Stu
> The following program compiles and runs perfectly fine in both 1.2 and 1.3
> alpha1. It has no reflection warnings in 1.2, but it does in 1.3 alpha1. I
> have tried several variations, but I haven't yet been a
Which version of Clojure are you running?
The most likely cause of this problem is having a mix of numeric types (e.g.
longs and ints) as keys/key lookups in a hash map. This is broken as required
(sigh) by Java collections.
Clojure 1.3 improves the story by having Clojure's collections defy th
Since collatz is defined for integer math, I would argue that the use of "quot"
instead of "/" isn't a workaround at all -- "quot" is the right function for
the job, and better communicates what the code is doing.
That said, Mark is certainly right that we want feedback on the numeric support
i
When a var's definition has a "lazy reference" to itself, as primes does below,
then your results will be dependent on the lazy/chunky/strict-ness of the calls
leading to the lazy reference.
The functions range, rest, and remove are chunk-aware, so the range-based
version of primes consumes a b
wikibooks [5]. It is extremely misleading because it mixes recent edits,
somewhat dated material, and very dated material. Would it be better if
wikibooks just linked to the official page [2]?
Stu
Stuart Halloway
Clojure/core
http://clojure.com
[1] OLD https://www.assembla.com/wiki/show
> This is just *strange*. I'm working on converting a servlet that has
> hardwired vectors of values to read those values from a
> database. Given that this is simple, I'm using clojure.contrib.sql and
> an sqlite plugin. Those vectors get walked in the init code to create
> the hashmap that drives
wrapped-x "hello" "joe")
> ;; -> "hellojoe"
I think not a bug. If you want indirection in your wrapper, you can ask for it,
e.g.:
(defn wrap [f]
(fn [& args]
(apply @f args)))
(def wrapped-x (wrap #'x))
Stu
Stuart Halloway
Clojure/core
h
Odds are your namespace conflict is not in your core.clj, but in somebody who
uses core.clj, e.g. the REPL.
Stu
Clojure/core
http://clojure.com
> I use compojure, hiccup and clojureql to study web development, in my
> myoa project's core.clj, require clojureql with cause
> java.lang.IllegalStat
> Concerning my own modules in old contrib, there are three that I use myself
> and that I am planning to maintain, independently of where they will end up:
> - clojure.contrib.monads
> - clojure.contrib.macro-utils
> - clojure.contrib.generic
There is an empty repos already waiting for your macr
> 2011/4/19 Stuart Halloway :
>>> Concerning my own modules in old contrib, there are three that I use myself
>>> and that I am planning to maintain, independently of where they will end up:
>>> - clojure.contrib.monads
>>> - clojure.contrib.macro-utils
>
There are several new top-level projects at https://github.com/clojure to cover
the various contrib libraries people have asked for.
Mapping to old contrib names is shown at
http://dev.clojure.org/display/design/Contrib+Library+Names.
Stu
--
You received this message because you are subscribe
o 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
cumentation
> doesn't say all that it might say -- I might post about that separately.
>
> Simon
>
>
> On Thu, Apr 21, 2011 at 18:23, Stuart Halloway
> wrote:
> Hi Simon,
>
> in-ns and ns are special cased for convenience. Usually in-ns is used to
> enter
> I have moved and released some c.c libraries into their new homes.
>
> * c.c.def and c.c.classpath are now combined under clojure.java.classpath and
> version 0.1.0 is available on maven central
correction: c.c.def => c.c.jar
> * c.c.find-namespaces is now clojure.tools.namespaces. I release
s an actively-maintained clojure.java.jdbc I don't think a
resultset function in core makes a lot of sense anyway.
How about we mark core's resultset-seq as deprecated, with a link to the new
project? Then c.j.j. can do a better resultset-seq, and we will leave the old
fn in core for
gt; fail at runtime if that library is not present?
That seems complicated. If removal is going to cause heartburn, we could
deprecate without ever removing.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups &qu
> return data and column names verbatim, but the opposite is not true.
>
> --Brian
+1. It should be a guiding principle that contribs provide the building blocks
first, then the buildings.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you ar
(use '[clojure.repl :only (source apropos dir pst doc find-doc)])
(use '[clojure.java.javadoc :only (javadoc)])
(use '[clojure.pprint :only (pp pprint)])
When you run code outside the REPL, you will need to use these specifically if
you need them.
Hope this hel
On 1.3 master there is:
clojure.core/deref
([ref] [ref timeout-ms timeout-val])
Also reader macro: @ref/@agent/@var/@atom/@delay/@future/@promise. Within a
transaction,
returns the in-transaction-value of ref, else returns the
most-recently-committed value of ref. When applied to a var, age
> This, no the other hands, is a little bit contradictory. The example
> about syntax and white space than writing code "the Clojure way",
> though you explicitly say that's not what you're interested in. Seems
> like you're asking for a community style guide. Again, I don't know
> that such exists
Sean,
Well said. Just bought my subscription.
Stu
> On Wed, Jun 1, 2011 at 5:51 PM, Ken Wesson wrote:
>> On Wed, Jun 1, 2011 at 10:06 AM, Ambrose Bonnaire-Sergeant
>> wrote:
>>> Just to be clear, I linked to an unlimited time, free (cost), non-crippled
>>> demo.
>> Er, if such a thing exists,
I for one cannot wait for Daniel Suarez's Daemon to take out the spammers.
Until then, we will work to weed them out the old fashioned way.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure"
ed only
a named class + IFn, use deftype. If you need only IFn, use reify.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
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
No
Hi Gregg,
It appears that LocalServiceTestHelper's constructor takes an array of
LocalServiceTestConfig. Try
(def bar (LocalServiceTestHelper. (into-array LocalServiceTestConfig [foo])))
Stu
Stuart Halloway
Clojure/core
http://clojure.com
> Hi,
>
> I'm trying to make th
m or
>> provide a recommended workaround?
>
> Not that I know of.
To access a private var, simply deref through the var:
@#'some-ns/some-private-var
This is in the coding standards doc
(http://dev.clojure.org/display/design/Library+Coding+Standards). The doc is
pretty short a
nstall instructions at
> https://github.com/relevance/labrepl/wiki/Eclipse)
>
> Thanks in advance!
>
> -Dylan
>
That is very strange. Can you try running with leiningen and see if it does the
same thing?
Stu
>
Stuart Halloway
Clojure/core
http://clojure.com
--
You re
o this:
>
> (defn class-methods [class-name]
> (map #(.getName %) (.getMethods class-name)))
You might also want to look at clojure.reflect. The API results are data, and
can easily be mapped/filtered/etc.
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message be
#x27; has special meaning, it can be used once in the middle of a symbol to
separate the namespace from the name, e.g. my-namespace/foo. '/' by itself
names the division function.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subsc
>> On Thu, Jun 23, 2011 at 10:40 AM, Stuart Halloway
>> wrote:
>>> The docs (http://clojure.org/reader) are specific:
>>> '/' has special meaning, it can be used once in the middle of a symbol to
>>> separate the namespace from the name, e.g. my-na
ix" everywhere. This felt ugly at first, but puts
pressure on naming in way that is beneficial as the codebase grows.
(2) Think of the consumer of the lib, not the author. As a user of Midje, I
would want all the utility fns in a single namespace (if they were separated
from the domain API
back and add a link to the
official docs.
There are now almost 300 signatories to the contributor agreement, and any of
them can update dev.clojure.org without any review process. This should be
plenty of horizontal scaling to keep documentation (even high-churn
documentation) accurate.
Thanks to
[7]
is a great example of this.
Most of the core team's time is, and will continue to be, focused on solving
hard problems. Rich will be presenting a great example of this at the NYC
Clojure group on July 20 [8].
Cheers,
Stu
Stuart Halloway
Clojure/core
http://clojure.com
[1] http://dev.c
things:
2a. Create a "no decisions needed" path for beginners. I share the opinion that
this should not be IDE-based.
2b. Link out to the various other resources that are particularly useful for
beginners.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
[1] http://www.m
elist in metadata that is
required by the application. (Clojure's own use of metadata isn't required at
runtime, but who knows what other consumers of metadata may need or expect.)
This problem needs more design work before coding begins. (Maybe I should add
the preceding statement t
e three most interesting Clojure projects I
have been involved with. But nobody involved with any of them wants to fire me.
:-)
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to
better not let the ResultSet escape
* seqs over arrays better not let the array escape
* line-seq better not let the BufferedReader escape
and so on.
Implementers of seqs are responsible for encapsulating implementation details
and not letting them escape. It's a fact of life.
Stu
Stuart
#x27;t be difficult to write an examples macro that calls out to e.g.
clojuredocs.org.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@goo
Several people have asked about access to Rich's upcoming talk this Wednesday
night [1]. In order to make information available for those who are not present
in NYC, we are planning to do the following:
During the talk:
* We will be live streaming the talk at [2]. This is our first time live
s
gt; On Mon, Jul 18, 2011 at 9:28 PM, Stuart Halloway
> wrote:
> Several people have asked about access to Rich's upcoming talk this Wednesday
> night [1]. In order to make information available for those who are not
> present in NYC, we are planning to do the following:
>
>
> Where is the bug tracker for ClojureScript?
Just created: http://dev.clojure.org/jira/browse/CLJS
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send ema
ly drag
Java presumptions into ClojureScript.
Let's wait and collect feedback from the community before pouring any cement on
deployment approaches.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure&quo
ction.Help welcome!
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
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 pati
, monolithic contrib git repository.
More important, http://dev.clojure.org/display/doc/Clojure+Contrib is a
community-managed page, so Clojure/core isn't a bottleneck on improving it.
Help requested to make http://dev.clojure.org/display/doc/Clojure+Contrib
better.
Cheers,
Stu
Stuart Hal
> I am working through a few of the pages on clojure.org with two goals:
>
> (1) remove or fix anything that is outdated or incorrect
>
> I really like how minimal that is now.
>
> A quick suggestion: shouldn't the Copyright date be updated too?
Yuo. Fixed, than
that folks reading getting_started aren't likely to try non-stable
> releases?)
I think it is reasonable to expect that someone grabbing a non-stable build
would recognize the trailing version goo as build artifact. I guess we'll find
out. :-)
Stu
Stuart Halloway
Clojure/core
http://cl
lt sets, JSON, XML, HTML, CSS and
>> other languages (e.g. .properties syntax). Clojure data structures are even
>> used for application configuration (lein, cake).
>>
>
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscr
hat is your objective, the ClojureScript codebase won't be a useful
starting point. You would be better off to start from scratch.
Cheers,
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" g
e easily doable using plain objects.
> (defn ^:export display [id]
> (let [h (dom/getElement id)
> txt (dom/getTextContent h)]
> (window/alert (str "gdom " txt
>
> Regards,
> Marko
Design is underway on this. Stay tuned.
Stu
Stuart Halloway
Clojure
e:
http://dev.clojure.org/display/doc/Documentation+for+1.3+Numerics. These should
be made better and placed in a more prominent place before 1.3 goes final.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups "C
h accounts that have proven to be responsible adults.
This should be fixed now. Please verify:
http://dev.clojure.org/display/doc/Documentation+for+1.3+Numerics
Thanks,
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups
#x27;t search friendly).
Keep the feedback coming! Preferably in atomic chunks with good subject lines.
:-)
Cheers,
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group,
ould create programs that show anything that interesting about
> Clojure?
Fair enough! I certainly was not trying to dictate approach. The suggestion was
more about providing a way for people to ease into contributing.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received t
re sorted-sets on the server. It would be really cool to have
> sorted-set's on both sides
>
>
> thanks
> Oded
Hi Oded,
sorted-set is on the todo list. Also, the "which libraries are todo" list is
available in the repos at devnotes/corelib.org. Just look for anything m
ect + clojure.pprint/print-table.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
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 mode
ic loading.
Hopefully there is a different lein workflow that can avoid this.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroup
protocol. The solution is "rm -rf classes"
>
> As a work around I rm & restart my app if I ever change my record - which is
> very rarely.
A better solution is not to compile defrecords during development. If this is
the default behavior of some tools, it is anti-incrementa
n there that couldn't be better presented in some other way.
> Most likely, it would be better as text and a few short video
> segments, the latter adding up to much less than 60 minutes in
> duration.
>
>> watch the video
>
> No. A full hour is way, way too long for somethin
>> I don't think you're supposed to use spaces in keywords.
>
>
> Using spaces in keywords is completely valid, as is using spaces in
> symbols.
Legal characters in keywords and symbols are documented at
http://clojure.org/reader :
"Symbols begin with a non-numeric character and can contain
eit while disagreeing on many
points. :-)
My Clojure/West talk will engage this issue.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@go
in 3, returning what you find, or 5 if you
can't find it.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
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 pos
> The "policy" is entirely controlled by Google Groups. I think it's time-based.
> -S
It can also be overridden per user, once you find your way through the
confusing groups API.
Evan, you should be unmoderated now.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
the inconvenience.
Stu
Stuart Halloway
Clojure/core
http://clojure.com
--
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
> [1]
> http://stackoverflow.com/questions/10178639/are-refs-really-consistent-within-a-stm-transaction
Hi Neale,
Your example does not appear to match your conclusion. It shows that a
transaction restarts, and that the reads are all consistent as of the restarted
transaction.
Cheers,
ction (its 'read point'). The transaction willsee
> any changes it has made. This is called the in-transaction-value
>
> from: http://clojure.org/refs
>
> The fact that the behaviour changes in the presence of history is a problem
> in my opinion.
>
> Yes you can
If you take this on, you may want to look at (or use) EqualityPartition in
clojure.data, which attempts to categorize collections.
Stuart Halloway
Clojure/core
http://clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To po
sentation itself. For
example, a customer order is some combination of maps, vectors, etc.
totalPrice is never a member function of some accessor-riddled Order object --
it is instead a plain function that knows how to navigate a data representation
(or, via a la carte polymorphism, many differe
> I've seen hinted (and I'm pretty sure I've seen examples, but I can't
> remember where) that Datomic can incorporate data from regular Clojure
> collections. Is there some doc for this or an example?
>
> Thanks in advance
Hi Mark,
I have moved this to the Datomic group and answered it the
501 - 600 of 875 matches
Mail list logo