Re: Leiningen on CLR

2013-06-03 Thread Aaron
Just to chime in - my nleiningen prototype has a repl and a compile task, but is basically just a prototype or proof of concept. It more or less works (i.e. can download dependencies & compile namespaces), but it's very rough at this point... Hopefully soon we can put some more work into it. On

Re: asm-based clojure yet?

2013-06-03 Thread Aaron
If you use ngen, it won't be so bad: http://clojureclr.blogspot.com/2011/12/using-ngen-to-improve-clojureclr.html On Friday, May 24, 2013 6:29:24 AM UTC-4, atkaaz wrote: > > making a note that (on my system, win7 64bit btw) clojureclr startup time > is about (at least)10 seconds. > tested both C

Re: asm-based clojure yet?

2013-06-03 Thread Aaron
I'll throw in my own work in progress as a low-footprint target of Clojure: https://github.com/aaronc/c-in-clj. It's not an attempt to compile Clojure code to C, but rather a way to write C code efficiently from Clojure that can be dynamically invoked from Clojure. On Friday, May 17, 2013 7:49:

Re: Clojure CLR Experiences

2014-11-11 Thread Aaron
Hi Adrian, I'll share some of my experiences. * Is Clojure CLR production ready? Yes, I have been using it in production for about 2 years now. * Do its version numbers correspond to the core Clojure version numbers? (would it be fair to say the Java version is the core version) It's fair to s

Re: [ANN] freactive - high performance, pure Clojurescript, declarative DOM library

2014-11-17 Thread Aaron
On Monday, November 17, 2014 2:42:38 PM UTC-5, Aaron wrote: > > On Monday, November 17, 2014 2:27:17 PM UTC-5, Ruslan Prokopchuk wrote: > > I've played a little bit with freactive today, and investigated this > idea with using polymer components — it works! I'm unsur

Re: [ANN] freactive - high performance, pure Clojurescript, declarative DOM library

2014-11-22 Thread Aaron
> Regarding diffing - in terms of rerendering whole subtrees every time > reactive will not perform as well as react even if diffing is implemented - > it is not designed that way. > I should probably correct this - I think i was a bit tired when I wrote it and not as impressed with diffing p

Re: [ANN] freactive - high performance, pure Clojurescript, declarative DOM library

2014-11-22 Thread Aaron
Also, after discussions with several people at Clojure/conj, I see that it is necessary to provide some more documentation about how the bindings (components) and data structures in this library work differently from existing solutions (especially React) and what the overall vision is. Here are

Re: [ClojureScript] Re: [ANN] freactive - high performance, pure Clojurescript, declarative DOM library

2014-11-24 Thread Aaron
go up of the abstraction > ladder — somebody prefer to think about ideal abstraction in advance and > then implement it carefully. > > At the moment I can't say if my problems with using freactive are problems > of implementation or spec. Need more time to play with. > >

Re: Recursive clojure.spec doesn't work

