Re: [ANN] Hoplon: web applications in Clojure and ClojureScript

2015-01-29 Thread Catonano
2013-12-20 21:42 GMT+01:00 Alan Dipert :

>
>
>
> The result, in my opinion, is mindblowingly beautiful and extremely
> powerful.  By making the DOM a Lisp - and not just any Lisp, ClojureScript
> - we have a means to *real* DOM component modularity.  The exact same
> modularity that you get with things like namespaces and closures.  Where
> various other HTML component systems drag in their own reference types and
> scoping rules and evaluation semantics,  we have just ClojureScript's usual
> rules.  That's because, via the IFn protocol, it's possible for us to make
> DOM elements invokable.  As implementers of IFn, hlisp-generated DOM nodes
> can participate fully in the ClojureScript world without introducing new
> scoping constructs or DOM-specific composition rules.  As a result of all
> this, we have no need to represent HTML anywhere as data.  Everything is a
> program, and expressions in this program may evaluate to DOM.  There are no
> templates, just expressions.  I encourage you to check out our "Getting
> Started" page to see just how powerful functional composition can be when
> applied over Lispified DOM nodes.
>

Maybe I'm off track here, but this resounds to me as similar to the
arguments that I listened to in lecture 2a of the SICP course.

In that lecture, they introduce the representation and manipulation of
pictures.

They introduce a single primitive and then build on top of that.

They create a dsl specific to pictures processing that is  "embedded" into
lisp.

So it inherits from lisp the common means of expression (abstraction,
combination, recursion and whatnot)

I see a sort of kinship, here, between DOM elements and SICP pictures.

In fact, they stress that "data" representing pictures are the same kind of
lisp citizens we already knew. Data are blurred with the language, in lisp.

In the DOM case macros are necessary because there's the html to deal with.

So I guess that the solution is to use the macros to end up with lisp stuff
and then work with that, rather than the other way around.

I hope I didn't make myself a fool, here

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Introducing Boot v2 with a streamlined CLJS workflow

2014-12-26 Thread Catonano
Micha,

2014-11-07 16:25 GMT+01:00 Micha Niskin :

> Oh, I forgot to say, the ^:boot/export-tasks convention makes boot into a
> sort of application container. You can use boot to pull code from the
> internet and run it. This is really nice when combined with Docker, for
> example, but I’m sure we haven’t even found the coolest uses for this yet.
> We’re pretty excited about this aspect of boot in particular and would love
> to see how people find ways to use it in their workflows.
> ​
>
> --
> Micha Niskin
>
>
would you mind to expand on this ?

I'm not sure I understand what you mean and I'm especially curious about
the relationship between this and Docker

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


recur code

2014-05-12 Thread Catonano
Where is the source code for recur ? How could I inspect it ?

Thanks

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Gradle: how to deal with it

2014-05-12 Thread Catonano
For now I just wrote a quick project file and used lein. I made my
exploration.

Thanks to the both of you





2014-05-10 17:53 GMT+02:00 Dave Ray :

> You should use Clojuresque [1]. The latest version (1.7.0) can start an
> nrepl server for you. Since I'm a bad user (and because of various
> dependency-related hurdles at work), I still haven't actually started using
> it though. Luckily, with earlier versions it's pretty easy to define a new
> task that starts an nrepl server. Here's an example:
>
>
> https://github.com/Netflix/RxJava/blob/master/language-adaptors/rxjava-clojure/build.gradle#L55
>
> With Cider 0.6.0, you can just M-X cider and connect. If you have the
> latest alpha, well, good luck getting back to 0.6.0. For ac-nrepl
> auto-complete you'll want to add clojure-complete [2] as a dependency as
> well.
>
> Good luck,
> Dave
>
> [1] https://bitbucket.org/clojuresque/clojuresque
> [2] https://clojars.org/clojure-complete
>
>
>
> On Sat, May 10, 2014 at 4:00 AM, Catonano  wrote:
>
>> Hello
>>
>> I use to press M-. in Emacs to jump to the definition of a function and
>> M-, to jump back to where I came from
>>
>> This requires an nREPL to be working
>>
>> Now I'd like to explore a project using Gradle.
>>
>> Can I get an nREPL with Gradle ? Can Gradle export a project file so that
>> I can use lein to have an nREPL ?
>>
>>
>>  --
>> 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 unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Gradle: how to deal with it

