Re: Why I'm getting StackoverflowError?

2010-12-06 Thread nickik
What is the difference between rest and next? This has to do with lazyness. I wrote an answer to that on stackoverflow. http://stackoverflow.com/questions/4288476/clojure-rest-vs-next Should answer everthing. I'm confused, should I use empty? or not? when to use it? Why Clojure decided to

Re: Why I'm getting StackoverflowError?

2010-12-06 Thread nickik
On Dec 6, 11:40 am, Ken Wesson kwess...@gmail.com wrote: Won't that make the internal recursive call fail though? And even if not -- ugly IMO. :) Agree. Why make something slower and more ugly? -- You received this message because you are subscribed to the Google Groups Clojure group. To

Re: The 'in' family

2010-12-14 Thread nickik
On Dec 15, 6:12 am, Mark Engelberg mark.engelb...@gmail.com wrote: One thing I've argued for in the past, but got no traction: We have: get-in, get assoc-in, assoc update-in, ? Let's add update to go with update-in. update should really be in there. I always try to write update then i

Re: Yegge's Lisp is not an acceptable Lisp - was he talking about Clojure?

2010-12-14 Thread nickik
Lisp is Not an Acceptable Lisp Friday, April 14, 2006 Clojure wasn't out then. -- 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

Re: Lazy Programming

2010-12-15 Thread nickik
I've been a lazy programmer for more than 30 years. :-) True me to but the trick is to let the computer be lazy too. Because we all know a team of lazy 'things' work best. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: Native Clojure

2010-12-20 Thread nickik
Clojure is designed to be hosted. So I'm pretty sure that there are no plan to write a nativ clojure VM but you could try to compile the byte code with llvm. I here there is a java byte code frontend. On Dec 20, 8:43 am, kaveh_shahbazian kaveh.shahbaz...@gmail.com wrote: Is there a natively

Re: clojure - javascript

2010-12-21 Thread nickik
The dream would be to have: - Everything for clojure in clojure - A nice compiler in clojure - java speed clojure - Collections and multimethodes in clojure - A js generating backend for the compiler that works with GWT for the required java stuff Unfortunately I do not (jet) have the skill to

Re: Do type hints cause auto casting?

2010-12-31 Thread nickik
The hints are not use for static type analysis they are there for speed. There is no type checker. In your example the compiler tries using it as an int if that is not working the compiler uses reflaction to find out the type. no auto casts are by design. On 31 Dez., 05:57, Jarl Haggerty

benchmarking tipps and tricks

2010-11-21 Thread nickik
Hallo all, I know that what I'm asking here is not 100% about clojure but I hope people in here can help me anyway. Me and a classmade of mine have to do a project for school and we though i would be cool to do some programming language benchmarking. Its a good fit because he is a systems guy

Re: Destructuring noob question

2010-11-22 Thread nickik
as for first and next: You can do this (let [fst (first [1 2 3 4 5 6]) rst (rest [1 2 3 4 5 6])] (println first: fst) (println rest: rst)) or (let [[fst rst] [1 2 3 4 5 6]] (println first: fst) (println rest: rst)) both print this: first: 1 rest: (2 3 4 5 6) -- You

Re: Porting libraries to ClojureCLR

2010-11-24 Thread nickik
I thought about that a little too. The thing is that clojure is doing something almost imposible. There is almost know way around writing you json library backand in clr interop. If we want to make clojure programm that run on the clr, the jvm and possibly in the browser we have to write pure