Re: ClojureScript One in Eclipse

2012-02-20 Thread Nick Klauer
I'm not sure it's entirely possible, but I could be wrong. When I asked a few months ago about Leiningen integration with Eclipse, it wasn't officially supported yet, and I would have to use some sort of nREPL connection. see here: https://groups.google.com/d/topic/clojuredev-users/3iKc0rb9gF

Re: clojure.java.jmx "0.1" - problem getiing java.lang:type=Threading :AllThreadIds attribute

2012-02-23 Thread Nick Bailey
I'm not sure that java.jmx should be attempting to do any conversion of the values returned over jmx. I think it should be the application's responsibility to convert types appropriately for how they are needed. On Wed, Feb 22, 2012 at 7:47 PM, zoka wrote: > I was trying to convert result of JMX

Re: [ANN] Leiningen 2.0.0-preview3

2012-04-13 Thread nick rothwell
Trivial bug report: saying lein new throws an ArityException rather than reporting an error and suggesting usage. -- 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

Pulling constants out of interfaces

2012-04-30 Thread nick rothwell
I'm faced with the following in some legacy code: public interface Foo { interface Bar { ... String BAZ = "baz"; ... }} Is there any way of accessing Foo.Bar.BAZ in the Clojure world? I've tried various combinations of proxying and reifying with no joy. -- You received this message because you

Re: Pulling constants out of interfaces

2012-04-30 Thread nick rothwell
Great - thanks, yes, it's Foo$Bar/BAZ after an import of Foo$Bar. Thanks everyone for saving me from more hours inside all the proxy apparatus. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: [ANN] Leiningen 2.0.0-preview5 released

2012-06-02 Thread nick rothwell
I seem to not be getting an upgrade. :-( (I then followed the re-download instructions, and got preview4 again.) bash-3.2$ ~/lein2 upgrade The script at /Users/nick/lein2 will be upgraded to the latest preview version. Do you want to continue [Y/n]? Y Upgrading... % Total% Received

Re: [ANN] Leiningen 2.0.0-preview6 released

2012-06-03 Thread nick rothwell
On Sunday, June 3, 2012 5:22:51 AM UTC+1, Phil Hagelberg wrote: > > I hope this addresses the issues people were seeing with preview5. > It does address the issue that my preview4 wouldn't upgrade; I've now just successfully bumped from preview4 to preview6. Thanks! -- You received this mess

Re: (#({:a %}) :b)

2012-06-04 Thread nick rothwell
This one has caught me once or twice as well: #(xxx) evaluates "(xxx)", not "xxx". My usual mistake is ... #([1 % 3]) ... My rather verbose workround is ... #(identity [1 % 3]) ... -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gr

Re: A "ClojureScript One" Question: Why is so much html created on the client side.

2012-08-10 Thread Nick Ward
nnection). This will also result in less latency, and a more responsive user experience. I have no ClojureScript One specific experience, but this should give you some idea of why it would be preferred over the traditional model. Nick On Fri, Aug 10, 2012 at 11:21 AM, john wrote: > Hello, >

Re: ANN: Clojure 1.3 and 1.4 Cheat Sheet v7

2012-10-16 Thread Nick Klauer
I noticed that the PDF downloads seems a bit off. At least in my case, the standard PDFleaves alot of whitespace. -- You received this message because you are subscribed to the Google G

Re: ANN: Clojure 1.3 and 1.4 Cheat Sheet v7

2012-10-16 Thread Nick Klauer
Other than the PDF being colorful, no. :) It does make a beautiful setting on my wall next to my computer, though. -Nick -- 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

Re: ANN: Zürich Clojure User Group

2012-10-22 Thread Nick Zbinden
Hi, If im in Switzerland then I will defentily come. There was a lisp usergroupe for a time but the company that hosted it kind of stopped. Am Montag, 22. Oktober 2012 10:37:40 UTC+2 schrieb Thomas G. Kristensen: > > Hi all, > > I'm happy to announce the Zürich Clojure User Group! > > http://ww

Re: Clojure in OSGi and *use-context-classloader*

2012-11-16 Thread Nick Mudge
Hi there, Thanks for your post. I had the same problem and your solution is what I need. To answer your question, USE_CONTEXT_CLASSLOADER still returns true in the following method (which is also in RT.java) because it is being bound to true when making a DynamicClassLoader: static public Clas

Re: core.logic vs datomic

2012-12-09 Thread Nick Zbinden
You have a misunderstanding. core.logic and datomic datalog are not the same thing. core.logic is a turing complet logic engine, datomic datalog is only a querying subpart of this. You can not solve the zebra problem with datomic datalog, its impossible. Think of datomic datalog as if it would

Re: core.logic vs datomic

2012-12-09 Thread Nick Zbinden
icular aspect is required? > What would need to be implemented to get it to work on datomic? > > On Sunday, December 9, 2012 5:48:55 AM UTC-5, Nick Zbinden wrote: >> >> You have a misunderstanding. >> >> core.logic and datomic datalog are not the same thing.

