Caching an anon function

2014-10-31 Thread Phillip Lord
I want to pass a java method call to a function. So instead of this: (defn call-method [] (.getCanonicalName Object)) I have something like this... (defn indirect-call [f clazz] (f clazz)) (defn indirect-call-memfn [] (indirect-call (memfn ^java.lang.Class getCanonicalName) Object))

[Patch] Support for DOCTYPE when emitting XML (DXML-10)

2014-10-31 Thread Christian Egli
Hi Currently data.xml doesn't currently support the specification of doctypes when emitting XML (see http://dev.clojure.org/jira/browse/DXML-10). I created a patch to support this. Now it appears that data.xml is in the midst of a big refactoring so I'm wondering if and how I should attach the pa

Re: CCW bug [SEVERE]

2014-10-31 Thread Colin Yates
+1. When I first read that post I thought he was joking! On Tuesday, 28 October 2014 16:19:29 UTC, Marcus Blankenship wrote: > > Agreed. I've been amazed at how kind this group has been, despite your > attitude of disrespect toward them. > > On Tue, Oct 28, 2014 at 9:09 AM, Dylan Butman > wro

Re: Caching an anon function

2014-10-31 Thread Mars0i
Phil, I think your post accidentally ended up in the wrong place. I believe you intended to create a new thread. On Friday, October 31, 2014 4:55:39 AM UTC-5, Phillip Lord wrote: > > > > I want to pass a java method call to a function. So instead of this: > ... > -- You received this message

Re: Caching an anon function

2014-10-31 Thread Phillip Lord
Oh, dear, did I leave a trailing reference in my headers? Mars0i writes: > Phil, I think your post accidentally ended up in the wrong place. I > believe you intended to create a new thread. > > On Friday, October 31, 2014 4:55:39 AM UTC-5, Phillip Lord wrote: >> >> >> >> I want to pass a java

Software Engineer (Clojure) opportunity in Redwood City, CA

2014-10-31 Thread Grant Du Plooy
I don't know whether this group permits job posts, so this will be a one-time post. Yummly, a growing startup in the food tech revolution, has an exciting opportunity for a Software Engineer (Clojure) to work on various components of Yummly's service-oriented system that powers our website and

Re: [Patch] Support for DOCTYPE when emitting XML (DXML-10)

2014-10-31 Thread Andy Fingerhut
Christian, thanks for working on the enhancements. It might be easiest to wait until the dust settles on the other big changes in the works right now. You could also contact Herwig Hochleitner ( hhochleit...@gmail.com), who is developing those other data.xml changes, and ask him if perhaps the po

Re: Software Engineer (Clojure) opportunity in Redwood City, CA

2014-10-31 Thread Michael Klishin
 On 31 October 2014 at 17:13:15, Grant Du Plooy (gr...@tolfrey.com) wrote: > Yummly's iOS app is already the #1 recipe app, and our site receives > 15M monthly unique visitors. Details here:http://jobsco.re/1uhrReN Grant, Many potential candidates would greatly appreciate if you clarify your

On Testing

2014-10-31 Thread Ashton Kemerling
I tweeted recently that I thought that Clojure is super testable, and I was genuinely surprised about the number of people who disagreed with me.  There's been a lively discussion about what the best testing frameworks in clojure currently are, and what the built in solutions (clojure.test and

Re: [Patch] Support for DOCTYPE when emitting XML (DXML-10)

2014-10-31 Thread Herwig Hochleitner
Hi Christian, your patch looks, like it should be straightforward to port to my work, but it won't apply as is, since I moved the emitter into its own namespace. I can take care of that, as soon as your CA goes through. Of course, I'd also welcome a patch based on my branch ;-) cheers -- You re

Re: On Testing

2014-10-31 Thread Ashton Kemerling
I don't want to speak for others, I notified everyone involved on Twitter that I made this thread so they can voice their own complaints. On Fri, Oct 31, 2014 at 9:02 AM, László Török wrote: > "I tweeted recently that I thought that Clojure is super testable, and I > was genuinely surprised abo

Re: On Testing

2014-10-31 Thread László Török
"I tweeted recently that I thought that Clojure is super testable, and I was genuinely surprised about the number of people who disagreed with me." My 2c. Without explicitly citing those complaints, it will be difficult to conduct a meaningful debate. 2014-10-31 14:52 GMT+00:00 Ashton Kemerling

Re: Deterministic Randomness in Functional Clojure

