Re: Protocols and default method implementations

2010-08-13 Thread Stuart Halloway
> 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

Re: Protocols and default method implementations

2010-08-14 Thread Stuart Halloway
> 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

Re: Clojure Conj Questions

2010-08-19 Thread Stuart Halloway
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

Re: Clojure 1.2 Release

2010-08-19 Thread Stuart Halloway
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. >> >>

Re: clojure.string namespace missing from API page?

2010-08-20 Thread Stuart Halloway
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

Re: Clojure 1.2 and the Computer Language Benchmarks Game

2010-08-24 Thread Stuart Halloway
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

Re: Clojure 1.2 and the Computer Language Benchmarks Game

2010-08-24 Thread Stuart Halloway
> 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? &

Re: Clojure 1.3: Integrating clj-stacktrace?

2010-08-25 Thread Stuart Halloway
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

Re: bug?? extend Object compilation order dependency?

2010-08-25 Thread Stuart Halloway
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,

Re: bug?? extend Object compilation order dependency?

2010-08-26 Thread Stuart Halloway
> 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

Re: bug?? extend Object compilation order dependency?

2010-08-26 Thread Stuart Halloway
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

Re: bug?? extend Object compilation order dependency?

2010-08-26 Thread Stuart Halloway
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

Re: Clojure's Java Interfacing

2010-08-27 Thread Stuart Halloway
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

trouble with NetBeans install

2010-08-30 Thread Stuart Halloway
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.

Re: How to use Java array of primitive types as key of Clojure map?

2010-09-01 Thread Stuart Halloway
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

Re: Bug in clojure.java.io

2010-09-01 Thread Stuart Halloway
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

Re: deftype makes no extender?

2010-09-03 Thread Stuart Halloway
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

clojure-conj registration is now open!

2010-09-03 Thread Stuart Halloway
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

Re: deftype makes no extender?

2010-09-08 Thread Stuart Halloway
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

Convenience (was Simple things should be simple)

2010-09-10 Thread Stuart Halloway
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-

Re: can merge-with return a map with duplicate keys?

2010-09-14 Thread Stuart Halloway
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

Re: Clojure ensure

2010-09-14 Thread Stuart Halloway
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

Re: can merge-with return a map with duplicate keys?

2010-09-14 Thread Stuart Halloway
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

Re: Clojure ensure

2010-09-15 Thread Stuart Halloway
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

Re: why the big difference in speed?

