Re: [GSoC] Clojure refactoring library and integration in Counterclockwise

2013-04-17 Thread Mikera
On Tuesday, 9 April 2013 00:05:35 UTC+8, michael holzer wrote: > > > And now to the part that will be hopefully of broader interest for every > Clojure user: > What do you expect from a refactoring library or from an IDE providing > refactoring tools? > There are a bunch of operations that wou

Re: [ANN] Linode compromise possibly affecting Clojars

2013-04-17 Thread Dave Sann
+1 On Thursday, 18 April 2013 05:04:47 UTC+10, Andrew Wagner wrote: > > Just wanted to say, awesome job with this. I appreciate your diligence! > > > On Wed, Apr 17, 2013 at 2:50 PM, Phil Hagelberg > > wrote: > >> >> Update: thanks to an older backup from Ivan Kozik, we've been able to >> verify

Re: [ANN] Linode compromise possibly affecting Clojars

2013-04-17 Thread Phil Hagelberg
For the sake of completeness I've included Alex Osborne's analysis of the situation below. (Alex runs Clojars.) -Phil The really annoying thing about security is it's impossible to conclusively prove at any time anything is s

Re: Some docs on comparators, including mistakes to avoid, & Clojure "extended doc strings"

2013-04-17 Thread Andy Fingerhut
A document that may perhaps contain more than most people want to know about Clojure = and == https://github.com/jafingerhut/thalia/blob/master/doc/other-topics/equality.md Andy On Thu, Apr 4, 2013 at 12:49 PM, Andy Fingerhut wrote: > The document on comparator functions alone might be of inte

Re: monkey patch

2013-04-17 Thread Michael Klishin
2013/4/18 Brian Craft > If there are no good options, can I monkey patch it? And if so, how would > I do that? I.e. can I replace a function in korma.sql.engine such that when > I invoke korma it will use the new function? (in-ns 'korma.sql.engine (defn ...)) Use it at your own peril. -- MK

Re: [ANN] Linode compromise possibly affecting Clojars

2013-04-17 Thread Phil Hagelberg
Andrew Wagner writes: > Just wanted to say, awesome job with this. I appreciate your diligence! Thanks! Luckily part of my job at Heroku is to keep an eye out for this kind of thing, so that's why I'm able to spend more cycles on it when issues do arise. But Alex Osborne, Ivan Kozik, and Nelson

monkey patch

2013-04-17 Thread Brian Craft
I suspect I've hit a problem where korma and h2 don't like each other. Korma likes to group "join" clauses with parentheses (via korma.sql.utils/left-assoc), but the parentheses appear to prevent h2 from picking appropriate indexes, so the performance is unusable. Removing the parentheses fixes

Re: Head retention example

2013-04-17 Thread Michał Marczyk
Note that the problem is not that t needs to hang around; it's that t holds a lazy sequence which hangs around in unrealized state. That lazy sequence internally holds a thunk -- a nullary function -- capable of producing the actual sequence elements on request. It is this thunk that holds a refere

Re: [ANN] Linode compromise possibly affecting Clojars

2013-04-17 Thread Phil Hagelberg
Update: I've manually reviewed a diff[1] of all changes to jars published since the intrusion. I found nothing suspicious in the diff, but I did see a couple instances of bytecode in it. Two of them were just bytecode being removed, but in one of them the bytecode changed when the new copy was red

Re: Surprising behaviour related to records, protocols and AOT

2013-04-17 Thread Ragnar Dahlén
Changing 3) to also import the record class: (ns defrecordissue.aot1 (:require [defrecordissue.aprotocol] [defrecordissue.arecord]) (:import [defrecordissue.arecord ARecord])) makes no difference. Compilation still fails with the same exception. This is obviously

Re: Clojure question

2013-04-17 Thread Marko Topolnik
> Are data types bound to variables and parameters at compile-time? run-time? a > combination? > > Clojure, like LISPs in general, is primarily a dynamically-typed language, so variables/parameters don't have a type assigned to them. However, on JVM Clojure there are optional type hints, which

Re: Head retention example