Clojure syntax coloring for wordpress blogs

2012-12-15 Thread Nick Gonzalez
Does anyone have a good method for syntax coloring clojure code snippets for a wordpress blog? I've recently started my new blog, and I'm posting clojure snippets, and would like for them to be syntax highlighted and indented properly. Nick Gonzalez -- You received this message b

Re: Clojure syntax coloring for wordpress blogs

2012-12-16 Thread Nick Gonzalez
l host and setup the plugin you described. Thanks. On Saturday, December 15, 2012 6:03:09 PM UTC-5, Alexander Solovyov wrote: > > On Sat, Dec 15, 2012 at 11:02 PM, Nick Gonzalez > > > wrote: > >> Does anyone have a good method for syntax coloring clojure code snippets >&g

Re: JVM 7 support (invokedynamic)

2011-08-25 Thread Nick Zbinden
@Aaron: Could you go into why this is the case? What does jruby do that it needs it so much and clojure does not. @Tal Liron: You seem to differ in your opinion with Aaron (pretty sure you would not be investing your time otherwise). What exactlly are you attempting to speed up and how does invoke

Re: defrecord == premature optimization?

2011-09-07 Thread Nick Zbinden
There are some simple things you have to understand when you want to know why you cant have: (defrecord Person [foo bar]) ((Person. "1" "2") :foo) In Clojure something after a "(" gets called as a function. A function is something that can be "applied" (not the "apply" function. "applied" is now i

Binding *out*

2011-09-14 Thread Nick Mudge
I have a clojure program with which I would like all stdout and stderr to be written to a file. Of course there is Unix IO redirection but I am starting my program from within another clojure program using "(.exec (Runtime/getRuntime) clj-program-command env)" and that doesn't support IO redirecti

Re: Binding *out*

2011-09-15 Thread Nick Mudge
Thanks Stuart and Dave. On Sep 14, 10:30 am, Stuart Sierra wrote: > Hi Nick, > > *out* and *err* are already dynamic, which is what allows `binding` to work. > You can the  root binding of any Var (even non-dynamic Vars) with `def` or > `alter-var-root`. > > -Stuart Sierra

Re: Using Clojure to Generate Java Source?

2011-09-29 Thread Nick Brown
It may be easier to convince him by explaining how much time it is going to cost to do conversion. Abstract computer science terminology isn't always that convincing to managers, but explaining how much time will be wasted is. On Sep 29, 6:56 pm, Nicolas wrote: > Best would be to act as professi

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-04 Thread Nick Brown
I'm interested in the core.logic and the web and clojure sessions. On Oct 25, 12:11 pm, Fogus wrote: > All, > > We talked about the possibility of getting some ideas about > extracurricular activities during the Conj days (and possibly training > days).  I've created a spreadsheet at the link bel

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-08 Thread Nick Brown
Drinks + Clojure sounds like a good idea for me. What time will it be? On Nov 5, 10:54 pm, Phil Hagelberg wrote: > On Fri, Nov 4, 2011 at 6:16 PM, Michael Fogus wrote: > >> Any thoughts about when / where these events can take place? > > > At this point it would be great if a Conj-planning heav

Re: Clojure on PyPy

2011-11-21 Thread Nick Zbinden
I was thinking about this too. I don't really need Clojure-on-pypy but I want to learn and understand the pypy project. I think that pypy is an extreamly cool project and I want to learn more about it and it would be fun to implment Clojure (and I would finally learn python). The problem Timothy m

Re: Conj arrivals and Thursday night...

2010-10-23 Thread Nick Brown
As opposed to other times in which DC metro traffic is any better? That's actually what I'm braving Saturday evening as I'm leaving the conference early to get to my high school reunion. On Oct 18, 6:02 pm, Christopher Petrilli wrote: > I'll be driving down from DC, and probably arriving betwee

Re: A suggestion for the next Conj

2010-11-03 Thread Nick Brown
We could set up a web app that uses data mining algorithms to analyze people's interests, experience with Clojure, industries they work in, Myers-Briggs type, and other information to put together compatible small groups of people. I just had a "How big of a nerd can I be?" moment. But that doesn

Re: could clojure be androids joker card

2010-11-08 Thread Nick Brown
One problem I've heard with creating Android apps in languages such as Clojure or Scala is the dependencies (in Clojure's case, probably clojure.jar and clojure-contrib.jar) that are brought in increase the size of the app. Those dependencies may be very small when deployed as a server app or on a

distributeted computing newby, clojure ...

2011-01-07 Thread Nick Zbinden
Hallo, I would like to talk about two things. General: I have a small project that has really easy to paralyzable problem so I think that a good place to start with parallel programming. Doning it on one pc is simple in clojure. So I tought to myself: You can distribute that. I have never done a

Re: distributeted computing newby, clojure ...

2011-01-11 Thread Nick Zbinden
> I have a simple library that mimics newLISP's net-eval command, which > will allow you to evaluate expressions in parallel on remote network > nodes, > > http://nakkaya.com/net-eval.html > > Regards... Very Nice. I looked at it and its what I need. I tested it sucessfully and I am using it with

