Re: Teaching Clojure to students (how ?)

2013-10-09 Thread Denis Labaye
Show interactive programing with the REPL. For example implementing a data transformation function incrementally in the REPL. By starting with an example of input. And successively bringing it closer to the final output. (Threading macros work great for that). I showed it to a few java developer

Re: [ANN] Marginalia has a new home

2013-08-16 Thread Denis Labaye
Marginalia is beautiful On Aug 15, 2013 4:34 PM, "Gary Deer" wrote: > This is my first major contribution to the Clojure community so I'm > looking forward to continuing the great work that Fogus et al have done. > > I'd like to publicly thank Fogus for letting me take the reins on a major > proj

Re: In what OS do you code?

2013-06-14 Thread Denis Labaye
On Fri, Jun 14, 2013 at 3:52 PM, Gary Trakhman wrote: > Linux. I started making the investment 12 years ago with RedHat 6.2 and > Slackware, so the extra fuss-time tradeoff is worth it for me, since I can > minimize it by now. > > I can have a working clojure system from scratch in 20 minutes, wh

Re: In what OS do you code?

2013-06-14 Thread Denis Labaye
Linux everywhere: - Natively @ work - Natively @ home - In a VirtualBox VM in a MacBook air in the tube Reasons: - Free and Open source - "Standard" (Learn once use everywhere) - Rock solid On Fri, Jun 14, 2013 at 3:46 PM, Erlis Vidal wrote: > Hi, > > I'm a bit curious to know in what OS do yo

Re: Best IDE

2013-06-07 Thread Denis Labaye
*Learning Emacs is more important than learning Clojure.* -- A Clojure fanboy and former Vim user On Fri, Jun 7, 2013 at 10:46 PM, futile wrote: > Before, I used vim for several years. But when I learned Clojure I > switched to emacs, and it's really not hard or awkward like I was afraid >

Re: How to cleanly interface with a Java lib that requires mutability?

2013-06-07 Thread Denis Labaye
] Object (setBar [this s] (set! x (do-some-stuff))) (baz[this ] x)) Oh boy! My first attempt was ugly :) > > > > On Fri, Jun 7, 2013 at 3:21 PM, Denis Labaye wrote: > >> Hi, >> >> I'm writting Clojure code that is used by a Java framework (Fitnesse

Re: clojure diffs