2013-04-17 Thread Marko Topolnik
On Monday, April 15, 2013 1:50:37 AM UTC+2, tyaakow wrote: > Thank you for your response, Marko. > I want to clarify one more thing: > > (let [[t d] (split-with #(< % 12) (range 1e8))] > [(count d) (count t)]) > > > does this mean that while (count d) is realizing (range 1e8) seq, it > become

Clojure question

2013-04-17 Thread ngm24
Hello, I'm doing a school paper on Clojure but there are two questions that i just can't find answers to anywhere they are: Are data types bound to variables and parameters at compile-time? run-time? a combination? and also, How are parameters passed? (Pass by value? Pass by reference? Pas

Re: Surprising behaviour related to records, protocols and AOT

2013-04-17 Thread Andrew Sernyak
I guess you have to import defrecord generated class before you want to use it, check the sample from clojuredocs about defrecord ; If you define a defrecord in one namespace and want to use it > ; from another, first require the namespace and then import > ; the record as a regular class. > ; Th

Re: [ANN] Linode compromise possibly affecting Clojars

2013-04-17 Thread Andrew Wagner
Just wanted to say, awesome job with this. I appreciate your diligence! On Wed, Apr 17, 2013 at 2:50 PM, Phil Hagelberg wrote: > > Update: thanks to an older backup from Ivan Kozik, we've been able to > verify the > integrity of all but 45 jars. It's likely these were legitimate > redeployments

Re: [ANN] Linode compromise possibly affecting Clojars

2013-04-17 Thread Phil Hagelberg
Update: thanks to an older backup from Ivan Kozik, we've been able to verify the integrity of all but 45 jars. It's likely these were legitimate redeployments by the maintainers, but I'm going to be reviewing the diffs by hand. I've attached a list of jars which haven't been verified. If your dep

Re: ClojureWerkz now accepts donations

2013-04-17 Thread Jason Lewis
Ah... I missed the "why only these limited options" section. Sorry! Jason Lewis Email jasonlewi...@gmail.com Twitter@canweriotnow Blog http://decomplecting.org About http://about.me/jason.lewis On Wed, Apr 17, 2013 at 2:40

Re: ClojureWerkz now accepts donations

2013-04-17 Thread Michael Klishin
2013/4/17 Jason Lewis > What about Gittip? It'd be easier for me to just pass some of my donations > along to you! See in FAQ: http://clojurewerkz.org/articles/donate.html -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- -- You received this message because you a

Re: ClojureWerkz now accepts donations

2013-04-17 Thread Jason Lewis
What about Gittip? It'd be easier for me to just pass some of my donations along to you! On Apr 17, 2013 1:11 PM, "Michael Klishin" wrote: > On behalf of the ClojureWerkz [1] team I'm happy to announced that > ClojureWerkz now > accepts donations. More at > http://blog.clojurewerkz.org/blog/2013/

Re: invokedynamic instructions in Clojure

2013-04-17 Thread Ghadi Shayban
Brandon, Not really, but I don't want to deter anyone from exploration as its own goal. There are a lot of interesting ways that Clojure can leverage indy, this was an experiment. I'm going to try to put it in more high value places, and let the ideas marinate. This modification does nothing bu

ClojureWerkz now accepts donations

2013-04-17 Thread Michael Klishin
On behalf of the ClojureWerkz [1] team I'm happy to announced that ClojureWerkz now accepts donations. More at http://blog.clojurewerkz.org/blog/2013/04/17/clojurewerkz-now-accepts-donations/ . If you use Monger, Langohr, Elastisch, Neocons or any other of our libraries and feel they saved you tim

Re: LambdaNext Clojure Workshop - London May 20-22 2013

2013-04-17 Thread keeds
Signed up for the 3 days with a colleague. Looking forward to it... On Monday, 15 April 2013 11:24:06 UTC+1, Sam Aaron wrote: > > Are you interested in becoming a professional Clojure programmer? Want > to jumpstart your knowledge or simply take things to the next level? The > LambdaNext team is

Re: Head retention example

2013-04-17 Thread gerardc
Great Q&A on this, thanks Marko! On Sunday, 14 April 2013 19:13:51 UTC+1, Marko Topolnik wrote: > > On Sunday, April 14, 2013 2:58:55 AM UTC+2, tyaakow wrote: > >> I'm reading Clojure Programming book by O'Reilly.. >> >> I came over an example of head retention. First example retains reference >>

Re: -> operator and monads

2013-04-17 Thread Matthew Hill
Yes, I said that it's *like *function composition in reverse order. And only if you apply the function returned by comp, as I did in my example. It's not to be taken too literally, but it is perhaps helpful for people coming from language that have function composition but no analogue to ->. On

Re: Hacker News, Clojure, and GSOC

2013-04-17 Thread Stuart Sierra
On Wednesday, April 17, 2013 3:27:59 AM UTC-4, da...@axiom-developer.org wrote: > > Does anyone know anyone associated with Hacker News? > Can we clue them into immutable data structures? > I know that Hacker News is mostly written by Paul Graham in Arc [1], his personal dialect of Lisp. As

Re: Warning: *retry-limit* not declared dynamic and thus is not dynamically rebindable

2013-04-17 Thread Marko Topolnik
Seems like old leiningen + new Clojure. You should upgrade to the latest leiningen, which is 2.1.3. On Wednesday, April 17, 2013 3:04:18 AM UTC+2, ljcp...@gmail.com wrote: > > Dear all, > > When I installed leiningen and clojure, I run command "lein repl", > then prompt some message like such

Hacker News, Clojure, and GSOC

2013-04-17 Thread Tim Daly
At least 2 of the people on this mailing list read Hacker News. One thing that really annoys me is the "Link Expired" message. If you wait more than a minute or two on a page, the NEXT button will fail to get the next news item. It seems to me that the Hacker News people need an education in usin