2014-05-10 Thread Catonano
Hello

I use to press M-. in Emacs to jump to the definition of a function and M-,
to jump back to where I came from

This requires an nREPL to be working

Now I'd like to explore a project using Gradle.

Can I get an nREPL with Gradle ? Can Gradle export a project file so that I
can use lein to have an nREPL ?

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ClojureScript] Re: evaluating compiled clojurescript functions at the REPL

2013-10-13 Thread Catonano
Benjamin,

I modified a Pedestal based project to use a REPL and through that REPL you
can inspect the app running live in the browser.

The project is here
https://github.com/humanitiesNerd/tinkering-with-the-repl


And the youtube footage is here
http://www.youtube.com/watch?v=3AYKXRby5oE

It's not snappy, Iḿ sorry. It's the first screencast in my life, I recorded
it late at night and I had missed the microphone level toggle so the audio
is a bit... well... inadequate.

But if you can set your volume high enough you could still find it useful.

A pat on my shoulder could be of help in convincing me to re-record it in a
better way.

Tchüss !


2013/10/13 Benjamin Vulpes 

> That would be useful data, eh?
>
>
> http://stackoverflow.com/questions/19342066/evaluating-compiled-clojurescript-functions-at-the-repl
>
>
> On Sat, Oct 12, 2013 at 11:36 PM, Dave Della Costa 
> wrote:
>
>> Link?
>>
>> (2013/10/13 14:14), Benjamin Vulpes wrote:
>> > Hey all!
>> >
>> > I've written a S.O. question about Emacs/ClojureScript REPL integration.
>> > My basic question is:
>> >
>> > "how ams call compiled functions and execute in browser context?"
>> >
>> > I love working with Emacs and I also love all of the work that everyone
>> > has put into building a robust Emacs/CLJ* toolchain, and really look
>> > forward to any tips anyone has to share on getting all of the nrepl.el
>> > functionality in a browser-executing cljs repl.
>> >
>> > Thanks!
>> > --vulpes
>> >
>> > --
>> > --
>> > 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 unsubscribe from this group, send email to
>> > clojure+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/clojure?hl=en
>> > ---
>> > You received this message because you are subscribed to the Google
>> > Groups "Clojure" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an email to clojure+unsubscr...@googlegroups.com.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>>
>> --
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "ClojureScript" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojurescript+unsubscr...@googlegroups.com.
>> To post to this group, send email to clojurescr...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/clojurescript.
>>
>
>  --
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Best IDE

2013-06-09 Thread Catonano
Jay,


2013/6/8 Jay Fields 

> My favorite recent addition - I can run my app from within emacs, allowing
> me to change my app with a simple C-x C-e and see my changes immediately in
> the running app (no restart, refresh or reload necessary).


Would you mind to extend on that ?

How is this done, exactly ?

>

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Lisp In Summer Projects

2013-06-08 Thread Catonano
There are news on this front. Some friends of mine managed to get the issue
clarified and now italian residents are allowed to partecipate.


2013/5/10 Plínio Balduino 