2013-06-07 Thread Denis Labaye
On Fri, Jun 7, 2013 at 5:13 PM, Alex Baranosky < alexander.barano...@gmail.com> wrote: > Thanks for remembering gui-diff Denis :) You never "officially" announced it (didn't see anyway). So here it is :-) My most valuable Clojure dev tool (along with clojure.tools/trace. And wait ... Incanter a

How to cleanly interface with a Java lib that requires mutability?

2013-06-07 Thread Denis Labaye
Hi, I'm writting Clojure code that is used by a Java framework (Fitnesse's slim for those who knows). To workflow is like this: Instanciation of a new Java objectf = new Foo()Initialization with settersf.setBar("ze bar")And then call some methodsf.baz() My solution is something like: (ns Foo

Re: [ANN] alpacas: a new Clojure source viewer

2013-06-04 Thread Denis Labaye
Idea seems great but no screenshots? Too bad for a visual tool On Tue, Jun 4, 2013 at 10:13 PM, Andrea Chiavazza wrote: > Alpacas is an application that displays Clojure source code with forms > shown as nested boxes, doing away with parenthesis altogether. > Run it with "lein run" and it will d

Re: [ANN] Pedestal Application Framework

2013-03-22 Thread Denis Labaye
hurray! It looks really promising. I would mention the relevance podcast about Pedestal, it's a really smooth introduction. I started playing with Pedestal, and I particularly appreciate the incremental approach of the "gett

Re: ANN: core.logic 0.8.0

2013-03-18 Thread Denis Labaye
On Sun, Mar 17, 2013 at 8:50 PM, David Nolen wrote: > I'm happy to announce the release of core.logic 0.8.0. There are far too > changes, bug fixes, and enhancements to cover here. For the most part the > miniKanren portion of core.logic has been left unchanged from the > standpoint of the user.

Re: What's the point of -> ?

2013-03-13 Thread Denis Labaye
I find the threading macros expressions much easier to *write* and *edit* than their nested expression counterparts. And it comes very handy when working at the REPL, to incrementally build an expression. It's easier to toggle on / off some parts of the pipeline than it is for a nested expression

Consuming REST APIs in Clojure: What's the best way?

2013-03-01 Thread Denis Labaye
Hi, I'm using clj-http to consume a JSON REST API. The code is ugly [1]: I'm in the process of rewriting it, and I would love to have some inputs from the community on how to design it. I love the Datomic way "everything is data", but I don't want/can re-invent a query DSL [2]. Does anyone kno

Re: clojure web developer job offer

2013-02-02 Thread Denis Labaye
On Fri, Feb 1, 2013 at 12:01 AM, Vagif Verdi wrote: > Our company is looking for a full time or consultant developer. > > The job is to maintain and continue actively develop web application / > internal webservices written in clojure. > > We use compojure web framework, darcs for repository. > >

Re: [ANN] Leiningen 2.0.0 released

2013-01-21 Thread Denis Labaye
Congrats! On Mon, Jan 21, 2013 at 3:07 AM, James Xu wrote: > Thanks! > > > On Sunday, January 20, 2013 1:00:19 PM UTC+8, Phil Hagelberg wrote: >> >> >> Greetings fellow Clojure people. >> >> I've just pushed out the final release of Leiningen 2.0.0. The changes >> since the last release candidate

Re: How to (easily) show the advantages of Clojure

2013-01-19 Thread Denis Labaye
On Wed, Jan 16, 2013 at 4:08 PM, Thomas wrote: > Hi All, > > Something that came up last night in the blank? thread. What is a good way > to show someone the advantages of Clojure. Something that is simple, not > too complicated, easily understood, shows a (significant) benefit, etc. > > Any idea

Re: Google+ community

2013-01-05 Thread Denis Labaye
I just joined On Sat, Jan 5, 2013 at 9:15 PM, dspiteself wrote: > I started a google plus > community. > > I know most of the Clojure community is generally more into twitter, but I > have been enjoying Google+ communities very much

Re: [ANN] Jida - Explore Clojure projects via hosted Codeq

2012-12-25 Thread Denis Labaye
On Sat, Dec 22, 2012 at 9:08 PM, Sean Grove wrote: > Hey all, Wei and I put together Jida, a pastie-bin for running > Codeq/Datomic queries on Clojure repos. > > To dive in, here's a query that shows all of the authors for a given > imported clojure repo (domina, in this case): > > http://jida.he

Re: Clojure 1.5.0 RC 1

2012-12-22 Thread Denis Labaye
Is the release note here: https://github.com/clojure/clojure/blob/master/changes.md ? Anyway it looks tasty: - New and Improved Features: Reducers - New threading macros: - cond-> - cond->> - as-> - some-> ... On Sat, Dec 22, 2012 at 5:09 PM, Stuart Halloway wrote

Re: How to structure a Clojure day for noobs?

2012-12-22 Thread Denis Labaye
Only one link: http://www.4clojure.com/ That's what we did a few month ago when we did an introduction to Clojure for our fellow co-workers. It worked well, to the point that it crashed www.4clojure.com :) But on Clojure IRC, Anthony Grimes (IORayne) was kind to reboot the server, it demonstrate

Re: Coding Standard - ns usage

2012-11-17 Thread Denis Labaye
On Mon, Nov 12, 2012 at 6:37 PM, Sean Corfield wrote: > On Sun, Nov 11, 2012 at 10:31 PM, Denis Labaye > wrote: > > Most of my Clojure usage is as a scripting language (where other would > use > > Python or Ruby). > > I usually don't plan in advance ho

Re: Coding Standard - ns usage

2012-11-11 Thread Denis Labaye
On Mon, Nov 12, 2012 at 2:59 AM, Sean Corfield wrote: > On Sun, Nov 11, 2012 at 2:26 PM, Mark Engelberg > wrote: > > I can relate to Denis' issue. I find it pretty common to have a common > set > > of dependencies across every file in a project. > > Well, I have to say I was puzzled by Denis' po

Re: Coding Standard - ns usage

2012-11-11 Thread Denis Labaye
same alias has no bad effects) when you go back later at the > REPL. > > > > I maintain that once you require a name space, is entirely loaded so the > explicit narrowing of function used > > looks to me an overkill. Especially if you have an alias in your require >

