Re: A Performance Comparison of SBCL & Clojure

2012-08-25 Thread Stuart Sierra
The Alioth benchmarks are somewhat unfair to JVM languages because they include startup time for the JVM itself and often don't run enough iterations to engage the optimizer. -S On Sat, Aug 25, 2012 at 1:51 PM, Raymond de Lacaze > > wrote: > > Here’s a performance benchmark comparison of SBCL

how to disconnect/quit the repl in nrepl.el?

2012-08-25 Thread Shanmu
Hi All, Is there a way to disconnect/quit the repl in nrepl.el cleanly? Thanks, Shanmu. -- 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 - ple

Emacs 23 error: Package `clojure-mode' is not available for installation

2012-08-25 Thread mperdikeas
I am using* Emacs GNU Emacs 23.3.1* on Ubuntu and I am following the instructions found here: https://github.com/technomancy/clojure-mode/blob/master/README.md on how to setup clojure-mode for Emacs. But launching my Emacs reports the following error: error: Package `clojure-mode' is not avail

Particle system with Quil

2012-08-25 Thread meteorfox
I've been working in a particle system using Quil for rendering, which I'm calling Newtonian for now ;) , just to practice some of the concepts of protocols and defrecords. The project is still WIP. Any feedback will be appreciate it. github.com: https://github.com/meteorfox/newtonian Vimeo: (

[ANN] Leiningen 2.0.0-preview10 released

2012-08-25 Thread Phil Hagelberg
I just pushed out version 2.0.0-preview10 of Leiningen. The only differences since preview9 are these: * Fix a bug where repositories wouldn't be checked running outside a project. * Make repl listen on 127.0.0.1 instead of localhost to address IPv6 issues. * Show how to turn off certificate che

Re: [ANN] Leiningen 2.0.0-preview9 released

2012-08-25 Thread Sam Aaron
Awesome, thanks. On 25 Aug 2012, at 21:52, Phil Hagelberg wrote: > Phil Hagelberg writes: > >> Sam Aaron writes: >> >>> I'm having a problem upgrading due to SSL certificate issues >>> >>> (I'm running OS X 10.8.1) >> >> Hmmm; you should be seeing a message from Leiningen about how to disa

Re: emacs error: Package `clojure-mode' is not available for installation

2012-08-25 Thread Peter Buckley
I had various issues with clojure-mode, swank, slime, etc. with emacs 23 until I switched to emacs 24. Emacs 24 is much simpler to download now (don't have to compile from source) and is likely the quickest solution to all your clojure/emacs issues. -Original Message- From: Menelaos Pe

emacs error: Package `clojure-mode' is not available for installation

2012-08-25 Thread Menelaos Perdikeas
I am following the instructions on: https://github.com/technomancy/clojure-mode/blob/master/README.md on how to setup emacs with Clojure-mode. I am running GNU Emacs 23.3.1 in Ubuntu. Launching my Emacs fails with: error: Package `clojure-mode' is not available for installation The relevan

Re: Can CLJS functions have metadata?

2012-08-25 Thread Timothy Baldridge
> It's not currently supported. Ticket welcome. If you have ideas about >> a good approach that's even better. Part of the problem is that >> Clojure fns are just JS fns. >> > > Can't we just set the attribute on the function? This works under Chrome, not sure about other browsers: z = function(x)

Re: Can CLJS functions have metadata?

2012-08-25 Thread Shantanu Kumar
On Saturday, 25 August 2012 22:06:28 UTC+5:30, David Nolen wrote: > > On Sat, Aug 25, 2012 at 3:49 AM, Shantanu Kumar > > wrote: > > Hi, > > > > I noticed that `with-meta` is not working on function objects in CLJS. > > Compilation fails with the following error: > > > > Error: No protocol

Re: problem 58 on 4clojure

2012-08-25 Thread John Holland
OK, I think I'm starting to get it now - the idea is a function that accepts x & xs , which are functions, and returns a function which has a var-args arity [& args], which is the composition of the xs. Thanks to all for the replies - I still haven't looked at the source to comp but it will be fun

Re: A Performance Comparison of SBCL & Clojure

2012-08-25 Thread Mark Watson
Hello Ray, Just a factor of 3 slower is pretty good :-) The increased memory use is more disturbing to me since I often use Clojure+Noir for deploying small web services and web apps. The extra memory is more of a hassle than slightly slower execution speed. Best regards, Mark On Sat, Aug 25,

Re: 'functional' performance VS 'imperative' complexity

