Re: What does Zach Tellman mean by "factored out for greater inlining joy"

2015-08-08 Thread Reid McKenzie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lawrence, This is just a theory, but in the interests of response time, the JVM uses a large number of heuristics to determine what optimizations will likely prove profitable. One of them is a budget for method size. I would guess that lifting this

What does Zach Tellman mean by "factored out for greater inlining joy"

2015-08-08 Thread Lawrence Krubner
I'm always interested in anything Zach Tellman does, though I don't always understand it. I see that he defines a function twice, via (let), of which he says "factored out for greater inlining joy". Does anyone know what he means by that? Can anyone suggest a reason why this was more conveni

Release of agent2 for 2-way messaging

2015-08-08 Thread William la Forge
Agent2 adds non-blocking 2-way messaging to Clojure agents: https://github.com/laforge49/agent2#readme Release: https://clojars.org/org.clojars.laforge49/agent2 Feedback appreciated--this library is the first Clojure code I've written. :-) Bill -- You received this message because you a

Re: (fail promise exception)

2015-08-08 Thread William la Forge
Pretty neat stuff! I'm sure you had as much fun with it as I have with agent2: https://github.com/laforge49/agent2#readme On Saturday, August 8, 2015 at 5:50:48 AM UTC-4, Atamert Ölçgen wrote: > > Hi William, > > Manifold deferreds can capture exceptions like future does. > > http://aleph.io/mani

Re: Strictly tagged clojure

2015-08-08 Thread Alan Malloy
That might be a nice feature, but it would be quite different from what we did. We kept our extension (almost) entirely additive, so that old code will have unchanged behavior in strict mode, and strict code will continue to compile and run correctly when compiled with a version of clojure with

Re: 0.1.0 core.async release?

2015-08-08 Thread Sean Corfield
I don't know if there are deficiencies with this approach, but if you make project.clj the 'original source of truth', and generate pom.xml via 'lein install', does the auto-generated pom.xml contain everything you would need? The Clojure build/release process is structured around the pom.xml —

why does this file watcher keep triggering?

2015-08-08 Thread Lawrence Krubner
I feel stupid, but I have not been able to track this down. The background is that I have Jenkins running on the server, and when triggered it pulls code from Github, compiles it, and then moves the final uberjar to the directory where I keep all the uberjars that run on this server. Then I ha

Re: Clojure beyond Java 6 ?

2015-08-08 Thread Colin Fleming
El Capitan (the next version of OSX) is going to be the last to support Apple's 1.6 JDK. But that still means that I'm going to be stuck supporting 1.6 until the vast majority of people have moved on from El Capitan - that's a long way off. On 8 August 2015 at 20:52, James Elliott wrote: > That

Re: My first Clojure program (and blog post about it)

2015-08-08 Thread kirby urner
On Thu, Aug 6, 2015 at 2:35 PM, Mark Engelberg wrote: > Right, so if you use protocols, you'd just have one name: > add, sub, norm, len, neg > and use for both vectors and quadrays, rather than a v-add / q-add, etc. > > I have done this vis-a-vis Quadrays and XYZrays as both are types of vector w

Re: Clojure Truck Factor

2015-08-08 Thread Leif
Hello, Guilherme. First, let me briefly answer your questions: a) yes b) no c) As Alex said, there is a large clojure community. Also, there are a significant number of companies using clojure for production software. I think that would ensure that clojure stayed alive (but maybe not thriving)

Re: Clojure beyond Java 6 ?

2015-08-08 Thread James Elliott
That sounds like a great project. And I know that in the medium to long term, even if Clojure continues to support Java 1.6, eventually Apple will stop supporting their legacy VM, so I just hope Afterglow will catch on enough by then to convince Cycling ’74 to update their MXJ bridge. ;^)

Re: 0.1.0 core.async release?

2015-08-08 Thread Kyle R. Burton
Sorry about the '0.1.0', I had indeed found that in the project.clj. Is there anything I can do to help w/the round of work? Regards, Kyle On Fri, Aug 7, 2015 at 5:12 PM, Alex Miller wrote: > I don't where the 0.1.0 number is coming from, but yes there are plans to > do a round of work on cor

Re: Clojure beyond Java 6 ?

