Re: Clojure + Terracotta

2008-10-19 Thread Alex Miller
and help where we can. Probably best to ask on our mailing lists as everyone in eng monitors the user and dev lists: http://www.terracotta.org/confluence/display/wiki/Mailing+Lists Alex Miller On Oct 18, 7:50 am, Rich Hickey [EMAIL PROTECTED] wrote: On Fri, Oct 17, 2008 at 8:01 PM, Luc

Re: Clojure + Terracotta

2008-10-20 Thread Alex Miller
of an immutable data structure that won't be an issue. Sorry for the confusion... Alex On Oct 19, 7:07 pm, Alex Miller [EMAIL PROTECTED] wrote: Rich, I'm the tech lead for the transparency team at Terracotta and this is not exactly correct.  For example, while you can read clustered state outside

[ANN] Clojure 1.6.0-alpha3

2013-11-22 Thread Alex Miller
+hashing). Once we reach completion we'll release an RC for final testing. Alex Miller -- -- 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

Spit seems to use incorrect line terminator on Windoze

2013-11-24 Thread Alex Miller
I do not think this is a bug. Spit takes string content and puts it in a file. I do not expect it to modify that string. It's up to you to create the proper string. Alex -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: Spit seems to use incorrect line terminator on Windoze

2013-11-25 Thread Alex Miller
PrintWriter has a different api than spit. PrintWriter has the ability to print objects and also the ability to println objects. When printing a line, it inserts the host-specific new line characters. If you print a String with PrintWriter, it will be exactly the string you tell it (new lines

Re: expand a form

2013-11-25 Thread Alex Miller
You might find tools.trace useful for examining a form as it is executed. https://github.com/clojure/tools.trace On Monday, November 25, 2013 6:55:27 AM UTC-6, Andy Smith wrote: Hi, I am new to clojure and I was wondering if there is a macro I can use to fully expand all symbols and

Re: Clojure CLR versioning and binary downloads

2013-11-25 Thread Alex Miller
I added a link here http://clojure.org/clojureclr to the binary download wiki page. I'm happy to update this page in whatever way people find useful - feel free to ping me on email David, Frank, or others. On Monday, November 25, 2013 12:48:51 PM UTC-6, Frank Hale wrote: Are there any plans

Re: println / for unexpected behaviour

2013-11-26 Thread Alex Miller
Realizing a lazy sequence incurs overhead on every item. Chunked seqs amortize that cost by realizing a chunk of items at a time giving you better overall performance at the cost of less laziness. -- -- You received this message because you are subscribed to the Google Groups Clojure group.

Re: Access the datastructure used to create a function?

2013-11-26 Thread Alex Miller
It would help to know what your real goal is, but compiled Clojure does not retain the original source form. One hook you do have though is macros which will be invoked prior to compilation. At macro execution time, you have access to the special form var which is the original form (as a

Re: Access the datastructure used to create a function?

2013-11-26 Thread Alex Miller
enhancement discussion (perhaps here, perhaps jira, can't find it now) to have functions retain their source definition at runtime. I'm not sure how that would be possible without significantly affecting performance and memory footprint however. On Tuesday, November 26, 2013 7:01:57 PM UTC, Alex

tails function?

2013-11-30 Thread Alex Miller
reductions on rest? -- -- 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 from this

Re: 2013 State of Clojure ClojureScript survey results

2013-12-02 Thread Alex Miller
Two follow-ups categorizing results from the missing language and weaknesses questions: http://tech.puredanger.com/2013/11/19/state-of-clojure-language-features/ http://tech.puredanger.com/2013/12/01/clj-problems/ Alex On Monday, November 18, 2013 1:32:56 PM UTC-6, Chas Emerick wrote:

Re: I need a vector not a list?

2013-12-02 Thread Alex Miller
Actually, I'd say seqs are very much *unlike* iterators in other languages (Java in particular). Iterators - stateful cursors that conflate iteration with a check for whether more elements exist Seqs - immutable persistent views of a collection that separate iteration from checking for more

Re: contains? and transient set

2013-12-04 Thread Alex Miller
Both contains? and get should work with transient sets imo. This is already in jira: http://dev.clojure.org/jira/browse/CLJ-700. Alex On Wednesday, December 4, 2013 5:04:40 AM UTC-6, Burt wrote: Does contains? and get not work with transient sets? Examples: (contains? #{1 2 3} 1) ; =

Re: ClassCastException on second pass of loop, works fine during the first.

2013-12-04 Thread Alex Miller
I would expect others to be either nil or a non-empty seq (never empty) but empty? will return true on a nil, so that still works. I would have swapped the cases and used seq as the test. However, without really reading this too closely, I'd guess the real problem is that you want to (apply

Re: contains? and transient set

2013-12-04 Thread Alex Miller
:20 AM UTC-6, Las wrote: cool! hope the patch is good for 1.6! :) 2013/12/4 Alex Miller al...@puredanger.com javascript: Both contains? and get should work with transient sets imo. This is already in jira: http://dev.clojure.org/jira/browse/CLJ-700. Alex On Wednesday, December 4, 2013 5

Re: Why are vectors and sets inconsistent with maps, keywords, and symbols when used as operators?

2013-12-05 Thread Alex Miller
I don't think there's any good reason for sets not to support the default arg. Vector is a little weird due to the index nature of the keys but could be done. If you want to file tickets for these, I don't think anything is in the system on it already. I would separate sets and vectors into two

Re: require :require

2013-12-06 Thread Alex Miller
You might find this useful: http://blog.8thlight.com/colin-jones/2010/12/05/clojure-libs-and-namespaces-require-use-import-and-ns.html -- -- 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

Re: core.async/thread failing silently

2013-12-08 Thread Alex Miller
If you're starting with lein repl then I would expect errors to be printed at the console - that's the actual process running the code. It's also possible that the thread's untaught exception handler doesn't print. I know that the expectation for async go blocks is that you should catch and

Re: Clojure west?

2013-12-14 Thread Alex Miller
Clojure/West will be in San Francisco this year. We are working on a contract for the last week in March but this IS NOT YET a firm date. We will of course post here when we have a date/venue details. I expect the CFP to open in early January. Alex On Saturday, December 14, 2013 12:20:29 AM

Re: Clojure.org: Concurrency screencast 404

2013-12-16 Thread Alex Miller
blip.tv killed the Clojure account. Many of the videos were moved to YouTube under the ClojureTV account: http://www.youtube.com/user/ClojureTV I suspect this is the talk you're referring to: http://www.youtube.com/watch?v=dGVqrGmwOAw On Monday, December 16, 2013 2:44:53 AM UTC-6, Abhijith

Re: Where are the videos for Clojure Conj 2013

2013-12-22 Thread Alex Miller
All talks were recorded. All editing is complete. The bottleneck right now is in just getting them uploaded which should clear up soon after the holidays. Alex On Sunday, December 22, 2013 3:25:07 PM UTC-6, Richard Cole wrote: Were any videos of the presentations made? Have they been

Re: Looking to migrate thousands of Clojure applications from 1.2 to 1.5.

2013-12-22 Thread Alex Miller
One difficulty with this approach (which I largely following on a similar operation a while back) is that the modular counterparts have continued forward and in many cases are not API-compatible with the 1.2 version anymore (tools.cli is one example that I remember from this transition as its

Re: Clojure.org: Concurrency screencast 404

2013-12-26 Thread Alex Miller
Which page had the link? -- -- 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 from

reasoning behind nth and take-nth inconsistent parameter pos.

2014-01-03 Thread Alex Miller
Generally collection functions like conj, assoc, nth, get take the collection as the first arg and return a collection of the same type. The majority of the functions in the core lib are sequence functions working at a higher abstraction level - they take a seqable thing, call seq on it, and

Re: Clojure.org: Concurrency screencast 404

2014-01-07 Thread Alex Miller
for the delayed response. On Fri, Dec 27, 2013 at 1:41 AM, Alex Miller al...@puredanger.comjavascript: wrote: Which page had the link? -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clo

Re: Contributors needed for Rouge (Clojure on Ruby)

2014-01-08 Thread Alex Miller
I have a task on my infinite todo list to analyze these load times. I know that Tim B has done a bit of work on it in the past too. Rich has mentioned it to me a couple times so I know it's something he's concerned about. Alex -- -- You received this message because you are subscribed to the

Re: Namespace loading upon deftype/defrecord class init?

2014-01-08 Thread Alex Miller
Maybe http://dev.clojure.org/jira/browse/CLJ-1208 ? -- -- 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

[ANN]: Clojure/West 2014 - San Francisco - March 24-26

2014-01-09 Thread Alex Miller
us know if you have any questions! Alex Miller and Lynn Grogan Questions: clojure-w...@cognitect.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

Re: How can I improve this?

2014-01-10 Thread Alex Miller
I would not use an atom. Think about it as doing a reduce while passing along a set of the names you've seen so far. You might also look at the implementation of distinct in clojure.core which is similar (you want to detect duplicates in the same way, but emit new names instead of omitting

Re: [ANN]: Clojure/West 2014 - San Francisco - March 24-26

2014-01-11 Thread Alex Miller
forward to it. Talks will be presented in two tracks Does this mean there will be two stages/presentations at a time? On Thursday, January 9, 2014 8:01:13 PM UTC-8, Alex Miller wrote: At long last, we have finalized the plans for Clojure/West 2014! Site: http://clojurewest.org Date

Re: closing-buffer

2014-01-14 Thread Alex Miller
From my perspective, a buffer is below the abstraction level of a channel. If you want a channel with special behavior, it seems like you should implement a channel. On Monday, January 13, 2014 10:47:22 PM UTC-6, t x wrote: I am aware of: DroppingBuffer and SliddingBuffer I would like

Re: go kill infinite loop

2014-01-14 Thread Alex Miller
Two notes: 1)The provided core.async go-loop macro is a small enhancement for the (go (loop )) case. 2) Be careful using when using falsey tests like when or if - these will stop on nil but will also stop on false coming through the channel. Might be ok here, but it's something to be aware of.

Re: clojure.edn/read-string exceptions = nil

2014-01-16 Thread Alex Miller
I think I would change the sender to elide whatever parts you don't want to send rather than mess with the receiver. On Thursday, January 16, 2014 2:11:02 AM UTC-6, t x wrote: Hi, Right now if I do (clojure.edn/read-string ...) on a string with a unreadable part, I get an exception.

Re: Possible heisenbug in test suite (not in individual test runs) with memoization

2014-01-17 Thread Alex Miller
Further, in Clojure = 1.5.1, (= 1M 1.0M) = false. Please note, this behavior has changed in 1.6. On Monday, January 6, 2014 12:21:13 PM UTC-6, Justin Kramer wrote: Shot in the dark: check that arguments passed to your memoized functions use consistent typing. A BigDecimal such as 1M does not

Re: functions inside of go blocks

2014-01-17 Thread Alex Miller
You can definitely call functions, just not ones use the channel ops. The recommendation is to keep the io ops inside the go block and pull your logic into external functions. There are two benefits to this approach: 1) You keep all the impure io stuff together in the go block while putting