Testing if a sequence is lazy

2011-01-17 Thread Nick Brown
Hi, I'm wondering if there is a good way to test if a given sequence is lazy, and if so, how much of it has been evaluated. I know the fact that it is lazy should be transparent, but I'm thinking in the context of unit testing knowing that could be valuable. For instance if you know a particular

Re: Clojure/JVM languages internal presentation

2011-01-18 Thread Nick Zbinden
> I can't speak for the original poster, but it seems like a fair > assessment to me.  Scala is, as you point out, more complicated in > many ways than Clojure.  But there is a subset of Scala that looks and > behaves very similarly to Java.  It is possible for a Java programmer > to make the tran

Re: anon func syntax confusion

2011-01-24 Thread Nick Zbinden
That a problem people find often. The thing is #(%) not the same as (fn [x] x) its more like (fn [x] (x)). So if you write #([x]) is (fn [x] ([x])) witch throws an error. You would have to write #(vec %). On Jan 24, 1:59 pm, László Török wrote: > Hi, > > just a quick one: > > (mapcat #([% 1]) [

Re: Why no def- ?

2011-01-24 Thread Nick Brown
Ugly? Aww, I thought the ^ metadata looked kinda cute... It is a bit awkward that defn- exists and not def-, but it seems defs are not going to be as common as defns (though I'll admit I haven't written or read enough complex idiomatic Clojure code to know for sure). And if you really want to be

Re: What is the difference between a tail-recursive function and a recursive function using recur?

2011-01-27 Thread Nick Zbinden
Maybe this is intressting for you: http://stackoverflow.com/questions/4304468/clojure-jvm-7-8-improvements/4306950#4306950 It should answer your question and give some more information. On Jan 26, 4:04 pm, Harrison Maseko wrote: > Hi all, > I need some help in understanding some basic concept. T

Re: Struct vs. Record: Now and Future

2011-01-27 Thread Nick Zbinden
Structs are nicer to work with. We should get all the nice stuff you can do with structs to records then we can mark structs as dublicated. On Jan 27, 2:43 pm, OGINO Masanori wrote: > Hello. > > I have two questions: > > 1. Is there any reason why we should use struct rather than record in > new

Newbie: What's your opinion about this Clojure code?

2011-02-11 Thread Nick Wiedenbrueck
dbf96/server.clj Thanks for your support Nick -- 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 firs

Re: Newbie: What's your opinion about this Clojure code?

2011-02-13 Thread Nick Wiedenbrueck
Thanks a lot. I'll have to get used to closing all parentheses of a function on a single line, cause this makes finding the right position when editing the code afterwards a little harder. Also now I got the clojure mode for emacs (instead of lisp mode) to get the indentation right. -- You recei

Newbie: General question about concurrency in Clojure

2011-03-09 Thread Nick Wiedenbrueck
I'm still getting started with Clojure and I'm wondering about how one should generally go about concurrency and how transparent concurrency is in Clojure. So, to me there would be two approaches: A) Be aware of the parts of your system that will be concurrent and only within these parts write con

Re: Newbie: General question about concurrency in Clojure

2011-03-09 Thread Nick Wiedenbrueck
Thanks for your answers. Guess, I just got a little bit lost after digging deeper into the whole thing. Just didn't see anymore that the core problem is mutability. But it's much clearer again now. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To po

binarytrees benchmark 1.3

2011-03-13 Thread Nick Zbinden
clly the original: https://github.com/nickik/IDPA-Programmiersprachen-Benchmarken/blob/master/clojure/src/clojure/binarytrees.clj I always get the error: error: java.lang.IllegalArgumentException: Unable to resolve classname: clojure.core$long@1539d49, compiling:(/home/nick/alltech/ Allgemein_Programm

Re: binarytrees benchmark 1.3

2011-03-13 Thread Nick Zbinden
it compiles > without errors or warnings. > > Andy > > On Mar 13, 2011, at 10:36 AM, Nick Zbinden wrote: > > > Hallo all, > > > I have been looking at the binary-trees in the language shotout. > >http://shootout.alioth.debian.org/u64q/program.php?test=bina

Re: DDJ for Clojure/Lisp/FP

2011-03-14 Thread Nick Zbinden
This sounds very good. It would have to be start up with one topic (lisp or FP) and if the system worked you could add more topics. The length could be like steve yeggy blogposts or like the ibm ähh articals (http://www.ibm.com/developerworks/java/library/j-clojure- protocols/). On Mar 14, 11:12 

clojure not using CPU on binarytree benchmark

2011-03-14 Thread Nick Zbinden
Hi, I'm working with binarytree benchmark from the Language Shotout. http://shootout.alioth.debian.org/u64/program.php?test=binarytrees&lang=clojure&id=5 Its basiclly a port from the java version. http://shootout.alioth.debian.org/u64/program.php?test=binarytrees&lang=java&id=2 The Problem with

<    1   2