2010-09-19 Thread Stuart Halloway
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 (

Re: concurrency example about java x clojure

2010-09-21 Thread Stuart Halloway
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

Re: concurrency example about java x clojure

2010-09-21 Thread Stuart Halloway
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

ANN: Mycroft, a Clojure inspector

2010-09-22 Thread Stuart Halloway
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

Re: ANN: Mycroft, a Clojure inspector

2010-09-22 Thread Stuart Halloway
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

Clojure 1.3 Alpha 1

2010-09-23 Thread Stuart Halloway
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

Re: Clojure 1.3 Alpha 1

2010-09-24 Thread Stuart Halloway
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 -

Re: Clojure 1.3 Alpha 1

2010-09-24 Thread Stuart Halloway
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

Re: return index of a value

2010-09-27 Thread Stuart Halloway
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

Re: Possible to avoid reflection in this deftype in 1.3 alpha1?

2010-09-27 Thread Stuart Halloway
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

Re: Project Euler problem 14: Maybe it's me but hash maps don't seem to work

2010-10-07 Thread Stuart Halloway
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

Re: Project Euler problem 14: Maybe it's me but hash maps don't seem to work

2010-10-10 Thread Stuart Halloway
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

Re: strange bug in range or lazy-seq?

2010-10-11 Thread Stuart Halloway
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

fixing web docs

2011-03-29 Thread Stuart Halloway
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

Re: Pointer errors?

2011-03-31 Thread Stuart Halloway
> 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

Re: Protocol functions & higher order functions

2011-04-06 Thread Stuart Halloway
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

Re: refer-clojure does not prevent namespace conflicts

2011-04-10 Thread Stuart Halloway
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

Re: Future of clojure.contrib.core/-?> macro

2011-04-19 Thread 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 > - clojure.contrib.generic There is an empty repos already waiting for your macr

Re: Future of clojure.contrib.core/-?> macro

2011-04-19 Thread Stuart Halloway
> 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 >

Re: Future of clojure.contrib.core/-?> macro

2011-04-20 Thread Stuart Halloway
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

Re: Resolution of in-ns in a namespace that does not refer clojure.core

2011-04-21 Thread Stuart Halloway
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

Re: Resolution of in-ns in a namespace that does not refer clojure.core

2011-04-21 Thread Stuart Halloway
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

Re: New contrib releases

2011-04-25 Thread Stuart Halloway
> 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

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-26 Thread Stuart Halloway
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

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-26 Thread Stuart Halloway
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

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-27 Thread Stuart Halloway
> 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

Re: problem running tests in leiningen

2011-05-06 Thread Stuart Halloway
(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

Re: Bug? (vary-meta (promise) assoc :foo 1) hangs in Clojure 1.2

2011-05-11 Thread Stuart Halloway
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

Re: Learning Idiomatic Clojure

2011-05-12 Thread Stuart Halloway
> 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

Re: Help with primer on maps, lists or vectors

2011-06-02 Thread Stuart Halloway
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,

we are looking into the recent spams

2011-06-07 Thread Stuart Halloway
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"

Re: Allow Data Structure to Be Called as Function

2011-06-15 Thread Stuart Halloway
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

Re: Java interop: casting

2011-06-16 Thread Stuart Halloway
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

Re: What's the best way to test private functions?

2011-06-18 Thread Stuart Halloway
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

Re: labrepl trouble

2011-06-21 Thread Stuart Halloway
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

Re: getMethods

2011-06-23 Thread Stuart Halloway
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

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread Stuart Halloway
#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

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread Stuart Halloway
>> 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

Re: Clojure for large programs

2011-07-05 Thread Stuart Halloway
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

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-07 Thread Stuart Halloway
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

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-07 Thread Stuart Halloway
[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

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-08 Thread Stuart Halloway
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

Re: Mutable Clojure Data Structures

2011-07-08 Thread Stuart Halloway
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

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Stuart Halloway
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

Re: Looking for examples of using Java iterators from Clojure...

2011-07-09 Thread Stuart Halloway
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

Re: (doc more-examples)

2011-07-16 Thread Stuart Halloway
#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

following Rich's talk at NYC Clojure this Wednesday

2011-07-18 Thread Stuart Halloway
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

Re: following Rich's talk at NYC Clojure this Wednesday

2011-07-19 Thread Stuart Halloway
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: > >

Re: [ANN] ClojureScript

2011-07-21 Thread Stuart Halloway
> 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

Re: BUG REPORT: ClojureScript : Portable Path Support

2011-07-21 Thread Stuart Halloway
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

better community docs: getting started

2011-07-22 Thread Stuart Halloway
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

better community docs: contrib

2011-07-22 Thread Stuart Halloway
, 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

Re: better community docs: getting started

2011-07-22 Thread Stuart Halloway
> 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

Re: better community docs: getting started

2011-07-22 Thread Stuart Halloway
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

Re: One syntax to rule them all

2011-07-23 Thread Stuart Halloway
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

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-24 Thread Stuart Halloway
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

Re: ClojureScript - why is javascript object array and not a map?

2011-07-27 Thread Stuart Halloway
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

Re: format and printf can't be used with BigInt

2011-07-28 Thread Stuart Halloway
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

Re: format and printf can't be used with BigInt

2011-07-28 Thread Stuart Halloway
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

novel feedback is always welcome

2011-07-31 Thread Stuart Halloway
#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,

Re: Clojure Dev: How you can help! (Hint: Alioth Benchmarks)

2011-07-31 Thread Stuart Halloway
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-set

2011-08-06 Thread Stuart Halloway
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

Re: No show?

2012-02-09 Thread Stuart Halloway
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

Re: Stale .class files in protocols / records

2012-02-13 Thread Stuart Halloway
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

Re: .class files constantly going stale?

2012-02-15 Thread Stuart Halloway
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

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Stuart Halloway
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

Re: How to escape a space in a keyword?

2012-03-06 Thread Stuart Halloway
>> 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

Re: Can Clojure be as readable as Python or Ruby ?

2012-03-08 Thread Stuart Halloway
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

Re: Resolving vars and quoting

2012-03-15 Thread Stuart Halloway
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

Re: Frustrations in being moderated

2012-03-23 Thread Stuart Halloway
> 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

moderation anomaly

2012-04-13 Thread Stuart Halloway
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

Re: Inconsistent refs within an STM transaction.

2012-04-16 Thread Stuart Halloway
> [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,

Re: Inconsistent refs within an STM transaction.

2012-04-17 Thread Stuart Halloway
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

Re: LinkedHashMap not well supported

2012-04-30 Thread Stuart Halloway
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

Re: Data vs API

2012-05-02 Thread Stuart Halloway
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

Re: Accessing collections from Datomic datalog queries

2012-05-09 Thread Stuart Halloway
> 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

<    1   2   3   4   5   6   7   8   9   >