Re: clojure key destructuring motivation

2014-01-18 Thread Alex Miller
I have some sympathy for this view of things as it was a question I had while learning Clojure as well. The general justification for the current behavior is that the thing being bound is always on the left and the expression defining it is always on the right. On Saturday, January 18, 2014

[ANN] Clojure/West registration now open, 1 week left for CFP!

2014-01-18 Thread Alex Miller
Clojure/West http://www.clojurewest.org/ registration opened yesterday: https://www.eventbrite.com/e/clojurewest-2014-tickets-10153269703 Unfortunately the early bird tickets have already sold out before I was able to post this, but regular registration tickets are $415. If you are interested in

Re: clojure key destructuring motivation

2014-01-18 Thread Alex Miller
On Saturday, January 18, 2014 2:19:08 PM UTC-6, Stefan Kanev wrote: On 18/01/14, Alex Miller wrote: I have some sympathy for this view of things as it was a question I had while learning Clojure as well. The general justification for the current behavior is that the thing being

Re: [ANN] play-clj, a game library

2014-01-20 Thread Alex Miller
Might be a good topic for a Clojure/West submission https://cognitect.wufoo.com/forms/clojurewest-2014-call-for-presentations/ On Monday, January 20, 2014 9:31:50 AM UTC-6, Zach Oakes wrote: Today I'm releasing play-clj https://github.com/oakes/play-clj, a Clojure wrapper for LibGDX that