> Or sticks, t-shirts, whatever.
> I would do it just for fun.
>
> On Fri, May 10, 2013 at 2:18 AM, Terje Norderhaug 
> wrote:
> > I suggest allowing participants from the listed countries, but give an
> > eventual prize to a charity of choice to avoid a cash payment.
> >
> >
> > On Thu, May 9, 2013 at 12:59 PM, u1204  wrote:
> >>
> >> I believe that cash payments are forbidden by law in the listed
> >> countries. The contest will make cash payments. I know that
> >> Lisp In Summer Projects has no problem with people from Italy,
> >> Brazil, or other listed countries.
> >>
> >> Tim Daly
> >>
> >> --
> >> --
> >> 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 unsubscribe from this group, send email to
> >> clojure+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >> http://groups.google.com/group/clojure?hl=en
> >> ---
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Clojure" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to clojure+unsubscr...@googlegroups.com.
> >> For more options, visit https://groups.google.com/groups/opt_out.
> >>
> >>
> >
> > --
> > --
> > 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 unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "Clojure" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to clojure+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Best IDE

2013-06-05 Thread Catonano
My 2 cents:

it´s ture that the Emacs features are not discoverable and that the
learning curve is mean.

But it also true that once you´ve done it, it brings you a great value.

My suggestions about Emacs:

1) Start with the footage by Peepcode. It´ll save you tons of time,
especially if you´re not accustomed to reading the f... manuals and prefer
to see people do stuff while explaining them to you as if you were seated
side by side. The Emacs docs are daunting, in my experience

2) progress towards Overtone-Live https://github.com/overtone/emacs-live .
It´s a selection of packages and configurations for Clojure, and it´s
awesome. With that you have a REPL inside Emacs and you can even evaluate
Clojure expressioons from inside your buffer, you have autocompletion. M-.
brings you to the code of the function at point (probably not of the record
or macro at poin) at M-, brings back where you started from. Also the
paredits combo to nest a sexp into another or to bring it out are really
cool. There´s also a thing to search stuff and it makes the screen
translucid with some characters colored in red and it you press the keys
correpsonding to those chars it... does something I didn´t have time to try
it ;-)

3) Consider that in the 24.x version there´s the "package managent" stuff.
A combination of el-get and the ELPA based stuff can get you a long way. I
managed to install a hairy setup for the autocompletion in python. My
feeling is that this gives you a somewhat bigger control on your Emacs
configuration.

4) consider that in order to reach a satisfying level, you don´t need to
have it perfectly and completely set up. There are professionals who only
use clojure mode and they keep a terminal with a repl aside and they switch
back and forth and copy and paste expressions from te buffer to the repl in
order to explore what they´re doing. That´s a perfectly acceptabe set up

5) it´s true that the debugging situation is less than ideal. I didn´t try
the machinery for clojure debugging because it´s not supported in Live and
I didn´t have time to install it myself, but when the need to debug
something arised, I copied subexpressions of my expressions and see the
results to try to isolate the sections generating problems. I concede it´s
not ideal but it´s reasonable in clojure and it probably wouldn´t be in an
imperative language. I keep the intention to stabilize the configuraion for
a better debugging too.

6) A wildly weird suggestion: consider meeting with Emacs users with more
experience and do stuff together. It´s not unreasonable as it sounds.
There´s value in that. In my opinion, of course.

7) last but not least, in ripping my arguments to shreds, please consider
that if you feel my opinions are gonna ruin some honest beginner, I could
feel the same about yours. Our opinions are relative to the single
individuals and to gazillions of other things. Also, here´s a human being
on the other side of the wire and although I have learned not to contribute
to the heat of the polemics, it still takes me some effort to keep calm, as
I don´t always have time to stay on track with my meditation practice.
OOhhhm ;-)


2013/6/5 Duane Searsmith 