2014-10-31 Thread Laurens Van Houtven
Hi, I too, am super interested in games in Clojure. My other background is cryptography, so I break out the crypto. I would say that you don’t really want a PRG, but you might want a PRF instead. (If that doesn’t mean anything to you, don’t worry, read on.) My favorite cryptographic hash func

Re: On Testing

2014-10-31 Thread Eli Naeher
On Fri, Oct 31, 2014 at 9:52 AM, Ashton Kemerling wrote: > It's my opinion that these two libraries are largely complete aside from > some human interface improvements (quality of output for example), but > clearly not everyone agrees with me. > Hi Ashton, Check out https://github.com/pjstadig

Re: On Testing

2014-10-31 Thread Jessica Kerr
My top wish it more readable output from test.check when running within clojure.test In particular, I want to know the value of each generated parameter at the first failure, and at the simplest failure. Currently that prints as part of a map, but if empty-string is generated, that does not sho

Re: On Testing

2014-10-31 Thread Lucas Bradstreet
I totally agree about pr-str in test.check. Quite often I want to copy and paste the failure into a repl and play around, but need to re-add missing quotation marks or quote lists. > On 31 Oct 2014, at 22:05, Jessica Kerr wrote: > > My top wish it more readable output from test.check when run

Re: Software Engineer (Clojure) opportunity in Redwood City, CA

2014-10-31 Thread Grant Du Plooy
Hi Michael, Good point, thank you for mentioning it. Unfortunately we are not hiring remote workers at this time. This role is fulltime on site in Redwood City, California. Regards, Grant On Fri, Oct 31, 2014 at 7:23 AM, Michael Klishin < michael.s.klis...@gmail.com> wrote: > On 31 October 201

Re: Clojure Survey 2014 - Tag Clouds

2014-10-31 Thread John Gabriele
Neat! I notice that in the results for "name one language feature you'd like to see added", the following items show up separately, though should probably be combined: StartupTime, FasterStartup, FastStartup, StartTime, CompileTime. Similarly, in "most glaring weakness", lumped together are St

Re: extending custom data types to clojure core abstractions

2014-10-31 Thread Daniel
Brian, this may help: https://github.com/ztellman/collection-check On Tuesday, October 28, 2014 2:24:48 PM UTC-5, Brian Craft wrote: > > Following up on the thread about the massive overhead of String, I tried > writing a string collection type that stores strings as bytes, converting > to Strin

Re: extending custom data types to clojure core abstractions

2014-10-31 Thread Brian Craft
Nice, thanks! On Friday, October 31, 2014 9:59:26 AM UTC-7, Daniel wrote: > > Brian, this may help: https://github.com/ztellman/collection-check > > On Tuesday, October 28, 2014 2:24:48 PM UTC-5, Brian Craft wrote: >> >> Following up on the thread about the massive overhead of String, I tried >>

CCW bug [SEVERE]

2014-10-31 Thread Laurent PETIT
Hello, I'm the main CCW developer. I have double checked the source code, and can confirm that the save mechanism is handled by Eclipse. So one can expect it to be as stable as every other save action performed in the Eclipse IDE. There are a number of listeners that are triggered after the Save

Re: Clojure Survey 2014 - Tag Clouds

2014-10-31 Thread juan.facorro
*Plinio: *Thanks! *John: *Hi! I noticed that as well but I couldn't figure out an approach that would unify those terms, other than going through each of them and identifying the ones that are equivalent. Maybe grouping by the distance between any two terms? Or maybe if the ratio between the d

io/writer + map/recur

2014-10-31 Thread Sam Raker
I'm writing some stuff to interact with the Twitter API. I want to be able to write tweets (as JSON) to a file, so I can, e.g., test things without connecting to the API. I've proxied the LinkedBlockingQueue that Twitter's HBC library uses to use an agent, so ideally I want to be able to write t

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-31 Thread Michael Blume
Picking up the variadic arguments discussion, it seems that in a simple definition like (fn [& args] (apply f arg1 args)) One could conceivably put some sort of preprocessing smarts into the fn macro that notices that a) this is a variadic arglist b) the variadic arg (args) is a symbol, not so

Re: CCW bug [SEVERE]

2014-10-31 Thread Fluid Dynamics
On Friday, October 31, 2014 2:24:04 PM UTC-4, Laurent PETIT wrote: > > Also, if you can attach the workspace's .metadata/.log file, I can take a > look at it. > I have no idea how to reproduce it, which is part of the problem: I don't know what to avoid doing, in order to ensure it doesn't happ

Re: io/writer + map/recur