Re: Redefining the notion of S-EXP, and pattern matching S-EXPs in clojure

2014-01-20 Thread Alex Miller
core.match can do some of this. https://github.com/clojure/core.match data.zip has some extensions beyond zip that are useful (although a lot of what's there is cast in terms of xml-handling uses): https://github.com/clojure/data.zip I have rolled variants of this a few times, mostly using

Reminder: Clojure/West CFP closes Friday!

2014-01-22 Thread Alex Miller
If you're interested in submitting a talk to Clojure/West in San Francisco, March 24-26, time is running out! CFP: https://cognitect.wufoo.com/forms/clojurewest-2014-call-for-presentations/ Other useful links: Site: http://clojurewest.org Registration:

Re: Request for help optimising a Clojure program

2014-01-30 Thread Alex Miller
, January 30, 2014 11:13:56 AM UTC-5, Andy Fingerhut wrote: Thanks to the work and thought of Mark Engelberg, Alex Miller, Rich Hickey, myself, and likely several others who I should be naming here but am forgetting, the latest (not yet released) Clojure master version has an improved hash

Re: GSoC 2014: org applications now open

2014-02-04 Thread Alex Miller
Daniel, I'd be happy to help as an administrator, particularly if you can provide some guidance from previous years. I can also help re getting students to conferences. Alex On Monday, February 3, 2014 1:59:24 PM UTC-6, Daniel Solano Gómez wrote: Hello, all, Apparently, it's already time