> Has ne1 looked at emacs or light table or netbeans or eclipse or vim or
> Intelli what ... don't know ... let us post an IDE FAQ please!
>
>
> On Tue, Jun 4, 2013 at 12:53 PM, Alan Thompson wrote:
>
>> Have any of you looked at Light Table?
>> http://www.chris-granger.com/2012/04/12/light-table---a-new-ide-concept/
>>
>> I wonder what it would take to get a VIM-like mode available with that?
>> Alan
>>
>>
>> On Tue, Jun 4, 2013 at 10:27 AM, Alex Baranosky <
>> alexander.barano...@gmail.com> wrote:
>>
>>> There are things I love and hate about both Emacs and Intellij, so after
>>> a year of working professionally with a bunch of Clojure-Emacs users, I
>>> still end up using Intellij about half the time, and get my fair share of
>>> harassment over it.  I'd like to merge the two actually if possible.
>>>
>>>
>>> On Tue, Jun 4, 2013 at 7:20 AM, Gary Trakhman 
>>> wrote:
>>>
 I used eclipse emacs+ for about a year for java code once I had started
 writing clojure in emacs, it made me more productive, but it was a hassle
 to set up.

 Unfortunately, when eclipse updated itself to juno, it broke, and there
 is still no support.

 Going forward, I think this is a more compelling solution to get some
 of the benefits of eclipse in emacs:
 https://github.com/senny/emacs-eclim

 But, I think it's not quite there yet.


 On Tue, Jun 4, 2013 at 9:02 AM, Kelker Ryan wrote:

> Have you tried Eclipse Emacs+?
> http://marketplace.eclipse.org/content/emacs
>
> 04.06.2013, 21:41, "Korny Sietsma" :
>
> My 2c - I use emacs, I love it.  I don't inflict it on my team, and I
> strongly disagree with it being "easy".  To learn the basics, yes, but 
> full
> fluency?  If you have someone fluent in I

Re: link for clojure programs

2013-05-06 Thread Catonano
2013/5/4 nrel...@yahoo.com 

> Can anybody give me a link/websites of codes for BEGINNERS FOR CLOJURE?
> thanks a lot...
>

There are tons of resources on line.

But in my experience, the famous MIT course  with Abelsson and Sussman is a
must. It´s about Scheme, not Clojure, but it´s important anyway.

There is also a course on youtube on Scheme by another professor, from
Stanford. That can be important too.

Then, you have to set up an enviroinment. That´s not a subtlety, it´s a
main concern.

As for that, I strongly suggest the Peepcode footage about Emacs and then
live-emacs ( https://github.com/overtone/emacs-live )

On my shameful github account I have a little watered down game life with a
little visual layer made with Quilt. So you can see your bot filling square
tiles according to your "strategy".

It was an exercise from the lambda-next clojure training event. I´m not
sure about its license but I don´t think the guys are gonna object ;-)

It uses refs and can be a good first step in learning. The multithreading
stuff is specific to Clojure on the Jvm, I think. It has no readme file but
I could give you a couple of directions in order to have it up and running.

That´s all comes to m mind at the moment ;-)

Bye
Catonano

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Iota, reducers, word counting

2013-05-03 Thread Catonano
Well I reply to myself:

with pmap there´s no need to explicitly calculate the batches

The final version of the code is:

(defn parallel-count [iota-file]
  (reduce (partial merge-with +)
  (pmap (fn [a-subcollection]
  (frequencies (words a-subcollection)))
iota-file)))

which is not that dramatically far from the the vanilla version.

Right ?






2013/5/1 Catonano 

> Meikel,
>
> thank you for your reply
>
>
> 2013/4/30 Meikel Brandmeyer (kotarak) 
>
> Hello,
>>
>> your function does not follow the contract of fold. What you provided is
>> basically the reduce function, but it doesn't work together with fold. For
>> fold you need to merge the different maps you created in the subtasks. So
>> the combine function must look different.
>
>
> Admittedly I had missed the fact that fold expects a reducing function AND
> a combining function.
>
> But the worst thing is that I modified my-frequencies so that it could be
> called with no arguments, but who was going to call i like that ? Not my
> code and not anyone else !!
>
> What was I thinking ?
>
> I´m sorry for the silly question, I was just confused.
>
> Thanks for your help
>
> Additionally you cannot use transients at the moment with fold.
>>
>
> That´s a pity. I suppose I could explicitly split the input vector in
> parts and then call pvalues with a function implementing my word counting
> on each subpart. And then merging the results from each subpart
>
> But the reducers idiom is more beautiful because the modifications to the
> traditional map reduce version would be smaller, with that you haven´t got
> to explicitly split the input and call a specielized version of map.
>
> Oh well...
>
> It was just an exercise after all...
>
> Thanks again Meikel !
>

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Iota, reducers, word counting