2015-08-08 Thread Andrew Oberstar
I may end up in the same incomplete, unmaintained state as the other libraries you've seen, but I'm slowly starting on a Java interop library "cljj" (https://github.com/ike-tools/ike.cljj). - AutoCloseable - As James (Reeves) mentioned, clojure.core/with-open meets this need. - NIO2 - Standard Jav

Re: 0.1.0 core.async release?

2015-08-08 Thread Andy Fingerhut
Mike, Sean: I don't know if there are deficiencies with this approach, but if you make project.clj the 'original source of truth', and generate pom.xml via 'lein install', does the auto-generated pom.xml contain everything you would need? Andy On Sat, Aug 8, 2015 at 1:02 AM, Mikera wrote: > He

Re: Strictly tagged clojure

2015-08-08 Thread Shantanu Kumar
This is a very useful enhancement indeed. I wonder if it is feasible (or if it makes sense) to extend this to have type based overloading: (defn foo ([^TypeA a] ..) ([^TypeB b] ..)) Shantanu On Friday, 7 August 2015 11:40:42 UTC+5:30, Alex Miller wrote: > > Hey Reid, > > I've forwarded thi

Re: 0.1.0 core.async release?

2015-08-08 Thread Laurent PETIT
So it seems indeed, if I follow what Mike and Sean are exposing: - that the focus should not be placed first on the editors/IDEs, but on the tools themselves. Better interop between their formats. - people liking leiningen are just bothered that maven is used mostly by clojure github org. Those pe

Re: (fail promise exception)

2015-08-08 Thread Atamert Ölçgen
Hi William, Manifold deferreds can capture exceptions like future does. http://aleph.io/manifold/deferreds.html On Sat, Aug 8, 2015 at 12:44 AM, William la Forge wrote: > Still a newbie here, about to release my first Clojure project. But that > clojure blob will take some digging on my part

Re: 0.1.0 core.async release?

2015-08-08 Thread Laurent PETIT
Interesting! How do you get back the nrepl port that has been open by the nrepl server in an independent way ? (Currently for ccw I manage to have the process print an nrepl://server:port to stdout and waits for that) Le samedi 8 août 2015, Bozhidar Batsov a écrit : > On 8 August 2015 at 11:42,

Re: 0.1.0 core.async release?

2015-08-08 Thread Bozhidar Batsov
On 8 August 2015 at 11:42, Sean Corfield wrote: > - test-all: isn't there an existing support for launching tests in > clojure-maven-plugin-maven-plugins ? Naive question: in your current > workflow, you relaunch the Lein executable each time via an emacs command? > Or is it via an nrepl client s

Re: 0.1.0 core.async release?

2015-08-08 Thread Sean Corfield
- test-all: isn't there an existing support for launching tests in clojure-maven-plugin-maven-plugins ? Naive question: in your current workflow, you relaunch the Lein executable each time via an emacs command? Or is it via an nrepl client session connected to the same repl that emacs uses for y

Re: Size of Java serialized Clojure data structures

2015-08-08 Thread icamts
Hi Alan, I did the same experiment, with the same variable names too :) have a look at the github issue. Finally I discovered prevayler calls reset method on oos every time it writes to it. This is why the overhead is written every time. Klaus, prevayler author, says it is so to prevent leaks an

Re: 0.1.0 core.async release?

2015-08-08 Thread Mikera
Here's the situation: 1) I have projects that I manage and release using Maven (e.g. core.matrix). The pom.xml is the "master" for project configuration which I edit directly. 2) I'd like to have a project.clj as well, as a convenience for other developers (there is clearly a demand - people som

Re: 0.1.0 core.async release?

2015-08-08 Thread Laurent PETIT
Let's try to interpret this in terms of potentially missing parts in clojure-maven-plugin for being able to call it from emacs : - test-all: isn't there an existing support for launching tests in clojure-maven-plugin-maven-plugins ? Naive question: in your current workflow, you relaunch the Lein e

Re: 0.1.0 core.async release?

2015-08-08 Thread Sean Corfield
Well, from the p.o.v. of clojure.java.jdbc, I want to be able to run lein test-all and test against multiple Clojure versions easily. When I’m editing the code in Emacs, I want to be able to C-c M-j (jack in) and evaluate code and run tests. Overall the Leiningen-based experience is just easier

Re: 0.1.0 core.async release?

2015-08-08 Thread Laurent PETIT
Hello Mike, I'd like to understand why you feel the need to convert the pom to project.clj? Knowing those use cases better might help me think about what could be done in ccw, or in clojure-maven-plugin, to remove this need. Le samedi 8 août 2015, Mikera a écrit : > Has anyone found a good way