JIRA and ticket votes

2014-02-05 Thread Alex Miller
Hello, as we approach the end game for Clojure 1.6 and start looking forward to the next release, now is a good time to look at the existing ticket backlog and vote on things that are important to you. Andy's weighted ticket vote report is a good place to start - it includes all tickets currently

Re: Confused by Clojure floating-point differences (compared to other languages)

2014-02-05 Thread Alex Miller
Others have answered with many useful bits but I would mention that it would possibly make a significant performance difference if you added this to your code: (set! *unchecked-math* true) On Wednesday, February 5, 2014 7:17:13 AM UTC-6, Glen Fraser wrote: (sorry if you received an earlier

Re: Confused by Clojure floating-point differences (compared to other languages)

2014-02-05 Thread Alex Miller
...@gmail.comjavascript: wrote: Also: (defn g ^double [^double x] (+ (Math/sin (* 2.3 x)) (Math/cos (* 3.7 x On Wed, Feb 5, 2014 at 2:07 PM, Alex Miller al...@puredanger.comjavascript: wrote: Others have answered with many useful bits but I would mention that it would possibly make

Re: ISeq documentation and mutual deftypes.

2014-02-07 Thread Alex Miller
next() should return either the remaining seq or null (think Clojure function next) more() should return either the remaining seq or empty list (like Clojure function rest) Inside Clojure, most seqs extend ASeq, which implements more() on top of the abstract next(): public ISeq more(){

Re: Refactoring as an nREPL middleware

2014-02-07 Thread Alex Miller
This might be an interesting area for a Google Summer of Code project if someone would be willing to mentor such a thing and come up with a high-level plan. http://dev.clojure.org/display/community/Project+Ideas On Friday, February 7, 2014 3:51:29 PM UTC-6, Curtis Gagliardi wrote: Hey

Re: ISeq documentation and mutual deftypes.

2014-02-11 Thread Alex Miller
I'd say there is a range of public-ness to the internals of Clojure. - The new Clojure API (clojure.java.api.Clojure) is an official public API for external callers of Clojure. This API basically consists of ways to resolve vars and invoke functions. - For Clojure users in Clojure, pretty much

Re: ISeq documentation and mutual deftypes.

2014-02-11 Thread Alex Miller
.. It might be a good implementation option to put the public parts of these interfaces in the clojure.java.api package, and have the internal Clojure interfaces / classes in clojure.lang inherit from these. On Wednesday, 12 February 2014 08:11:18 UTC+8, Alex Miller wrote: I'd say

Re: Keyword equality check

2014-02-12 Thread Alex Miller
I think it's a little more subtle than that. Symbols are composed of a String name and a String namespace. When symbols are created they intern each of those Strings. Interned Strings are comparable by identity across the JVM. Symbol equals() compares name and namespace. Keyword extends from

Re: Keyword equality check

2014-02-12 Thread Alex Miller
that loads the same Keyword class. You can ask the Keyword classes you have for their classloader and then look through the parents to investigate that question. On Wednesday, February 12, 2014 5:32:07 PM UTC-6, Alex Miller wrote: I think it's a little more subtle than that. Symbols

[ANN] Clojure 1.6.0-beta1

2014-02-14 Thread Alex Miller
](http://dev.clojure.org/jira/browse/CLJ-1328) Empty primitive vectors throw NPE on .equals with non-vector sequential types Happy Valentine's Day! Alex Miller -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure

Re: [ANN] Clojure 1.6.0-beta1

2014-02-14 Thread Alex Miller
Hey Howard, Same story as always - when we moved into the 1.6 release train, we basically stopped putting new tickets into work so that we could stabilize the release. That process has taken longer than I expected. My expectation is that: 1) All of you will try out 1.6.0-beta1 as soon as

Re: [ANN] Clojure 1.6.0-beta1

2014-02-14 Thread Alex Miller
On Friday, February 14, 2014 2:27:49 PM UTC-6, DomKM wrote: Great changes! I have a question about #5. 5) New some operations Many conditional functions rely on logical truth (where falsey values are nil or false). Sometimes it is useful to have functions that rely on not nilness

Re: [ANN] Clojure 1.6.0-beta1

2014-02-15 Thread Alex Miller
Thanks! Great to hear positive benchmark results. I'd guess that if you did (count (distinct (map hash your-set))) you'd see that was a lot smaller than (count your-set) in 1.5.1 indicating hash collisions. -- You received this message because you are subscribed to the Google Groups Clojure

Re: [ANN] Clojure 1.6.0-beta1

2014-02-15 Thread Alex Miller
I'd agree with all that. One place we've seen nil but not false become more prevalent lately is in core.async. Channels reserve special meaning for nil (closed) but false is a valid channel value. So if-some and when-some are particularly useful in go loops that take from a channel. There are a

Re: [ANN] Clojure 1.6.0-beta1

2014-02-15 Thread Alex Miller
truthy? = identity falsey? = not -- 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 from

Re: fast parallel reduction into hash-set/map

2014-02-15 Thread Alex Miller
You should try transients if you're looking to quickly fill collections - you might not even need to split up the work this way. On Saturday, February 15, 2014 5:06:24 PM UTC-6, Jules wrote: Guys, I've been playing with reducers on and off for a while but have been frustrated because they

Re: fast parallel reduction into hash-set/map

2014-02-17 Thread Alex Miller
It is too late, but an enhancement jira would be appropriate. I would highly encourage some generative tests in such a patch and perhaps looking at https://github.com/ztellman/collection-check. With simple.check moving into contrib as test.check, we expect to be able to use test.check within

Re: [ANN] Clojure 1.6.0-beta1

2014-02-17 Thread Alex Miller
for doubt. This: (some? false) ;; = true Would confuse me. On the other hand this: (not-nil? false) ;; = true Would not. There's really no need to complicate the naming story here. It's also easy to remember! On Friday, February 14, 2014 3:25:36 PM UTC-8, Alex Miller wrote

Re: call clojure from java

2014-02-18 Thread Alex Miller
FYI, as of Clojure 1.6, you will use the clojure.java.api.Clojure class to obtain vars instead of RT. http://clojure.github.io/clojure/javadoc/clojure/java/api/Clojure.html But I would actually recommend creating a Java interface that looks just how want it, and then implement that interface

[ANN] Clojure/West Schedule - San Francisco, Mar 24-26

2014-02-18 Thread Alex Miller
/sponsorship-prospectus.pdf Hope to see you all there! Alex Miller and Lynn Grogan clojure-w...@cognitect.com -- List of talks on Mon 3/24 and Tues 3/25: - Instaparse - Mark Engelberg - How Clojure Works: Understanding the Clojure Runtime - Daniel Solano

Re: [ANN] Clojure 1.6.0-beta1

2014-02-18 Thread Alex Miller
Re the discussion around some?/if-some/when-some... Summarizing feedback here: 1) some? has a confusion with some (but some congruence with some-, some-) 2) other names might be better (not-nil?, nnil?, exists?, value?) 3) if-some and when-some lack the word let to clue you into their binding

Re: Why is Clojure faster than Java at this task?

2014-02-25 Thread Alex Miller
Hi Jonathan, I provided the Clojure pull request btw. I think Rob's explanation is correct. Alex On Tuesday, February 25, 2014 7:20:46 AM UTC-6, Rob Day wrote: It looks like an improvement in clojure.lang.BigInt over java.math.BigInteger - BigInt's add() method seems to do a long + long

[ANN] Clojure 1.6.0-beta2

2014-02-27 Thread Alex Miller
Clojure 1.6.0-beta1 is now available. Try it via - Download: http://central.maven.org/maven2/org/clojure/clojure/1.6.0-beta2 - Leiningen: [org.clojure/clojure 1.6.0-beta2] See the full change log here: https://github.com/clojure/clojure/blob/master/changes.md Clojure 1.6.0-beta2 has the

Re: [ANN] Clojure 1.6.0-beta2

2014-02-27 Thread Alex Miller
That first line should be 1.6.0-beta2 of course. :) On Thursday, February 27, 2014 5:37:15 PM UTC-5, Alex Miller wrote: Clojure 1.6.0-beta1 is now available. Try it via - Download: http://central.maven.org/maven2/org/clojure/clojure/1.6.0-beta2 - Leiningen: [org.clojure/clojure 1.6.0

Re: case statement and java constants

2014-02-28 Thread Alex Miller
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

Re: [ANN] Clojure 1.6.0-beta2

2014-03-05 Thread Alex Miller
I have not heard of any regressions or other critical issues with beta2. If you know of anything, please let me know asap - we plan to release RC1 soon. Alex On Thursday, February 27, 2014 4:39:28 PM UTC-6, Alex Miller wrote: That first line should be 1.6.0-beta2 of course. :) On Thursday