2014-10-31 Thread Brian Craft
Your first implementation probably failed because map is lazy, so none of the '.write' calls happened during the with-open block. Try doseq. On Friday, October 31, 2014 1:08:01 PM UTC-7, Sam Raker wrote: > > I'm writing some stuff to interact with the Twitter API. I want to be able > to write

Re: CCW bug [SEVERE]

2014-10-31 Thread Luc Préfontaine
Just curious, how can you expect a fix if you do not provide any information that could support a serious investigation ? I read the eclipse log file from time to time and guessing which error is relevant or not is an educated guess at best except if you are deep in Eclipse plugins coding. Creat

Re: On Testing

2014-10-31 Thread John Louis Del Rosario
Would be great if humane-test-output was part of clojure.test. Would make it easier for beginners to find it. On Friday, October 31, 2014 11:19:11 PM UTC+8, Eli Naeher wrote: > > On Fri, Oct 31, 2014 at 9:52 AM, Ashton Kemerling > wrote: > > >> It's my opinion that these two libraries are lar

Re: On Testing

2014-10-31 Thread Andrew Rosa
+1 to something like humane-test-output being part of core library. There is value for the community to have some foundation library share across our test frameworks? Something like `test.runners`, to encapsulate error reporting and organization? Bit crazy, I know, but the idea come after seein

Re: [ANN] outfn - A macro for clearer, more declarative functions (that are actually macros).

2014-10-31 Thread Diogo Almeida
Thanks for checking it out! (: That is an unfortunately great point about implicits, I apologize! It's been in my head so long that I didn't realize that I never explained them. My concisest way of explaining implicits would be automatic glue code generation. You already have these functions an

Re: CCW bug [SEVERE]

2014-10-31 Thread Fluid Dynamics
On Friday, October 31, 2014 6:23:42 PM UTC-4, Luc wrote: > > Just curious, how can you expect a fix if you do not provide any > information that > could support a serious investigation ? > > I read the eclipse log file from time to time and guessing which error is > relevant or not is an educat

Re: CCW bug [SEVERE]

2014-10-31 Thread Ben Wolfson
On Fri, Oct 31, 2014 at 8:30 PM, Fluid Dynamics wrote: > > It's not *my* fault the log file doesn't contain anything unusual between > before the hang happened and after recovery. If CCW didn't log anything > that helps indicate what was different or unusual on that occasion of > saving, then the

Re: CCW bug [SEVERE]

2014-10-31 Thread Luc Prefontaine
I'll repeat myself : '...guessing which error is relevant or not is an educated guess at best except if you are deep in Eclipse plugins coding.' Laurent stated clearly that saving a file triggers a number of things in several plugins. There could be suspicious messages in the log that have not

Re: CCW bug [SEVERE]

2014-10-31 Thread Fluid Dynamics
On Friday, October 31, 2014 11:44:49 PM UTC-4, Luc wrote: > > I'll repeat myself : > > '...guessing which error is > relevant or not is an educated guess at best except if you are deep in > Eclipse plugins coding.' > > Laurent stated clearly that saving > a file triggers a number of things >

Re: CCW bug [SEVERE]

2014-10-31 Thread Dylan Butman
Is it hard to actually send the log? Are you purposefully uncooperative to people trying to help? > On Oct 31, 2014, at 11:51 PM, Fluid Dynamics wrote: > >> On Friday, October 31, 2014 11:44:49 PM UTC-4, Luc wrote: >> I'll repeat myself : >> >> '...guessing which error is >> relevant or no

Re: Deterministic Randomness in Functional Clojure

2014-10-31 Thread Isaac Karth
Thanks for all of the feedback so far, it's been helpful. Mars0i, keeping an RNG for each thing that needs to have an independent random state seems like a good idea for a fallback, and the suggestion of using a different RNG is a good one. It's also helpful to know other people have dealt with

Re: On Testing

2014-10-31 Thread Ashton Kemerling
That's an excellent idea, currently at least test.check hacks on top of clojure.test by using macros that emit clojure.test tests.  Beyond that it seems that the #1 wish is better output. I don't think that ought to be very hard for us to pull off as a community. On Fri, Oct 31, 2014 at 6:56 P

Re: CCW bug [SEVERE]

2014-10-31 Thread Fluid Dynamics
On Saturday, November 1, 2014 12:09:33 AM UTC-4, Dylan Butman wrote: > > Is it hard to actually send the log? Are you purposefully uncooperative to > people trying to help? > My inspection of the log indicates that the amount of information (namespace names, other things) about what I'm working