Re: Anyone on Google+ yet?

2011-07-14 Thread ianp
Ian Looks like G+ is pretty popular with the Clojure crowd :-) -- 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 memb

Re: VimClojure 2.2.0 released

2010-10-09 Thread ianp
> > If the STOMP support happens with nREPL as Rich was pushing for, > > you'd have the windows solution. There are plenty of STOMP client > > that works on windows. > > Do you have some pointers? Googling didn't turn up useful stuff. > Important requirement: must be driven by CLI. Well, STOMP is

Re: Clojure Conference Poll

2010-01-25 Thread ianp
+1 for a European location. I’m in London but Paris & Berlin are both really cool locations. Cheers, Ian. -- 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 a

Re: installing leiningen system-wide?

2010-01-05 Thread ianp
> We are considering adding leiningen to a chef install for EC2   > instances. However, we want lein (and the associated maven cruft) to   > be available to all users, not just the user running the install script. I guess that if Leiningen just uses the repo/dep stuff from maven then the following

Re: Sequence to Vector

2010-01-04 Thread ianp
> What JVM 6 sub-version are you using? $ java -version java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode) > Does it make any difference if you specify -XX:+DoEscapeAnalysis at My clojure sta

Re: Ants: Good Java solution?

2010-01-03 Thread ianp
> In this particular case, the STM system is more important than the > fact that it uses persistent data structures. A Java solution that > didn't have persistent data structures but still had an equivalent STM > could use copy-on-write: it would certainly be slower, but I think it > would work jus

Re: Ants: Good Java solution?

2010-01-03 Thread ianp
> > This is why persistent data structures are so cool: you gain the > > ability to look at consistent snapshots of the world for free. > > it is not impossible to use persistent data structures with plain old > java, by the way :-) True, true, but it's not (yet?) common and there are no persisten

Re: Sequence to Vector

2010-01-03 Thread ianp
> More findings: The reason that the Clojure's original sort is  8 times slower I don’t see that on my machine. I’m running 1.1.0-master-SNAPSHOT with Apple’s Java 6 VM in case that has anything to do with it, but here's what I get (after running the tests several times to warm up hotspot): user=

Re: Sequence to Vector

2010-01-03 Thread ianp
> BTW we have state here (the native Java array). Is it thread safe ? Well, the state doesn’t escape the function so it’s similar to transients in that regard (although without the guarantees that transients provide, but I think that for a fn this short it’s OK). -- You received this message bec

Re: Sequence to Vector

2010-01-02 Thread ianp
> A bit uglier, but ought to be quite fast. Doesn't need to be that ugly, this looks OK to me at least: (defn sorted-vec [coll] (doto (into-array coll) (java.util.Arrays/sort) (vec))) It'd also be possible to generalise the return type by passing in a fn to apply to the sorted array.

Re: Sequence to Vector

2010-01-02 Thread ianp
> A bit uglier, but ought to be quite fast. It doesn't need to be that ugly: (defn sorted-vec [coll] (doto (into-array coll) (java.util.Arrays/sort) (vec))) looks OK to me at least. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

Re: Ants: Good Java solution?

2010-01-02 Thread ianp
> … if you want > to create a report with a consistent view of the program's state in a > certain point of time. What does that mean in Java? Do we need a > "global lock" for that? But then, I have to use the same global lock > on all writing operations, too? This results in destroying all > concur

Re: Clojure + Intellij IDEA: stepping through Clojure implementation code

2010-01-02 Thread ianp
> Now when I try to get a REPL (by using clojure.main as the startup class), I > get an error about clojure/core.clj not being on the classpath. While a very > rough solution would be to just move clj/clojure somewhere on the path, I'd > like to know how to change the classpath for a module. Are y

Re: Proposal: clojure.io

2010-01-02 Thread ianp
> > I wonder if it would be a good idea to include a clojure.io > > namespace in Clojure itself. +1. > > read-lines was left out since ... On the basis that it's less painful to add new stuff in later than to remove stuff I agree that erring on the side of caution in the correct approach. > Ove

Re: google custom search engine

2009-12-14 Thread ianp
> I couldn't find a CSE for clojure, so i took the 45 folks on delicious > with the most "clojure" tags (excluding clojurebot) and counted their > domains . Here's 125 domains in search engine.  Let me know if i > missed any good ones. I wouldn't want to claim that's it's good, but if you add ianp

Re: Image scaling libraries. Request for recommendations

2009-12-14 Thread ianp
> IIRC Java AWT-based libraries require a windowing system on the > machine. On Windows this is not a big deal since you're always running > a windowing system, even on a server, but on linux where the windowing > system is an optional install it causes problems. If you set the system property jav

Re: Funding Clojure 2010

2009-12-14 Thread ianp
> If you are an individual user of Clojure, I encourage you to > contribute $100/year to Clojure development, via the donation system. Done! And should I ever be in the position of using Clojure for anything more than hobby projects I'll be sure to push for some more money to come your way. Chee

Re: Question about modifying sexps via macros

2009-05-08 Thread ianp
Hi Meikel, > Please note, that these annotations are wrong. Since > create-form is a macro, container and components refer > to Symbols or some other Clojure structure (depending > on how you pass the later container and map). Thanks for pointing that out, I didn't realise that. Although, now th

Re: Question about modifying sexps via macros

2009-05-08 Thread ianp
Hi Christophe, > hth Yeah, thanks! I'm not sure what I was thinking when I wrote out `~sbody in the above code, thanks for pointing that out. I've got that bit of what I'm trying to do working now, I ended up with code that looks like this: (defmacro sequential [layout & cs] (let [g (gensym "

Feature Request: Easily Embeddable Console

2009-04-29 Thread ianp
IMHO it would be good if there were an easy (i.e. 1-line) way of embedding Clojure in an existing Swing app. most of the docs out there cover embedding it in a console application, or using Swank to connect over a socket. Ideally, either: JPanel panel = ...; panel.add(new ClojureConsole(

Question about modifying sexps via macros

2009-04-28 Thread ianp
I'm trying to create a macro that will splice in some additional elements to a structure. If I have an input struture like so: (p (s (c foo bar)) (s (c baz qux))) I'd like to be able to do (splice grp layout (rest my-data)) and have it return: ((s grp layout (c foo bar)) (s grp layout (

Re: How do you "boot-strap" clojure from java?

2009-04-28 Thread ianp
>    http://ianp.org/2009/04/embedding-clojure-in-an-existi > > Also, since writing thse notes down I've worked out getting my app > data into Clojure; that, combined with Christophe's notes about and > I'm pretty much set to go for most of what I want to do. Notes and code snippets here http://

Re: How do you "boot-strap" clojure from java?

2009-04-27 Thread ianp
Well, I came up with something similar over the weekend, longer notes about it here: http://ianp.org/2009/04/embedding-clojure-in-an-existi Also, since writing thse notes down I've worked out getting my app data into Clojure; that, combined with Christophe's notes about and I'm pretty much s

Re: How do you "boot-strap" clojure from java?

2009-04-25 Thread ianp
I've got a related question: how do you embed Clojure into an existing application? If I'd like to provide a clojure console in an application how do I do the following things: 1. Start a REPL - I guess that this can just be done with clojure.main.main(String...) 2. Redirect STDIN/OUT/ERR so tha