[ANN] Clojure 1.6.0-RC1

2014-03-11 Thread Alex Miller
Clojure 1.6.0-RC1 is now available. Try it via - Download: http://central.maven.org/maven2/org/clojure/clojure/1.6.0-RC1 - Leiningen: [org.clojure/clojure 1.6.0-RC1] See the full change log here: https://github.com/clojure/clojure/blob/master/changes.md Clojure 1.6.0-RC1 has the following

Re: java.lang.IllegalArgumentException: More than one matching method found: submit - when letting an ExecutorService

2014-03-11 Thread Alex Miller
In the let case, the *pool* will be tagged with the proper type so the ambiguity is detected. In the def case, the *pool* will be seen as an object and the compiler is just deferring to reflection at runtime to figure it out. If you turn on *warn-on-reflection*, you'll see a reflection warning

Re: java.lang.IllegalArgumentException: More than one matching method found: submit - when letting an ExecutorService

2014-03-11 Thread Alex Miller
Sorry for the deep storage reply - this was just referenced from a ticket and I didn't realize it was super old. :) On Tuesday, March 11, 2014 3:44:36 PM UTC-5, Alex Miller wrote: In the let case, the *pool* will be tagged with the proper type so the ambiguity is detected. In the def case

[ANN] Clojure/West, San Francisco, Mar 24-26

