Re: How to Programmatically Create Unqualified Keywords?

2018-03-21 Thread Nick Mudge
this case. > > ::something-empty is really a reader syntax for :user/something-empty btw > (where user is your current namespace), so it's not even possible to > "create" a keyword like ::something-empty. > > On Wednesday, March 21, 2018 at 8:15:43 AM UTC-5, Nick Mud

Re: How to Programmatically Create Unqualified Keywords?

2018-03-21 Thread Nick Mudge
syntax for :user/something-empty btw > (where user is your current namespace), so it's not even possible to > "create" a keyword like ::something-empty. > > On Wednesday, March 21, 2018 at 8:15:43 AM UTC-5, Nick Mudge wrote: >> >> I want to programmatically cre

How to Programmatically Create Unqualified Keywords?

2018-03-21 Thread Nick Mudge
I want to programmatically create some keywords without namespaces? Or are we not supposed to do that? I can't use the "keyword" function because that only creates keywords with a namespace. For example doing this: (keyword (str "something" "-empty")) Creates this: ::something-empty But I

Dynamically Reify Interfaces

2017-11-07 Thread Nick Mudge
I need to dynamically reify some java interfaces based on data from a map. One way I can see to do this is to generate the reify code with a function using syntax quotes, quotes and unquote and unquote splice. And then evaluate it using eval. I hesitate using eval, but is eval the right tool

Re: Migrating nREPL out of Clojure Contrib

2017-11-07 Thread Nick Mudge
I am new to the clojure community. What does it mean to "reboot" the project? On Friday, July 21, 2017 at 5:15:49 AM UTC-7, Herwig Hochleitner wrote: > > 2017-07-18 14:48 GMT+02:00 Chas Emerick > >: > > I would like to hear here (no more private mails, please! :-) from any > nREPL users, contr

Re: Who Uses import-vars?

2017-11-07 Thread Nick Mudge
cros in a single namespace > `tupelo.impl`, but then expose an API in "user-visible" namespaces like: > >- tupelo.core >- tupelo.char >- tupelo.test >- etc > > Perhaps I've been doing it wrong and should switch to `import-vars`.? > Ala

Re: Who Uses import-vars?

2017-11-07 Thread Nick Mudge
;s quite the hack, imo. > > So I have to agree with Potemkin's tagline on github: it's an idea that's > "almost good". > > Timothy > > On Tue, Nov 7, 2017 at 11:13 AM, Nick Mudge > wrote: > >> I am interested to know if people/you use

Re: Who Uses import-vars?

2017-11-07 Thread Nick Mudge
#x27;t convey >> properly (AFAIK), so if you using bindings on one var, the changes won't be >> seen in the other var. Remember: import-vars doesn't actually import >> anything, it simply creates a new var in the current namespace and links >> the two via a two-way

Who Uses import-vars?

2017-11-07 Thread Nick Mudge
I am interested to know if people/you use import-vars to decouple the structure of code from its API. import-vars is from the potemkin library: https://github.com/ztellman/potemkin If you don't use import-vars how do you structure your code and provide an API? -- You received this message b

Curious About Interfaces In IFn.java

2017-11-02 Thread Nick Mudge
I noticed the interface definitions in IFn.java that start out like this: static public interface L{long invokePrim();} static public interface D{double invokePrim();} static public interface OL{long invokePrim(Object arg0);} static public interface OD{double invokePrim(Object arg0);} Obviously t

Don't Laugh - How to Get the Name of an Anonymous Function

2017-10-23 Thread Nick Mudge
Let's say I have this anonymous function: (fn cool [] (println "hi")) How can I extract the name from it? Obviously the name of the function is stored with the function. How can I get to it? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

SourceDebugExtension Class Attribute in clojure-1.8.0.jar

2017-10-11 Thread Nick Mudge
Recently I needed to run pack200 on the clojure-1.8.0.jar When I did this I got an error that SourceDebugExtension is an unknown class attribute. I got around this problem by removing all the SourceDebugExtension class attributes from clojure-1.8.0.jar. Here are my questions: What is clojure

Command Interpreter in Clojure?

2016-02-16 Thread Nick Vargish
ojure? Thanks, 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 first post. To unsubscribe

Re: ClojureScript ord-of-char?

2016-02-09 Thread nick rothwell
r type in > ClojureScript only strings. > > David > > On Tue, Feb 9, 2016 at 1:01 PM, nick rothwell > wrote: > >> Dumb question: should I be able to get the ordinal value of a character >> in ClojureScript via something like >> >> (int \A) >&

ClojureScript ord-of-char?