2013-05-01 Thread Catonano
Meikel,

thank you for your reply


2013/4/30 Meikel Brandmeyer (kotarak) 

> Hello,
>
> your function does not follow the contract of fold. What you provided is
> basically the reduce function, but it doesn't work together with fold. For
> fold you need to merge the different maps you created in the subtasks. So
> the combine function must look different.


Admittedly I had missed the fact that fold expects a reducing function AND
a combining function.

But the worst thing is that I modified my-frequencies so that it could be
called with no arguments, but who was going to call i like that ? Not my
code and not anyone else !!

What was I thinking ?

I´m sorry for the silly question, I was just confused.

Thanks for your help

Additionally you cannot use transients at the moment with fold.
>

That´s a pity. I suppose I could explicitly split the input vector in parts
and then call pvalues with a function implementing my word counting on each
subpart. And then merging the results from each subpart

But the reducers idiom is more beautiful because the modifications to the
traditional map reduce version would be smaller, with that you haven´t got
to explicitly split the input and call a specielized version of map.

Oh well...

It was just an exercise after all...

Thanks again Meikel !

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Iota, reducers, word counting

2013-04-30 Thread Catonano
Hello people,

I would like you to take a look at the question I posted here

http://meta.stackoverflow.com/questions/178326/why-is-this-question-not-good-enough