2016-10-05 Thread Aaron
I was playing around with something similar to the OP and encountered this same problem using s/spec recursively. Yes, I get it that there are work-arounds, but it seems like this is a legitimate issue. s/spec as you say resolves at definition time, but the rest of the combinators (s/alt, s/and

Re: Recursive clojure.spec doesn't work

2016-10-06 Thread Aaron
Well I'm referring to the OP's original example: (s/def :html/element > (s/cat >:tag keyword? >:attrs map? >:children (s/* (s/alt :element (s/spec :html/element) > :string string? > > The exception says: "Unable to resolve spec: :html/element". > On Thu

Re: Natively Compiled Clojure

2013-02-12 Thread Aaron
I have been working on a library for ClojureCLR that actually uses a Clojure DSL to generate, compile, and load C code live into a running REPL. It's called c-in-clj (see https://github.com/aaronc/c-in-clj). It works quite well for me so far, but is still in what I would call Alpha stage. Ev

Clojure job opportunity near Princeton, NJ

2013-02-12 Thread Aaron
applications. Because of the need to spend time in the lab interfacing with equipment, the developer would need to be local to NJ area. Please send me a private post on Google+ if you're interested or have any questions. Aaron -- -- You received this message because you are subscribed to the G

Re: ANN: lein-clr 0.2.0 for ClojureCLR

2013-02-28 Thread Aaron
Hi David, I finally got around to creating patches for my commits and opened these two JIRA issues on them: http://dev.clojure.org/jira/browse/CLJCLR-7 http://dev.clojure.org/jira/browse/CLJCLR-8 I have more stuff, but let's start with this. Aaron On Monday, December 17, 2012 4:14:16 P

Re: ANN: lein-clr 0.2.0 for ClojureCLR

2013-02-28 Thread Aaron
Rainer, I've pushed some updates to nleiningen. Be sure you do a git submodule update first. There is now a Bootstrap project that you can build from VS 2010 - enable Nuget package restore on it first and then try building. There is a private nuget package for Clojure.dll that it pulls. The

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread Aaron
I'm working on a Clojure DSL for generating C code called c-in-clj: https://github.com/aaronc/c-in-clj. Right now it only works on ClojureCLR, but could be ported to Clojure JVM if someone desired. The API should be considered unstable but I have been using to generate real production code. T

Re: ANN: no.disassemble, a runtime bytecode disassembler

2013-04-04 Thread Aaron
Cool... I wrote a similar little disassembler for ClojureCLR a few weeks ago: https://github.com/aaronc/ClojureClrEx/blob/master/src/clojure/clr/ildasm.clj It uses Mono.Reflection to interpret the byte codes. On Saturday, March 30, 2013 9:06:25 AM UTC-4, Gary Trakhman wrote: > > I made a littl

Weird issue with :require in clojurescript

2012-03-05 Thread Aaron
It seems that when I require two namespaces in a namespace definition, the clojurescript compiler misses the first require. I have a module that has a ns definition more or less like the following: (ns my-namespace (:require [lib1 :as l1]) (:require [lib2 :as l2])) Using clojurescript master (

Re: Weird issue with :require in clojurescript

2012-03-05 Thread Aaron
; Yes, it is incorrect, in both Clojure and ClojureScript, to repeat the > (:require ...) or (:use ...) forms in an `ns` declaration. > -S > > > On Monday, March 5, 2012 12:26:03 PM UTC-5, Aaron wrote: >> >> It seems that when I require two namespaces in a namespace defini

ClojureScript error messages

2012-03-18 Thread Aaron
Is there any reason why ClojureScript does not return a source file and line number when there are reader errors? All I get is a long stack trace that only has line numbers for the clojure/clojurescript code that threw - not very helpful. Looking at the source for cljs.compiler/compile-file* a

Re: ClojureScript error messages

2012-03-19 Thread Aaron
I pushed the patch to my fork on github in this commit: https://github.com/aaronc/clojurescript/commit/3193ed6e27061765782da32d36a63b0f7630f5e9 Should I submit a pull request? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, se

[ANN] Korma SQL ported to ClojureCLR

2012-04-03 Thread Aaron
I needed something quick like Korma for my .NET work, so I ported it to ClojureCLR. The code is here: https://github.com/aaronc/Korma.net. So far only MySql is supported. Right now, there is nothing like leiningen for .NET so no build and distribution yet. Also, most of the code for the JVM

Re: [ANN] Korma SQL ported to ClojureCLR

2012-04-06 Thread Aaron
I think it's a goal to get Clojure.dll on nuget soon, but it hasn't happened yet. Hopefully soon. Still, we'll need a good build system for ClojureCLR that does everything that lein does. But, I don't think that should be that complicated if nuget is used as a basis. On Wednesday, April 4, 2

Re: [ANN] Korma SQL ported to ClojureCLR

2012-04-10 Thread Aaron
e build tool and it could probably be done in such a way that it plays nice with vsClojure projects, mixed C#/Clojure projects, and possibly used standalone. On Saturday, April 7, 2012 11:22:08 AM UTC-4, dmiller wrote: > > > > On Friday, April 6, 2012 6:23:43 PM UTC-5, Aaron wr

Re: Supporting platform specific code

2012-04-13 Thread Aaron
ach platform specific project file. These types of approaches might be simpler and more maintainable in the long run. Aaron On Thursday, April 12, 2012 12:56:59 PM UTC-4, tbc++ wrote: > > I've been thinking lately how to seamlessly merge clojure-py and > clojure-jvm code in the same

ClojureScript Optimization

2012-05-25 Thread Aaron
I've noticed that the size of my compiled .js file is well over 100k even with advanced optimizations turned on. I noticed I was using an older revision of the clojurescript compiler so I just updated to the latest master commit thinking that maybe that would help. Now my generated javascript

Re: Where is Clojure CLR ?

2012-09-06 Thread Aaron
I can personally attest to the quality of the ClojureCLR compiler using it on a daily basis for production code. I have never had any problems with stability and I have found the code gen to be of quite high quality (via inspection with Reflector). It is the build and development environment w

Re: ANN: lein-clr 0.2.0 for ClojureCLR

2012-12-15 Thread Aaron
Cool. I'm just seeing this now. I actually spent some time a while back getting a very simple nleiningen working in ClojureCLR. I had nuget downloads working and also the ability to AOT compile namespaces and merge them into a single DLL. It's not fully ready for prime time yet though, in p

Re: Running out of memory when using filter?

2008-12-06 Thread Aaron Cohen
Would it be possible to make anonymous fns have a "toString" which incorporates the file and line number they're defined on? On Sat, Dec 6, 2008 at 9:37 AM, MikeM <[EMAIL PROTECTED]> wrote: > > A while back I posted an experimental patch to capture each form that > is compiled into a fn. This mig

Why allow both ({:map 'example} :map) and (:map {:map 'example})?

2008-12-11 Thread Aaron Cohen
Isn't it just asking for confusion? I really like that maps are functions of their keys though. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegro

Re: 12 Days of Christmas in idiomatic(?) clojure

2008-12-29 Thread Aaron Brooks
On Dec 24, 4:20 pm, Mibu wrote: > I'd write it this way: > (apply + (mapcat #(range 1 %) (range 2 14))) > > I think idiomatically I would have written it with (partial range 1) > instead of #(range 1 %), but I prefer compact forms. In Clojure (anybody correct me if I'm wrong) I think it's prefer

Re: Designing a Performance Vector Math library in Clojure.

2009-01-13 Thread Aaron Cohen
> user=> (defstruct desilu :fred :ricky) > #'user/desilu > user=> (def x (map (fn [n] > (struct-map desilu >:fred n >:ricky 2 >:lucy 3 >:ethel 4)) > (range 100))) > #'user/x > user=> (time (reduce (fn [n y

Re: Fully lazy sequences are coming - feedback wanted!

2009-02-15 Thread Aaron Scott
I agree with the op. While the language is still relatively young please break things so they sit better in the long term. Accurate and descriptive names are totally valueable, and I'm pretty handy with find/replace on the editor anyway :p Aaron On Feb 15, 2009, at 10:43 AM, Cupp

Re: Fully lazy sequences are coming - feedback wanted!

2009-02-16 Thread Aaron Scott
How about e-rest, for the empty set returning version? Perry Trolard wrote: If it's the case that rest will almost exclusively appear in the context of constructing lazy-seqs (lazy-seq (cons [something] (rest [something])) & next will appear all over, it makes sense to me to sacrif

Re: categorizing forms

2009-03-08 Thread Aaron Brooks
early see them as a list, perhaps commas (or the underlining provided by linking) or background changes would help to separate the function names. In any case, you've provided a good reference that I'm sure will be handy to many people. Thanks! -Aaron On Sun, Mar 8, 2009 at 8:30 PM

Re: "08" and "09" are invalid numbers, but "01" through "07" are fine?

2009-03-15 Thread Aaron Brooks
already known and quite readable. Besides, Clojure tells me it /really/ /wants/ to... ;-) -Aaron On Fri, Mar 13, 2009 at 9:19 AM, David Sletten wrote: > > > On Mar 13, 2009, at 3:07 AM, Michael Wood wrote: >> >> This is pretty standard behaviour. >> >> On the oth

Re: March 20th 2009 Rich Hickey Appreciation Day!

2009-03-20 Thread Aaron Brooks
Here, here! +1 +1 +1 ... !! On Fri, Mar 20, 2009 at 2:26 PM, Rayne wrote: > > I Anthony Simpson, with the support of fellow Clojurists hereby > declare March 20th, the first day of spring, Rich Hickey appreciation > day! > > Rich Hickey has certainly done a lot for us, making this wonderful > l

Re: User contributed packages (Cabel, CPAN, etc)

2009-03-22 Thread Aaron Cohen
ted with java web start. .jnlp files also provide much of the same version and authoritative source information. -- Aaron On Sun, Mar 22, 2009 at 10:59 PM, Phil Hagelberg wrote: > > Bradbev writes: > > > I feel that the next big growth phase for Clojure will be in the user > &

Re: I need help tracking down a performance problem.

2009-03-31 Thread Aaron Cohen
I'm sorry if I missed you mentioning it, but have you tried running your code with (set! *warn-on-reflection* true) in effect? -- Aaron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" gr

Re: I need help tracking down a performance problem.

2009-03-31 Thread Aaron Cohen
On Tue, Mar 31, 2009 at 1:24 PM, Aaron Cohen wrote: > I'm sorry if I missed you mentioning it, but have you tried running > your code with (set! *warn-on-reflection* true) in effect? > Ugh, I should have looked at your code before I sent that. There it is on line 1

Is Clojure production ready?

2009-04-15 Thread Aaron Feng
stion for us is: Is Clojure worth our investment in the current state? What are the possible risks? Also, if anyone has any thoughts on hiring Clojure people, it would be greatly appreciated. Thanks, Aaron --~--~-~--~~~---~--~~ You received this message becaus

Re: Is Clojure production ready?

2009-04-17 Thread Aaron Feng
and 1.0 is only a perception, but unfortunately it's an important one for us. If anyone is interested in possibly working on a large scale concurrent financial project in clojure, and don't mind living in Philadelphia, feel free to drop me an email with resume.

clojure.contrib.pprint.PrettyWriter ClassNotFoundException

2009-05-09 Thread Aaron Feng
When I tried to import PrettyWriter from clojure-contrib I'm getting java.lang.ClassNotFoundException. Am I missing something? Thanks, Aaron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure"

Re: Contributing tests

2009-06-04 Thread Aaron Cohen
It's a great idea, and already in progress. ;) http://code.google.com/p/clojure-contrib/source/browse/#svn/trunk/src/clojure/contrib/test_clojure -- Aaron On Thu, Jun 4, 2009 at 12:31 PM, Richard Newman wrote: > > One of the things that occurred to me at last night's Meetup

Re: EDT interaction

2009-06-13 Thread Aaron Cohen
Isn't this a case of wrapping a Java API needlessly? What's so bad about: (SwingUtilities/invokeLater my-func) ? -- Aaron On Sat, Jun 13, 2009 at 5:59 PM, Kevin Downey wrote: > > On Sat, Jun 13, 2009 at 2:55 PM, Meikel Brandmeyer wrote: >> Hi, >> >> Am

Re: Poll for a new name for clojure eclipse plugin 'clojure-dev'

2009-06-23 Thread Aaron Cohen
Isn't there already, http://www.eclipse.org/corona/ ? Sorry to be a downer, it's a cool name. How about #(eclipse) ? :) -- Aaron On Tue, Jun 23, 2009 at 9:25 PM, Alvaro Vilanova Vidal wrote: > Corona rocks! It also means crown in spanish. > > Sent from my android :P >

Re: another binding issue?

2009-07-14 Thread Aaron Cohen
I'm a little unclear on why this happens still. #(= % a) is a closure, correct? My understanding is that this should capture the environment when it is defined. Why does "the environment" not include the current bindings? -- Aaron On Tue, Jul 14, 2009 at 4:03 PM, Mark Engelberg

Re: Performance question (newbie)

2009-07-15 Thread Aaron Cohen
fast. A pretty good presentation about this from JavaONE can be found here: http://www.azulsystems.com/events/javaone_2009/session/2009_J1_Benchmark.pdf -- Aaron On Wed, Jul 15, 2009 at 10:01 AM, Adrian Cuthbertson < adrian.cuthbert...@gmail.com> wrote: > > It's also worth searc

Re: Clojure performance tests and clojure a little slower than Java

2009-07-27 Thread Aaron Cohen
.com/groups/search?q=group:clojure+performance&qt_s=Search+Groups <http://groups.google.com/groups/search?q=group:clojure+performance&qt_s=Search+Groups> -- Aaron On Mon, Jul 27, 2009 at 1:06 PM, BerlinBrown wrote: > > I was coming up with some performance tests for Clojure, goin

Thread local data structures

2009-07-27 Thread Aaron Cohen
d use that knowledge to replace a Persistent data structure with a mutable one as an optimization. Any idea where the best place to start looking into this would be? -- Aaron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Clojure performance tests and clojure a little slower than Java

2009-07-27 Thread Aaron Cohen
ore examples, please just browse the first google link I gave you. -- Aaron On Mon, Jul 27, 2009 at 2:00 PM, Berlin Brown wrote: > > > > On Jul 27, 1:57 pm, Berlin Brown wrote: > > "One thing you need to do is define what you mean exactly when you say > > "

Re: Thread local data structures

2009-07-27 Thread Aaron Cohen
, you know for instance that "let" local variables can only escape from the function in a few ways so they could often be mutable/optimized. -- Aaron On Mon, Jul 27, 2009 at 4:43 PM, Stuart Sierra wrote: > > That sounds really, really hard. Because even if the structure is >

Re: Possible bug report

2009-07-30 Thread Aaron Cohen
At my day job, we've always used a custom classloader to get around that asymmetry. -- Aaron On Thu, Jul 30, 2009 at 9:51 AM, Rich Hickey wrote: > > > > On Jul 29, 6:09 pm, Jason Wolfe wrote: > > Is this a bug? > > > > user> (eval `(make-array ~

Re: Idiomatic parsing of objects from several lines of a text file

2009-07-30 Thread Aaron Cohen
What is this convention you are using with the -> ? Are you coming from a C or C++ background or is this something lispy I haven't seen before? -- Aaron On Thu, Jul 30, 2009 at 7:56 PM, Richard Newman wrote: > > On 30 Jul 2009, at 2:26 PM, David Plumpton wrote: > > >

Re: Idiomatic parsing of objects from several lines of a text file

2009-07-31 Thread Aaron Cohen
ng. Good luck with the contest, -- Aaron On Thu, Jul 30, 2009 at 9:37 PM, Richard Newman wrote: > > > What is this convention you are using with the -> ? > > > > Are you coming from a C or C++ background or is this something lispy > > I haven't seen before? &g

Re: Trampolined backtracking maze solver

2009-08-03 Thread Aaron Cohen
On Sun, Aug 2, 2009 at 3:28 PM, John Harrop wrote: > On Sun, Aug 2, 2009 at 5:48 AM, James Sofra wrote: > >> >> (defn get-tile [[x y] maze] >> (if (tile-in-bounds? [x y] maze) >>((maze y) x))) > > > (defn get-tile [[x y] maze] > (get (get maze y) x)) > While you're at it, why not: (get-i

Re: Pure-functional N-body benchmark implementation

2009-08-11 Thread Aaron Cohen
On Tue, Aug 11, 2009 at 5:26 PM, Andy Fingerhut wrote: > > In case it matters to anyone, my intent in creating these Clojure > programs to compare their speed to others isn't to try to rip into > Clojure, or start arguments.  It is for me to get my feet wet with > Clojure, and perhaps produce some

Re: Pure-functional N-body benchmark implementation

2009-08-11 Thread Aaron Cohen
On Tue, Aug 11, 2009 at 8:13 PM, Andy Fingerhut wrote: > > On Aug 11, 2:36 pm, Aaron Cohen wrote: >> At that point is it possible you're just paying the price of >> PersistentVector for the "bodies" vector?  Does it improve much if you >> change bodies to

Re: Clojure, Java JIT, and inlining

2009-08-12 Thread Aaron Cohen
On Wed, Aug 12, 2009 at 3:59 PM, Richard Newman wrote: > >> Is there some reason that the Java JIT is not doing this, with the >> original code using defn, as fast as it works when using defmacro? > > The macro expands into bytecode within the same Java method, rather > than a method invocation. S

Re: Clojure, Java JIT, and inlining

2009-08-12 Thread Aaron Cohen
On Wed, Aug 12, 2009 at 4:24 PM, Richard Newman wrote: > >> I may be wrong, but doesn't a typical function invocation involve >> dereferencing the Var holding the object that implements "IFn" and >> calling invoke?  It seems pretty intuitive to me that this would be >> difficult to inline by the J

Re: Pure-functional N-body benchmark implementation

2009-08-12 Thread Aaron Cohen
I'm getting a very significant performance improvement by adding a couple of JVM parameters (using jdk 1.6.0_14). They are: -XX:+DoEscapeAnalysis -XX:+UseBiasedLocking (I think the -server flag is required for those two flags to do anything). My runtime with n = 5,000,000 goes from ~7.5 seconds

Re: Pure-functional N-body benchmark implementation

2009-08-12 Thread Aaron Cohen
On Wed, Aug 12, 2009 at 4:49 PM, Aaron Cohen wrote: > I'm getting a very significant performance improvement by adding a > couple of JVM parameters (using jdk 1.6.0_14).  They are: > -XX:+DoEscapeAnalysis > -XX:+UseBiasedLocking (I think the -server flag is required for those

Re: Request for Discussion: user created reader macros

2009-08-13 Thread Aaron Cohen
On Thu, Aug 13, 2009 at 5:14 PM, Meikel Brandmeyer wrote: > Hi, > > Am 13.08.2009 um 22:30 schrieb Brian Hurt: > >> Now, I can certainly see a lot of potiential downsides to this. >>  Redefining what #{} or #() means is just the start. > > I think, this is the reason Rich is not very positive for

Re: Request for Discussion: user created reader macros

2009-08-13 Thread Aaron Cohen
On Thu, Aug 13, 2009 at 5:23 PM, Aaron Cohen wrote: > On Thu, Aug 13, 2009 at 5:14 PM, Meikel Brandmeyer wrote: >> Hi, >> >> Am 13.08.2009 um 22:30 schrieb Brian Hurt: >> >>> Now, I can certainly see a lot of potiential downsides to this. >>>  Redef

Re: Pure-functional N-body benchmark implementation

2009-08-17 Thread Aaron Cohen
On Mon, Aug 17, 2009 at 7:45 PM, Mark Engelberg wrote: > > On Mon, Aug 17, 2009 at 9:25 AM, Bradbev wrote: >> I found >> another 2-3x speed up by coercing the indexes with (int x), ie >> (defmacro mass [p] `(double (aget ~p (int 0 > > Which makes me wonder why aget doesn't automatically coerce

Re: Pure-functional N-body benchmark implementation

2009-08-18 Thread Aaron Cohen
ate 3x speedup something is happening. What JVM > are you running & what settings?  I'll compile the java version soon > so I can do a direct compare on a single machine. I take it that your > setup is showing clojure 3x slower than the java version? > > Brad > I don'

Re: Pure-functional N-body benchmark implementation

2009-08-18 Thread Aaron Cohen
On Tue, Aug 18, 2009 at 3:32 PM, Aaron Cohen wrote: > On Tue, Aug 18, 2009 at 11:28 AM, Brad > Beveridge wrote: >> >> On 2009-08-17, at 8:58 PM, FFT wrote: >> >>> On Mon, Aug 17, 2009 at 9:25 AM, Bradbev >>> wrote: >>>> >>>> A

Re: Newbie - the method I cannot call

2009-08-25 Thread Aaron Cohen
Isn't the audio part of the JDK something that Sun wasn't able to open source because of licensing issues? I recall that openjdk had issues in that area initially at least, I haven't looked recently. -- Aaron --~--~-~--~~~---~--~~ You receiv

Re: ANN: clojure-contrib automatic documentation system "complete"

2009-08-25 Thread Aaron Cohen
Looks really nice Tom! Wouldn't it be better to make the words "API documentation" the link rather than adding the extra valueless word "here"? Alternatively, you could turn the namespace titles into links and get rid of the line words "API documentation here" entirely. That might also help goo

Re: Searching the group archives

2009-09-02 Thread Aaron Brooks
Rich, Chouser or other Clojure group admin, It may be helpful to put the search link in the currently unused welcome message section of the group "Home" page. -Aaron On Sat, Aug 29, 2009 at 3:34 PM, Daniel wrote: > > On Sun, Aug 30, 2009 at 1:54 AM, Rich Hickey wrote:

Re: Space usage of lazy seqs

2009-12-03 Thread Aaron Cohen
hough, I've found it to make a pretty hefty difference to a lot of clojure code, it's quite good at reducing the number of "useless" allocations clojure needs to do. --Aaron -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Sequence to Vector

2010-01-03 Thread Aaron Cohen
What JVM 6 sub-version are you using? Does it make any difference if you specify -XX:+DoEscapeAnalysis at the command line? Various JVM 6 sub-versions enable and disable it by default and it can make a pretty hefty difference if it isn't enabled. -- Aaron On Sun, Jan 3, 2010 at 4:00 PM,

Interesting Clojure job in New York

2010-01-07 Thread Aaron Harnly
three-to-six-month) project calling for an excellent developer. (Of course there's the possibility of staying on for more.) Please contact me if you find such things interesting and would like to tell or hear more. ~aaron Aaron Harnly Wireless Generation http://www.wirelessgeneration.com

Rich's "Clojure in Clojure" talk at the NYC group

2010-02-02 Thread Aaron Cohen
Hi guys,   I was watching the "Clojure in Clojure" talk that I saw linked from the "disclojure" blog (very useful to me by the way, thank you nameless to me person who does it -- Aaron -- You received this message because you are subscribed to the Google Groups "Clojur

Re: Rich's "Clojure in Clojure" talk at the NYC group

2010-02-02 Thread Aaron Cohen
This email was cut-off from what I intended to send, sorry. What I meant to say, was that, unfortunately the video cuts off after 10 minutes. Are the slides for this talk available somewhere? Thanks, Aaron On Feb 2, 3:44 pm, Aaron Cohen wrote: > Hi guys, >   I was watching the "

Re: Can I GPL my Clojure project?

2010-03-29 Thread Aaron Cohen
patibleLibs I also think that it's possible that "clojure.jar" might fall under the "System Libraries" exception that is built into both GPLv2 and GPLv3, but I'm no lawyer. I doubt clojure-contrib would. -- Aaron On Mon, Mar 29, 2010 at 5:24 PM, Phil Hagelberg wrote:

Re: New clojure support in Polyglot Maven

2010-04-08 Thread Aaron Cohen
On Thu, Apr 8, 2010 at 4:57 PM, Armando Blancas wrote: >> Looks cool. This should help the XML-allergic :) > > Though I don't like it, the XML is the least of my problems. Don't > know what to do or even where to start. I want to do the following in > maven or pmaven, but anything beyond their Hel

Re: Bug - Clojure -e disables stdin

2010-04-16 Thread Aaron Cohen
ake a "lein repl" in clojure rather than in the shell script. One way to fix it would be to replace it like in this gist: http://gist.github.com/368018. -- Aaron On Sun, Mar 28, 2010 at 9:35 PM, Asim Jalis wrote: > Is this a bug? > > echo "hi" | java -cp $HOME/jars/

Error on master with OS X

2010-05-07 Thread Sam Aaron
Hey there, I'm running with the latest version of overtone with Fabian's new OS X SC binaries (yey). However, I'm getting some strange errors on boot. Can somebody help me work out what's going wrong? Sam Clojure 1.1.0 user=> (use 'overtone.live) (boot)

Re: Error on master with OS X

2010-05-07 Thread Sam Aaron
oops, I fired this off too quickly to the wrong group :-) Sorry! Sam --- http://sam.aaron.name On 6 May 2010, at 6.04 pm, Sam Aaron wrote: > Hey there, > > I'm running with the latest version of overtone with Fabian's new OS X SC > binaries (yey). However, I'm get

str and *print-length* interaction intentional?

2010-05-19 Thread Aaron Cohen
3 4))) "(1 ...)" This is because ASeq.toString delegates to RT.printString, which eventually uses the print-method multimethod which honors *print-length*. Would it make sense for ASeq to unbind *print-length* in its toString method? If so, it might require a new *str-length*. If not, it wou

Should repeatedly defining the same protocol in a file work?

2010-05-22 Thread Aaron Cohen
it to be allowed for protocols to be redefined, it would be convenient for creating a test. It is possible to workaround this by loading two different files with the different definitions for the protocol, but I wanted to check if it was intended. -- Aaron -- You received this message because you a

defn allows overwriting Protocol function without notification

2010-05-22 Thread Aaron Cohen
ang.IllegalArgumentException: No implementation of method: :foo of protocol: #'user/IFoo found for class: java.lang.Integer (NO_SOURCE_FILE:0) ; Side note: Is there any way to access the old global "foo" function at this point? user=> (defn foo [_] "foo") ; I'd prefe

defn allows overwriting Protocol function without notification

2010-05-22 Thread Aaron Cohen
ang.IllegalArgumentException: No implementation of method: :foo of protocol: #'user/IFoo found for class: java.lang.Integer (NO_SOURCE_FILE:0) ; Side note: Is there any way to access the old global "foo" function at this point? user=> (defn foo [_] "foo") ; I'd prefe

Re: defn allows overwriting Protocol function without notification

2010-05-22 Thread Aaron Cohen
Sorry for the duplicate messages. -- 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 fr

Re: Should repeatedly defining the same protocol in a file work?

2010-05-25 Thread Aaron Cohen
This seems to have been fixed in master at some point. -- 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 po

Re: No matching method found for javax.mail.internet.MimeMessage

2010-05-27 Thread Aaron Cohen
Judging from the javadoc, setRecipients takes an array of addressses as its second parameter. So try (into-array to), (into-array for), etc. -- 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: No matching method found for javax.mail.internet.MimeMessage

2010-05-27 Thread Aaron Cohen
On Thu, May 27, 2010 at 11:07 AM, Aaron Cohen wrote: > Judging from the javadoc, setRecipients takes an array of addressses > as its second parameter. So try (into-array to), (into-array for), > etc. Or rather: (into-array [to]). You may need to specify the type which would be: (i

Re: End user applications

2013-06-13 Thread Aaron Cohen
What about Overtone? http://overtone.github.io/ On Thu, Jun 13, 2013 at 5:01 AM, Wolodja Wentland wrote: > Hi all, > > I was recently trying to find some applications written in Clojure that are > meant for end users. The aim was to find those that would be interesting > to a > user even though

Re: 'amap' issue after extending a protocol to a primitive array type

2013-06-13 Thread Aaron Cohen
Whereas you need: user=> (amap (float-array [1 2 3]) i ret (float i)) # --Aaron On Thu, Jun 13, 2013 at 12:57 PM, Jim - FooBar(); wrote: > more weirdness! > > > try this at your REPL: > > -extend any protocol to some primitive array type - let's say 'doubles' &

Re: while loop

2013-06-13 Thread Aaron Cohen
I like the StackOverflow answer for this: http://stackoverflow.com/questions/5419125/using-java-api-from-clojure-reading-zip-file (defn entries [zipfile] (enumeration-seq (.entries zipfile))) (defn walkzip [fileName] (with-open [z (java.util.zip.ZipFile. fileName)] (doseq [e (ent

Re: bug in 'extend-protocol' ???

2013-06-13 Thread Aaron Cohen
On Thu, Jun 13, 2013 at 1:52 PM, Jim - FooBar(); wrote: > > or can you perhaps show an example of successfully extending any protocol > to at least 2 primitive array types? > You can call extend-protocol several times: user=> (defprotocol A (foo [a b])) A user=> (extend-protocol A (Class/forNam

Re: In-order triggering of watches on mutable state

2013-07-31 Thread Aaron Cohen
A watcher fn has 4 parameters: key, reference, old-state, new-state If you use old-state and new-state rather than the reference, you should not see your problem. --Aaron On Wed, Jul 31, 2013 at 11:00 AM, Michael Drogalis wrote: > Problem: > > I have a ref representing a queue of

Re: IDE feature

2013-08-08 Thread Sam Aaron
Haha, I come back to this list after a good few months of not being able to keep up with the volume to find a rant about paredit - priceless! Seriously though, these things are all personal and as such clearly get people's backs up. So for what it's worth, let me throw my thoughts in... I would

Making Music with Clojure: Meta-eX

2013-08-08 Thread Sam Aaron
Hey everyone, I just thought I'd give you a heads up of what I'm currently doing with Clojure and Overtone within the music space. I gave a talk at a music tech conference in London a good few months ago and they just put the video online: https://www.youtube.com/watch?v=zJqH5bNcIN0 It's a pre

Re: IDE feature

2013-08-08 Thread Sam Aaron
On 8 Aug 2013, at 16:29, Tim Daly wrote: >> Find me a person who fluently used paredit that stopped and reverted back to >> manual parenthesis manipulation. > > /me raises my hand. > > Structural editing was useful in LispVM (on IBM mainframes) where the > display was 12 lines by 40 character

Re: Eval vs the repl

2013-08-28 Thread Aaron Cohen
What repl are you using? I think it's doing something weird. java -cp clojure-1.5.1.jar clojure.main user=> [do (inc 1)] 2 user> ^{:line 11, :column 20} [] ClassCastException java.lang.Long cannot be cast to java.lang.Integer clojure.lang.Compiler.eval (Compiler.java:6597) --Aaron

Re: eval/macros with functions with metadata

2013-08-28 Thread Aaron Cohen
I'm not sure if you'll consider this hacky or not. (def ^:dynamic *fn-helper*) (defn eval-at-one [f] (binding [*fn-helper* f] (eval '(*fn-helper* 1 On Wed, Aug 28, 2013 at 1:28 PM, Jamie Brandon wrote: > You will also run into problems if your functions close over any data: > > user> (le

Re: eval/macros with functions with metadata

2013-08-28 Thread Aaron Cohen
.core/fn > [input__2288__auto__] > (num input__2288__auto__))) > > This works fine as long as the fnks dont close over anything, but > that's very limiting. > > If I eval that code and *then* wrap it in (binding ...) I can have > closures but that now means th

Re: eval/macros with functions with metadata

2013-08-28 Thread Aaron Cohen
Sorry, that one doesn't work. It worked in my repl, but I must have been using old code. On Wed, Aug 28, 2013 at 2:27 PM, Aaron Cohen wrote: > How about this alternative? > > (deftype Wrapper [f] > clojure.lang.IFn > (invoke [this] (f)) > (invoke [this a] (f a))

Re: eval/macros with functions with metadata

2013-08-28 Thread Aaron Cohen
ry limiting. > > If I eval that code and *then* wrap it in (binding ...) I can have > closures but that now means that I can't do call-site compilation. > I'll have to poke around a bit more... > > On 28 August 2013 18:32, Aaron Cohen wrote: > > I&#x

  1   2   3   4   5   6   7   >