Re: ANN: Windows installer for Leiningen

2013-03-31 Thread Roberto Mannai
On Sun, Mar 31, 2013 at 5:23 PM, David Powell wrote: > I think that this patch fixes the issue: > https://github.com/djpowell/leiningen/commit/bd9e2e25508cfc01889057349b133941ff4fc379 > > It seems that quotes around powershell parameters on the command-line need > to be triple-double-quoted :) T

Re: ANN: Windows installer for Leiningen

2013-03-31 Thread Roberto Mannai
C:\Users\Roberto Mannai\.lein\bin>powershell -Command echo $host.version Major Minor Build Revision - - - 2 0 -1 -1 I'm doing some test, the problem seems to be this line: powershell -Command "& {param($a,$f) (new-object Sys

Re: ANN: Windows installer for Leiningen

2013-03-31 Thread Roberto Mannai
of lein.bat, not of your installer, anyway it would be nice if your package could embed all the hidden dependencies, as it already does for "curl.exe". Kind regards, Roberto (*) C:\Users\Roberto Mannai\.lein\bin>lein self-install Downloading Leiningen now... Eccezione durante la chiama

Re: tutorials or screencasts on debuggers in clojure?

2012-10-23 Thread Roberto Mannai
There is a ticket in CDS: https://github.com/clojuredocs/cds/issues/27#issuecomment-9583049 On Wednesday, October 24, 2012, Warren Lynn wrote: > +1. I just got the basic ritz-nrepl set up in the hope to try out the > debugger. But I don't even know where to start. How to set a breakpoint, > for e

Re: code design in clojure