2016-02-09 Thread nick rothwell
Dumb question: should I be able to get the ordinal value of a character in ClojureScript via something like (int \A) ? This does exactly what I'd expect in Clojure. In ClojureScript it seems to compile to "A" | 0 which evaluates to 0. (I'm now doing (.charCodeAt \A) which works fine.) [org.

Re: Trying to understand Clojure/Java concurrency performance?

2015-10-07 Thread Nick Pavlica
alize that http-kit made a claim of 600K connections in 2013. But I can't find any other supporting evidence that it can do that reliably. It also seems to have stagnated a bit as a project which is unfortunate. Thanks Again for your input and guidance! -- Nick On Tuesda

Re: Trying to understand Clojure/Java concurrency performance?

2015-10-07 Thread Nick Pavlica
n 1.9, but I don't know if it will help out. Thanks! -- Nick On Tuesday, October 6, 2015 at 9:57:45 PM UTC-6, Nick Pavlica wrote: > > Dear Clojure/Java Experts, > Earlier today I posted a question to the Immutant google group asking > them a question about large numbers of

Re: Trying to understand Clojure/Java concurrency performance?

2015-10-07 Thread Nick Pavlica
not please help me clarify it. Thanks Again -- 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

Trying to understand Clojure/Java concurrency performance?

2015-10-06 Thread Nick Pavlica
hanks! --Nick ### Discussion from the Immutant Google group ## All, I'm a new Clojure developer, and I'm looking for a webserver that can handle a large number of concurrent websocket connections. I understand that this question is a little/very vague, and

Disconnecting from a remote repl?

2014-12-29 Thread Nick Gonzalez
If I execute a time consuming function in clojure while remotely connected via the REPL, and I get disconnected - will the function continue to run? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: Codox output missing namespace documentation

2014-12-17 Thread Nick Gonzalez
ried clearing your target directory? If there are some > AOT-compiled class files in there, they lack the metadata that Codox needs > to generate the docs. > > - James > > On 16 December 2014 at 17:02, Nick Gonzalez > wrote: > >> I'm using codox to generate api documentatio

Codox output missing namespace documentation

2014-12-16 Thread Nick Gonzalez
I'm using codox to generate api documentation for a fairly large Cojure project, and it is ignoring namespace doc strings for all but some of my namespaces. i have moved the :aot directives into the uberjar profile, so the :apt option should not be the problem. but who knows. 1. Has anyone

Re: tools.analyzer.jvm clojure.lang.Var$Unbound cannot be cast to clojure.lang.DynamicClassLoader

2014-10-28 Thread Nick Zbinden
Thank you. This is great. I was using not using 0.6.2, I was using 0.6.0. Am Montag, 27. Oktober 2014 16:00:34 UTC+1 schrieb Nick Zbinden: > > Hallo, > > Im trying to use tools.analyzer to analyse some clojure code and compile > it. I have used '(ana/analyze+eval form

tools.analyzer.jvm clojure.lang.Var$Unbound cannot be cast to clojure.lang.DynamicClassLoader

2014-10-27 Thread Nick Zbinden
Hallo, Im trying to use tools.analyzer to analyse some clojure code and compile it. I have used '(ana/analyze+eval form)' and it has worked nicely. Now I always called my compile function either directly inside of the code, or I would call it like this 'lein run test.clj'. Now I tried to use '

[ANN] Clojure-powered Dance Double Bill (London, November 8th)

2014-10-22 Thread nick rothwell
Blog entry with details here: http://www.cassiel.com/2014/10/18/networked-bodies-watermans/ One of the pieces is audio-responsive with HD visuals in Quil; the other is running in Field (Java->Jython->Clojure), live coded by myself on stage in London and Kate (the choreographer) in Light Table,

multiple file upload

2014-08-03 Thread Nick Macia
Hello all, sorry that this is a basic question. I've recently migrated over to clojure from php and some features of the language still remain obscure to me. I have been following "Web Development with Clojure" (solid intro) and have run into a wall with file uploads. The book provides the follo

Re: Is Korma still a good current choice for DB backend?

2014-07-22 Thread Nick Jones
Agreed, any lib that just lets me use raw sql for queries gets the + 1. -- 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 wi

Re: Accumulate results without state?

2014-03-04 Thread Nick Gonzalez
It depends on what you want to do. If you really want to reduce the collection to an error count, then this will do it. (let [count-if (comp count filter)] (count-if #(re-matches pattern %) (line-seq rdr))) On Tuesday, March 4, 2014 4:21:47 PM UTC-5, Dean Laskin wrote: > > I'm comparing two l

Re: Interest in a commercial IDE for Clojure?

2013-07-27 Thread Nick Jones
I'd pay a $100 for a good Intellij plugin. I'm using Emacs now but I'd rather use IDEA. On Sunday, 28 July 2013 12:29:40 UTC+12, Colin Fleming wrote: > > Shhh - despite my own prejudices, no flame wars please :-) > > > On 28 July 2013 12:21, Cedric Greevey >wrote: > >> On Sat, Jul 27, 2013 at 7:5

Re: Suggested 'server' for hosting clojure web app

2013-06-29 Thread Nick Gonzalez
I'm a big fan of http-kit. Lightweight, easy to use, and responsive. -- -- 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

Re: how can I count lines of code?

2013-03-27 Thread Nick Ward
Not sure if this is the correct place to be asking this, but sed '/^\s*$/d;/^\s*;/d' path/to/your/file | wc -l On Wed, Mar 27, 2013 at 7:36 PM, larry google groups wrote: > I am curious, is there a simple command line script I could use to count > lines of code? Or is there some trick in ema

Re: Namespaced symbols, and errors

2013-03-09 Thread nick rothwell
hemselves (they are literals that evaluate to themselves), they are > not aliases for something else. > > [1] http://clojure.org/reader > > On 8 March 2013 16:56, nick rothwell > > wrote: > > Typing the following at a REPL: > > > > (str ::junk/junk

Namespaced symbols, and errors

2013-03-08 Thread nick rothwell
Typing the following at a REPL: (str ::junk/junk) (where there's no alias for junk) gives me: RuntimeException Invalid token: ::junk/junk clojure.lang.Util.runtimeException (Util.java:219) RuntimeException Unmatched delimiter: ) clojure.lang.Util.runtimeException (Util.java:219) A couple of

No doseq inside finally?

2013-01-30 Thread nick rothwell
Is there a reason why this isn't allowed? user> (try nil (finally (doseq [x (range 10)] (println x CompilerException java.lang.UnsupportedOperationException: Cannot recur from catch/finally, compiling:(NO_SOURCE_PATH:1) Is this some JVM restriction? -- -- You received this message becaus

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

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: 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.

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: 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: 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: 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: 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: 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: (#({: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: [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: [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: 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

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: [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

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: 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 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: 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 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: 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: 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

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: 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

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: protocols and records -- use when?

2011-07-28 Thread Nick Zbinden
> I'm puzzled when we say that Clojure is not particularly OO, but using > protocols and datatypes feel OO to me, > except that the namespace of the protocol method implementations is > decoupled from the namespace of the type. > > Perhaps my definition of OO is too loose and I should think of > pr

Re: ClojureScript Memory Requirements

2011-07-26 Thread Nick Zbinden
Not sure why that is there I just deleted that the 2G params, seams to be working fine. -- 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 - plea

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-25 Thread Nick Zbinden
> Oracle announced/talked about Nashorn at the recent JVM Languages summit, > this is an Invoke Dynamic based Javascript runtime which is (aiming) for > inclusion in JDK8. > > I do so hope however that someone manages to pull that out for a "lets run > this NOW on Java 7" as that would be a grea

Re: ClojureScript Questions

2011-07-25 Thread Nick Zbinden
On Jul 25, 7:51 am, cljneo wrote: > Hi, > I have started reading about ClojureScript and Closure and had some > questions which I am sure will eventually be answered as I move along. > But I am too eager to know now so I thought of asking instead of > waiting. > - On page 2 of the Closure book,

Argh - was Re: Re: Re: Re: Re: Re: The Last Programming Language

2011-07-22 Thread Nick
On 22/07/11 05:30, daly wrote: > On Thu, 2011-07-21 at 23:03 -0400, Jeff Dik wrote: >> On Tue, Jul 19, 2011 at 9:04 PM, daly wrote: >>> On Tue, 2011-07-19 at 20:14 -0400, Adam Richardson wrote: On Tue, Jul 19, 2011 at 6:23 PM, Brian Hurt wrote: What's this awk-a-mel he speaks of

Re: The Last Programming Language

2011-07-20 Thread Nick Zbinden
Maybe the PLOT language is intressting to people here. It has syntax and a very powerful macro system. http://users.rcn.com/david-moon/PLOT/ -- 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

First Clojure Conj Rich Hickey Talk Not About Hammock

2011-07-17 Thread Nick Mudge
I heard that Rich Hickey gave another talk about Clojure at the first Clojure Conj besides the Hammock one. In it he talked about dynamic vars. Does anyone know if this was videoed or if there are any notes about this? I am interested in knowing more about dynamic vars. Does anyone know of any det

Re: Anyone on Google+ yet?

2011-07-14 Thread Nick Brown
It looks to me like it will have decent potential once all Google's services get integrated it in. So you can post stories from Google News and Google Reader, share Google Docs with a circle, create a circle based on a Google Group and all its members automatically get added... Oh well, until then

Re: Clojure for large programs, was Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-02 Thread Nick Brown
"Many managers, understandably, go with a technology with heavy library support and lots of developers. The common critique that Lisp isn't practical in industry, comes from that position. But Clojure, sitting atop the JVM, doesn't have that problem. " The library part, ok, sure (but if I'm writin

Where to place Arguments

2011-06-14 Thread Nick Zbinden
Hallo all, I just watched the talk Radical Simplicity (bit.ly/lsub9h) by Stuart Halloway. Very Intressting but one little thing he says I wanted to threw in the groupe because its kind of a half know thing and it should really move into the Clojure Coding Standard. Stu said: Objects should be th

Re: hammock driven development...

2011-06-11 Thread Nick Brown
esult in fewer mosquito bites, especially in North Carolina summers). I think my notes from that talk read something like this: Bring hammock to work. :) Go to sleep sober. :( Nick Brown http://standardout.wordpress.com/ On Jun 9, 1:09 pm, Brian Marick wrote: > On Jun 9, 2011, at 3:27 PM, Jul

Re: last and nth are "bad"?

2011-06-10 Thread Nick Zbinden
Shouldn't these funkitons take the most effective implementation iternaly? We allready have a internal reduce-protocoll why not have one for other functions like last? The seq library should only drop to first/rest if there is no better implementation. -- You received this message because you are

Re: New to Clojure

2011-06-08 Thread Nick Zbinden
While we talk about Functional thinking. The IBM has a series. They use Java (and Groovy) but it may help you since you allready know java. http://www.ibm.com/developerworks/java/library/j-ft1/index.html http://www.ibm.com/developerworks/java/library/j-ft2/?ca=drs- -- You received this message b

Re: Clojure stack

2011-05-19 Thread Nick Zbinden
I think there are a few things most people agree about: - The people in the comunity are genaraly very nice and help noobs (stackoverflow, irc. mailinglist ...) - Clojure.org has very cool content. - Clojure.org is not a good place for noob So i propose some things that I think would make a bette

Re: Clojure stack

2011-05-16 Thread Nick Zbinden
Coming up with a clojure stack is not really clojury. I think clojure does not really lack far behind scala/akka and its much simpler. I don't really know about IDEs I can see how that could be a problem. -- You received this message because you are subscribed to the Google Groups "Clojure" grou

Re: Clojure stack

2011-05-16 Thread Nick Zbinden
I thing the java guys are late :) http://clojure.com/ On May 16, 9:42 am, László Török wrote: > I've just come across this: > > http://typesafe.com/company > > I believe Clojure will have to take a similar path in order to achieve > broader (enterprise) acceptance. > > I'm sure Rich and the core

Re: Testing functions that access a database

2011-05-08 Thread Nick
On 08/05/11 04:54, Ken Wesson wrote: > Have you considered using a mock object in place of the db? I'm curious to know if there are any good examples of SQL mock-object libraries out there - in any language? The kind of thing which deserves to be emulated. I don't get the impression that there ar

Re: Logos -> core.logic

2011-04-28 Thread Nick Zbinden
send somebody a link of a video expmlaing a little bit about it (in clojure). Nick On Apr 28, 5:59 pm, David Nolen wrote: > Logos has been accepted into Clojure > contrib:https://github.com/clojure/core.logic. > > There's a considerable amount of work still to do but I'm ex

Re: Meta

2011-04-21 Thread Nick Zbinden
>What are meta data used for? Its a open system it can be used for anything. If you have data about your data that does not effect equality. Examples: The docstrings you can write in clojure are metadata. (defn my-func "my-func does XY" [] "whatever") This will be expanded to metadata l

Re: Clojure interest in Zurich

2011-04-14 Thread Nick Zbinden
Hi im not from zurich but I life near enough. There is no clojure user group (sadly). I acctualy don't know of anybody else using clojure in Switzerland. There is however a new "Lisp and Stuff"-Meeting more or less every month. It get hosted by a Startup that uses CL. The first to Meetings were qu

Re: fixing web docs

2011-03-30 Thread Nick Zbinden
> Dare I mention the idea of an official (or semi-official) Clojure > documentation project that ties together the disparate sources that currently > exist? What say you, community? I was thinking about something. This is just an idea spil I didn't do anything jet. Kind of like a learning assis

Re: fixing web docs

2011-03-29 Thread Nick Zbinden
One more thing people should do is update there blogs. I know its stupid work but I should be done. Its extremly confusing when google for something. Update your blog with a little notice or update it that it is correct again. -- You received this message because you are subscribed to the Google

Re: question re: quote

2011-03-28 Thread Nick Zbinden
> Incorrect. Thx, for clearing it up. -- 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 unsubscri

Re: question re: quote

2011-03-28 Thread Nick Zbinden
Yes, I think thats a naming restriction by the JVM. On Mar 28, 11:57 am, Fred Concklin wrote: > in common lisp:> (setf x '((1st element) 2 (element 3) ((4)) 5)) > > ((1ST ELEMENT) 2 (ELEMENT 3) ((4)) 5) > > in clojure: > user> (def x '((1st element) 2 (element 3) ((4)) 5)) > java.lang.NumberForma

Re: Jesus, how the heck to do anything?

2011-03-23 Thread Nick Zbinden
MMhh it would be to hard to design a little guid for this. There are peole who don't know java and if you don't know what a jar file is you can understand java -jar. Somethink like that should be on the clojure website. Something like "A Letter to a new Clojure Developer". Posting stuff like thi

Re: Operations inside associative structures

2011-03-18 Thread Nick
Dude...that's awesome. I don't know how I completely missed that. I must have gotten lazy by the time I got to the end of the API page. On Mar 18, 8:12 pm, Ken Wesson wrote: > On Fri, Mar 18, 2011 at 9:04 PM, Nick wrote: > > I'm looking to do some operations upon th

Operations inside associative structures

2011-03-18 Thread Nick
I'm looking to do some operations upon the data in an associative structure. What do you think about this method of hijacking the definition of assoc-in? Is there some better way to do what I'm doing here? user> (defn op-in [op m [k & ks] v] (if ks (assoc m k (op-in o

Re: clojure not using CPU on binarytree benchmark

2011-03-15 Thread Nick Zbinden
I have to give some more background on this. Me and a friend are doing this for school we never did anything like it so we just make up as we go. My task is to write (at this point I changed to objective to improving the existing programm) the programm. His task was to do all the mesurements. I jus

Re: Strange Loop 2011 - St. Louis - Sept 18-20

2011-03-15 Thread Nick Zbinden
Man that look awesome not a single thing I would wanne miss. On Mar 15, 9:16 pm, Alex Miller wrote: > I just put up a blog entry with some updated info on Strange Loop > 2011:http://thestrangeloop.com/blog/11/03/15/strange-loop-2011-update > > Lots more to come, but perhaps of interest to this gr

Re: clojure not using CPU on binarytree benchmark

2011-03-15 Thread Nick Zbinden
gt; to finish, and get to a memory utilization of nearly 512 MB. > > Andy > > On Mar 15, 2011, at 9:54 AM, Nick Zbinden wrote: > > > Hi, > > > I did not mention that earlier but the benchmark sais no change in > > heapsize. > > > See here: > >

Re: clojure not using CPU on binarytree benchmark

2011-03-15 Thread Nick Zbinden
ugh, and your > program is causing the JVM to invoke garbage collection repeatedly. > > I'd recommend using a -Xmx512m argument on the command line, or maybe a bit > more, and see if things speed up. > > Andy > > On Mar 14, 2011, at 6:25 PM, Nick Zbinden wrote: > &

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

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 

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

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: 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

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: Trouble with type hints

2011-02-22 Thread Nick
After looking at it more, it appears that I was executing something intense and lazy immediately prior to this function which then included a doall upon the result of the previous calculation. When I modified the previous function to remove its laziness, the time required for this calculation drop

Re: Trouble with type hints

2011-02-18 Thread Nick
I've actually tried with and without type hinting and end up with similar performance numbers. I haven't tried type hinting the second execution. On Feb 18, 7:49 am, Ken Wesson wrote: > On Fri, Feb 18, 2011 at 7:03 AM, Daniel Werner > > > > wrote: > > On Feb 16,

Re: Trouble with type hints

2011-02-17 Thread Nick
Is there something besides type-hinting that I'm missing? -- 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

Trouble with type hints

2011-02-15 Thread Nick
I'm having a bit of trouble getting type hinting to work. I've got these equal sized seqs that I'm mapping into a function. I'm running the function twice in a row in an inner loop that is seriously dragging down performance. (let [ newv1 (time (doall (map (fn [v u I] (+ ^java.lang.Double v (*

  1   2   >