Re: Coding Standard - ns usage

2012-11-11 Thread Denis Labaye
space. In Java land, all IDEs have shortcut to import classes at the time it's needed, maybe that's what I need (in Emacs in my case). > > Luc P. > > > > Convert (:use [lib :only [...]]) => (:require [lib :refer [...] :as ...]) > > > > On Sun, Nov 11,

Re: Coding Standard - ns usage

2012-11-10 Thread Denis Labaye
Talking about `use` and `require`: How are you dealing with the repetition of each namespace "configuration"? Each time I create a new namespace I add the following boilerplate: (ns foo.bar (:use [clojure [pprint :only [pprint pp]] [repl

Re: Clojure turns 5

2012-10-18 Thread Denis Labaye
bravo! On Thu, Oct 18, 2012 at 9:29 PM, Brian Kirkbride < br...@otherpeoplespixels.com> wrote: > Congratulations Rich. Many thanks to you and the many people that have > contributed to making Clojure what it is today. > > Learning and using Clojure has truly brought the joy back to creating > sof

Re: ANN Drip: A fast JVM launcher

2012-09-16 Thread Denis Labaye
On Sun, Sep 16, 2012 at 8:59 PM, Michael Klishin < michael.s.klis...@gmail.com> wrote: > Denis Labaye: > > After the bug fix on ubuntu: >> >> denis@zeus:~/.m2$ time drip -cp ./repository/org/clojure/** >> clojure/1.4.0/clojure-1.4.0.**jar clojure.main -e &q

Re: ANN Drip: A fast JVM launcher

2012-09-16 Thread Denis Labaye
After the bug fix on ubuntu: denis@zeus:~/.m2$ time drip -cp ./repository/org/clojure/clojure/1.4.0/clojure-1.4.0.jar clojure.main -e "(reduce + (range 100))" 4950 real0m0.123s user0m0.032s sys 0m0.016s denis@zeus:~/.m2$ time java -cp ./repository/org/clojure/clojure/1.4.0/clojure-1.4

Re: [ANN] clj-ns-browser 1.3.0 - the "cool button-row widget" release

2012-09-16 Thread Denis Labaye
On Fri, Sep 14, 2012 at 7:53 PM, Frank Siebenlist < frank.siebenl...@gmail.com> wrote: > We're happy to announce the new clj-ns-browser 1.3.0 - the "cool > button-row widget" - release. > > The Clojure Namespace Browser is a GUI-based, Smalltalk-like development > tool that makes it easy to see, i

Re: Literate Programming in org-babel (ob-clojure.el) is broken under nrepl.el

2012-09-12 Thread Denis Labaye
gt; http://www.jstatsoft.org/v46/i03 > > Happy hacking, > ~Gary > That's very cool, great example ! Thanks > > On Saturday, September 8, 2012 4:24:38 AM UTC-4, Denis Labaye wrote: >> >> >> >> On Thu, Sep 6, 2012 at 6:42 PM, lambdatroni

Re: Lightweight lib/way to strip html from text

2012-09-11 Thread Denis Labaye
Hi, This thread on the Enlive mailling list may be of some interest to you: [enlive] How to select all user visible text from webpage? https://groups.google.com/forum/#!msg/enlive-clj/rrY08JdI4Tc/FmDuNjc6w_oJ Denis On Thu, Sep 6, 2012 at 7:41 PM, jamieorc wrote: > Hey all, I'm looking for a

Re: ClojureScript and development workflow

2012-09-10 Thread Denis Labaye
On Mon, Sep 10, 2012 at 8:50 PM, Laurent PETIT wrote: > > > 2012/9/10 Laurent PETIT > >> 2012/9/10 Denis Labaye >> >>> >>> >>> On Mon, Sep 10, 2012 at 6:28 PM, Laurent PETIT >>> wrote: >>> >>>> Hello, >>>

Re: [ANN] data.priority-map 0.0.2 available

2012-09-10 Thread Denis Labaye
On Mon, Sep 10, 2012 at 6:52 PM, John Gabriele wrote: > On Monday, September 10, 2012 7:29:34 AM UTC-4, Denis Labaye wrote: > >> >> >>> >>> (yes, I know the README needs updating to the "official" format...) >>> >> >> What

Re: ClojureScript and development workflow

2012-09-10 Thread Denis Labaye
On Mon, Sep 10, 2012 at 6:28 PM, Laurent PETIT wrote: > Hello, > > A "ClojureScript workflow" newbie question. > > People seem to be using a lot lein-cljsbuild to work with their > ClojureScript project. > > From what I understand, this means they have a watcher which recompiles > javascript in th

Re: [ANN] data.priority-map 0.0.2 available

2012-09-10 Thread Denis Labaye
On Mon, Sep 10, 2012 at 5:47 AM, Sean Corfield wrote: > https://github.com/clojure/data.priority-map Seems interesting, thanks. > > > Fixes: http://dev.clojure.org/jira/browse/DPRIMAP-1 > > Implements Iterable to be compatible with reducers per Alan Malloy. > (yes, I know the README needs up

Re: [ANN] rubydoc 0.3.0

2012-09-10 Thread Denis Labaye
On Mon, Sep 10, 2012 at 4:10 AM, Gabriel Horner wrote: > rubydoc is a project aimed at > helping rubyists find clojure equivalents. There are now over 200+ > ruby-clojure comparisons. 0.3.0 comes with some new features: > > * A comparison is not just limited

Re: ANN Ritz 0.4.1

2012-09-09 Thread Denis Labaye
On Sat, Sep 8, 2012 at 2:02 PM, Hugo Duncan wrote: > Denis Labaye writes: > > > On Fri, Sep 7, 2012 at 9:11 PM, Hugo Duncan wrote: > > > >> > >> Ritz is a collection of repl servers, middleware and repl utility > >> functions, supporting nRE

Re: [ANN] clojure-encog has a new name and repo

2012-09-08 Thread Denis Labaye
27; or something cos there is alaredy > a 'network' multi-fn...in any case, I'm assuming you're just fooling around > with enclog...if this is the case, keep in mind that i will push 0.5.2 > later this afternoon which includes some changes...I'll try fix the > exampl

Re: [ANN] clojure-encog has a new name and repo

2012-09-08 Thread Denis Labaye
On Tue, Sep 4, 2012 at 9:05 PM, Jim - FooBar(); wrote: > Hi all, > > just wanted to let you know that I renamed 'clojure-encog' to *enclog* > ...release 0.5.0 does not add anything but several 'library coding > standards' that i was previously not aware of, have been addressed... > > I created a

Re: Literate Programming in org-babel (ob-clojure.el) is broken under nrepl.el

2012-09-08 Thread Denis Labaye
On Thu, Sep 6, 2012 at 6:42 PM, lambdatronic wrote: > For those people (like myself) who do a lot of Literate Programming in > Emacs using Clojure and org-babel, migrating to nrepl and nrepl.el is > somewhat non-trivial. This is because the existing Clojure support in > org-babel (ob-clojure.el)

Re: ANN Ritz 0.4.1

2012-09-08 Thread Denis Labaye
On Fri, Sep 7, 2012 at 9:11 PM, Hugo Duncan wrote: > > Ritz is a collection of repl servers, middleware and repl utility > functions, supporting nREPL and swank/slime. The repl utilities can be > used from any repl. > Does ritz/swank replace lein-swank? Thanks, Denis > > The 0.4.1 release is

Re: redefining multimethods at the repl

2012-09-08 Thread Denis Labaye
On Wed, Sep 5, 2012 at 12:31 AM, Brian Marick wrote: > I'm trying to write exercises for multimethods. Book readers will be > working at the repl. Multimethods are stateful in a bad way, as shown > below. Is there some sort of trick to using multimethods at the repl, or > should I just give up on

Re: clojure.org/getting_started: not up to date

2012-09-03 Thread Denis Labaye
ownload <http://clojure.org/downloads> and unzip Clojure. In the > directory > > > in which you expanded clojure.zip, run: > > > > > > java -cp clojure-1.4.0.jar clojure.main > > > > > > Should be just: > > > > > > > > > java -jar cloj

clojure.org/getting_started: not up to date

2012-09-03 Thread Denis Labaye
as it's the first contact for most of the new Clojure users. Denis On Mon, Sep 3, 2012 at 9:00 AM, Denis Labaye wrote: > >1. java -cp ./org/clojure/clojure/1.4.0/clojure-1.4.0.jar clojure.main >2. cut & paste your code in the REPL >3. type (start) [enter] > >

Re: I want to know how can I run it?

2012-09-03 Thread Denis Labaye
1. java -cp ./org/clojure/clojure/1.4.0/clojure-1.4.0.jar clojure.main 2. cut & paste your code in the REPL 3. type (start) [enter] On Fri, Aug 31, 2012 at 3:36 AM, gearss wrote: > I have a file named pong.clj, it isunder following, I want to know how can > I run it? > Thank you. > >

Re: Problems with Leiningen and Clojure 1.4

2012-09-02 Thread Denis Labaye
On Fri, Aug 31, 2012 at 7:38 PM, Martin wrote: > Hi > > Im having problems using Leiningen together with Clojure 1.4 (and 1.3) on > Windows 7. Using Leiningen version 1.5.2 I can create a new project and use > lein deps to download clojure version 1.2.1. However if I change > dependencies in proj

Re: Code retreat exercices where Clojure could shine?

2012-08-30 Thread Denis Labaye
ee the public is 1/3 convinced by clojure / , the other 2/3 are not aware that there's something else than Java on the JVM > > Russell > > > On Monday, August 27, 2012 2:41:20 AM UTC-7, Denis Labaye wrote: >> >> Hi, >> >> I am organizing a code retreat i

Re: clj-http's json + enlive's selectors

2012-08-30 Thread Denis Labaye
On Tue, Aug 28, 2012 at 11:42 AM, Herwig Hochleitner wrote: > 2012/8/27 Denis Labaye > >> Fetch JSON with clj-http AND extract informations from it with enlive. >> >> Does anyone know what's the most straightforward way to do that? >> > > Enlive curren

Re: European conferences in 2012?

2012-08-29 Thread Denis Labaye
On Wed, Aug 29, 2012 at 3:08 PM, Jonathan Lange wrote: > Hello everyone, > > Just wondering if there are any conferences in Europe coming up in the > remainder of the year that would be of interest to someone interested > in Clojure? > I don't know, but I am interested... We will probably have

Re: [emacs over ssh limitations]

2012-08-29 Thread Denis Labaye
On Tue, Aug 28, 2012 at 2:44 AM, Stuart Sierra wrote: > It's easy enough to test: fire up a small EC2 instance and use Emacs over > an SSH+tmux session. You could also try using your own local Emacs that way > by SSH'ing to localhost. > In my experience, commands don't work in a terminal if they

Re: getting a new socket at the repl

2012-08-27 Thread Denis Labaye
On Mon, Aug 27, 2012 at 11:56 PM, Denis Labaye wrote: > > > On Mon, Aug 27, 2012 at 11:23 PM, larry google groups < > lawrencecloj...@gmail.com> wrote: > >> I am in emacs at a clojure swank slime repl. I do this: >> >> user> (def ss (Socket. "

Re: getting a new socket at the repl

2012-08-27 Thread Denis Labaye
On Mon, Aug 27, 2012 at 11:23 PM, larry google groups < lawrencecloj...@gmail.com> wrote: > I am in emacs at a clojure swank slime repl. I do this: > > user> (def ss (Socket. "localhost", 4)) > #'user/ss > > user> ss > # > > > All is good. All is working. I now do this, which is exactly the s

clj-http's json + enlive's selectors

2012-08-27 Thread Denis Labaye
Hi, I am happily using clj-http to fetch JSON from my REST URIs. And happily extracting data from XML using enlive. Now I would like to combine the two: Fetch JSON with clj-http AND extract informations from it with enlive. Does anyone know what's the most straightforward way to do that? Th

Code retreat exercices where Clojure could shine?

2012-08-27 Thread Denis Labaye
Hi, I am organizing a code retreat in September. All languages are accepted, I want to use Clojure for this time, which exercises would make Clojure shine? Thanks! Denis -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Re: [emacs over ssh limitations]

2012-08-26 Thread Denis Labaye
On Fri, Aug 24, 2012 at 6:04 PM, Phil Hagelberg wrote: > On Fri, Aug 24, 2012 at 6:16 AM, Denis Labaye > wrote: > > I've just seen the presentation by Phil Hagelberg on swarm coding > > (http://www.infoq.com/presentations/Swarm-Coding). > > Great presenta

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

[emacs over ssh limitations]

2012-08-24 Thread Denis Labaye
Hi, I've just seen the presentation by Phil Hagelberg on swarm coding (http://www.infoq.com/presentations/Swarm-Coding). Great presentation, very inspiring, we will definitively do swarm coding here in the Clojure Paris (France) User Group. In the talk Phil explains why "emacs-slime over ssh" d

Re: dumping maps out to XML

2012-08-23 Thread Denis Labaye
On Thu, Aug 23, 2012 at 3:40 AM, larry google groups < lawrencecloj...@gmail.com> wrote: > Forgive me if this has been asked before. I am a beginner. I have a data > structure that is composed of maps nested inside of a map. What is the > easiest way to dump this out as XML? Why do you want to d

Re: [viewing clojure datastructures] Is there something better than clojure.inspector?

2012-08-22 Thread Denis Labaye
On Thu, Aug 23, 2012 at 8:39 AM, Denis Labaye wrote: > at which point? > > $ lein deps > $ lein repl > user=> (use 'clj-ns-browser.sdoc) > user=> (sdoc) > > > > On Thu, Aug 23, 2012 at 4:48 AM, blackblock wrote: > >> I get this with Lein2 with

Re: [viewing clojure datastructures] Is there something better than clojure.inspector?

2012-08-22 Thread Denis Labaye
he >> var's displayed value such that you can follow the var's value near >> real-time. >> >> This may help with your requirements... >> >> Enjoy, Frank. >> >> >> On Aug 22, 2012, at 1:58 PM, Denis Labaye wrote: >> >>

Re: [viewing clojure datastructures] Is there something better than clojure.inspector?

2012-08-22 Thread Denis Labaye
ood be > improved… but it works!) > > Furthermore, there is a menu button that turns on an auto-refresh for the > var's displayed value such that you can follow the var's value near > real-time. > > This may help with your requirements... > > Enjoy, Frank. > >

[viewing clojure datastructures] Is there something better than clojure.inspector?

2012-08-22 Thread Denis Labaye
Hi everyone, The clojure.inspector functions are ... mmm ... a bit "rough on the edge" =) Is there any lib that provide better support for exploring Clojure data-structures? I am surprised I didn't found anything on Google, GitHub, ... Data-structures are at the core of Clojure, so being able

Re: Repeatedly applying functions until a condition is met

2012-07-26 Thread Denis Labaye
On Thu, Jul 26, 2012 at 9:58 AM, Adrian Mowat wrote: > Hi Folks > > I have a program that parses a string into rows and fields by repeatedly > applying a sequence of functions repeatedly until the end of the string is > reached. Each function (or chunker, as I have called them) knows how to > fin

Re: [ANN] table 0.3.0 release - ascii tables that fit in your terminal

2012-07-24 Thread Denis Labaye
an control the width > directly by binding table.width/*width*. > 0.3.1 works fine now! > And of course I removed the datomic deps ;) > lucky you ! :) > > Cheers, > Gabriel > > On Tuesday, July 24, 2012 4:52:00 AM UTC-4, Denis Labaye wrote: >> >> Hi, >

Re: [ANN] table 0.3.0 release - ascii tables that fit in your terminal

2012-07-24 Thread Denis Labaye
Hi, Seems cool. Is it supposed to work in an Emacs (slime) repl? When I tried on of the examples: (table [["1" "2"] ["3" "4"]]) I've got a [Thrown class java.lang.NumberFormatException] And when looking where the code breaks, when doing : (clojure.java.shell/sh "/bin/sh" "-c" "stty -a < /dev/tty

Re: Casting SPELs in Clojure

2012-07-23 Thread Denis Labaye
find a "mate" to compete with, this is a very cool emulation. (For example me[denlab] and my friend [ardumont], in http://www.4clojure.com/users, I'm in the top 79, he is in the top 88, booh! :-) Have fun! Denis > > Regards, > Joe > > > On Monday, July 23, 2012 10:53

Re: Casting SPELs in Clojure

2012-07-23 Thread Denis Labaye
Hi, On Mon, Jul 23, 2012 at 5:38 PM, Joe Hughes wrote: > All, > > I figured it out. Still trying to get Functional Programming ideas in > my head. > The macro defspel is not functional programming, it's dark Lisp's macro Voodoo. I would not advise starting Clojure with macros, you should

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-15 Thread Denis Labaye
On Thu, Jul 12, 2012 at 12:21 AM, Eric in San Diego wrote: > In a shell, I can call > > > app arg1 arg2 arg3 arg4 arg5 arg6 arg7 > > and get my expected results. > > However, if I make what I think is the same call programmatically in > clojure: > > (ns ... >(:require [clojure.java.shell :as s

Re: Using clojure-csv with large files

2012-07-08 Thread Denis Labaye
Hi, I would try something like (untested): (map parse-csv (line-seq (clojure.java.io/reader "/tmp/foo.csv"))) But it will break for CSV cells with newlines like: a ; b foo;"bar baz" x ; z interesting ... Denis On Sun, Jul 8, 2012 at 6:34 PM, Timothy Washington wrote: > Hi there, > >

Re: {ANN} Clojure-Control 0.4.0 is out!

2012-06-22 Thread Denis Labaye
Hi, This is interesting, but the github page you gave is missing an essential information: What does it bring compared to already existing mature Clojure solutions like Pallet ? Cheers, Denis On Thu, Jun 21, 2012 at 2:34 PM, dennis zhuang wrote: > Clojure-control: a clojure DSL for system ad

Re: Standard alias for partial?

2012-06-21 Thread Denis Labaye
On Tue, Jun 19, 2012 at 8:25 PM, JvJ wrote: > This is not really a big deal, but I was wondering if there was a shorter > alias for partial in the standard library. It seems like one of those > things that should require a single-character operator. Interesting, I am also interested in finding

Re: Midje 1.4 released

2012-05-26 Thread Denis Labaye
Great! On Thu, May 24, 2012 at 9:10 AM, CA wrote: > Yeah! > > On May 24, 12:29 am, Brian Marick wrote: > > Midje is a test framework for Clojure. It supports top-down as well as > bottom-up testing, encourages readable tests, provides a smooth migration > path from clojure.test, and supports a

Re: Clojure Pretty Printing with Blogger

2012-05-26 Thread Denis Labaye
Hi, I don't know google-code-prettify. I am using Emacs with org-mode, it has native support for prettifying Clojure code when exporting to HTML. You could also use GitHub's gist https://gist.github.com/, and embed it in your blog. Denis On Fri, May 25, 2012 at 12:07 PM, Jake Johnson wrote: > H

Re: Do you leave a Swank / nREPL in your production servers?

2012-05-26 Thread Denis Labaye
Note also that I could be interesting to plug a swank server in a regular Java app (mainly for dev). This would allow to manipulate you live app, and use all the Clojure goodness from the confort of your REPL: http://denilab.blogspot.fr/2012/04/injecting-clojure-repl-into-your.html On Fri, May 25,

Re: Lambda: A lniux distro for clojurists

2012-05-26 Thread Denis Labaye
Hi, This is a very interesting idea. It would have been of great use when I did a Clojure workshop with complete beginners, with all kinds of OSes (Windows, OSX, ...). I took the "Completely packaged VirtualBox image" approach, but it is still a big mess: Not everyone have VirtualBox installed (o

Re: [clojurescript one] Where does Clojurescript One come from?

2012-03-01 Thread Denis Labaye
ure is faked in javascript. Some constructs (the refs among > other things) is not implemented yet. > > /Linus > > 2012/2/28 Denis Labaye > >> Hi, >> >> I discovered Clojurescript One recently, it is amazing, but it's also >> very alien to me, I never see

[clojurescript one] Where does Clojurescript One come from?

2012-02-28 Thread Denis Labaye
Hi, I discovered Clojurescript One recently, it is amazing, but it's also very alien to me, I never seen something like this before, as it says on the Github's README: > "ClojureScript One is hard to classify. It is not a library or a framework. > It is more like a classroom, a laboratory or a s

Re: Struggling in making a sub-process work in an interactive way

2012-01-13 Thread Denis Labaye
they run system command directly, after execution > they return and terminate. That's not the way I want > > On Jan 13, 2:42 am, Denis Labaye wrote: > > Hi, > > > > In Java you would do it with common-exec:http://commons.apache.org/exec/ > > > >

Re: Struggling in making a sub-process work in an interactive way

2012-01-12 Thread Denis Labaye
Hi, In Java you would do it with common-exec: http://commons.apache.org/exec/ So add the deps to your project.clj : :dependencies [[org.apache.commons/commons-exec "1.1"]] And use Clojure's Java interop. Keep us posted, I will need to do the same thing soon :) Denis On Wed, Jan 11, 2012 at 4

Re: [midje] ANN: Midje 1.3.0

2011-12-13 Thread Denis Labaye
Midje is getting better and better. Congrats! On Mon, Dec 12, 2011 at 5:41 PM, Brian Marick wrote: > Midje 1.3's most important feature is compatibility with Clojure 1.3. > https://github.com/marick/Midje > > Midje is a test framework for Clojure that supports top-down as well as > bottom-up te

Re: coding-dojo-20110921

2011-09-21 Thread Denis Labaye
, 2011 at 9:20 PM, Denis Labaye wrote: > ops! > > I posted on clojure google group instead of *clojure-paris-user-group* google > group > > sorry :-) > > > On Wed, Sep 21, 2011 at 9:13 PM, Meikel Brandmeyer wrote: > >> >> Am 21.09.2011 um 19:59 schrieb Ken We

Re: coding-dojo-20110921

2011-09-21 Thread Denis Labaye
ops! I posted on clojure google group instead of *clojure-paris-user-group* google group sorry :-) On Wed, Sep 21, 2011 at 9:13 PM, Meikel Brandmeyer wrote: > > Am 21.09.2011 um 19:59 schrieb Ken Wesson: > > > On Wed, Sep 21, 2011 at 8:20 AM, Denis Labaye > wrote: >

coding-dojo-20110921

2011-09-21 Thread Denis Labaye
Hello, On a code une implem alternative de retour dans le RER: https://gist.github.com/1231894 A+ Denis -- 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 a

Re: Generating Bash scripts from Clojure

2011-09-15 Thread Denis Labaye
On Thu, Sep 15, 2011 at 4:23 AM, Hugo Duncan wrote: > On Wed, 14 Sep 2011 15:34:25 -0400, Denis Labaye > wrote: > > I played with it a little bit, can't make the latest version (0.7) to >> work, only the 0.5. >> > > The current version will re

Re: Generating Bash scripts from Clojure

2011-09-14 Thread Denis Labaye
shell_scripting_in_clojure_with_pallet.xhtml > > User group: http://groups.google.com/group/pallet-clj > > Thanks, > Ambrose > > On Tue, Sep 13, 2011 at 1:09 PM, Denis Labaye wrote: > >> Hi, >> >> I have to write a bunch of Bash scripts, and not a lot of tim

Generating Bash scripts from Clojure

2011-09-12 Thread Denis Labaye
Hi, I have to write a bunch of Bash scripts, and not a lot of time :) The final script would perform a full install, provisionning, sanity checks, ... in one command. I wonder if I could generate them using Clojure. Of course the output script(s) won't have the Clojure runtime. Any advices / th

Clojure Paris User Group

2011-09-08 Thread Denis Labaye
Hi, I just created a google group for french Clojurians in Paris: http://groups.google.com/group/clojure-paris-user-group Would be useful to arrange meetings, code retreats, ... Denis -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Am I getting back a vector of lines and can I split each line?

2011-06-17 Thread Denis Labaye
non-lazy version: (map #(vec (.split % ",")) (vec (.split (slurp "/tmp/foo.csv") "\n")))(["foo" "bar"] ["fu" "bor"]) On Fri, Jun 17, 2011 at 2:39 PM, octopusgrabbus wrote: > Thanks for the reply. In this instance, what's the syntax for map? I'm > trying in REPL and getting a

Re: Svar: Ideas from Fortress

2011-06-14 Thread Denis Labaye
>From my emacs start up file: ;; prevent slime to crash when encountering non ascii char (set-language-environment "UTF-8") (setq slime-net-coding-system 'utf-8-unix) Le 14 juin 2011 06:16, "jlk" a écrit : > Hello > > Is there a trick to making this work in emacs/slime? > > If I enter pi in the *