2012-10-18 Thread Roberto Mannai
See "Functional Programming for the Object-Oriented Programmer" ( https://leanpub.com/fp-oo) Il giorno 18/ott/2012 19:01, "Sean Corfield" ha scritto: > On Thu, Oct 18, 2012 at 8:58 AM, Brian Craft wrote: > >> "Clojure Programming", and "The Joy of ..." > > > Hmm, I was going to suggest Joy of but

[OT] Re: ANN clojure-doc.org (aka CDS), a new community-driven Clojure documentation site

2012-10-10 Thread Roberto Mannai
I'm pretty sure you have already thought about it and it's me that missed your considerations, but why we are not using a wiki-based tool, like Wordpress, instead of forking a git branch? On Mon, Oct 8, 2012 at 6:25 PM, Michael Klishin wrote: > ## Announcing clojure-doc.org > > I am starting a n

Re: Attractive examples of function-generating functions

2012-08-16 Thread Roberto Mannai
typo, I meant ring *middleware*, not ring handlers On Thu, Aug 16, 2012 at 1:01 PM, Roberto Mannai wrote: > > So if you are searching for practical examples I'd suggest to look for > such use cases, although their best application IMHO has to be found not in > business co

Re: Overtone - Actual Music!

2012-08-16 Thread Roberto Mannai
+1 On Wed, Aug 15, 2012 at 1:05 PM, Bruce Durling wrote: > Sam, > > That's amazing. Thanks for posting that. :-D > > cheers, > Bruce > > On Wed, Aug 15, 2012 at 11:50 AM, Sam Aaron wrote: > > Hey everyone, > > > > sorry, I couldn't resist posting this, but I'm getting real close to > making dec

Re: Attractive examples of function-generating functions

2012-08-16 Thread Roberto Mannai
I don't have my own examples, anyway being a daily object-oriented programmer I'm feeling compelled to say that where "function-generating functions" prove their main practical power is in what I'd label "man in the middle functions". Whenever I need to add behaviour to an existing OO method I hav

Re: Error running clojure file.

2012-08-16 Thread Roberto Mannai
var or not. On Thu, Aug 16, 2012 at 11:32 AM, Roberto Mannai wrote: > There is a "return" which splits # and { on the second set definition, > translating it into a map definition: > > # > {10710, > > After correcting it, I get a new curious error: > *Unknown

Re: Error running clojure file.

2012-08-16 Thread Roberto Mannai
There is a "return" which splits # and { on the second set definition, translating it into a map definition: # {10710, After correcting it, I get a new curious error: *Unknown constant tag 44 in class file user$eval1976* * [Thrown class java.lang.ClassFormatError]* On Thu, Aug 16, 2012 at 9:44

Re: Overtone - Live @ Arnolfini

2012-08-07 Thread Roberto Mannai
On Tuesday, August 7, 2012, Sam Aaron wrote: > > On 7 Aug 2012, at 08:21, Roberto Mannai > > wrote: > > > +1. The piano composition is reminescent of some Gurdjieff/De Hartmann > music. > > The piano piece was composed by Erik Satie - I simply played my own > int

Re: Overtone - Live @ Arnolfini

2012-08-07 Thread Roberto Mannai
+1. The piano composition is reminescent of some Gurdjieff/De Hartmann music. I liked too the live coding gestures, where I track down your Emacs key bindings and your flowing among buffers. BTW, how did you update the values of that "blue numerical sliders"? By mouse? On Sunday, August 5, 2012, G

Re: Lambda: A lniux distro for clojurists

2012-05-29 Thread Roberto Mannai
+1, although maybe we are going OT. With the derivate Lucid Puppy you can also reuse and install existing .deb packages. On Sunday, May 27, 2012, James Jeffries wrote: > It might be worth looking into Puppy Linux. It is quite easy to make a > derivative of of it and the community around it (forum

Re: Lambda: A lniux distro for clojurists

2012-05-25 Thread Roberto Mannai
You could consider the SuseStudio online environment [1]. It allows simple fine-graned package selections and different output formats (live CD, ISOs, VMware / VirtualBox / KVM image, Amazon EC2 image). [1] http://susestudio.com/ Examples: http://susestudio.com/browse On Thu, May 24, 2012 at 10:1

Re: How do I set jvm options for a lein repl

2012-05-21 Thread Roberto Mannai
You could add the following evinroment variable to your OS: LEIN_JVM_OPTS=-Xms4G -Xmx4G On Windows for example, you could add at the top of "lein.bat" file the following line (under "@echo off"): SET LEIN_JVM_OPTS=-Xms4G -Xmx4G This should be enough to do the trick. On Mon, May 21, 2012 at 6:51

Re: Clojure for shell scripts

2012-05-20 Thread Roberto Mannai
Maybe this experiment could interest you (clojurescript as a plugin of gnome): https://github.com/technomancy/lein-gnome In general, if AFAIK the main performance issue is the jvm startup time and the loading of the clojure.core library, one first solution could be keeping a single background repl

Re: [ANN] Clojure Namespace Browser (clj-ns-browser "1.0.0")

2012-05-19 Thread Roberto Mannai
I got the error: *user=> (use 'clj-ns-browser.sdoc) ClassNotFoundException com.fasterxml.jackson.core.JsonFactory* java.net.URLClassLoader$1.run (URLClassLoader.java:366) Should I add any jackson dependency? I followed these instructions on Windows / lein 1.7: ;; Leiningen version 1 :de

Re: Clojure Bee iPhone app updated

2012-05-17 Thread Roberto Mannai
Looks interesting. Does it work off-line with local docs or require an Internet connection? BTW, do you know any Web Repl working on an iPhone or iPad? I tryied: - http://tryclj.com/ (well, it works but does not support a copy/past action) - http://lotrepls.appspot.com/ (it requires a submit via

Re: How to configure a Clojure library at runtime?

2012-05-14 Thread Roberto Mannai
Instead of using "alter-var-root" you could use the "binding" form. On this subject of factory methods you could find useful the following article, expecially the "with-implementation" macro: http://pragprog.com/magazines/2011-07/growing-a-dsl-with-clojure IMHO that solution should not prevent th

Re: new with clojure, need help!

2012-05-06 Thread Roberto Mannai
If you're also planning to try Emacs: http://sourceforge.net/apps/wordpress/codesounding/2012/04/14/installing-and-configuring-emacs-24-for-clojure-updated/ Key bindings (under "SLIME commands"): https://github.com/technomancy/swank-clojure On Wed, Apr 25, 2012 at 4:37 PM, omer wrote: > [...] i

Re: Why doesn't doc work in clojure-jack-in slime-repl?

2012-05-04 Thread Roberto Mannai
rto. Works like a charm. > --Larry > > > On 5/4/12 2:32 PM, Roberto Mannai wrote: > > You should "use" it: > > user> (use 'clojure.repl) > nil > user> (doc doc) > ... > > > On Fri, May 4, 2012 at 9:27 PM, Larry Travis wrote: >

Re: Why doesn't doc work in clojure-jack-in slime-repl?

2012-05-04 Thread Roberto Mannai
You should "use" it: user> (use 'clojure.repl) nil user> (doc doc) ... On Fri, May 4, 2012 at 9:27 PM, Larry Travis wrote: > A command like > > user> (doc hash-map) > > in the slime-repl created by clojure-jack-in > > results in > > Unable to resolve symbol: doc in this context > [Thrown clas

Re: How does this code works.

2012-04-15 Thread Roberto Mannai
if (n == 0) return the "factorial", else go to the "loop label" and recur with the two parameters (n--) and (factorial * n). Go on until n-- reaches 0. In a Java-like translation we could have: int n = number; factorial = 1; while(n > 0){ factorial *= n--; } return factorial; On Sun, Apr

Re: [OT] Any other italian Clojure users?

2012-03-26 Thread Roberto Mannai
Hi Marco, here another "user" (really a student), although I'm out-of-sync with Clojure since a couple of months. Why do not create also an Italian Clojure Linkedin group? Ciao, Roberto On Thu, Mar 22, 2012 at 10:21 AM, Marco Dalla Stella < m.dallaste...@gmail.com> wrote: > Hi, > > I just want

Re: Setting up Emacs to edit Clojure for Windows folks

2012-01-25 Thread Roberto Mannai
My notes about installing Emacs 24 on Windows 7, with clojure support: http://sourceforge.net/apps/wordpress/codesounding/2011/09/29/installing-emacs-24-and-clojure-mode-on-windows-7-step-by-step/ On Wed, Jan 25, 2012 at 11:40 PM, Sean Corfield wrote: > > http://corfield.org/articles/emacs_win.ht

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-22 Thread Roberto Mannai
der.loadClass(Launcher.java:301)\n at > java.lang.ClassLoader.loadClass(ClassLoader.java:247)\nCould not find > the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C: > \\Java\\.lein\\self-installs\\leiningen-1.6.0-standalone.jar.  Program > will exit.\nExcepti

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Roberto Mannai
If you're having problems with cygwin, you could use Emacs/lein without it: http://sourceforge.net/apps/wordpress/codesounding/2011/09/29/installing-emacs-24-and-clojure-mode-on-windows-7-step-by-step/ On Tue, Nov 22, 2011 at 8:24 AM, Michael Jaaka wrote: > Well, in plugins i had 1.3.3 but in pro

Re: Literate Programming example

2011-11-20 Thread Roberto Mannai
FYI: some time ago the Opensuse project used such a collaborative tool (http://www.co-ment.com) in order to get a shared mindset of its goals. This was the result, see how clicking on higlight words points to their comments: https://lite.co-ment.com/text/lNPCgzeGHdV/view/ On Sat, Nov 19, 2011 at 1

Re: trouble setting up emacs

2011-10-24 Thread Roberto Mannai
It seems you're having some problems with incompatible slime versions. On Mac I'm successfully using Acquamacs (http://aquamacs.org/download.shtml - do NOT install Aquamacs-SLIME-xx.pkg.tgz) without any particular workaround. Just install it, install lein (my script is /usr/bin/lein) and the clojur

Re: aquamacs, slime and clojure on OS X

2011-10-24 Thread Roberto Mannai
es an embedded slime.el - check swank-clojure-1.4.0-SNAPSHOT.jar\swank\payload) On Mon, Sep 26, 2011 at 2:56 AM, Roberto Mannai wrote: > > I have some trouble. I'm on OSX Lion, and have a few hours ago > installed Aquamacs and SLIME from http://aquamacs.org/download.shtml. > The

Re: aquamacs, slime and clojure on OS X

2011-09-25 Thread Roberto Mannai
I have some trouble. I'm on OSX Lion, and have a few hours ago installed Aquamacs and SLIME from http://aquamacs.org/download.shtml. Then installed lein/swank/and clojure-mode, as Phil suggested. In order to make it work I had to remove the autodoc option, by commenting line 20 from /Library/Appli

Re: ClojureBox on Window 7: classpath in .emacs file not working

2011-09-17 Thread Roberto Mannai
Update: setting manually an environment variable named HOME, you can choose where clojurebox/emacs will search your .emacs file. On Thu, Sep 15, 2011 at 9:13 PM, Roberto Mannai wrote: > Hi rsgoheen, > > Here how I'm now able to work with Clojurebox on Windows 7. Perhaps > mine

Re: ClojureBox on Window 7: classpath in .emacs file not working

2011-09-15 Thread Roberto Mannai
Hi rsgoheen, Here how I'm now able to work with Clojurebox on Windows 7. Perhaps mine it isn't exactly the same as yours but can give some hints. After some process sniffing, I found that Emacs was searching the .emacs file under C:\, so I created it. In order to create it, you have to do it in D

Clojure Speed performance test

2011-08-18 Thread Roberto Mannai
Hello, I recently stumbled upon this page: http://java.dzone.com/articles/contrasting-performance They are comparing several languages (Java, Scala, Python, Erlang, Clojure, Ruby, Groovy, Javascript), and Clojure rated very badly: Object Oriented List Reduction Elemen

Re: Standard Practice for a Canned Lexer, Parser, Analyzer?

2010-01-30 Thread Roberto Mannai
On Sat, Jan 30, 2010 at 1:04 PM, Michael Wood wrote: > > I have come across references to a "declarative implementation of the > DICOM-3 network protocol" written in Common Lisp and I was wondering > what that means, exactly, and how one would go about doing something > for an arbitrary network pr

Re: Standard Practice for a Canned Lexer, Parser, Analyzer?

2010-01-30 Thread Roberto Mannai
On Sat, Jan 30, 2010 at 1:04 PM, Alex Osborne wrote: > there *are* binary protocol parser generators.  An > example would be Google protocol buffers: > > http://code.google.com/p/protobuf/ Very interesting, thank you -- You received this message because you are subscribed to the Google Groups "

Re: Standard Practice for a Canned Lexer, Parser, Analyzer?

2010-01-30 Thread Roberto Mannai
I should not go with an automatic parser. Binary network protocols can mean a broad range of things :). If there is just a passive consumer (like a textual HTTP browser), you could "consume" all the binary data and then parse it, though I don't know if do exist a grammar for binary symbols (just fo

Re: Standard Practice for a Canned Lexer, Parser, Analyzer?

2010-01-29 Thread Roberto Mannai
I mean, the whole article: http://martinfowler.com/articles/codeGenDsl.html > http://martinfowler.com/articles/codeGenDsl.html#UsingTemplatesForGeneration. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: Standard Practice for a Canned Lexer, Parser, Analyzer?

2010-01-29 Thread Roberto Mannai
Hello Liam I'm neither an expert on this subject. :) Nevertheless I'll give you my position. Defining a new language, formally speaking, is very hard: you have to define new symbols and rules. On many languages the same token can be used in different contexts (think of "{" on Java: if blocks, meth

Re: reading a range from a large file

2009-10-27 Thread Roberto Mannai
setLineNumber should not skip lines (at least officially - see http://java.sun.com/j2se/1.4.2/docs/api/java/io/LineNumberReader.html). If every line is of fixed size, in Java you could use a RandomAccessFile. On Sun, Oct 25, 2009 at 3:30 AM, tommy c wrote: > > I have a huge file(>900MB) that I

Re: Anyone care to defend/comment some points in this presentation

2009-09-18 Thread Roberto Mannai
Also the slide 21 should worth an answer: a benchmark of STM with more CPU gives "Performance died – choked in the STM" On Fri, Sep 18, 2009 at 9:22 AM, Michael Wood wrote: > > 2009/9/17 z5h : > > > > Specifically some problems encountered in Clojure's STM and bytecode > > generation. > > > > >