I´m trying to implement a word count of a large file using the machinery by
Iota ( https://github.com/thebusby/iota#readme ) just as an exercise

I´m stuck and I tried to post a question on stackoverflow, but my question
was not "up to the quality standards" of the site.

So I posted on meta and the guys there acknoledged tat my question was
decent.

Now I´d love to post it here but it would take too long and since it is
decent, I can safely ask you to look at it there.

Tanks for any hint

P.S. Of course I´d love you to comment on the Clojure related issues, not
about the meta issues about stacktrace of which I frankly care not so much

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Infer state

2013-04-11 Thread Catonano
Hello people,

I was wondering if Infer ( https://github.com/aria42/infer#readme ) is
still developed and if it is in use somewhere.

I´ve been plaiyng with Cascalog but I read that with Infer you can
prototipe on a single machine and then scale up to an Hadoop cluster if
needed with a reasonable effort

But I see that the last committ was 3 years ago and there´s not a single
example in the readme file.

Thanks
Cato

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Composable mutual recursive function composition

2013-03-10 Thread Catonano
I see now the blog post. Thanks anyway


2013/3/10 Catonano 

> What´s Prismatic for ?
>
> Why do you build graphs of computation ?
>
> Thanks
>
>
> 2013/3/10 Brent Millare 
>
>> I recently asked about mutual referenced support in the prismatic library
>> plumbing
>>
>> https://github.com/Prismatic/plumbing
>>
>> and currently its an open question about how to implement that.
>>
>> So I made a proof-of-concept version of a "graph-like" library that
>> supports mutual recursion.
>>
>> https://github.com/bmillare/dj.compose
>>
>> Note some differences:
>> * fnb are higher order functions, so its expected you use it to wrap an
>> existing anonymous function
>> * functions in the bind-map are just plain functions and accept any
>> number of arguments. They are not map oriented.
>>
>> I encourage those interested to the read the sources, its only 1 macro,
>> and 1 function. Feedback appreciated.
>>
>> --
>> --
>> 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 unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Composable mutual recursive function composition

2013-03-10 Thread Catonano
What´s Prismatic for ?

Why do you build graphs of computation ?

Thanks


2013/3/10 Brent Millare 

> I recently asked about mutual referenced support in the prismatic library
> plumbing
>
> https://github.com/Prismatic/plumbing
>
> and currently its an open question about how to implement that.
>
> So I made a proof-of-concept version of a "graph-like" library that
> supports mutual recursion.
>
> https://github.com/bmillare/dj.compose
>
> Note some differences:
> * fnb are higher order functions, so its expected you use it to wrap an
> existing anonymous function
> * functions in the bind-map are just plain functions and accept any number
> of arguments. They are not map oriented.
>
> I encourage those interested to the read the sources, its only 1 macro,
> and 1 function. Feedback appreciated.
>
> --
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




ritz + overtone

2012-11-26 Thread Catonano
Hello people,

I managed to set up overtone and connecti it to a nrepl

Now I need to debug and I discovered ritz

Can I keep overtone and add the ritz debugging thing to the recipe ?

How do I set it up ?

Is it required to substitute the current nrepl with the one provided by
ritz in order to debug ?

Are the ritz modules dependent on each other ?

I sweared to set up emacs and lein, I went through the transition from
swank to nrepl and all and now I´d rather try to stick with this stack
rather than throw it and switch to clooj or lighttable-playground

Thanks

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: beginner questions

2012-08-08 Thread Catonano
Sean,

2012/8/5 Sean Corfield 

> On Sun, Aug 5, 2012 at 12:53 AM, Catonano  wrote:
> > (clojure.contrib.str-utils2/grep #"myPattern" "one row \n another row")
>
> Just as a side note, the old monolithic contrib library has been
> deprecated and many parts are no longer maintained (and you may have
> problems trying to use it with Clojure 1.3 onward).
>
> The parts of old contrib that active maintainers have been moved to
> new modular libraries:
>
> http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go
>

thank you for this information. I tried to move to Coljure 1.4 (as it's the
current version)

I could move from

clojure.contrib.str-utils2/split

to

clojure.string/split

but I couldn't move from

clojure.contrib.str-utils2/grep

to

clojure.string/grep

because it seems that in clojure.string there's no grep function

Is grep gone ?

I was using it to isolate a couple of lines in a javascript source code

Thanks again




> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
> World Singles, LLC. -- http://worldsingles.com/
>
> "Perfection is the enemy of the good."
> -- Gustave Flaubert, French realist novelist (1821-1880)
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: beginner questions

2012-08-05 Thread Catonano
Ok, I found split-lines, sorry for the noise

2012/8/5 Catonano 

> Hello people,
>
> I'm playing with Clojure and I have some silly questions.
>
> Is this the right place ? Is there a list or forum more apt to elementary
> level questions ?
>
> Anyway, my question is: I have a short text, it's some javascript source
> code.
>
> I'd like to apply grep onto it in order to extract exactly one row.
>
> I tried
>
> (clojure.contrib.str-utils2/grep #"myPattern" "one row \n another row")
>
> but I got an empty list as result
>
> While (re-find #"myPattern" "example row containing myPattern")
>
> works, it spits back myPattern.
>
> What am I missing ?
>
> Thanks
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

beginner questions

2012-08-05 Thread Catonano
Hello people,

I'm playing with Clojure and I have some silly questions.

Is this the right place ? Is there a list or forum more apt to elementary
level questions ?

Anyway, my question is: I have a short text, it's some javascript source
code.

I'd like to apply grep onto it in order to extract exactly one row.

I tried

(clojure.contrib.str-utils2/grep #"myPattern" "one row \n another row")

but I got an empty list as result

While (re-find #"myPattern" "example row containing myPattern")

works, it spits back myPattern.

What am I missing ?

Thanks

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [OT] Any other italian Clojure users?

2012-03-27 Thread Catonano
I'm Italian too, I live in the heel of the boot (in Puglia)

I didn't write a single line of Clojure but I´m playing with the Guile
Scheme and I can't stand curly braces

If someone manages to set up a meeting with meetup.com I'd love to be made
aware of that

Thank you guys,
be cool

Il giorno 27 marzo 2012 11:25, Marco Dalla Stella
ha scritto:

> Il 26 marzo 2012 22:17, Devin Walters  ha scritto:
> > I would email their support staff and ask if that promotion is still
> > available.
>
> Thank you Devin for your interest!
> MeetUp seems nice, I'll looking forward to the answer of the staff.
>
> HAND,
> --
> Marco Dalla Stella
> web: http://thediracsea.org
> twitter: http://twitter.com/kra1iz3c
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: lein, slime, project management

2010-05-28 Thread Catonano
I reply to myself.

The answer is here: http://clojure.org/compilation

<http://clojure.org/compilation>Sorry

2010/5/28 Catonano 

> Hello people,
>
> so, my questions are not about Clojure, they're about the tools of the
> trade. I hope no one will be bothered. In my opinion the tools are a part of
> this.
>
> So, the swank-clojure-project is gonna be deprecated and I should settle on
> slime-connect instead. Fine.
>
> But being a beginner with both Emacs and Slime, I'd appreciate some insight
> about what the usage patterns are supposed to be.
>
> I mean, what is gonna happen when I ask slime to compile the contents of a
> buffer ? Is it gonna produce a .class file ? Or a jar ? Where is it gonna
> put it ?
>
> Are the contents of the file gonna be available from that time on ? Or
> should I add the thing to the dependencies ?
>
> Right now, I connected to my lein based swank server, then I defined a
> small hello world function in a file. From the SLIME menu I choose "compile
> defun" and it doesn't complain about anything. I choose compile file and an
> error pops up with a stacktrace (ugh) and the third line in the stacktrace
> says something like
>
> user$eval__1975.invoke(NO_SOURCE_FILE)
>
> So, I wonder: what's going on ?
>
> Thanks for ANY hint
> Catonano
>
> --
> La difesa più sicura contro il male è l'estremo individualismo,
> l'originalità di pensiero, la stravaganza, perfino, se volete,
> l'eccentricità… Il male va matto per la solidarietà.
>
> Less than one di Joseph Brodsky
>



-- 
La difesa più sicura contro il male è l'estremo individualismo,
l'originalità di pensiero, la stravaganza, perfino, se volete,
l'eccentricità… Il male va matto per la solidarietà.

Less than one di Joseph Brodsky

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

lein, slime, project management

2010-05-28 Thread Catonano
Hello people,

so, my questions are not about Clojure, they're about the tools of the
trade. I hope no one will be bothered. In my opinion the tools are a part of
this.

So, the swank-clojure-project is gonna be deprecated and I should settle on
slime-connect instead. Fine.

But being a beginner with both Emacs and Slime, I'd appreciate some insight
about what the usage patterns are supposed to be.

I mean, what is gonna happen when I ask slime to compile the contents of a
buffer ? Is it gonna produce a .class file ? Or a jar ? Where is it gonna
put it ?

Are the contents of the file gonna be available from that time on ? Or
should I add the thing to the dependencies ?

Right now, I connected to my lein based swank server, then I defined a small
hello world function in a file. From the SLIME menu I choose "compile defun"
and it doesn't complain about anything. I choose compile file and an error
pops up with a stacktrace (ugh) and the third line in the stacktrace says
something like

user$eval__1975.invoke(NO_SOURCE_FILE)

So, I wonder: what's going on ?

Thanks for ANY hint
Catonano

-- 
La difesa più sicura contro il male è l'estremo individualismo,
l'originalità di pensiero, la stravaganza, perfino, se volete,
l'eccentricità… Il male va matto per la solidarietà.

Less than one di Joseph Brodsky

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

emacs setup

2010-04-23 Thread catonano
Hello,

I need some help in order to set up a decent setting as in the
subject.

I mean, there's elpa, leningen, apt-get, what am I supposed to do ?

Thanks for any hint
Cato

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en