2012-08-25 Thread Dennis Haupt
+1 i stay functional if possible and fall back to mutable on isolated, performance critical spots if i can't get it done fast enough in a purely functional way. i solved the move-mess-up-everything problem by forcing a move to implement both apply and unapply on a game board. (it was a java proje

Re: Odd residual exception behaviour at the repl

2012-08-25 Thread Colin Jones
It's a bug in reply. I've opened up an issue to get it fixed - thanks for the report. https://github.com/trptcolin/reply/issues/80 On Saturday, August 25, 2012 3:06:28 PM UTC-5, John Gabriele wrote: > > Ran into something odd. Not sure if it's a bug. > > In the repl, if I try `(def x ^{:a 1}

Re: [ANN] Leiningen 2.0.0-preview9 released

2012-08-25 Thread Phil Hagelberg
Phil Hagelberg writes: > Sam Aaron writes: > >> I'm having a problem upgrading due to SSL certificate issues >> >> (I'm running OS X 10.8.1) > > Hmmm; you should be seeing a message from Leiningen about how to disable > certificate checking by exporting HTTP_CLIENT. Is the message you > included

Re: [ANN] Leiningen 2.0.0-preview9 released

2012-08-25 Thread Phil Hagelberg
Sam Aaron writes: > I'm having a problem upgrading due to SSL certificate issues > > (I'm running OS X 10.8.1) Hmmm; you should be seeing a message from Leiningen about how to disable certificate checking by exporting HTTP_CLIENT. Is the message you included the complete output, or did you trunc

Odd residual exception behaviour at the repl

2012-08-25 Thread John Gabriele
Ran into something odd. Not sure if it's a bug. In the repl, if I try `(def x ^{:a 1} 42)`, I get an exception (right, since I can't assign metadata to the value 42). But then after that, if I try something else (say, typing "hi" into the repl), I get a 2nd exception message. Here's an example:

'functional' performance VS 'imperative' complexity

2012-08-25 Thread Jim - FooBar();
Hello everyone, in this post I'm not asking for something specific, but rather I'd like to spark a discussion regarding the issue of performance within the functional paradigm...most of the things i will mention will probably not be news for most of you...Hopefully, however the issues I plan

[ANN] nio: Clojure support for java.nio

2012-08-25 Thread Paul Stadig
I have done a little library to provide better support in Clojure for java.nio. It covers three main areas: 1) extending clojure.java.io to cover java.nio type where reasonable, 2) providing a set of coercion functions for java.nio types (similar to those for java.io provided by clojure.java.io), a

Re: problem 58 on 4clojure

2012-08-25 Thread John Holland
Thanks to a for the replies. I will study them later when I am free. On Aug 25, 2012 2:37 PM, "nicolas.o...@gmail.com" wrote: > > Here's my take: > > We want to define a function my-comp. It takes n functions and return > their composition. > We want to return a function of any number of argum

Re: problem 58 on 4clojure

2012-08-25 Thread nicolas.o...@gmail.com
Here's my take: We want to define a function my-comp. It takes n functions and return their composition. We want to return a function of any number of arguments, so let's start by working with a given set of argument args, and returning the value of the composition applied to those arguments. - I

Re: [ANN] Leiningen 2.0.0-preview9 released

2012-08-25 Thread Sam Aaron
I'm having a problem upgrading due to SSL certificate issues (I'm running OS X 10.8.1): λ lein upgrade The script at /Users/sam/bin/lein will be upgraded to the latest preview version. Do you want to continue [Y/n]?

Re: problem 58 on 4clojure

2012-08-25 Thread Denis Labaye
On Sat, Aug 25, 2012 at 6:47 PM, John Holland wrote: > This problem is really confusing me. I found a solution online, but I > can't understand the solution. Can anyone explain to me why this > works? > > The problem is stated as: > > > > Write a function which allows you to create function compo

Re: problem 58 on 4clojure

2012-08-25 Thread Erlis Vidal
Thanks for the link. I didnt notice the problem number in the URL. I've sorted the problems and lost the default order. Thanks again Erlis On Sat, Aug 25, 2012 at 1:29 PM, Mayank Jain wrote: > On Sat, Aug 25, 2012 at 10:54 PM, Erlis Vidal wrote: > >> How can I find the problem # 58? >> > > http

Re: problem 58 on 4clojure

