Re: map versus pmap

2010-11-06 Thread nickikt
using more then one thread is no silver bullet. What would you do if you have to count to 1. Would you just start counting or would go and hire 2 more people explain them what to do and then count together? In this case you would just start counting because you know that you will be faster

Re: Sandbar Dependencies Problem

2010-10-21 Thread nickikt
bashw...@gmail.com wrote: Nickikt , All of the stuff covered in that blog post is in Sandbar 0.3.0- SNAPSHOT. You will need to add [sandbar 0.3.0-SNAPSHOT] as a dependency. There are also lots of working examples in the project on GitHub. http://github.com/brentonashworth/sandbar/tree

Sandbar Dependencies Problem

2010-10-20 Thread nickikt
] [clj-stacktrace 0.2.0]]) Does somebody know how the project.clj needs to look like (or if I need to change the ns stuff) Thx Nickikt -- 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: var vs. symbols

2010-10-11 Thread nickikt
you are right (at least as far as I know) -- 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

Re: Is This Function Idiomatic Clojure?

2010-10-07 Thread nickikt
Thats what I came up with this. (defn getpairs [[key coll]] ;; split the key form the data (http:// blog.jayfields.com/2010/07/clojure-destructuring.html) (map (fn [x] [key x]) coll)) ;;put the key in front of every element in data (defn d-map [ colls] (mapcat getpairs colls)) ;;mapcat

Re: Clojusre's got a lot of coolness about it but it's not for everyone.

2010-10-07 Thread nickikt
Was posted already. On 7 Okt., 18:12, 386sx ng8038...@gmail.com wrote: http://www.basementcoders.com/transcripts/James_Gosling_Transcript.html Moderator: What's your thoughts on the other languages? James Gosling: I'm a big fan. I can't say I use them a lot. You know, the Java design was

Re: anonymous fn or partial?

2010-09-30 Thread nickikt
I ask myself that from time to time. I tend to use (partial + 2) because I think its easier to read. The (+ 2) bit is intressting. That would be automatic currying, you get that in other languages. It is not possible in Clojure becaus there is no limit to how many args a clojure function can

Re: Changing keys in a map

2010-09-30 Thread nickikt
#(s/upper-case (name %)) Good and clear in this case. #(- % name s/upper-case) I think that would be nice if there were three functions. (comp s/upper-case name) I think its hard to read for beginners, because you have to read it backwards and no parens to indicate but you could say that the

Re: Clojure 1.3 alpha 1 report - bitwise operations extremely slow

2010-09-30 Thread nickikt
So if we fix that all the other peoples problems fix themselfs :) Nice work Mark. On Sep 30, 10:06 am, Mark Engelberg mark.engelb...@gmail.com wrote: Did some more testing, and I'm now convinced that the slow performance of the bitwise operators in clojure 1.3 alpha 1 is due to the inline

How to write this in Clojure? Example from PAIP

2010-09-29 Thread nickikt
Hallo all, I'm started working on PAIP and doing the examples in Clojure. I understand what this function does (i think) now but I'm not sure how to write it in Clojure since I have no CL background. (defun find-all (item sequence rest keyword-args key (test #'eql) test-not

Re: How to write this in Clojure? Example from PAIP

2010-09-29 Thread nickikt
Thx, for your answers. Helps alot. I think the clojure version is cleaner. The meaning of all those ... words are confusing in CL. -- 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

Re: missing queue function in core?

2010-09-16 Thread nickikt
I thought it was odd too so I think something that makes this easier would be good. On Sep 15, 9:00 pm, grignaak grign...@gmail.com wrote: Does it seem odd to anyone else that this function is missing in core? I propose it gets added. (defn queue  ([] clojure.lang.PersistentQueue/EMPTY )  

Re: Blogs/Twitter accounts about Clojure

2010-09-02 Thread nickikt
http://planet.clojure.in/ is all i really need :) On 2 Sep., 18:21, HB hubaghd...@gmail.com wrote: Hey, Would you please recommend some good Blogs/Twitter accounts about Clojure? Thanks. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: I don't understand this method

2010-08-28 Thread nickikt
P.S. something I should of have said: map can take 1 function and more then one collection. Calling the function with the number of arguments of collections provided -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Some clarifications about let form

2010-08-28 Thread nickikt
yes, but you can not change it if you start a new (let ...). On 28 Aug., 16:22, HB hubaghd...@gmail.com wrote: So, any time I want to declare a local variable (inside a function for example), I use let form. On Aug 26, 8:26 pm, nickikt nick...@gmail.com wrote: Its for defining look

Re: Some clarifications about let form

2010-08-26 Thread nickikt
Its for defining look variables (constants) that you use more then once in your form and not have to write it more then once (or calculated it more then once) (let [r1 (random-int) r2 (random-int)] (when (the-same? r1 r2) (str r1 and r2 are the same)) Write

Re: Clojure Conj Questions

2010-08-25 Thread nickikt
It would be fantastic if the talkes would be record. We have seen the effects a couple of videos of rich had on the world and how many people it led to clojure (including me). On Aug 25, 9:36 am, Meikel Brandmeyer m...@kotka.de wrote: Hi, On 19 Aug., 17:19, Sean Devlin francoisdev...@gmail.com

Re: misunderstanding collection

2010-08-25 Thread nickikt
clojure sees 'signal' as 2 collections thats wrong signals is one collection with two items. These happen to be collection but only the function that gets called by map carres what it gets. How can this (map #(map reduce + %) signal) work? (map ) does take 1 function and some collections

Re: misunderstanding collection

2010-08-25 Thread nickikt
To bad we don't have a voting system like on stackoverflow would be nice to see witch answer got the most points. -- 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: cool compiler-project?

2010-08-24 Thread nickikt
...@gmail.com wrote: I thought that much of the driver behind protocols and records were to support the Clojure-in-Clojure effort. Can anyone confirm? Thanks, Daniel On Aug 23, 3:59 am, nickikt nick...@gmail.com wrote: I think he talkes about automatic detection where memoization would

Re: cool compiler-project?

2010-08-23 Thread nickikt
I think he talkes about automatic detection where memoization would be good for performence. I don't think it is done ATM but I would surly be a intressting topic. The Clojure compiler is still in Java. I think befor someone does a big project with the compiler it should be translated to clojure.

Re: What is reference?

2010-08-16 Thread nickikt
Why don't you get yourself help from Rich himself: Clojure Concurrency http://clojure.blip.tv/file/812787/ here are the slides, the video doesn't show them: http://clojure.googlegroups.com/web/ClojureConcurrencyTalk.pdf There are other great talks here: http://clojure.blip.tv/ -- You received

Re: More urgency for CinC CLR given Oracle's lawsuit against Google?

2010-08-13 Thread nickikt
Clojure runnes manly on the JVM. Oracle ownes (or has the patents) why should anything change for clojure? As far as Dalvik goes. Why should Clojure care the lawsuit is about implementation details (as far as I understand) in the VM the basic working will be the same. Befor starting a real

Re: Protocols and default method implementations

2010-08-13 Thread nickikt
@rich What are your thoughts on the default implementation problem? On Aug 13, 2:17 pm, Rich Hickey richhic...@gmail.com wrote: On Aug 12, 2010, at 7:52 PM, Tim Daly wrote: I find that I'm horribly confused at this point about what a protocol is. Can someone use some other comp. sci. terms

Re: Protocols and default method implementations

2010-08-12 Thread nickikt
Good Question, I was wondering that too. Interfaces have some problems. Protocol solve some of the Problems and Traits solve some but the do not solve the same. Would be interesting to hear how Protocols solves those problem, why the don't are problems or why the don't need to be solved in Clojure

Re: 2 links for beginners

2010-08-03 Thread nickikt
The artical is really good for people you like to jump in headfirst. I'm more of a book first guy but I told my, soon to be Clojure Programmer :) , friend about that article. Thats why nobody likes (liked) the Lisp compunity. Read the Comments http://www.loper-os.org/?p=42 On Aug 3, 4:05 pm,

Re: Looking to fit Clojure into my architecture and am in need of your informed advice!

2010-08-02 Thread nickikt
Just a little add on to Clojure on Google this is a blog of a company that uses Clojure for a project and the have a DSL for Bigtable. (There is a second blog with only talks about Clojure on google app engine as well) -- http://www.hackers-with-attitude.com/ On Aug 2, 8:47 am, Saul Hazledine

Re: fast development through clojure repl

2010-07-28 Thread nickikt
I never used emacs but in some videos I sah people doing cool stuff in it. So I started learning. I'm still a noob but I really like it already better then any IDE I have used. It makes working with the repl easy. On Jul 28, 1:49 am, Josh Stratton strattonbra...@gmail.com wrote: If you're

Re: Remove-first function

2010-07-25 Thread nickikt
@Randy Hudson Really like that solution. @Mark Engelberg Thanks for the explanation On Jul 25, 4:33 am, ataggart alex.tagg...@gmail.com wrote: To add one small addendum to Mark's excellent comment, if you use lazy- seq then you don't need to worry about the nil from when On Jul 24, 12:01 

Remove-first function

2010-07-24 Thread nickikt
Hallo all, I'm working trough Essentials of Programming Languages. I'm trying to right a function like this one: (defn scheme-remove-first [syb lst] (if (empty? lst) '() (if (= (first lst) syb) (rest lst) (cons (first lst) (scheme-remove-first syb (rest lst)) in a

Re: Haskell?

2010-07-20 Thread nickikt
Here is a bit on monads for clojure programmers. A monad tutorial for Clojure programmers (part 1) = http://onclojure.com/2009/03/05/a-monad-tutorial-for-clojure-programmers-part-1/ (don't jet understand monads either but I think it sounds interesting (and complicated)) I want to learn haskell

Re: Typed Racket

2010-07-15 Thread nickikt
Hallo all, Haveing the option of something like that would be nice but atm I think we should not focus on that. Clojure is still a young language and there is enought to do. We should not confuse people with diffrent dialects of clojure allready. On Jul 15, 7:10 am, Laurent PETIT

Re: Clojure 1.2 Beta 1

2010-07-15 Thread nickikt
the new branch is called clojure not master On Jul 15, 3:11 pm, Jeffrey Schwab j...@schwabcenter.com wrote: Is Clojure 1.2 Beta 1 built from the current clojure.git head on github?   I don't see any 1.2 branches or tags, and the repl prints the following: Clojure 1.2.0-master-SNAPSHOT I

Re: ANN lein-daemon, lein-test-out

2010-07-15 Thread nickikt
Oh nice, Lein-daemon will come in handy I wanted to do something that should work as a daemon but I had know Idea how that works. I'm glad for anything that helps :) On 16 Jul., 00:00, Allen Rohner aroh...@gmail.com wrote: I'd like to announce two new lein plugins, lein daemon and lein test-

Re: Clojure 1.2 Beta 1

2010-07-15 Thread nickikt
Sorry my answer was so short. I only remember that there was some kind of problem with master.git and clojure.git. So I thought I'll give you a tip and you will figure out the rest but your problem was bigger then I thought. On 15 Jul., 19:02, Jeffrey Schwab j...@schwabcenter.com wrote: On

Re: Amap vs Map performance

2010-07-09 Thread nickikt
Hi all, I'm running Clojure 1.1 (def an-array (int-array 25000 (int 0))) (time (amap an-array idx ret (+ (int 1) (aget an-array idx Elapsed time: 50.83188 msecs (def a-vec (vec (int-array 25000 (int 0 (time (dorun (map #(+ % (int 1)) a-vec))) Elapsed time: 17.392434 msecs So arrays are

Re: usage examples in clojure api docs

2010-06-29 Thread nickikt
We could make it possible to add some metadata to a function like :example or something. Then add a function called (example function name) to print the example. Everybody could send patches. It would be a good way to learn and a good extra doku. On Jun 30, 12:29 am, Lee Spector

Re: scala

2010-06-19 Thread nickikt
For such a young language it has a big momentum. Did Scala have that after 2 years? On 18 Jun., 23:56, cageface milese...@gmail.com wrote: Quick disclaimer - there are a lot of things I like in Scala and I think Odersky crew have done some very impressive work bringing functional language

Re: Gwt-Clojure - lightweight browser implementation

2010-06-16 Thread nickikt
That looks really cool. I want to do some webstuff with clojure soon and I have to look at your stuff more then and I have to read a bit about GWT never heard of it until now. On 15 Jun., 20:48, pfisk peter.f...@gmail.com wrote: Gwt-Clojure is a subset of the Clojure language which was developed

Re: noob questions - Hello world + learning

2010-06-14 Thread nickikt
Hello, I have a some comments (on comments and more :)) First this (comment . ) There are diffrent kind ofs comments. If you just want to note something you can do ; but mabey you want to have a example how to use something in your Code then use (comment ). With defn you creat a new

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread nickikt
Hallo, What real helped me to start thinking in The Clojure Way are the Talks that Rich gave. You can find some of them here http://clojure.blip.tv/posts?view=archivensfw=dc I think you should check out the Clojure for Lisp Porgrammers Part 1 and 2. In talks he goes deeper because he does not

dump html with clojure

2010-05-12 Thread nickikt
Hallo all, A friend of mine ask if there is a smart way to get the html code of couple thousand links but with a script, it takes for ever since it always has takes a couple of seconds to get the connection. I needs to be multi threaded so we can use all of the download rate. So I sad I could