2014-03-12 Thread Alex Miller
Clojure/West is coming up very soon! We have a great program lined up, and are pleased that we can now announce that *John Hughes*, co-inventor of Haskell and QuickCheck will be doing the keynote. Tickets for both the conference and the pre-conference training (Clojure, ClojureScript, and

Re: XOR two arrays into a third on Clojure

2014-03-13 Thread Alex Miller
Agreed with all the comments on this so far. I would also say that dotimes is slower than loop for stuff like this so I would also make that change. (defn inplace-xor [^bytes a ^bytes b ^bytes out] (let [len (alength a)] (loop [i 0] (when ( i len) (aset-byte out i (bit-xor

Re: XOR two arrays into a third on Clojure

2014-03-13 Thread Alex Miller
, Michael Gardner wrote: On Mar 13, 2014, at 07:34 , Alex Miller al...@puredanger.comjavascript: wrote: Agreed with all the comments on this so far. I would also say that dotimes is slower than loop for stuff like this so I would also make that change. The dotimes version is slightly faster

Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-18 Thread Alex Miller
Hello all, We would love to release Clojure 1.6.0 final soon. We need your help in checking out the current release candidate - this is your opportunity to let us know about problems *before* we release, rather than after. Try it via - Download:

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-18 Thread Alex Miller
Thanks Andrey! You are the wind beneath my wings. On Tuesday, March 18, 2014 9:28:03 AM UTC-5, Andrey Antukh wrote: All test passes on my projects! It works fine for me! Thanks! 2014-03-18 15:21 GMT+01:00 Alex Miller al...@puredanger.com javascript: : Hello all, We would love

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-18 Thread Alex Miller
Thanks Michael! You're the hops in my ale. On Tuesday, March 18, 2014 12:22:15 PM UTC-5, Michael Klishin wrote: 2014-03-18 18:21 GMT+04:00 Alex Miller al...@puredanger.com javascript: : We need your help in checking out the current release candidate - this is your opportunity to let us

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-18 Thread Alex Miller
changes). Easy enough to fix once 1.6.0 actually ships. David On Tue, Mar 18, 2014 at 1:44 PM, Alex Miller al...@puredanger.comjavascript: wrote: Thanks Michael! You're the hops in my ale. On Tuesday, March 18, 2014 12:22:15 PM UTC-5, Michael Klishin wrote: 2014-03-18 18:21 GMT+04

[ANN] Lambda Jam - July 22-23 - Chicago - CFP OPEN

2014-03-18 Thread Alex Miller
I'm pleased to note that Lambda Jam (http://www.lambdajam.com) will return to Chicago this year on July 22-23rd. Lambda Jam is designed to appeal to the increasing group of programmers using FP in industry with a particular focus on Clojure, Scala, Erlang, Haskell, and F#. The conference is also

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-18 Thread Alex Miller
- thanks for all the hard work on this release. ken. On Tue, Mar 18, 2014 at 2:21 PM, Alex Miller al...@puredanger.comjavascript: wrote: Hello all, We would love to release Clojure 1.6.0 final soon. We need your help in checking out the current release candidate

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-18 Thread Alex Miller
, Alex Miller al...@puredanger.comjavascript: wrote: Thanks Ken! You're the cheese on my nachos. On Tuesday, March 18, 2014 12:45:46 PM UTC-5, Ken Barber wrote: We had some bugs related to assumed ordering in our code which 1.6.0-RC1 surfaced (https://github.com/puppetlabs/puppetdb/pull/887

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-18 Thread Alex Miller
passes. Ambrose On Wed, Mar 19, 2014 at 3:45 AM, Alex Miller al...@puredanger.comjavascript: wrote: Yeah, that's a thing. I think the name was chosen intentionally to be the same across those as cljs had it first. On Tuesday, March 18, 2014 2:29:04 PM UTC-5, Ambrose Bonnaire-Sergeant

non-equality (=) of records nuance

2014-03-18 Thread Alex Miller
What Clojure version are you on? -- 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 from

Re: non-equality (=) of records nuance

2014-03-18 Thread Alex Miller
Yeah that looks bad. -- 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 from this group,

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-19 Thread Alex Miller
record scratch what's that about performance now? Is that something definitive and reproducible? And if so, is there any way to track down a cause? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-19 Thread Alex Miller
to understand it better. On Wednesday, March 19, 2014 8:28:18 AM UTC-5, Nicola Mometto wrote: I'm guessing it's because of the minor overhead on hashing added with the move to Murmur3? Alex Miller writes: record scratch what's that about performance now? Is that something definitive

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-19 Thread Alex Miller
Thanks, this is all really useful. I would appreciate any more detailed info. On Wednesday, March 19, 2014 10:15:35 AM UTC-5, Stefan Kamphausen wrote: Hi, On Wednesday, March 19, 2014 3:55:22 PM UTC+1, Michał Marczyk wrote: Hashes are cached for Clojure collections, keywords and symbols,

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-19 Thread Alex Miller
. Will be in presumed RC2. On Wednesday, March 19, 2014 11:26:51 AM UTC-5, Stefan Kamphausen wrote: On Wednesday, March 19, 2014 4:34:45 PM UTC+1, Alex Miller wrote: Thanks, this is all really useful. I would appreciate any more detailed info. * No atoms, agents, refs * Almost purely

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-19 Thread Alex Miller
And thanks everyone for giving RC1 a look. You are (collectively) the fortune in my fortune cookie. -- 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

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-20 Thread Alex Miller
Yes, agreed. -- 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 from this group, send

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-20 Thread Alex Miller
case depends on hashCode, not hasheq, so should be unaffected by these changes. -- 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

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-20 Thread Alex Miller
, March 19, 2014 4:14:38 PM UTC-4, Alex Miller wrote: Rich just pushed a change to the String hashing to address this. We're going to grab the string hashcode (which is cached after first call) and murmur the result of that. This gives us constant time hashcode after first call

Re: How did you learn Clojure?

2014-03-20 Thread Alex Miller
... Alex Miller On Thursday, March 20, 2014 8:08:41 PM UTC-5, Marcus Blankenship wrote: Hi Folks, I'm a post technical PM who's fascinated by Clojure, and want to learn it, but am having a hard time without a real project to work on. It's actually excited me so much I'm considering hanging up my

Re: How did you learn Clojure?

2014-03-21 Thread Alex Miller
helpful... Is there a clojure-noobs list? Sent from my iPhone On Mar 20, 2014, at 8:11 PM, Alex Miller al...@puredanger.comjavascript: wrote: Hi Marcus, Some great problem sites that can provide opportunities for practice: - http://clojurescriptkoans.com/ (I think everything here

[ANN] Clojure 1.6.0-RC2

2014-03-21 Thread Alex Miller
Clojure 1.6.0-RC2 is now available. Try it via - Download: http://central.maven.org/maven2/org/clojure/clojure/1.6.0-RC2 - Leiningen: [org.clojure/clojure 1.6.0-RC2] See the full change log here: https://github.com/clojure/clojure/blob/master/changes.md Clojure 1.6.0-RC2 has the following

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-21 Thread Alex Miller
That's pretty weird. 1.6.0-RC2 is out now - I would really appreciate it if you could give it a shot. Alex On Friday, March 21, 2014 5:51:14 PM UTC-5, Stefan Kamphausen wrote: Hi, after two days of git bisecting and running my tests over and over again, I give up. While I can

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-23 Thread Alex Miller
Stefan, how do these numbers compare to RC1? Is RC2 better than RC1? On Saturday, March 22, 2014 7:32:53 AM UTC-5, Stefan Kamphausen wrote: Hi, On Saturday, March 22, 2014 3:52:00 AM UTC+1, Alex Miller wrote: That's pretty weird. that's pretty true. 1.6.0-RC2 is out now - I would

[ANN] Clojure 1.6.0-RC3

2014-03-23 Thread Alex Miller
Clojure 1.6.0-RC3 is now available. Try it via - Download: http://central.maven.org/maven2/org/clojure/clojure/1.6.0-RC3 - Leiningen: [org.clojure/clojure 1.6.0-RC3] See the full change log here: https://github.com/clojure/clojure/blob/master/changes.md Clojure 1.6.0-RC3 has the following

  1   2   3   4   5   6   7   8   9   10   >