2012-08-25 Thread Mayank Jain
On Sat, Aug 25, 2012 at 10:54 PM, Erlis Vidal wrote: > How can I find the problem # 58? > http://www.4clojure.com/problem/58 Just modify the parameter to the problem number you want to see. > This is something I was looking right now. What's the best order to > follow? Start with the first p

Re: problem 58 on 4clojure

2012-08-25 Thread Erlis Vidal
How can I find the problem # 58? This is something I was looking right now. What's the best order to follow? I know I can sort by complexity but I think there should be a better way to sort them. Thanks On Sat, Aug 25, 2012 at 1:05 PM, Bronsa wrote: > its* > > > 2012/8/25 Bronsa > >> check ou

Re: problem 58 on 4clojure

2012-08-25 Thread Bronsa
its* 2012/8/25 Bronsa > check out clojure.core/comp, and it's source > > > 2012/8/25 John Holland > >> This problem is really confusing me. I found a solution online, but I >> can't understand the solution. Can anyone explain to me why this >> works? >> >> The problem is stated as: >> >> >> >>

Re: problem 58 on 4clojure

2012-08-25 Thread Bronsa
check out clojure.core/comp, and it's source 2012/8/25 John Holland > This problem is really confusing me. I found a solution online, but I > can't understand the solution. Can anyone explain to me why this > works? > > The problem is stated as: > > > > Write a function which allows you to creat

problem 58 on 4clojure

2012-08-25 Thread John Holland
This problem is really confusing me. I found a solution online, but I can't understand the solution. Can anyone explain to me why this works? The problem is stated as: Write a function which allows you to create function compositions. The parameter list should take a variable number of function

Re: Can CLJS functions have metadata?

2012-08-25 Thread David Nolen
On Sat, Aug 25, 2012 at 3:49 AM, Shantanu Kumar wrote: > Hi, > > I noticed that `with-meta` is not working on function objects in CLJS. > Compilation fails with the following error: > > Error: No protocol method IWithMeta.-with-meta defined for type function: > function (maps, x) { > return

Re: Rich's "The Value of Values" and REST

2012-08-25 Thread Softaddicts
A 12 billions market has been created just to address the need for bookkeeping historic data, it's called business intelligence (BI). Never heard of data warehouses and OLAP tools ? Many businesses use these if they can pay for them These things are cumbersome to implement, you have to extrac

Re: [ANN] Leiningen 2.0.0-preview9 released

2012-08-25 Thread Phil Hagelberg
Christian Sperandio writes: > I went to a project folder and launching lein help, lein downloaded > the necessary package. And now, it seems ok. > But it's weird I couldn't do a lein help in any folder. Yeah, just tracked down the cause of this bug. There is a workaround here: https://githu

Re: The Value of Values

2012-08-25 Thread Mayank Jain
Here you go :- https://groups.google.com/d/topic/clojure/XMbo15-gk6M/discussion On Sat, Aug 25, 2012 at 8:08 PM, Balint Erdi wrote: > I'd like to read that thread, can you provide a url? > > Thank you, > Balint > > > On Saturday, August 25, 2012 2:41:40 AM UTC+2, Bost wrote: >> >> See the thread

Re: The Value of Values

2012-08-25 Thread Balint Erdi
I'd like to read that thread, can you provide a url? Thank you, Balint On Saturday, August 25, 2012 2:41:40 AM UTC+2, Bost wrote: > > See the thread "The Value of Values" started by Conrad Barski > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Can CLJS functions have metadata?

2012-08-25 Thread Shantanu Kumar
Hi, I noticed that `with-meta` is not working on function objects in CLJS. Compilation fails with the following error: Error: No protocol method IWithMeta.-with-meta defined for type function: function (maps, x) { return x; } I tried it out on the REPL and found the following: -

Re: [ANN] Leiningen 2.0.0-preview9 released

2012-08-25 Thread Michael Klishin
2012/8/25 Christian Sperandio > I found. > > I went to a project folder and launching lein help, lein downloaded the > necessary package. And now, it seems ok. > But it's weird I couldn't do a lein help in any folder. > > GH issue: https://github.com/technomancy/leiningen/issues/747 -- MK --

Re: [ANN] Leiningen 2.0.0-preview9 released

2012-08-25 Thread Christian Sperandio
I found. I went to a project folder and launching lein help, lein downloaded the necessary package. And now, it seems ok. But it's weird I couldn't do a lein help in any folder. Chris Le samedi 25 août 2012 08:53:09 UTC+2, Christian Sperandio a écrit : > > Hi, > > I did a lein upgrade and now