Re: In search of the little transducer

2017-05-12 Thread Erlis Vidal
Is there a way I can contact Tim Baldridge for questions about the
subscription?

Thanks!

On Sun, Jan 31, 2016 at 12:40 PM, Mars0i  wrote:

> Thanks jjttjj, Magomimmo.  I do prefer reading to videos, but I'll
> consider getting Baldridge's series anyway.  Seems worth it.  I don't mind
> paying.
>
> --
> 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.


Re: Clojure News is out

2016-07-19 Thread Erlis Vidal
Great idea! I've already added it to my favorites.

Thanks!

On Fri, Jul 15, 2016 at 11:19 AM, Ertuğrul Çetin  wrote:

> Hi Everyone,
>
> I'm very excited to announce that Clojure News(Beta) https://clojure.news is
> out which is Hacker News Clone built for Clojurists.
>
> My goal is gathering Clojurists under one roof and helping Clojure
> Community to improve.
>
> It has cool and community driven features.
>
> P.S: It is open source you can check out the source code from GitHub:
> https://github.com/ertugrulcetin/ClojureNews
>
> --
> 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.


Re: why is it so annoying to run clojure code

2016-06-11 Thread Erlis Vidal
+1

Irrelevant for the current thread but I'm too really curious on how to
start using Clojure for mobile development. Anything that can point us on
the right direction?

On Sat, Jun 11, 2016 at 6:19 AM, Cornelius Goh 
wrote:

> Just for curiosity. What mobile phone (Android or iOS) did you port your
> CommonLisp libraries onto ?
>
> --
> 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.


Re: [ClojureScript] [ANN] modern-cljs - 17th tutorial - REPLing with Enlive

2015-12-24 Thread Erlis Vidal
I'm using Virtual Box with XUbuntu, and everything runs smooth there. I've
also installed boot on Windows but I haven't work there yet.

Great work Mimmo, by the way, while working on the tutorial I've found 2
typos, where can I send you the corrections?

Thanks for creating this!

Erlis

On Thu, Dec 24, 2015 at 7:08 AM, Mimmo Cosenza 
wrote:

> I wrote a warning note in the README.MD of the series, by suggesting to
> use virtualbox or docker to be able to follow the tutorial.
> I really do not have any MS Windows skill to be able to help anyone on
> those OSs.
>
> My best
>
> mimmo
>
> On Dec 24, 2015, at 9:13 AM, 'Sven Richter' via ClojureScript <
> clojurescr...@googlegroups.com> wrote:
>
> Also I just added a new doc issue:
> https://github.com/boot-clj/boot/issues/368
>
> Am Donnerstag, 24. Dezember 2015 09:12:16 UTC+1 schrieb Sven Richter:
>>
>> Hi Mimmo,
>>
>> No problem, I was afraid that you are not aware of it. I guess a lot of
>> people are not. In fact there have been windows issues made aware to the
>> developers of boot for a long time:
>> https://github.com/boot-clj/boot/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+windows
>>
>> If they work on them or not is their decision. Like I said, I don't care
>> about OS either, in fact I have been a linux proponent since the mid
>> 90-ies, but not everyone is and we should be aware of that.
>>
>> Of course you also have to decide for yourself how you handle that, now
>> you know the consequences.
>>
>> Have a merry christmas too,
>> Sven
>>
>> Am Donnerstag, 24. Dezember 2015 09:02:30 UTC+1 schrieb Magomimmo:
>>>
>>> Hi Sven,
>>> it was not my intention to exclude anyone. It's just that I never used
>>> windows in my life (if I exclude a short period in which I used VisualJ++
>>> because was amazingly faster than the Sun counterpart Java IDE (around
>>> 1997).
>>>
>>> I'll appreciate any contribution from anyone skilled in that OS, because
>>> I don't even have a windows OS to test boot and I did not even known that
>>> boot does not run on windows, considering that in the readme you can read
>>> about it.
>>>
>>> https://github.com/boot-clj/boot#windows
>>>
>>> So, sorry about that. This is something the boot maintainers should work
>>> on.
>>>
>>> that said, I think that even windows users could use boot via a virtual
>>> machine or a Linux containers (e.g. docker).
>>>
>>> To me the OS is just a commodity, as it is the JVM too. I just don't
>>> care about them until they create me a problem.
>>>
>>> Have great holidays!
>>>
>>> mimmo
>>>
>>> On Thursday, December 24, 2015 at 8:33:50 AM UTC+1, Sven Richter wrote:
>>> > Hi,
>>> >
>>> > While I appreciate everyones work and also like boots approach to
>>> building clojure libs I want to remind you that boot still does not work on
>>> windows.
>>> > Therefore you are excluding every windows user from your tutorial.
>>> >
>>> > I am not sure if I was into clojure as I am today if some of the
>>> tutorials just would not have worked when I started learning it.
>>> >
>>> > I don't know how many people here are using windows vs linux, also I
>>> don't want to start an OS war, but I know for sure that there is a lot of
>>> business developers that are using windows only and by moving more and more
>>> to boot we are closing a gate here as long as boot does not support
>>> windows.
>>> >
>>> > Best Regards,
>>> > Sven
>>> >
>>> > Am Sonntag, 20. Dezember 2015 18:47:14 UTC+1 schrieb Magomimmo:
>>> > Hi all,
>>> >
>>> > I just published the 17th tutorial- REPLing with Enlive - of
>>> the modern-cljs series.
>>> > It has been realy easy to port the first edition of the tutorial,
>>> which was based on leiningen/cljsbuild, to boot build tool (release 4.2.3
>>> at the moment). I'm really impressed by the signal/noise ratio of boot vs.
>>> leiningen/cljsbuild and it has been really easy as well to create
>>> a TDD environment which includes live coding with the REPL (both a CLJ REPL
>>> and a CLJS REPL). There is still room for improvement to better support a
>>> tight TDD worflow (i.e. dinamically filter test nameaspaces in the test and
>>> the test-cljs tasks). I'm pretty sure the boot community will quickly fix
>>> that issue.
>>> >
>>> https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-17.md
>>> > HIH
>>> > mimmo
>>>
>>
> --
> 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 https://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 

Need some direction on writing my .Net build script using clojure

2015-12-18 Thread Erlis Vidal
Hi all,

I would like to start using clojure at my workplace and I think I've found
a great opportunity. I need to write the build script for our .Net solution
and it will great if I can use clojure for this task.

What I would like to know is if we (the community) have something that is
suitable for this task.

Currently the build scripts are written in Powershell and they use a
library (Psake) that makes easy to invoke MSBuild, this is what I consider
I need to be able to write the script.

I was researching and I found boot-clj and the idea behind it is similar to
the idea behind Psake.

So guys, do you think boot-clj is the way to go or do you think I should be
looking into a different tool?

Any suggestion will be more than appreciated!

Regards,
Erlis

-- 
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.


Where I can learn this?

2015-10-14 Thread Erlis Vidal
Guys,

I've just finished the first episode of "parens of the dead" and was mind
blown for what I saw there.

http://www.parens-of-the-dead.com/e1.html

Have you been near someone that do something cool and you have to ask, "how
you did that?" Well, every second on the video I was having that feeling. I
don't work much in clojure, just in my spare time, is my dream language, I
use it in emacs, but I'm really not using any of the things I saw in the
video.

- html completion
- refactoring (rename, move to function)
- adding dependencies and automatic project.clj modificaiton

Is there a way I can learn what emacs packages was used for all that?

I know this is not a clojure question but I'll die to have a screencast
that teach all those keystrokes and reveal the real power of emacs +
clojure.

It was really nice to see the mouse in the middle of the screen and not
moving at all. :D

Thanks for sharing! In just 11 minutes you empowered my Clojure passion
even more!

Erlis

-- 
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.


Tessel and ClojureScript

2015-10-14 Thread Erlis Vidal
This question is for the clojurescript guys.

Do you think it's possible to code the Tessel (https://tessel.io/) using
ClojureScript?

I really want to have fun :)

-- 
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: Clojure Dev Environment

2015-10-07 Thread Erlis Vidal
Sven!

Thans for sharing!

On Wed, Oct 7, 2015 at 8:14 AM, Sven Richter  wrote:

> Hi Erlis,
>
> Not considering myself a seasoned developer, still I stream from time to
> time on: https://www.livecoding.tv/sveri/
> I am always happy to talk about things and explain everything to my best
> knowledge.
>
> Best Regards,
> Sven
>
> Am Dienstag, 6. Oktober 2015 16:18:00 UTC+2 schrieb Erlis Vidal:
>>
>> I think it will be very helpful to the Clojure community to have
>> something done with Videos (screencasts) ... Clojure University? somewhere
>> we can see how the more seasoned developers work. At least I won't have to
>> discover by myself, I can copy the best guys..
>>
>> I'll like to read whatever you write.
>>
>> Keep the good work.
>> Erlis
>>
>> On Tue, Oct 6, 2015 at 4:41 AM, Miguel Ping  wrote:
>>
>>> Thanks guys!
>>>
>>> For me the ideal flow would be something that would allow me to save an
>>> incoming http req (I do mostly web dev) onto some variable/def, and replay
>>> it against some code I'm writing in the repl.
>>> Also I like to use step debuggers when I'm new to the language or lib,
>>> it allows me to go down the rabbit hole and see how things work. Sometimes
>>> you find some surprises!
>>>
>>> I think documentation on this is something that's missing on the clj
>>> community, because everyone does things a little different, but it makes it
>>> hard for beginners to get the gist of it.
>>> I know some people that don't even have auto-reload on lein/ring and end
>>> up stopping/starting the jvm which is crazy because it takes a while.
>>>
>>> I may write something up, I would appreciate if you guys had any more
>>> suggestions, including suggestions about where to put this info.
>>>
>>> This is what I think it's standard practice:
>>>
>>> - ideally you don't restart jvm
>>> - on ring, use hot-reload/auto-reload
>>> - app can be started from repl
>>> - ide can eval clj expressions (send it to repl)
>>> - people code small bits on ide, eval it, loop on this until its working
>>> - can do this for tests also
>>> - basically the whole idea is to have components built upon functional
>>> style that can be started and invoked from the repl at any layer depth
>>>
>>> - As for debuggers, I know some people other than Sean that dont use
>>> step debuggers at all (specially oldschool ppl), but I think its helpful
>>> for newbies
>>>
>>>
>>> I will keep you guys updated if I ever write something. First have to
>>> learn it ;)
>>>
>>> On Monday, October 5, 2015 at 8:07:32 PM UTC+1, Sean Corfield wrote:
>>>>
>>>> Miguel Ping wrote on Monday, October 5, 2015 at 3:00 AM:
>>>>
>>>> - do you code functions in the repl and copy them to respective files?
>>>>
>>>>
>>>> I use Emacs/CIDER and code functions in a file, then use C-M-x to
>>>> evaluate each one into the running REPL. I usually keep the REPL in the
>>>> user namespace and require in the namespace I’m working on (C-c C-z to jump
>>>> to the REPL as needed) and then type in expressions to test functions as I
>>>> go. Later I’ll take a transcript of parts of the REPL and add them to my
>>>> unit test namespace — usually just copy’n’paste, followed by some minor
>>>> edits to turn them into Expectations format: (expect {expected} {actual})
>>>> which means using C-M-t to swap REPL output which has:
>>>>
>>>> user> (some test expression)
>>>> {the actual output}
>>>>
>>>> =>
>>>>
>>>> (expect {the actual output}
>>>> (some test expression))
>>>>
>>>> Put the cursor after the prompt: user>| then M-delete, type (expect)
>>>> and slurp twice M-) then forward one s-exp C-M-f and swap C-M-t
>>>>
>>>> - do you edit files directly and hook them into the repl?
>>>>
>>>>
>>>> Yes, but I don’t save them every time since I can use C-M-x to evaluate
>>>> the current form as I type.
>>>>
>>>> - how do you set breakpoints?
>>>>
>>>>
>>>> I don’t bother. I’ve never liked step debuggers in any language in my
>>>> 30+ years of development :(
>>>>
>>>> - can you do hot-replacement easily? I always see a bunc

Re: Clojure Dev Environment

2015-10-06 Thread Erlis Vidal
I think it will be very helpful to the Clojure community to have something
done with Videos (screencasts) ... Clojure University? somewhere we can see
how the more seasoned developers work. At least I won't have to discover by
myself, I can copy the best guys..

I'll like to read whatever you write.

Keep the good work.
Erlis

On Tue, Oct 6, 2015 at 4:41 AM, Miguel Ping  wrote:

> Thanks guys!
>
> For me the ideal flow would be something that would allow me to save an
> incoming http req (I do mostly web dev) onto some variable/def, and replay
> it against some code I'm writing in the repl.
> Also I like to use step debuggers when I'm new to the language or lib, it
> allows me to go down the rabbit hole and see how things work. Sometimes you
> find some surprises!
>
> I think documentation on this is something that's missing on the clj
> community, because everyone does things a little different, but it makes it
> hard for beginners to get the gist of it.
> I know some people that don't even have auto-reload on lein/ring and end
> up stopping/starting the jvm which is crazy because it takes a while.
>
> I may write something up, I would appreciate if you guys had any more
> suggestions, including suggestions about where to put this info.
>
> This is what I think it's standard practice:
>
> - ideally you don't restart jvm
> - on ring, use hot-reload/auto-reload
> - app can be started from repl
> - ide can eval clj expressions (send it to repl)
> - people code small bits on ide, eval it, loop on this until its working -
> can do this for tests also
> - basically the whole idea is to have components built upon functional
> style that can be started and invoked from the repl at any layer depth
>
> - As for debuggers, I know some people other than Sean that dont use step
> debuggers at all (specially oldschool ppl), but I think its helpful for
> newbies
>
>
> I will keep you guys updated if I ever write something. First have to
> learn it ;)
>
> On Monday, October 5, 2015 at 8:07:32 PM UTC+1, Sean Corfield wrote:
>>
>> Miguel Ping wrote on Monday, October 5, 2015 at 3:00 AM:
>>
>> - do you code functions in the repl and copy them to respective files?
>>
>>
>> I use Emacs/CIDER and code functions in a file, then use C-M-x to
>> evaluate each one into the running REPL. I usually keep the REPL in the
>> user namespace and require in the namespace I’m working on (C-c C-z to jump
>> to the REPL as needed) and then type in expressions to test functions as I
>> go. Later I’ll take a transcript of parts of the REPL and add them to my
>> unit test namespace — usually just copy’n’paste, followed by some minor
>> edits to turn them into Expectations format: (expect {expected} {actual})
>> which means using C-M-t to swap REPL output which has:
>>
>> user> (some test expression)
>> {the actual output}
>>
>> =>
>>
>> (expect {the actual output}
>> (some test expression))
>>
>> Put the cursor after the prompt: user>| then M-delete, type (expect) and
>> slurp twice M-) then forward one s-exp C-M-f and swap C-M-t
>>
>> - do you edit files directly and hook them into the repl?
>>
>>
>> Yes, but I don’t save them every time since I can use C-M-x to evaluate
>> the current form as I type.
>>
>> - how do you set breakpoints?
>>
>>
>> I don’t bother. I’ve never liked step debuggers in any language in my 30+
>> years of development :(
>>
>> - can you do hot-replacement easily? I always see a bunch of stack traces
>> while using lein and ring with reload flags
>>
>>
>> If I want to hot-swap into a running process, I just start a REPL server
>> inside the process and connect CIDER to that, instead of starting a
>> standalone REPL in Emacs. I tend to use standalone REPLs only for running
>> Expectations anyway (where I use a slightly different workflow and keep the
>> REPL in the same namespace as the Expectations file (C-c M-n to swap REPL
>> namespaces).
>>
>> - is there an article or screencast explaining the "feel" of this?
>>
>>
>> I don’t know, sorry.
>>
>> Sean
>>
>> --
> 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 uns

Re: Question about equality in HashMaps

2015-09-11 Thread Erlis Vidal
Ohh I was fooled by the editor.

http://www.tryclj.com/ shows the right values. Thanks for catching that up
for me.

instaREPL definitely has a bug there. Time to install light table...

Thanks guys!!!

On Fri, Sep 11, 2015 at 3:45 PM, Michael Blume  wrote:

> I wonder why instaREPL prints a as {"a" 3, "r" 1, "u" 1}
>
> On Fri, Sep 11, 2015 at 3:42 PM Alex Miller  wrote:
>
>> a uses characters (\a \b \c)
>> b uses strings ("a" "b" "c")
>>
>> Those are not equal...
>>
>> Try:
>> (def b {\a 3 \r 1 \u 1})
>>
>>
>> On Friday, September 11, 2015 at 5:37:32 PM UTC-5, Erlis Vidal wrote:
>>>
>>> (def a (apply merge-with + (map #(hash-map %1 1) "aaaur")))
>>> (def b {"a" 3, "r" 1, "u" 1})
>>>
>>>  (= a b)  ; why false
>>>  (.equals a b)
>>>
>>>  (type a)
>>>  (type b)
>>>
>>>  (identity a)
>>>  (identity b)
>>>
>>> from http://web.clojurerepl.com/
>>>
>>>
>>> ​
>>>
>> --
>> 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.


Question about equality in HashMaps

2015-09-11 Thread Erlis Vidal
(def a (apply merge-with + (map #(hash-map %1 1) "aaaur")))
(def b {"a" 3, "r" 1, "u" 1})

 (= a b)  ; why false
 (.equals a b)

 (type a)
 (type b)

 (identity a)
 (identity b)

from http://web.clojurerepl.com/


​

-- 
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: Any Clojure programming recording around?

2014-11-21 Thread Erlis Vidal
Thanks everyone,

This is exactly what i was looking for!

On Fri, Nov 21, 2014 at 2:54 PM, Alan Moore  wrote:

> +1
>
> I really like Timothy's videos and highly recommend them. They not only
> cover interesting topics but as he works through his examples using the
> REPL he discusses all kinds of clojure related subjects, e.g. destructuring
> features, idiomatic usage, design options, etc.. You get micro-lessons
> within each video as he tests and debugs the code he is writing and shows
> his workflow which is quite helpful.
>
> Alan
>
>
> On Thursday, November 20, 2014 2:59:38 PM UTC-8, tbc++ wrote:
>>
>> I have a bunch here, on several topics: https://tbaldridge.
>> pivotshare.com/ . Just started a series on transducers, I'll have even
>> more by the weekend.
>>
>> Timothy
>>
>> On Thu, Nov 20, 2014 at 3:04 PM, Erlis Vidal 
>> wrote:
>>
>>> Hi group,
>>>
>>> Someone knows if we have screencasts on how the more skilled clojurian
>>> are working? I remember few months ago we had some "pairing" sessions that
>>> were really popular, any recording on any of those sessions?
>>>
>>> Usually I learn better by watching/doing than reading.
>>>
>>> (Any? channel  screencasts training pairing)
>>>
>>> Regards,
>>> Erlis
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> “One of the main causes of the fall of the Roman Empire was that–lacking
>> zero–they had no way to indicate successful termination of their C
>> programs.”
>> (Robert Firth)
>>
>  --
> 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.


Any Clojure programming recording around?

2014-11-20 Thread Erlis Vidal
Hi group,

Someone knows if we have screencasts on how the more skilled clojurian are
working? I remember few months ago we had some "pairing" sessions that were
really popular, any recording on any of those sessions?

Usually I learn better by watching/doing than reading.

(Any? channel  screencasts training pairing)

Regards,
Erlis

-- 
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: If code is data why do we use text editors?

2014-11-14 Thread Erlis Vidal
This is an interesting topic, and I think this applies to most of the
programming languages not just Clojure. I'm still waiting the day where we
finally abandon the idea that the file is the minimal point of change, by
this I mean that today we do changes on files when actually what we are
changing is a function|an Object, you name it.

Today we are just lost in files, we cannot see the forest for the trees,
it's not align with the mental model we have about our system. I learned
about this when I was doing SmallTalk, I think they have something that's
been forgotten over time, the truth is that we still in 2014|5 using files,
then we create tools to overcome this problem.

I really hope the day someone really reinvent the IDEs is approaching. I
was having hope when I saw CodeBubble [
http://www.andrewbragdon.com/codebubbles_site.asp] but that project looks
to be death. Maybe the people behind LightTable can think about this?

Regards,
Erlis

On Fri, Nov 14, 2014 at 9:24 AM, Simon Brooke 
wrote:

> I wrote a couple of blog-posts on this topic - On Editing, and Clojure
> , and Editing
> and clojure revisited: this time, with structure!
> 
>  I
> also wrote a bit of (very simple) code here
> .
>
> The big lisp systems of the past often used in-core editors - the little
> toy editor I wrote is based on the editor in BBC Lisp, which in turn was
> based on the editor in Portable Standard Lisp. InterLisp had a much more
> powerful, graphical in-core editor called dedit.
>
> You might also find this document
> 
> interesting.
>
> On Friday, 14 November 2014 12:42:57 UTC, Thomas Huber wrote:
>>
>> Hi, here is an idea that has been in my mind for a while. I wonder what
>> you think about it.
>>
>>
>> In Clojure code is data, right? But when we program we manipulate flat
>> text files, not the data directly.
>>
>> Imagine your source code where a data structure (in memory). And
>> programming is done by manipulating this data structure. No text editor and
>> text files involved.
>>
>> Your editor directly manipulates the source data and later saves it on
>> disk (maybe as a text file).
>>
>>
>> These are the benefits I can think of:
>>
>>  - It enables you to use any Clojure function to manipulate your source
>> „code“. Giving you hole new opportunities for refactoring.This functions
>> can be provides as library.
>>
>>
>> - Really nice auto complete.
>>
>>
>> - Visual programming. Source code can be represented in many different
>> ways (not just text) . The easiest example I can think of is color. It can
>> be represented as text of course (#23FF02)
>>
>> but that’s a quite bad interface for humans. Why not display the actual
>> color and provide a color picker? Or what about music notes? Or Math
>> formulars? Or what about a tree view to move and rename functions like
>> files?
>>
>> This could all be implemented in a way that every library can ship there
>> own „views“. I think this „views“ are basically macros that are not limited
>> to text.
>>
>>
>> - You don’t have to worry that you text files are in the same state as
>> your JVM (when developing interactive). You only work on your sourcedata
>> and it gets loaded into the JVM automatically.
>>
>>
>> - Answer questions about your source code. What is the most called
>> function? Who depends on this namespace? Where is this function used? What
>> is the biggest function? Thinks like that become easy. Again you can ship
>> this queries as a library.
>>
>>
>>
>>
>> The drawback is you can’t simply program using any text editor. You need
>> a special tool. But we have that anyway (syntax highlighting, paredit
>> etc.). Nobody programs using a bare text editor.
>>
>>
>> Maybe this idea is not new? What do you think?
>>
>  --
> 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
clojur

Re: ClojureScript and development workflow

2014-11-11 Thread Erlis Vidal
Any update on how to do this from LightTable?

On Tue, Sep 11, 2012 at 7:48 PM, Chris Granger  wrote:

> FWIW, I'm working on this with Light Table, which removes a lot of the
> difficulties here - it will be include this script tag and you're ready to
> go. There's no reason that we need to jump through a bunch of hoops here.
> My plan is that the next release (sometime after strange loop) will include
> a nice way to work with CLJS such that a very nice getting started video
> could be created. :)
>
> Cheers,
> Chris.
>
> On Tuesday, September 11, 2012 6:10:29 AM UTC-7, Chas Emerick wrote:
>>
>> On Sep 11, 2012, at 4:00 AM, Laurent PETIT wrote:
>>
>> 2012/9/10 Chas Emerick 
>>
>> I've been using a combination of lein-cljsbuild to keep the on-disk
>>> generated code fresh and piggieback[1] for all of my cljs REPL needs.
>>>
>>
>> Hello Chas,
>>
>> I've tried to use piggieback. My current stack for playing with the
>> concepts is leiningen2 on the command line (to start the server), with
>> clsjbuild to compile the browser_repl.cljs to "bootstrap" the REPL
>> machinery (lein cljsbuild once), regular "lein repl" once project.clj has
>> been configured with the proper options) and a regular CCW 0.10.0 nrepl
>> client.
>>
>> It works OK with the "out of the box" Rhino-backed evaluator, but as you
>> might guess, I have no interest in this and then I quickly jump to try &
>> get a Browser-based REPL running.
>>
>> That's where things broke.
>> I did not manage to get things compiled correctly.
>>
>> As it stands, it seems that I'll have to read & understand wiki pages
>> from ClojureScript project, nrepl documentation, piggieback documentation,
>> cljsbuild documentation, to really grasp the whole thing.
>> Seems a little bit daunting just to be able to "play" with it. Is there
>> an easier way ? A resource somewhere which already explains step-by-step
>> how to get started with a new project, cljsbuild for compiling from time to
>> time, and piggieback ?
>>
>> Just asking before starting digging :-)
>>
>>
>> There is a how-to in piggieback's README for using a browser-repl
>> environment rather than Rhino.  Nelson Morris was actually the first one to
>> get that working, and I'm using it regularly, so it *does* work, though
>> there's no doubt there's a lot of pieces you need to put together (for my
>> part, I blew nearly an hour tearing my hair out before re-reading the
>> browser-repl tutorial,[1] and seeing near the bottom that loading the HTML
>> page from disk wouldn't work; once I served the page from localhost,
>> everything fell together).
>>
>> FWIW, I've found ClojureScript itself to be very solid so far; there are
>> some unfortunate (IMO unnecessary) incompatibilities between it and
>> Clojure, but [2] is the only thing I've really tripped up on from a
>> technical standpoint.
>>
>> I think your assessment that the learning curve is "daunting" is just
>> about right, but that largely lays with the state of tooling, and the
>> disjointed nature of the development process.  With Clojure, you always
>> have a single environment (the JVM or CLR), into which you can load code
>> all day from nearly anywhere without having to think much about the
>> logistics of it.  ClojureScript necessarily implies a more complicated
>> setup: there's your REPL environment, probably a browser, and maybe a
>> connection between the two; you *must* have your code on disk and in the
>> right place in order for Google Closure / lein-cljsbuild to get at it (not
>> strictly true, but driving the compiler from a Clojure REPL isn't any
>> easier outside of simple cases); your Ring webapp needs to be configured to
>> be serving the gclosure output; and, you'd obviously like to be able to
>> control and monitor all of this from your editor/environment of choice.
>>
>> (I'd like to eventually do a 'Starting ClojureScript' screencast similar
>> to [3], but the logistics of "going from zero to hero" with ClojureScript
>> are IMO far too hard and nuanced still in order to present them well in
>> that sort of medium.)
>>
>> I think the contrast is so stark in part because of how good we've had it
>> on the Clojure side.  I suspect that CoffeeScript programming must be
>> similarly disjointed, since all the same moving pieces are necessary (and
>> perhaps without the benefit of upsides like a browser-connected REPL and so
>> on).  Welcome to the wonderful world of modern web development! :-P
>>
>> I think that's all a long way of saying: start digging!
>>
>> Cheers,
>>
>> - Chas
>>
>> [1] https://github.com/clojure/clojurescript/wiki/The-REPL-
>> and-Evaluation-Environments
>> [2] http://dev.clojure.org/jira/browse/CLJS-358
>> [3] http://cemerick.com/2012/05/02/starting-clojure/
>>
>  --
> 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

Re: Is it the right Clojure group for a newbie

2014-06-03 Thread Erlis Vidal
Welcome!!


On Tue, Jun 3, 2014 at 2:33 AM, Linus Ericsson  wrote:

> Also check out Kyle Kingsbury's Clojure from the ground up:
> http://aphyr.com/posts/301-clojure-from-the-ground-up-welcome
>
> A lot of things in Clojure gets much easier when one understands a bit of
> java. Not how to write a for loop, but rather how to use various classes. I
> recommend the Oracle Java tutorials. They are really good, given
> Java's verbosity.
>
> http://docs.oracle.com/javase/tutorial/
>
> Also, do take the opportunity to really solve some problems, 4clojure is
> great!
> https://www.4clojure.com/
>
> I have had trendemous help from clojuredocs.org and the many examples
> there.
>
> There are several great books as well: Programming Clojure and Clojure
> Programming are good for starters. Joy of Clojure is a bit more advanced.
>
> Welcome to the fun!
>
> /Linus
>
>
> On Tuesday, June 3, 2014, Gary Trakhman  wrote:
>
>> Check out the 'online resources' section:
>> http://clojure.org/getting_started
>>
>>
>> On Mon, Jun 2, 2014 at 5:36 PM,  wrote:
>>
>>> All,
>>>If this is the right Clojure group for a newbie, I would like to ask
>>> for the best online resources to begin with. I am new to programming,
>>> having recently switched from a non technical field.
>>> I have started looking at http://www.braveclojure.com/, but any
>>> pointers would be useful, especially cookbook styled ones.
>>> Abha
>>>
>>> --
>>> 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.
>

-- 
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: 4Clojure exercise 47 question

2014-06-03 Thread Erlis Vidal
Thanks Stephen!


On Mon, Jun 2, 2014 at 5:50 PM, Stephen Gilardi  wrote:

>
> On Jun 2, 2014, at 4:53 PM, Erlis Vidal  wrote:
>
> Hi guys,
>
> Quick question about exercise 47, http://www.4clojure.com/problem/47
>
> Here you could find the following
>
> *(not (contains? '(1 2 4)  __)*
>
> If I try to execute it in my REPL it gives the following error:
>
> * contains? not supported on type: clojure.lang.PersistentList*
>
> Was this a change of recent clojure versions? Why?
>
>
> Yes, it changed in Clojure 1.5.
>
> The rationale is here: http://dev.clojure.org/jira/browse/CLJ-932
>
> —Steve
>
>  --
> 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.


4Clojure exercise 47 question

2014-06-02 Thread Erlis Vidal
Hi guys,

Quick question about exercise 47, http://www.4clojure.com/problem/47

Here you could find the following

*(not (contains? '(1 2 4)  __)*

If I try to execute it in my REPL it gives the following error:

* contains? not supported on type: clojure.lang.PersistentList*

Was this a change of recent clojure versions? Why?

Thanks,
Erlis

-- 
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: REPL using Emacs Cider

2014-06-02 Thread Erlis Vidal
Hi Timur,

I've seen weird errors when not using lein2. What version of lein are you
using?


On Sun, Jun 1, 2014 at 11:52 AM, Timur  wrote:

> hi everyone, I have a question about using nREPL (cider) in Emacs.
>
> In my clojurescript project, I start the repl server using cider-jack-in
> command. However, whenever I try to execute a function from the clojure
> file, a CompilerException is thrown with the message unable to resolve
> symbol... What could be the problem? Does cider load all dependencies
> automatically?
>
> --
> 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.


Re: Rethinking Literate Programming

2014-05-09 Thread Erlis Vidal
I've always seen this to document what the system does, as a way to gather
requirements. And the name used is similar to what you propose. Live
Specification or Specification by Example among other names.

It never occurred to me that this could be used for API documentation, and
I'm a completely n00b to LP, that's why I asked if we could use something
like that. I see that the definition of LP involve the word "programming"
so basically we have to bind the code with the "literate" part.

Maybe concordion could be a interesting idea to present in the discussion
we have around a new way of documentation for Clojure. It's nice what you
can do with it. We can even use it to document how the future version of
the language is progressing, we can go to the "live" page and see what's
done and what's pending.

I'll see if I find some time to create something in clojure that's
documented using concordion.

Anyway, thanks for the answer and keep up the great work, everyone!


On Fri, May 9, 2014 at 10:17 AM, Gregg Reynolds  wrote:

> On Fri, May 9, 2014 at 8:33 AM, Erlis Vidal  wrote:
>
>> In the past I've used a java tool to write "acceptance tests". Concordion
>> [http://concordion.org/]. The idea is simple yet effective. You write
>> your documentation in HTML, and later you can run your code that will
>> interact with that documentation and generate a new documentation, marking
>> the portions of the text that are implemented and right (in green) vs the
>> portion that's not yet implemented or failed (in red).
>>
>> This was an excellent communication tool. We can design the documentation
>> in a way that the information flows and anyone could understand. I think
>> the idea could be used in Clojure also, actually I was thinking about this
>> for a while, it shouldn't be hard to use from clojure, it's a Java tool in
>> the end.
>>
>> After reading this discussion I was wondering if a tool like this could
>> be use to do LP, if not, I would like to know why.
>>
>
> Hi Erlis,
>
> That looks like an excellent tool, thanks for bringing it up!  Years ago,
> when I first started dinking around with LP, I wanted to get the good
> documentation of LP but without mixing code and documentation in one file
> and without reordering; in other words, a way to reliably attach
> documentation to code from the outside, keep it up to date, etc.  Something
> akin to the way XSLT relates to XML source docs.  I think something like
> that is doable, but it's complicated and my initial enthusiasm eventually
> petered out.  But it never occurred to me to use tests in this way.  It
> looks like a great way to document APIs (internal and external), and I no
> reason why it wouldn't work just fine for Clojure.  If not Concordion, it
> probably would not be too tremendously difficult to add similar
> capabilities to one of the pure Clojure unit test frameworks.
>
> One thing I might change (having spent no more that a few minutes looking
> at Concordion) would be to write Condordion specs in XML instead of HTML.
> That would make it easier to repurpose the output to PDF, Eclipse
> helpfiles, Windows helpfiles, etc. (see
> http://dita-ot.github.io/1.8/readme/AvailableTransforms.html for a list
> of output formats in active use by tech documentation specialists).  In
> fact, now I think of it, it looks like Concordion specification would be a
> good candidate for a DITA specialization.
>
> Personally I would not call this LP, just to avoid confusion.  Knuth's
> original notion of LP pretty clearly means, among other things, code and
> documentation in the same LP source text, and free ordering.  Most other LP
> systems that I've looked at follow those norms, so calling something like
> Concordian an LP tool would likely lead to gnashing of teeth, not to
> mention theological debates about True LP.  I'm not sure what I would call
> it, other than a documentation tool.  Maybe live documentation?  Integrated
> external documentation?  Test-based documentation?
>
> Thanks,
>
> Gregg
>
> -Gregg
>
> --
> 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

Re: Rethinking Literate Programming

2014-05-09 Thread Erlis Vidal
In the past I've used a java tool to write "acceptance tests". Concordion [
http://concordion.org/]. The idea is simple yet effective. You write your
documentation in HTML, and later you can run your code that will interact
with that documentation and generate a new documentation, marking the
portions of the text that are implemented and right (in green) vs the
portion that's not yet implemented or failed (in red).

This was an excellent communication tool. We can design the documentation
in a way that the information flows and anyone could understand. I think
the idea could be used in Clojure also, actually I was thinking about this
for a while, it shouldn't be hard to use from clojure, it's a Java tool in
the end.

After reading this discussion I was wondering if a tool like this could be
use to do LP, if not, I would like to know why.

Thanks!





On Fri, May 9, 2014 at 8:59 AM, Erlis Vidal  wrote:

> Guys, you really are into the Literate part, those emails are huge! let me
> catch up and then I'll reply...
>
> Interesting discussion!
>
>
> On Thu, May 8, 2014 at 4:59 PM, Mark Engelberg 
> wrote:
>
>> On Thu, May 8, 2014 at 11:02 AM, Mark Engelberg > > wrote:
>>
>>> In fact, Clojure has a number of features that actively hurt its
>>> expressiveness relative to other modern languages:
>>>
>>
>> BTW, that list was by no means exhaustive.  In the past couple of hours
>> I've thought of a couple more, I'm sure others could easily add to the list:
>>
>> 7. Use of infix notation means that math formulas look dramatically
>> different in Clojure than in math form, and therefore, it is difficult to
>> determine at a glance whether a formula as implemented in Clojure matches.
>> 8. Arrays in many domains are more naturally expressed as 1-based, but in
>> Clojure, they are 0-based.  I've encountered a lot of code that was
>> confusing because of lots of increments/decrements to shift back and forth
>> between the problem as specified with 1-based implementation and the
>> 0-based implementation imposed by Clojure.  Lots of opportunities for
>> off-by-one errors and/or later confusion when other readers try to make
>> sense out of the code.
>> 9. Clojure's ease of functional composition can result in deeply nested
>> calls that are far easier to write than they are to read.
>> 10. Unlike most other languages, every time you give names to local
>> variables with let, you add a level of indentation.  Especially with
>> alternations of let and if/cond, you can easily end up with "rightward
>> drift" that makes code harder to read.
>>
>> These are things we learn to live with.  If these were show-stoppers, I'd
>> be using another language, but they are not, so on balance I prefer Clojure
>> with its other many strengths.  My only point is that by no means is
>> Clojure a pinnacle of expressiveness where all code is miraculously obvious.
>>
>> --
>> 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.


Re: Rethinking Literate Programming

2014-05-09 Thread Erlis Vidal
Guys, you really are into the Literate part, those emails are huge! let me
catch up and then I'll reply...

Interesting discussion!


On Thu, May 8, 2014 at 4:59 PM, Mark Engelberg wrote:

> On Thu, May 8, 2014 at 11:02 AM, Mark Engelberg 
> wrote:
>
>> In fact, Clojure has a number of features that actively hurt its
>> expressiveness relative to other modern languages:
>>
>
> BTW, that list was by no means exhaustive.  In the past couple of hours
> I've thought of a couple more, I'm sure others could easily add to the list:
>
> 7. Use of infix notation means that math formulas look dramatically
> different in Clojure than in math form, and therefore, it is difficult to
> determine at a glance whether a formula as implemented in Clojure matches.
> 8. Arrays in many domains are more naturally expressed as 1-based, but in
> Clojure, they are 0-based.  I've encountered a lot of code that was
> confusing because of lots of increments/decrements to shift back and forth
> between the problem as specified with 1-based implementation and the
> 0-based implementation imposed by Clojure.  Lots of opportunities for
> off-by-one errors and/or later confusion when other readers try to make
> sense out of the code.
> 9. Clojure's ease of functional composition can result in deeply nested
> calls that are far easier to write than they are to read.
> 10. Unlike most other languages, every time you give names to local
> variables with let, you add a level of indentation.  Especially with
> alternations of let and if/cond, you can easily end up with "rightward
> drift" that makes code harder to read.
>
> These are things we learn to live with.  If these were show-stoppers, I'd
> be using another language, but they are not, so on balance I prefer Clojure
> with its other many strengths.  My only point is that by no means is
> Clojure a pinnacle of expressiveness where all code is miraculously obvious.
>
> --
> 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.


Re: why is this failing on a list

2014-05-05 Thread Erlis Vidal
Hi Roelof,

I start the 4Clojure exercises and I did a little project so I can keep a
record of my solutions. It's really simple but also I've found it really
helpful to see where my errors are.

You can fork it from here... if you want.

https://github.com/erlis/4Clojure

You only have there the first 5 or 6 ones, the only thing you have to do is
continue adding exercises and your answers. This will help you also to
become familiar with your dev environment. I'm using Emacs but you can use
whatever you want.

Regards,
Erlis


On Sun, May 4, 2014 at 11:06 AM, James Reeves  wrote:

> Remember that indexes work from zero. So if you have a collection of 3
> elements:
>
> (nth ["a" "b" "c"] 2)  =>  "c"
> (nth ["a" "b" "c"] 1)  =>  "b"
> (nth ["a" "b" "c"] 0)  =>  "a"
>
> I'd encourage you to open a REPL and try the solution you have to see what
> you get if you get stuck. Often some experimentation will show you what
> you're doing wrong.
>
> - James
>
>
> On 4 May 2014 15:58, Roelof Wobben  wrote:
>
>> oke,
>>
>> Then I think I have to work with a if then :
>>
>> The second test is already a vector but the thirth not
>>
>> (= (__ ["a" "b" "c"]) "b")
>>
>> (= (__ [[1 2] [3 4]]) [1 2])
>>
>> I tried already the nth but I was also failing  on the first. I think
>> because of count because you cannot know how many values you have.
>>
>> (fn secondlast [v]
>>   (nth v (-(count v)1)))
>>
>>
>> Roelof
>>
>> Op zondag 4 mei 2014 16:49:45 UTC+2 schreef Lee:
>>
>>>
>>>
>>> On May 4, 2014, at 10:42 AM, Roelof Wobben  wrote:
>>>
>>> > For 4clojure I have to find the second to last item.
>>> >
>>> > So I did this:
>>> >
>>> > (fn secondlast [v]
>>> >   (get v (-(count v)1)))
>>> >
>>> > Now it's only failing at this test :  (= (__ (list 1 2 3 4 5)) 4)
>>> >
>>> > Can anyone tell me where I did take the wrong way.
>>>
>>>
>>> The "get" function with integer keys works for vectors but not for
>>> lists:
>>>
>>> => (get [7 8 9] 1)
>>> 8
>>> => (get '(7 8 9) 1)
>>> nil
>>>
>>> So one option would be to call "vec" on the list before calling get:
>>>
>>> => (get (vec '(7 8 9)) 1)
>>> 8
>>>
>>> Another option would be to use "nth" instead of "get".
>>>
>>>  -Lee
>>>
>>>  --
>> 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.


Re: how can I print the function name as parameter?

2014-05-02 Thread Erlis Vidal
Wow,

Thank you all!

I'll try all the proposal but I think I'll use the tool.trace recommended
by Henry.




On Fri, May 2, 2014 at 8:08 AM, Toby Crawley  wrote:

> A simpler version:
>
> (defmacro show [f & args]
>   (let [f-var# (resolve f)]
> `(println ~f-var# (~f ~@args
>
> On Friday, May 2, 2014 8:04:30 AM UTC-4, Toby Crawley wrote:
>>
>> You could implement show as a macro that resolves the var before calling
>> the fn:
>>
>> (defmacro show [f & args]
>>   (let [f-var# (resolve f)]
>> `(let [r# (~f ~@args)]
>>(println ~f-var# r#
>>
>> user> (show + 1 2)
>> #'clojure.core/+ 3
>>
>> - Toby
>>
>> unlo...@bytopia.org writes:
>>
>> > You need to pass not the function itself, but its Var. Because Vars are
>> the
>> > ones that hold metadata.
>> >
>> > (show #'elementary/nothing-but-the-truth true)
>> >
>> > On Friday, May 2, 2014 4:28:49 AM UTC+2, Erlis Vidal wrote:
>> >>
>> >> Hi guys,
>> >>
>> >> I want to write a function (show) that will receive a function as
>> >> parameter. How can print the original name of that function? I've
>> tried
>> >> with meta, resolve, name but none of them give me the result I want.
>> >>
>> >> The goal is that I want to write a function that print the name of the
>> >> function that will be executed then the result of that execution. If
>> >> there's a better way to achieve this I'll appreciate your suggestions.
>> >>
>> >> Thanks!
>> >> Erlis
>> >>
>> >> (defn show [f sol]
>> >>   (print (meta f)))
>> >>
>> >>
>> >> (defn -main []
>> >>(show elementary/nothing-but-the-truth true))
>> >>
>> >>
>>
>  --
> 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.


how can I print the function name as parameter?

2014-05-01 Thread Erlis Vidal
Hi guys,

I want to write a function (show) that will receive a function as
parameter. How can print the original name of that function? I've tried
with meta, resolve, name but none of them give me the result I want.

The goal is that I want to write a function that print the name of the
function that will be executed then the result of that execution. If
there's a better way to achieve this I'll appreciate your suggestions.

Thanks!
Erlis

(defn show [f sol]
  (print (meta f)))


(defn -main []
   (show elementary/nothing-but-the-truth true))

-- 
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: Do not understand the -> macro here

2014-05-01 Thread Erlis Vidal
Look that (def A ...) won't compile as given, so you cannot say A is [1 2 3
4 5], A is something else once you make it compile filling the blank space
with the missing function.


On Thu, May 1, 2014 at 10:24 AM, Maik Schünemann
wrote:

> The task is to replace __ with the function that makes this true in this
> case makes [1 2 3 4 5] to 5
>
>
> On Thu, May 1, 2014 at 4:23 PM, Maik Schünemann  > wrote:
>
>>
>>
>>
>> On Thu, May 1, 2014 at 3:51 PM, Roelof Wobben wrote:
>>
>>>
>>>
>>> Op donderdag 1 mei 2014 15:20:38 UTC+2 schreef Erlis Vidal:
>>>
>>>> I think the confusion is because they used multiple values when
>>>> comparing the equality
>>>>
>>>> (= (__ (sort (rest (reverse [2 5 4 1 3 6]
>>>>(-> [2 5 4 1 3 6] (reverse) (rest) (sort) (__))
>>>>5)
>>>>
>>>> This can be seen as :
>>>> (def A (__ (sort (rest (reverse [2 5 4 1 3 6])
>>>> (def B (-> [2 5 4 1 3 6] (reverse) (rest) (sort) (__)))
>>>>
>>>> Then the 4Clojure exercise can be written as:
>>>>
>>>> (= A B 5)
>>>>
>>>> Do not feel bad, this took me some time to realize 5 was not part of B.
>>>>
>>>
>>> No problem. But still it does not make any sense.
>>>
>>> If I do it right. this schould be the output of the functions
>>>
>>> A [ 1 2 3 4 5]
>>> B [ 1 2 3 4 5]
>>> (= A B 5) --> [1,2,3,4,5] = [1,2,3,4,5] = 5 and this is not true.
>>>
>>This is the output when you don't write the function to replace __.
>>
>>
>>>
>>>
>>>
>>>>
>>>>
>>>>
>>>> On Thu, May 1, 2014 at 7:52 AM, Roelof Wobben wrote:
>>>>
>>>>> Is this a nice explanation about macros :
>>>>> http://bryangilbert.com/code/2013/07/30/anatomy-of-a-clojure-macro/
>>>>>
>>>>> or is there a better one for a beginner.
>>>>>
>>>>> Roelof
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Clojure" group.
>>>>> To post to this group, send email to clo...@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+u...@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+u...@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.
>

-- 
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: Do not understand the -> macro here

2014-05-01 Thread Erlis Vidal
I think the confusion is because they used multiple values when comparing
the equality

(= (__ (sort (rest (reverse [2 5 4 1 3 6]
   (-> [2 5 4 1 3 6] (reverse) (rest) (sort) (__))
   5)

This can be seen as :
(def A (__ (sort (rest (reverse [2 5 4 1 3 6])
(def B (-> [2 5 4 1 3 6] (reverse) (rest) (sort) (__)))

Then the 4Clojure exercise can be written as:

(= A B 5)

Do not feel bad, this took me some time to realize 5 was not part of B.



On Thu, May 1, 2014 at 7:52 AM, Roelof Wobben  wrote:

> Is this a nice explanation about macros :
> http://bryangilbert.com/code/2013/07/30/anatomy-of-a-clojure-macro/
>
> or is there a better one for a beginner.
>
> Roelof
>
>
> --
> 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.


Re: Emacs - error with `nrepl-jack-in'

2014-04-18 Thread Erlis Vidal
Also *clojure for the brave and true *will guide you through the
configuration process really straight forward.

http://www.braveclojure.com/using-emacs-with-clojure/


On Fri, Apr 18, 2014 at 9:37 AM, greg r  wrote:

> You should consider going to CIDER:
>
> https://github.com/clojure-emacs/cider
>
> The command is 'cider-jack-in'.
>
> Here's a page with a lot of install info:
>
> http://clojure-doc.org/articles/tutorials/emacs.html
>
> There are many web pages out there with obsolete information on Clojure
> and emacs.
> The above page is one of the most up-to-date.
>
> Regards,
> Greg
>
>
> On Thursday, April 17, 2014 9:45:13 PM UTC-4, Thorsten Jolitz wrote:
>>
>>
>> Hi List,
>>
>> just installed lein2 and can start 'lein2 repl' successfully on the
>> command-line. 'lein repl' works too, since I defined an alias in my
>> .bashrc.
>>
>> After installing packages clojure-mode and nrepl in Emacs, I get this
>> error when trying `nrepl-jack-in':
>>
>> ,-
>>
>> | error in process sentinel: Could not start nREPL server: /bin/bash:
>> Line
>> | 1: lein: Command not found.
>> `-
>>
>>
>> I'm on Archlinx with
>>
>> #+begin_src emacs-lisp
>>  (emacs-version)
>> #+end_src
>>
>> #+results:
>> : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7)
>> :  of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen
>>
>> I googled some related sites and it seems it might be an Emacs (exec-)
>> path
>> problem, but a reboot did not help.
>>
>> --
>> cheers,
>> Thorsten
>>
>>  --
> 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.


Re: Emacs - error with `nrepl-jack-in'

2014-04-18 Thread Erlis Vidal
Do not add an alias for lein,  rename lein2 to just lein.
On Apr 17, 2014 9:45 PM, "Thorsten Jolitz"  wrote:

>
> Hi List,
>
> just installed lein2 and can start 'lein2 repl' successfully on the
> command-line. 'lein repl' works too, since I defined an alias in my
> .bashrc.
>
> After installing packages clojure-mode and nrepl in Emacs, I get this
> error when trying `nrepl-jack-in':
>
> ,-
> | error in process sentinel: Could not start nREPL server: /bin/bash: Line
> | 1: lein: Command not found.
> `-
>
> I'm on Archlinx with
>
> #+begin_src emacs-lisp
>  (emacs-version)
> #+end_src
>
> #+results:
> : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7)
> :  of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen
>
> I googled some related sites and it seems it might be an Emacs (exec-) path
> problem, but a reboot did not help.
>
> --
> cheers,
> Thorsten
>
> --
> 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.


Re: is there a way I can learn clojure with a lot of exercises

2014-04-17 Thread Erlis Vidal
Also you can check
http://readwrite.com/2011/07/01/free-e-books-on-clojure#awesm=~oBIfFVbGUOK34e


On Thu, Apr 17, 2014 at 2:33 AM, Gary Verhaegen wrote:

> Hi Roelof,
>
> I noticed your chat client is in Dutch. On the off chance that you might
> be in Flanders, I wanted to point out that there is going to be a BeClojure
> meetup on 2014-04-23 in Antwerp. More details:
> http://clojuregroup.org/2014/04/11/invitation-beclojure-23-april-2014-antwerpen/
>
>
> On Wednesday, 16 April 2014, Roelof Wobben  wrote:
>
>>
>>
>> Op woensdag 16 april 2014 16:43:09 UTC+2 schreef Charlie Griefer:
>>>
>>>
>>> On Apr 15, 2014, at 11:56 PM, Roelof Wobben  wrote:
>>>
>>> I like to try clojure.
>>> I have little or none programming background but I know I learn the best
>>> by reading a piece of text
>>> and then do exercises about it so I can check if I really understand it.
>>>
>>> What is then the best way to proceed ?
>>>
>>>
>>> I know you said that you want to do exercises, but I have to second the
>>> recommendations for Clojure for the Brave and True. Great introduction for
>>> somebody who has little to no programming background. http://www.
>>> braveclojure.com/
>>>
>>> Also as others have said, 4Clojure is exactly what you're asking for
>>> (exercises). But I'd start off with Clojure for the Brave and True, and as
>>> concepts start to click (or maybe even just before that), start working
>>> some of the 4Clojure exercises.
>>>
>>> --
>>> Charlie Griefer
>>> http://charlie.griefer.com
>>>
>>> "Give light, and the darkness will disappear of itself."
>>> -- Desiderius Erasmus
>>>
>>>
>>
>> Thanks,
>>
>> What I do now is read the braveclojure book and do the exercises from
>> http://iloveponies.github.io/120-hour-epic-sax-marathon/index.html
>>
>> So I read a lot and I can see how things work.
>>
>> Roelof
>>
>>  --
>> 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.


Re: Helping newcomers get involved in Clojure projects

2014-04-11 Thread Erlis Vidal
Anyone doing something about this? I would like to start contributing to
some OSS it's the only chance I'll have to use clojure in something useful,
I don't have the privilege to use it at work but I really don't know where
to start.


On Wed, Jan 29, 2014 at 3:49 PM, Bridget  wrote:

> On Monday, January 27, 2014 9:35:17 AM UTC-5, Michael Klishin wrote:
>>
>> Bridget:
>>>
>>> Are there any other Clojure projects that are doing this?
>>>
>>
>> Some ClojureWerkz [1] projects do, and eventually all key ones will.
>>
>> 1. http://clojurewerkz.org
>>
>> MK
>>
>
> That's excellent. One thought is to create and publish a list of open
> source Clojure projects that tag newcomer issues to encourage involvement.
> I can create something new, but maybe it makes sense to do this  under an
> existing project. ClojureWerkz seems pretty close to that type of thing.
> Just a thought. You can contact me off-list if you're interested in talking
> about it.
>
> Bridget
>
> --
> --
> 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/d/optout.


Re: paredit+regex question

2014-03-05 Thread Erlis Vidal
Hi all

Thanks for all the replies.

@Magnar: Thanks for the quick key combination I'll add that to my cheat
sheet ;)
@Phillip: Wow! I'm wondering why paredit doesn't fix this issue. Thanks for
the patch!
@Oleh: I will definitively will take a look at this, I'm starting with
paredit and I'm liking it but this regexp bug was really annoying.

Regards,
Erlis


On Tue, Mar 4, 2014 at 8:14 AM, Oleh  wrote:

> Hi Erlis,
>
> There's a full alternative to Paredit that I'm writing:
> https://github.com/abo-abo/lispy.
> Try it out if you haven't yet, it's got some Clojure support, like inline
> function arguments
> and jump-to-defintion (just a binding for cider-jump-to-def, really, but
> it's just one letter: "F").
>
> Here's a Clojure screencast for jump-to-tag functionality (again just one
> letter: "g" or "G"):
> https://vimeo.com/86727658.
>
> The documentation is here: http://abo-abo.github.io/lispy/.
> Lispy is in active development, so if you have ideas or issues,
> raise them here: https://github.com/abo-abo/lispy/issues?state=open.
>
> Oleh
>
>
> On Monday, March 3, 2014 10:09:47 PM UTC+1, Erlis Vidal wrote:
>
>> Hi this is not a clojure question but I'm sure some one on this list can
>> help me.
>>
>> I'm trying to write a regex using paredit and it looks like I cannot
>> write something like this
>>
>> #"mypattern \d"
>>
>> whenever I type the character \ I see the text "Escaping character..." in
>> the minibuffer. It is waiting for another character and then it uses the
>> two characters as a single one, so I cannot delete only one, they are
>> together.
>>
>> I see how this can be useful for strings, but for regex this is not
>> helping.
>>
>> I end up writing my regex like (re-pattern "mypattern \\d") instead of
>> using the short syntax.
>>
>> Any idea how can I write the short syntax using paredit?
>>
>> Thanks,
>> Erlis
>>
>  --
> 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.


paredit+regex question

2014-03-03 Thread Erlis Vidal
Hi this is not a clojure question but I'm sure some one on this list can
help me.

I'm trying to write a regex using paredit and it looks like I cannot write
something like this

#"mypattern \d"

whenever I type the character \ I see the text "Escaping character..." in
the minibuffer. It is waiting for another character and then it uses the
two characters as a single one, so I cannot delete only one, they are
together.

I see how this can be useful for strings, but for regex this is not
helping.

I end up writing my regex like (re-pattern "mypattern \\d") instead of
using the short syntax.

Any idea how can I write the short syntax using paredit?

Thanks,
Erlis

-- 
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: Do you recommend the book: "Web Development with Clojure"

2014-02-19 Thread Erlis Vidal
Thanks for the suggestions. Ton of good information in a couple of emails.


On Wed, Feb 19, 2014 at 11:35 AM, Manuel Paccagnella <
manuel.paccagne...@gmail.com> wrote:

> My perspective: I'm reading that book and seems good so far but I'm not a
> complete newbie and I've already used Clojure for writing some (small) web
> applications. If you want a more beginner-friendly introduction before
> delving into web programming, I've found very good these books:
>
> * [Clojure Programming](http://www.clojurebook.com/) by Cemerick, Grand
> and Carper. This generally considered the best introductory book on
> Clojure: it's fairly big but covers basics, functional programming and a
> bunch of practical considerations (testing, database access and, yes, web
> programming).
> * [Programming Clojure, 2nd edition](
> http://pragprog.com/book/shcloj2/programming-clojure) by Stuart Halloway
> and Aaron Bedra. This is much shorter and I found it very good.
>
> Alternatively, there are a lot of good and free resources for learning it.
> On the top of my mind:
>
> * [Clojure For The Brave And True](http://www.braveclojure.com/)
> * [Hitchhiker's Guide to Clojure](http://hitchhikersclojure.com/)
> * [Clojure From The Ground Up](
> http://aphyr.com/posts/301-clojure-from-the-ground-up-welcome)
> *
> http://www.creativeapplications.net/tutorials/introduction-to-clojure-part-1/
>
> Hope it helps,
>
> Manuel
>
> Il giorno mercoledì 19 febbraio 2014 16:54:25 UTC+1, Erlis Vidal ha
> scritto:
>
>> Hi all,
>>
>> Have any of you read the book *Web Development with Clojure*?
>>
>> http://www.amazon.com/Web-Development-Clojure-Build-
>> Bulletproof/dp/1937785645
>>
>> There's only one review on amazon, and it's a fantastic review but I'm
>> wondering if this is the book I should read if I wanted to start using
>> Clojure for web programming.
>>
>> Any advice will be greatly appreciated.
>>
>> Thanks,
>> Erlis
>>
>>  --
> 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.


Do you recommend the book: "Web Development with Clojure"

2014-02-19 Thread Erlis Vidal
Hi all,

Have any of you read the book *Web Development with Clojure*?

http://www.amazon.com/Web-Development-Clojure-Build-Bulletproof/dp/1937785645

There's only one review on amazon, and it's a fantastic review but I'm
wondering if this is the book I should read if I wanted to start using
Clojure for web programming.

Any advice will be greatly appreciated.

Thanks,
Erlis

-- 
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: What's the status of clojure for Android?

2014-02-03 Thread Erlis Vidal
Great!

Thanks for the info!


On Mon, Feb 3, 2014 at 10:48 PM, Zach Oakes  wrote:

> Alex put together a great website that may answer your questions:
>
> http://clojure-android.info/
>
> If you have any questions afterwards, feel free to post to the
> clojure-android group:
>
> https://groups.google.com/forum/#!forum/clojure-android
>
>
> On Monday, February 3, 2014 3:17:46 PM UTC-5, Erlis Vidal wrote:
>>
>> Hi group,
>>
>> I'll be starting a project in Android and I was wondering if I could use
>> clojure as my programming language. Any update/recommendation about this.
>> Will the application have acceptable performance? If not the entire app,
>> can I write at least some libraries in clojure and call them from my java
>> code?
>>
>> Thanks!
>> Erlis
>>
>  --
> 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.


What's the status of clojure for Android?

2014-02-03 Thread Erlis Vidal
Hi group,

I'll be starting a project in Android and I was wondering if I could use
clojure as my programming language. Any update/recommendation about this.
Will the application have acceptable performance? If not the entire app,
can I write at least some libraries in clojure and call them from my java
code?

Thanks!
Erlis

-- 
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: What font is used for Clojure on clojure.org?

2013-11-07 Thread Erlis Vidal
And what about the screencasts?
On Nov 7, 2013 8:34 AM, "Tim Visher"  wrote:

> It's funny that in the comments bbatsov and I have already explored
> this space a bit. :)
>
> It seems like everyone has a different experience of drinking cider.
> I've never drank cider in anything but cups or mugs, and hot cider is
> always served in a mug in my circles. While it seems like other people
> have only ever drank it from champagne glasses. I wonder if this'll be
> a consistent source of confusion. :)
>
> On Thu, Nov 7, 2013 at 8:04 AM, Erlis Vidal  wrote:
> > Is there any screen cast that shows how to use Cider? I would like to
> see it
> > in action.
> >
> > I really liked this logo
> > https://github.com/clojure-emacs/cider/issues/399#issuecomment-27805491I
> > think it blends the Cider concept with the clojure characters ... the
> other
> > are more colorful but really it looks like a coffee mug.
> >
> > Great Job!
> >
> > Erlis
> >
> >
> > On Wed, Nov 6, 2013 at 12:32 PM, Tim Visher 
> wrote:
> >>
> >> Thanks, Tom!
> >>
> >> Here's what I did with it:
> >> https://github.com/clojure-emacs/cider/issues/399#issuecomment-27878950
> >>
> >>
> >> On Wed, Nov 6, 2013 at 11:56 AM, Tom Hickey  wrote:
> >> > Hi Tim,
> >> >
> >> > That is Avenir 65 Medium.
> >> >
> >> > Cheers,
> >> > Tom Hickey
> >> >
> >> >
> >> > On Wednesday, November 6, 2013 11:06:24 AM UTC-5, Tim Visher wrote:
> >> >>
> >> >> I'm looking for it to incorporate it into a cIDEr logo I'm playing
> >> >> with.
> >> >>
> >> >> --
> >> >>
> >> >> In Christ,
> >> >>
> >> >> Timmy V.
> >> >>
> >> >> http://blog.twonegatives.com/
> >> >> http://five.sentenc.es/ -- Spend less time on mail
> >> >
> >> > --
> >> > --
> >> > 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 u

Re: What font is used for Clojure on clojure.org?

2013-11-07 Thread Erlis Vidal
Is there any screen cast that shows how to use Cider? I would like to see
it in action.

I really liked this logo
https://github.com/clojure-emacs/cider/issues/399#issuecomment-27805491 I
think it blends the Cider concept with the clojure characters ... the other
are more colorful but really it looks like a coffee mug.

Great Job!

Erlis


On Wed, Nov 6, 2013 at 12:32 PM, Tim Visher  wrote:

> Thanks, Tom!
>
> Here's what I did with it:
> https://github.com/clojure-emacs/cider/issues/399#issuecomment-27878950
>
>
> On Wed, Nov 6, 2013 at 11:56 AM, Tom Hickey  wrote:
> > Hi Tim,
> >
> > That is Avenir 65 Medium.
> >
> > Cheers,
> > Tom Hickey
> >
> >
> > On Wednesday, November 6, 2013 11:06:24 AM UTC-5, Tim Visher wrote:
> >>
> >> I'm looking for it to incorporate it into a cIDEr logo I'm playing with.
> >>
> >> --
> >>
> >> In Christ,
> >>
> >> Timmy V.
> >>
> >> http://blog.twonegatives.com/
> >> http://five.sentenc.es/ -- Spend less time on mail
> >
> > --
> > --
> > 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: In what OS do you code?

2013-06-14 Thread Erlis Vidal
Hi guys!

Thanks for all the responses, it looks like Linux is the predominant OS in
the Clojure community.




On Fri, Jun 14, 2013 at 2:06 PM, Jim - FooBar(); wrote:

> I use GNU/Linux exclusively as well...no other OS makes me feel in control
> :)
>
> Jim
>
>
>
> On 14/06/13 18:57, Mikhail Kryshen wrote:
>
>> I use GNU/Linux (specifically, Fedora at home and openSUSE, which I don't
>> like much compared to other distros, at work):
>> - I do not trust proprietary software vendors,
>> - I avoid supporting Microsoft and Apple out of ethical issues,
>> - I prefer the software distribution model where software comes from a
>> few trusted sources — repositories with packages verified, compiled and
>> signed by the distribution's maintainers.
>>
>> Erlis Vidal  writes:
>>
>>  Hi,
>>>
>>> I'm a bit curious to know in what OS do you code. Do you prefer iOS,
>>> Linux,
>>> Windows? Why is that? Because the tools? The environment?
>>>
>>> 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+unsubscribe@**googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/clojure?hl=en<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+unsubscribe@**googlegroups.com
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<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+unsubscribe@**googlegroups.com
> For more options, visit this group at
> http://groups.google.com/**group/clojure?hl=en<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+unsubscribe@**googlegroups.com
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out<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: In what OS do you code?

2013-06-14 Thread Erlis Vidal
Gary, thanks for the link!




On Fri, Jun 14, 2013 at 9:52 AM, 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, which I've
> demonstrated here:
> http://gtrak.wordpress.com/2012/12/19/clojure-environment-state-of-the-union-install-speedrun-screencast/
>
> OSX is a huge step backwards from what I know how to do there, and Windows
> is a necessary evil that I try to minimize.
>
>
> On Fri, Jun 14, 2013 at 9:46 AM, Erlis Vidal  wrote:
>
>> Hi,
>>
>> I'm a bit curious to know in what OS do you code. Do you prefer iOS,
>> Linux, Windows? Why is that? Because the tools? The environment?
>>
>> 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/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.




In what OS do you code?

2013-06-14 Thread Erlis Vidal
Hi,

I'm a bit curious to know in what OS do you code. Do you prefer iOS, Linux,
Windows? Why is that? Because the tools? The environment?

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/groups/opt_out.




Re: unusual question: how do you get morale?(or moral support)

2013-05-13 Thread Erlis Vidal
Let me share this tale with you guys, hope you like it as much as I do:

It is said that Socrates met a worker who asked: what are you doing good man
? "Don't you see I'm cutting a stone to earn my salary and so I can eat" the
worker replied. He moved on and later found another worker questioning the
same way as the previous one, he replied "I'm building a wall," continued
Socrates finding their way to a third worker, also questioning, the answer
was "I'm building a beautiful palace "


On Mon, May 13, 2013 at 2:17 PM, Timothy Baldridge wrote:

> I doubt I'm unique in this area, but for me, programming is a drug. I have
> to code, or the ideas and thoughts build up in my mind. For me, actually
> writing down and implementing these is a stress relief. Just ask my parents
> when I was growing up, or my wife today. Keep me in a room without a
> computer for a week, and I'll start writing code on paper just to get the
> thoughts down.
>
> So I guess you could say I'm an addict.
>
> Timothy Baldridge
>
>
> On Mon, May 13, 2013 at 12:09 PM, Ulises  wrote:
>
>> > Code that matters is code that's used by other people. For me personally
>> > the ability to share my code with others is the thing that makes
>> > programming worth doing in the first place.
>>
>> This is a rather important point. One of the most asked questions
>> (random made up fact) by newcomers to a language is "what can I code?
>> what open source programs can I help?". All with the aims of getting
>> better acquainted with the language itself and, hopefully, helping
>> others. I normally direct people to Advice to Aimless, Excited
>> Programmers (http://prog21.dadgum.com/80.html). For those who'd rather
>> read the rest of this email, the tl;dr version is: got scratch your
>> own itch, you might be building an itch-scratcher for others.
>>
>> The real question now becomes (at least for me): how do you know when
>> an itch is worth scratching? how do you know it's a shared itch?
>>
>> I've seen more experienced programmers immediately recognise what'd be
>> useful at large and what wouldn't (when I presented them with a couple
>> "itches" of my own.) Interestingly enough, my judgement didn't
>> necessarily coincide with theirs.
>>
>> Code to scratch your own itch? Sure, that's great. Code to scratch a
>> shared itch? Even better. But how do you know which is which?
>>
>> U
>>
>> --
>> --
>> 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.
>>
>>
>>
>
>
> --
> “One of the main causes of the fall of the Roman Empire was that–lacking
> zero–they had no way to indicate successful termination of their C
> programs.”
> (Robert Firth)
>
> --
> --
> 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: clojure/script web framework?

2013-04-29 Thread Erlis Vidal
I've been playing with http://clojurescriptone.com/ and I like it a lot.

here you have a direct link to the wiki page
https://github.com/brentonashworth/one/wiki


On Mon, Apr 29, 2013 at 6:15 PM, Mimmo Cosenza wrote:

> Hi Justin,
> perhaps you could find some help in
> https://github.com/magomimmo/modern-cljs.
>
> I still have to complete few more tutorials covering enlive, enfocus,
> clojusrescript testing and friend, but it already covers a lot, I think, to
> become productive with clj-cljs.
>
> It's not a framework. To me a framework is a kind of balck-box and libs
> are a kind of white-box. But I know that coming from other
> languages/frameworks this approach seems less productive. But if you want
> to have more control on your app, it rewards.
>
> HIH
>
> Mimmo
>
>
> On Apr 29, 2013, at 4:35 PM, serialhex  wrote:
>
> hi all, i've been looking into doing a project i have in mind in clojure &
> clojurescript, and i'm having trouble finding a decent framework to
> bootstrap me.  i'm fairly new to clojure but i really want to get my feet
> wet.  i looked at pedestal but there aren't any good tutorials (yet).  i've
> heard about & looked at noir but also read that it's not updated anymore...
>  so, any suggestions?
>
> justin
>
> snt frum my awesum ansroid... txt mite b rong
>
> --
> --
> 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: Any help on starting Android with clojure?

2013-04-24 Thread Erlis Vidal
Hi Bill,

Thanks for the link!


On Wed, Apr 24, 2013 at 8:05 AM, Bill Liao  wrote:

> Hi,
>Take a look at http://alexander-yakushev.github.com/lein-droid/.
>
> regards
>
> wliao 
>
>
>
>
> On Tue, Apr 23, 2013 at 7:55 PM, Erlis Vidal  wrote:
>
>> Hi guys,
>>
>> I want to start Android development and I was following the tutorial
>> found here
>> http://developer.android.com/training/basics/firstapp/index.html
>>
>> I'm wondering if there's something like this but done for clojure
>> development with Android.
>>
>> Thanks!
>> Erlis
>>
>> --
>> --
>> 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.




Any help on starting Android with clojure?

2013-04-23 Thread Erlis Vidal
Hi guys,

I want to start Android development and I was following the tutorial found
here http://developer.android.com/training/basics/firstapp/index.html

I'm wondering if there's something like this but done for clojure
development with Android.

Thanks!
Erlis

-- 
-- 
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: Good Clojure style?

2013-04-10 Thread Erlis Vidal
But I think you have mixed two different issues: code style vs readability.

For code style I'll suggest the github page
https://github.com/bbatsov/clojure-style-guide which offer a very nice
compilation.

Now for readability I would say that you can be entering in a very gray
zone here. Lisp code is different than other type of code you have seen
before, it's a different alphabet to do some analogy with reading. If you
are not familiar with lisp (clojure) the first time you see a code is very
similar to reading Chinese but because of this I wouldn't say is not
readable, is just that we are not ready to even try to read from a
different alphabet, you can see a text in spanish, english, french and you
will recognize a lot of the characters, but not with Chinese you can't even
tell if is Japanese.

Just think that the rules are not the same, the standards are not the same.
I remember when I start reading clojure it really strikes me the variable
names, one letter [ x ] or two [ xs ] I was very familiar with other
languages, and for me, that was a clear smell.

Now that I have learned a little more, I understand that those names are
perfectly fine, and I've understood that there are other rules, not the
same that we apply with other languages.

This was my personal experience so I hope this helps

Erlis


On Wed, Apr 10, 2013 at 1:54 PM, Softaddicts wrote:

> This single snippet does not look too obscure to me.
> I have the book but never read this part.
>
> From what I can see, it gets a list of neighbors from the current state in
> cells,
> extract pairs of location/frequency (de structuring loc and n for each pair
> returned by frequencies) and returns cells that match the condition
> (frequency
> = 3 or immediate neighbors of frequency 2 of our current state) as a set.
> This gives the new state from which to proceed. I can safely assume that
> the input state is also a set.
>
> Roughly I am vaguely acquainted with the problem to solve.
> Of course having access to the whole source code would help a bit :)
>
> If the above is totally wrong then I need to get back to a coding class...
>
> Luc P.
>
>
>
>
> > So, page 143 of Clojure Programming has an implementation of Conway's
> Life:
> >
> >   (defn step
> >   "Yields the next state of the world"
> >   [cells]
> >   (set (for [[loc n] (frequencies (mapcat neighbours cells))
> >
> > :when (or (= n 3) (and (= n 2) (cells loc)))]
> >
> > loc)))
> >
> > The book claims this to be "an elegant implementation'.
> >
> > Now it's been a long while since I wrote code to put food on the table -
> > but back then if I saw C or C++ code written like this I would describe
> it
> > as obfuscated - the sort of thing I would expect to see in the (now
> > defunct?) annual obfuscated C competition. It's concise and rather
> clever,
> > certainly, but hardly self-documenting: it's not very clear what it's
> doing
> > at all- with a couple of magic numbers thrown in for good measure. Rather
> > arcane in fact.
> >
> > Is it just me? Is this considered to be good Clojure code and I'm just
> > hopelessly out of touch and need to get with the programme?
> >
> >
> >
> >
> >
> >
> > --
> > --
> > 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.
> >
> >
> >
> --
> Softaddicts sent by ibisMail from my ipad!
>
> --
> --
> 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 

Re: Clojure Style Guide

2013-03-29 Thread Erlis Vidal
Alan,

Thanks for this. I've enjoy (and learn) a lot reading your clojure style
guide! Great job. I think it deserve a link in clojure-docs.org I couldn't
find anything similar on that page, wich I use a lot too.

Regards,
Erlis


On Fri, Mar 29, 2013 at 3:45 PM, Alan Thompson wrote:

> Hey - Just saw a nice article on this in (def newsletter) .  It looks like
> quite a good reference on the subject.
>
> https://github.com/bbatsov/clojure-style-guide
>
> Alan Thompson
>
> --
> --
> 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.




Jenkins plugins in clojure

2013-03-29 Thread Erlis Vidal
Hi guys,

I was just wondering if someone in the group have written any jenkins
plugin using clojure not java as programming language?

I'm about to start writing a plugin but I would like to use this
opportunity and use clojure.

Anyone have any information about this?

Thanks!
Erlis

-- 
-- 
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: A forum for Clojure...?

2013-03-05 Thread Erlis Vidal
don't focus on the parenthesis :)


On Tue, Mar 5, 2013 at 2:30 PM, BJG145  wrote:

> It might be active, but it looks ghastly.
>
> http://www.reddit.com/r/haskell/
>
> I'm not talking about activity, I'm talking about aesthetics. ;-)
>
> On Tuesday, March 5, 2013 7:22:25 PM UTC, Ben wrote:
>
>> On Tue, Mar 5, 2013 at 11:21 AM, BJG145  wrote:
>> > Hmm, I'm Googling to find a good example.
>> >
>> > Haskell forums...nope, rubbish.
>>
>> The haskell reddit is very active.
>>
>> --
>> Ben Wolfson
>> "Human kind has used its intelligence to vary the flavour of drinks,
>> which may be sweet, aromatic, fermented or spirit-based. ... Family
>> and social life also offer numerous other occasions to consume drinks
>> for pleasure." [Larousse, "Drink" entry]
>>
>  --
> --
> 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: A forum for Clojure...?

2013-03-05 Thread Erlis Vidal
yes, reddit is another good example


On Tue, Mar 5, 2013 at 2:22 PM, Ben Wolfson  wrote:

> On Tue, Mar 5, 2013 at 11:21 AM, BJG145  wrote:
> > Hmm, I'm Googling to find a good example.
> >
> > Haskell forums...nope, rubbish.
>
> The haskell reddit is very active.
>
> --
> Ben Wolfson
> "Human kind has used its intelligence to vary the flavour of drinks,
> which may be sweet, aromatic, fermented or spirit-based. ... Family
> and social life also offer numerous other occasions to consume drinks
> for pleasure." [Larousse, "Drink" entry]
>
> --
> --
> 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: A forum for Clojure...?

2013-03-05 Thread Erlis Vidal
this is not a forum but it has some of the components you mentioned in your
initial post http://clojure-doc.org/


On Tue, Mar 5, 2013 at 2:17 PM, Tamreen Khan  wrote:

> It's a little different for language communities. More experienced
> developers will tend to use mailing lists or IRC. Also, I think
> stackoverflow is quickly become the go-to place for beginners to a language.
>
>
> On Tue, Mar 5, 2013 at 2:14 PM, BJG145  wrote:
>
>> I don't see it as an experience thing. There are a lot of highly skilled
>> professionals on the Edugeek and Sound On Sound forums...
>>
>> --
>> --
>> 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: Interesting Light Table post

2013-03-04 Thread Erlis Vidal
Exactly! Tha'ts why I see a lot of value in this product!

Enabling other languages might be great for Light Table's popularity, but
creating the ultimate clojure experience will do a greater good for the
clojure community.

Now they have two paths, better clojure experience or great popularity,
they cannot have both at the same time at this moment.

It will be interesting to see what one can do with the plugin mechanism,
maybe is up to the clojure community to create the better experience, at
this point I'm just very happy to have something like this, great job guys!


On Mon, Mar 4, 2013 at 12:02 PM, larry google groups <
lawrencecloj...@gmail.com> wrote:

> > I was thinking a lot after reading the thread "Why is this so difficult"
> > that maybe what we need is a dedicated IDE, something that's built with
> the
> > clojure workflow in mind,
>
>
> The Clojure workflow, as it has evolved in this community, has mostly
> been "repl combined with a text editor". And that is exactly what
> Light Table is delivering.
>
> The criticisms that were offered were criticisms of Clojure. Two
> different people complained that they tried to load their PHP projects
> and they found that Light Table offered no tools for PHP. Another guy
> asked about Ruby. Another guy asked about Python. No one said, "I
> think Light Table makes it hard for me to write Clojure code." People
> were complaining that their own favorite language was not supported.
> And most of that was simply a misunderstanding of what Light Table was
> trying to do.
>
> My understanding is that, given enough time, Light Table will
> eventually support a large number of languages. Much of the criticism
> that was aimed at Light Table simply amounted to people taking an
> early beta product and assuming it was a polished, finished 1.0
> release.
>
>
>
>
>
>
> On Feb 28, 11:54 am, Erlis Vidal  wrote:
> > Hey guys,
> >
> > this is in the top of Hacker News right now, it looks very nice:
> >
> > http://www.chris-granger.com/2013/02/27/light-table-030-experience/
> >
> > I was thinking a lot after reading the thread "Why is this so difficult"
> > that maybe what we need is a dedicated IDE, something that's built with
> the
> > clojure workflow in mind, I don't know... maybe this is the missing
> piece,
> > who knows.
> >
> > I was thinking also on how cool would be to have something like the
> > "Smalltalk" environment but a la clojure...
> >
> > I'm really excited about this project.
> >
> > Good job Chris!
>
> --
> --
> 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.




Interesting Light Table post

2013-02-28 Thread Erlis Vidal
Hey guys,

this is in the top of Hacker News right now, it looks very nice:

http://www.chris-granger.com/2013/02/27/light-table-030-experience/

I was thinking a lot after reading the thread "Why is this so difficult"
that maybe what we need is a dedicated IDE, something that's built with the
clojure workflow in mind, I don't know... maybe this is the missing piece,
who knows.

I was thinking also on how cool would be to have something like the
"Smalltalk" environment but a la clojure...

I'm really excited about this project.

Good job Chris!

-- 
-- 
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: [ANN] nrepl.el 0.1.5 released

2012-10-22 Thread Erlis Vidal
Quick question,

After follow the installation instructions it looks like version 0.1.4 was
installed instead version 0.1.5 do you know why ?

Thanks for the tool,
Erlis

On Mon, Oct 22, 2012 at 8:30 PM, Erlis Vidal  wrote:

> Thanks This is working perfect!
>
>
> On Mon, Oct 22, 2012 at 4:33 PM, Anthony Grimes 
> wrote:
>
>> All hail the king of kings!
>>
>>
>> On Monday, October 22, 2012 10:31:16 AM UTC-5, Tim King wrote:
>>>
>>> I am pleased to announce the release of nrepl.el v0.1.5, an Emacs client
>>> for nREPL.
>>>
>>> nrepl.el v0.1.5 is now available on Marmalade.
>>> Preview versions of the next release are available on Melpa.
>>> See the Readme on github 
>>> (https://github.com/kingtim/**nrepl.el<https://github.com/kingtim/nrepl.el>)
>>> for installation and usage instructions.
>>>
>>> Notable additions since our last release:
>>> - Support for describe op to determine which server ops are available at
>>> startup
>>> - Support for the following server ops (if available): load-file,
>>> complete, and javadoc (available in ritz)
>>> - Added nrepl-host and nrepl-port custom variables M-x nrepl default
>>> hostname/port
>>> - Ported over the following repl buffer functions from slime (see the
>>> Readme on github for full documentation on these):
>>>   - History regexp filtering - M-s nrepl-next-matching-input, M-r
>>> nrepl-previous-matching-input
>>>   - C-c C-u nrepl-kill-input
>>>   - C-c C-n nrepl-next-prompt/C-c C-p nrepl-previous-prompt
>>> - Added nrepl-quit and nrepl-restart commands
>>> - Added menus for nrepl-mode and nrepl-interaction-mode
>>> - Add nrepl-eval-print-last-**expression
>>> - Ensure nrepl-eval-sync waits for :done when response is chunked
>>>
>>> A special thanks to all the contributors who have donated their time and
>>> energy
>>> by reporting issues, submitting pull requests and testing out bug
>>> fixes/features.
>>>
>>> Enjoy!
>>>
>>> Cheers,
>>> Tim
>>>
>>>  --
>> 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: [ANN] nrepl.el 0.1.5 released

2012-10-22 Thread Erlis Vidal
Thanks This is working perfect!

On Mon, Oct 22, 2012 at 4:33 PM, Anthony Grimes wrote:

> All hail the king of kings!
>
>
> On Monday, October 22, 2012 10:31:16 AM UTC-5, Tim King wrote:
>>
>> I am pleased to announce the release of nrepl.el v0.1.5, an Emacs client
>> for nREPL.
>>
>> nrepl.el v0.1.5 is now available on Marmalade.
>> Preview versions of the next release are available on Melpa.
>> See the Readme on github 
>> (https://github.com/kingtim/**nrepl.el)
>> for installation and usage instructions.
>>
>> Notable additions since our last release:
>> - Support for describe op to determine which server ops are available at
>> startup
>> - Support for the following server ops (if available): load-file,
>> complete, and javadoc (available in ritz)
>> - Added nrepl-host and nrepl-port custom variables M-x nrepl default
>> hostname/port
>> - Ported over the following repl buffer functions from slime (see the
>> Readme on github for full documentation on these):
>>   - History regexp filtering - M-s nrepl-next-matching-input, M-r
>> nrepl-previous-matching-input
>>   - C-c C-u nrepl-kill-input
>>   - C-c C-n nrepl-next-prompt/C-c C-p nrepl-previous-prompt
>> - Added nrepl-quit and nrepl-restart commands
>> - Added menus for nrepl-mode and nrepl-interaction-mode
>> - Add nrepl-eval-print-last-**expression
>> - Ensure nrepl-eval-sync waits for :done when response is chunked
>>
>> A special thanks to all the contributors who have donated their time and
>> energy
>> by reporting issues, submitting pull requests and testing out bug
>> fixes/features.
>>
>> Enjoy!
>>
>> Cheers,
>> Tim
>>
>>  --
> 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: can someone explain me how is this evaluated?

2012-09-11 Thread Erlis Vidal
Hi BG and Neale,

Thanks for taking the time to answer my question. Now I can read that code
thanks to you.

These was key to understand what was going on:

*(apply + 1 2 '( 3 4))
 which is equivalent to -* *
(+ 1 2 3 4)*

and

*so the final result is equivalent to*

*((list (first '(1 2)) (first (3 4))) (list (second '(1 2)) (second '(3
4))) *
I knew about map with multiple collections but somehow when combined with
the apply I was unable to read that code, I was lost with to many
parameters to the apply function...

Thanks once again for helping me out with this
Erlis

On Tue, Sep 11, 2012 at 6:19 PM, Neale Swinnerton wrote:

> > > (apply map list (partition 2 [ 1 2 3 4 5 ])) => ((1 3) (2 4))
> >
> > This is equivalent to -
> >
> > (map list '(1 2) '(2 4) '(5))
>
> Actually, since no pad collection is supplied,  the partition call returns
>
> ((1 2) (3 4))
>
> So the apply variant (unwrapping the collection) is equivalent to
>
> (map list '(1 2) '(3 4))
>
> Which is different to the plain call which looks like:
>
> (map list '((1 2) (3 4)))
>
> Now, map has a cool feature when called with multiple collections. From
> the docs 
>
> map
> (map f coll)
> (map f c1 c2)
> (map f c1 c2 c3)
> (map f c1 c2 c3 & colls)
>
> Returns a lazy sequence consisting of the result of applying f to the
> set of first items of each coll, followed by applying f to the set
> of second items in each coll, until any one of the colls is
> exhausted. Any remaining items in other colls are ignored. Function
> f should accept number-of-colls arguments.
>
> so the final result is equivalent to
>
> ((list (first '(1 2)) (first (3 4))) (list (second '(1 2)) (second '(3
> 4)))
>
> Which becomes:
>
> ((list 1 3) (list 2 4))
>
> Which is the result you see - hope that helps
>
> Neale
> {t: @sw1nn, w:sw1nn.com }
>
> --
> 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

can someone explain me how is this evaluated?

2012-09-11 Thread Erlis Vidal
I don't understand how is this expression evaluated to get the shown result

(apply map list (partition 2 [ 1 2 3 4 5 ])) => ((1 3) (2 4))

removing the apply I got this:

(map list (partition 2 [ 1 2 3 4 5 ])) => (((1 2)) ((3 4)))

how is the apply changing the result? I'm not able to see the reasoning
behind this code. Can someone help me with this?

Thanks,
Erlis

-- 
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: Where is Clojure CLR ?

2012-09-06 Thread Erlis Vidal
Hi Aaron,

thanks for your response, I'll take a look at your set up and I'll give it
a try.

Have you tried vsClojure? It's a Visual Studio extension that will allow us
to write clojure from within the Visual Studio, very interesting...I was
trying to make it work and I was not able to compile...I'm sure I'm doing
something wrong, but I couldn't make it work. Some one knows if there is
something special to do to make this work? The github page doesn't have
much information about this https://github.com/vsClojure/vsClojure

Thanks,
Erlis

On Thu, Sep 6, 2012 at 8:42 PM, Aaron  wrote:

> I can personally attest to the quality of the ClojureCLR compiler using it
> on a daily basis for production code.  I have never had any problems with
> stability and I have found the code gen to be of quite high quality (via
> inspection with Reflector).
>
> It is the build and development environment which is lagging a little
> behind.  For my work I've basically had to set up my own environment which
> I can say was a small price to pay for the productivity gains my team has
> seen.
>
> Here's how my setup looks:  I'm using a custom build of the compiler (
> https://github.com/aaronc/clojure-clr) which allows me to package .clj
> files into C# DLL's as embedded resources.  I also have a little prototype
> build tool that has some leiningen like functionality which allows me to
> easily start up a repl with the right paths referenced and also allows me
> to AOT compile and package multiple clojure files.  For development, I use
> emacs *inferior-lisp* quite comfortably.
>
> I'm hoping that some of my changes to the compiler will be merged into the
> main branch soon and I also hope to share the rest of my custom tools on
> github as soon as I get a little more free time.
>
> --
> 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: Expanding the Community Through Online Courses

2012-09-06 Thread Erlis Vidal
Just to imagine what you are asking and unbelievable!! I want to be in
that course

On Thu, Sep 6, 2012 at 2:23 PM, Jorge Fiallega wrote:

> This is a story from the trenches of your every day developer:
> I am in platonic love with clojure. I have tried 2 or 3 times to pick up a
> book and go through it. The truth is that I always get distracted by
> something else and other priorities. I promised myself that before I ever
> learn Scala I would learn Clojure which I am so attracted to.
> On Sept 18th  I will start the Scala course in Coursera, 'Functional
> Programming Principles in Scala'. What made me violate my promisse ?
> 1. It is a course with a structure, deadlines and a grade, which will make
> me finish it.
> 2. I know I will succeed in learning.
> 3. It is taught by Martin Odersky himself and that sells a lot, a lot, a
> lot.
> 4. It is free.
>
> I think that is such a smart move by Martin Odersky and the Scala
> community, and I only wish Rich Hickey or Stuart Halloway would do the
> same. To showcase such a language in such a platform (Coursera or Udacity
> does not matter), reaching 30K - 100K developers in such a short period of
> time and having control on teaching them the right way, is creating a force
> that will work for you, from within the companies.
>
> I am kindly asking Rich Hickey, Stuart Halloway or some other big name to
> create a course like this in Clojure.
>
>
>  --
> 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

Where is Clojure CLR ?

2012-09-05 Thread Erlis Vidal
Hi group,

Have been a while since I don't into that project. Is the CRL version of
clojure using another mailing list? How is the status of the project? I
think it would be very very interesting if we can start using clojure in
the .net framework.

Any information you can give me about this project will be appreciated.
Thanks,
Erlis

-- 
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: anonymous functions with names

2012-08-31 Thread Erlis Vidal
Thank you guys!!

On Fri, Aug 31, 2012 at 11:59 AM, Jim - FooBar(); wrote:

> defn will create a global var while fn won't...it is only visible in the
> scope it was originally defined...remember you can always do:
>
> (def f (fn [x] ...)) which is he same as defn
>
> Jim
>
>
> On 31/08/12 16:52, Erlis Vidal wrote:
>
>> Hi guys,
>>
>> I've been reading but I'm still confused about the difference between an
>> anonymous function with name vs a defn function
>>
>> (fn my-func1[x] x)
>>
>> (defn my-func2[x] x)
>>
>> Thanks,
>> Erlis
>> --
>> 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+unsubscribe@**googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/**group/clojure?hl=en<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+unsubscribe@**googlegroups.com
> For more options, visit this group at
> http://groups.google.com/**group/clojure?hl=en<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

anonymous functions with names

2012-08-31 Thread Erlis Vidal
Hi guys,

I've been reading but I'm still confused about the difference between an
anonymous function with name vs a defn function

(fn my-func1[x] x)

(defn my-func2[x] x)

Thanks,
Erlis

-- 
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

Will this cause stack overflow?

2012-08-29 Thread Erlis Vidal
Hi group,

Will this recursion cause stack overflow?

(defn my-flatten [x]
  (if (coll? x) (mapcat my-flatten x) [x]))

If yes, how can I do a recursive call when passing the function as a
parameter to another function, like in this case with mapcat?

Thanks,
Erlis

-- 
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: How to get unit test failure details

2012-08-27 Thread Erlis Vidal
Hi Moritz,

Simply beautiful. That works!

Thank you all
Erlis

On Mon, Aug 27, 2012 at 2:06 PM, Moritz Ulrich wrote:

> This is a result of Light Table's instarepl: The test details get
> printed as string to *test-out*, which instarepl doesn't display.
>
> Tryclj seems to have a bug where it doesn't redirect *out* to the
> web-repl.
>
>
> Anyway, try the following in instarepl:
>
> (binding [*test-out* *out*]
>   (run-tests))
>
> This redirects *test-out* to standard *out*.
>
>
> On Mon, Aug 27, 2012 at 6:47 PM, Erlis Vidal  wrote:
> >
> > Hi Mayank,
> >
> > I'm still unable to see why the test failed!
> >
> > Anyone knows why I'm getting this?
> >
> >
> >
> > On Mon, Aug 27, 2012 at 7:22 AM, Erlis Vidal 
> wrote:
> >>
> >> I'm expecting the expected & actual detail. Maybe my problem is due to
> >> I'm executing this from lighttable insta repl.
> >> Running this code in the web repl give me the same result.
> >>
> >> http://tryclj.com/
> >>
> >> Enter some Clojure code to be evaluated.
> >>
> >> Clojure> (use 'clojure.test)
> >> nil
> >> Clojure> (is (= "a" "b"))
> >> false
> >> Clojure>
> >>
> >>
> >> On Sun, Aug 26, 2012 at 9:20 PM, Matthew Boston
> >>  wrote:
> >>>
> >>> Here's my output using the repl from leiningen 2 (nREPL)
> >>>
> >>> user=> (use 'clojure.test)
> >>> nil
> >>> user=> (is (= "a" "b"))
> >>>
> >>> FAIL in clojure.lang.PersistentList$EmptyList@1 (NO_SOURCE_FILE:1)
> >>> expected: (= "a" "b")
> >>>   actual: (not (= "a" "b"))
> >>> false
> >>> user=>
> >>>
> >>> It tells me both the expected and actual. What else are you expecting?
> >>>
> >>> On Sunday, August 26, 2012 7:40:48 PM UTC-4, Erlis Vidal wrote:
> >>>>
> >>>> Hi guys,
> >>>>
> >>>> I'm starting to use clojure.test but when I got a failing test I don't
> >>>> get any information why the error failed.
> >>>>
> >>>> for example if I evaluate this in the repl I just get false back
> >>>>
> >>>> (is (= "a" "b"))
> >>>>
> >>>> running the tests with (run-tests) give me this result back:
> >>>>
> >>>> {:type :summary, :pass 2, :test 1, :error 0, :fail 1}
> >>>>
> >>>> I would like to know if I'm missing something or maybe this is because
> >>>> I'm using the lightable playground.
> >>>>
> >>>> Thanks,
> >>>> Erlis
> >>>
> >>> --
> >>> 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
>
> --
> 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: How to get unit test failure details

2012-08-27 Thread Erlis Vidal
Hi Mayank,

That's not the part that's confusing me. Suppose I have 100 tests, and when
I run my tests I only get

{:type :summary, :pass 99, :test 100, :error 0, :fail 1}

Can you tell which one was the one that filed? I need more information, the
information that's described in the documentation, where the expected and
actual value are displayed... I'm not getting that

Thanks,
Erlis

On Mon, Aug 27, 2012 at 1:02 PM, Mayank Jain  wrote:

> correction :
> ("a" != "b") I mean (b has "" around it i..e)
>
>
> On Mon, Aug 27, 2012 at 10:31 PM, Mayank Jain wrote:
>
>>
>>
>> On Mon, Aug 27, 2012 at 10:17 PM, Erlis Vidal wrote:
>>
>>> Hi Mayank,
>>>
>>> I'm still unable to see why the test failed!
>>>
>>
>> The test failed because "a" is not equal to "b" ! Is that part confusing
>> you? or is the question something else?
>>
>> Total tests = 1 (deftest declaration i.e.)
>> How many passed? = 1 (1 == 1)
>> How many failed? = 1 ("a" != b)
>>
>>
>>> Anyone knows why I'm getting this?
>>>
>>> [image: Inline image 1]
>>>
>>>
>>> On Mon, Aug 27, 2012 at 7:22 AM, Erlis Vidal wrote:
>>>
>>>> I'm expecting the expected & actual detail. Maybe my problem is due to
>>>> I'm executing this from lighttable insta repl.
>>>> Running this code in the web repl give me the same result.
>>>>
>>>> http://tryclj.com/
>>>>
>>>> Enter some Clojure code to be evaluated.
>>>>
>>>> Clojure> (use 'clojure.test)
>>>> nil
>>>> Clojure> (is (= "a" "b"))
>>>> false
>>>> Clojure>
>>>>
>>>>
>>>> On Sun, Aug 26, 2012 at 9:20 PM, Matthew Boston <
>>>> matthew.bos...@gmail.com> wrote:
>>>>
>>>>> Here's my output using the repl from leiningen 2 (nREPL)
>>>>>
>>>>> user=> (use 'clojure.test)
>>>>> nil
>>>>> user=> (is (= "a" "b"))
>>>>>
>>>>> FAIL in clojure.lang.PersistentList$EmptyList@1 (NO_SOURCE_FILE:1)
>>>>> expected: (= "a" "b")
>>>>>   actual: (not (= "a" "b"))
>>>>> false
>>>>> user=>
>>>>>
>>>>> It tells me both the expected and actual. What else are you expecting?
>>>>>
>>>>> On Sunday, August 26, 2012 7:40:48 PM UTC-4, Erlis Vidal wrote:
>>>>>>
>>>>>> Hi guys,
>>>>>>
>>>>>> I'm starting to use clojure.test but when I got a failing test I
>>>>>> don't get any information why the error failed.
>>>>>>
>>>>>> for example if I evaluate this in the repl I just get *false* back
>>>>>>
>>>>>> (is (= "a" "b"))
>>>>>>
>>>>>> running the tests with (run-tests) give me this result back:
>>>>>>
>>>>>> {:type :summary, :pass 2, :test 1, :error 0, :fail 1}
>>>>>>
>>>>>> I would like to know if I'm missing something or maybe this is
>>>>>> because I'm using the lightable playground.
>>>>>>
>>>>>> Thanks,
>>>>>> Erlis
>>>>>>
>>>>>  --
>>>>> 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
>>>
>>
>>
>  --
> 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: How to get unit test failure details

2012-08-27 Thread Erlis Vidal
Hi Mayank,

I'm still unable to see why the test failed!

Anyone knows why I'm getting this?

[image: Inline image 1]

On Mon, Aug 27, 2012 at 7:22 AM, Erlis Vidal  wrote:

> I'm expecting the expected & actual detail. Maybe my problem is due to I'm
> executing this from lighttable insta repl.
> Running this code in the web repl give me the same result.
>
> http://tryclj.com/
>
> Enter some Clojure code to be evaluated.
>
> Clojure> (use 'clojure.test)
> nil
> Clojure> (is (= "a" "b"))
> false
> Clojure>
>
>
> On Sun, Aug 26, 2012 at 9:20 PM, Matthew Boston 
> wrote:
>
>> Here's my output using the repl from leiningen 2 (nREPL)
>>
>> user=> (use 'clojure.test)
>> nil
>> user=> (is (= "a" "b"))
>>
>> FAIL in clojure.lang.PersistentList$EmptyList@1 (NO_SOURCE_FILE:1)
>> expected: (= "a" "b")
>>   actual: (not (= "a" "b"))
>> false
>> user=>
>>
>> It tells me both the expected and actual. What else are you expecting?
>>
>> On Sunday, August 26, 2012 7:40:48 PM UTC-4, Erlis Vidal wrote:
>>>
>>> Hi guys,
>>>
>>> I'm starting to use clojure.test but when I got a failing test I don't
>>> get any information why the error failed.
>>>
>>> for example if I evaluate this in the repl I just get *false* back
>>>
>>> (is (= "a" "b"))
>>>
>>> running the tests with (run-tests) give me this result back:
>>>
>>> {:type :summary, :pass 2, :test 1, :error 0, :fail 1}
>>>
>>> I would like to know if I'm missing something or maybe this is because
>>> I'm using the lightable playground.
>>>
>>> Thanks,
>>> Erlis
>>>
>>  --
>> 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: How to get unit test failure details

2012-08-27 Thread Erlis Vidal
I'm expecting the expected & actual detail. Maybe my problem is due to I'm
executing this from lighttable insta repl.
Running this code in the web repl give me the same result.

http://tryclj.com/

Enter some Clojure code to be evaluated.

Clojure> (use 'clojure.test)
nil
Clojure> (is (= "a" "b"))
false
Clojure>


On Sun, Aug 26, 2012 at 9:20 PM, Matthew Boston wrote:

> Here's my output using the repl from leiningen 2 (nREPL)
>
> user=> (use 'clojure.test)
> nil
> user=> (is (= "a" "b"))
>
> FAIL in clojure.lang.PersistentList$EmptyList@1 (NO_SOURCE_FILE:1)
> expected: (= "a" "b")
>   actual: (not (= "a" "b"))
> false
> user=>
>
> It tells me both the expected and actual. What else are you expecting?
>
> On Sunday, August 26, 2012 7:40:48 PM UTC-4, Erlis Vidal wrote:
>>
>> Hi guys,
>>
>> I'm starting to use clojure.test but when I got a failing test I don't
>> get any information why the error failed.
>>
>> for example if I evaluate this in the repl I just get *false* back
>>
>> (is (= "a" "b"))
>>
>> running the tests with (run-tests) give me this result back:
>>
>> {:type :summary, :pass 2, :test 1, :error 0, :fail 1}
>>
>> I would like to know if I'm missing something or maybe this is because
>> I'm using the lightable playground.
>>
>> Thanks,
>> Erlis
>>
>  --
> 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

How to get unit test failure details

2012-08-26 Thread Erlis Vidal
Hi guys,

I'm starting to use clojure.test but when I got a failing test I don't get
any information why the error failed.

for example if I evaluate this in the repl I just get *false* back

(is (= "a" "b"))

running the tests with (run-tests) give me this result back:

{:type :summary, :pass 2, :test 1, :error 0, :fail 1}

I would like to know if I'm missing something or maybe this is because I'm
using the lightable playground.

Thanks,
Erlis

-- 
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: problem 58 on 4clojure

2012-08-25 Thread Erlis Vidal
Thanks for the link. I didnt notice the problem number in the URL. I've
sorted the problems and lost the default order.

Thanks again
Erlis

On Sat, Aug 25, 2012 at 1:29 PM, Mayank Jain  wrote:

> On Sat, Aug 25, 2012 at 10:54 PM, Erlis Vidal wrote:
>
>> How can I find the problem # 58?
>>
>
> http://www.4clojure.com/problem/58
> Just modify the parameter to the problem number you want to see.
>
>
>> This is something I was looking right now. What's the best order to
>> follow?
>
>
> Start with the first problem and continue in that order. I find that the
> best way to do as lot of problems are build up on previous set of problems.
> Cheers.
>
> --
> 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: problem 58 on 4clojure

2012-08-25 Thread Erlis Vidal
How can I find the problem # 58?

This is something I was looking right now. What's the best order to follow?
I know I can sort by complexity but I think there should be a better way to
sort them.

Thanks

On Sat, Aug 25, 2012 at 1:05 PM, Bronsa  wrote:

> its*
>
>
> 2012/8/25 Bronsa 
>
>> check out clojure.core/comp, and it's source
>>
>>
>> 2012/8/25 John Holland 
>>
>>> This problem is really confusing me. I found a solution online, but I
>>> can't understand the solution. Can anyone explain to me why this
>>> works?
>>>
>>> The problem is stated as:
>>>
>>>
>>>
>>> Write a function which allows you to create function compositions. The
>>> parameter list should take a variable number of functions, and create
>>> a function applies them from right-to-left.
>>> (= [3 2 1] ((__ rest reverse) [1 2 3 4]))
>>> (= 5 ((__ (partial + 3) second) [1 2 3 4]))
>>>
>>>
>>> The examples would accept the solution replacing the .
>>>
>>> The solution I found is:
>>>
>>> (fn [x & xs]
>>>   (fn [& args]
>>> ((fn step [[f & fs] a]
>>>(if fs
>>>  (f (step fs a))
>>>  (apply f a)))
>>>  (cons x xs) args)))
>>>
>>>
>>> This works, and baffles me when I try to understand it.
>>>
>>> --
>>> 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
>

-- 
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: Expanding the Community Through Online Courses

2012-07-18 Thread Erlis Vidal
Great idea!

But even the community could create the space to learn clojure a la
UDacity. Something like Khan Academy but for clojure, where people can
choose a topic, maybe even a function and instead of having text as
documentation, we could have videos, with advises and real life examples on
how to use it.

UDacity was a great experience to meet Mr. Python. It was a great way to
learn the language, it will be super if clojure could have this chance.

On Wed, Jul 18, 2012 at 1:44 PM, Eduardo Bellani  wrote:

> Great idea and great effort. I would be awesome if Norvig gave a class
> based on his PAIP
> book, using clojure or any other lisp beast.
>
> On Wed, Jul 18, 2012 at 1:38 PM, Joshua Bowles 
> wrote:
> > I've made a request to Udacity and forwarded Harrison Maseko's
> suggestions
> > in my request.
> >
> > I'm sure if enough people get behind this...
> >
> >
> > On Wed, Jul 18, 2012 at 10:33 AM, Joshua Bowles 
> > wrote:
> >>
> >> Peter Norvig's response:
> >>
> >> Possible ... Udacity would be more likely -- they seem to be more
> >> skill-based whereas Coursera is more academic-based.
> >>
> >>
> >> On Wed, Jul 18, 2012 at 10:16 AM, Joshua Bowles 
> >> wrote:
> >>>
> >>> I agree. My thinking with an AI class is that as LISP used to be taught
> >>> for AI in school, and most programs offer Java classes, there's got to
> be a
> >>> few Professors out there who really dig Clojure and have a good chance
> >>> teaching it. I didn't propose a "functional programming" course
> because they
> >>> already have that with Scala (not to say they wouldn't offer another).
> >>>
> >>> As far as Udacity, Peter Norvig is somehow related with Udacity (not
> sure
> >>> what his role is), he's an old school LISPer and he's totally familiar
> with
> >>> Java. I don't know if he's into Clojure (but he's definitely not
> against the
> >>> idea of LISP running on JVM --- he wrote is own version a while back
> with
> >>> scheme http://norvig.com/jscheme.html). I'll email him and see if he's
> >>> interested.
> >>>
> >>>
> >>> On Wed, Jul 18, 2012 at 9:08 AM, Harrison Maseko 
> >>> wrote:
> 
>  That sounds like a good move, if a professor at some at one of those
>  Coursera linked universities would be willing to do that. However,
> can the
>  same request be sent to Udacity? Also, is AI the only practical
> course to
>  suggest? I would like to suggest to Udacity, "Introduction to
> Functional
>  Programming." Another course I would suggest is, "Building a Dynamic
>  Contacts Application for the Cloud," and the third one would be "Game
>  Development in Clojure" or something more focused like "Fluid
> Dynamics for
>  Game Development." All these could use Clojure.
>  -h.
> 
> 
>  On Wednesday, July 18, 2012 4:29:04 PM UTC+2, Joshua Bowles wrote:
> >
> > Yes! Just this morning (before reading this thread) I emailed
> Coursera
> > to request a course like "Artificial Intelligence in Clojure". I
> posted on a
> > separate thread here ("community interest in machine learning(?)")
> that I
> > had made the request and provided a link for anyone else who wanted
> to make
> > a request:
> >  http://help.coursera.org/customer/portal/emails/new
> >
> >
> > On Wed, Jul 18, 2012 at 8:18 AM, Harrison Maseko 
> > wrote:
> >>
> >> Hi Yann,
> >> I agree that Udacity is more approachable in this regard than
> >> Coursera. But imagine the publicity the language would get if such
> a massive
> >> audience were given exposure to Clojure and Clojurescript. I have
> always
> >> believed that a subset of Clojure (or any Lisp) could be taught
> even to
> >> programming beginners with ease. This in turn could dispel much of
> the myths
> >> surrounding Lisp-based languages to thousands at once (one of which
> is 'Lisp
> >> is difficult.' Simple as it may sound, it has deterred many from
> even
> >> peering into a Lisp). However, with a platform like Udacity, the
> instructor
> >> is at liberty to really explain in a newbie-friendly way the
> elegance and
> >> power of a language such as Clojure. The brief lesson videos would
> perhaps
> >> be a more navigable route to Clojure for some than reading a book.
> All we
> >> need is an attractive, *practical* topic (which can be suggested by
> anyone
> >> here), a reputable instructor, and a way of engaging Udacity
> faculty about
> >> our offer. And I wish that this process could begin sooner.
> >> Thanks,
> >> -h.
> >>
> >> On Wednesday, July 18, 2012 3:16:56 PM UTC+2, Yann Schwartz wrote:
> >>>
> >>>
> >>>
> >>> On Wed, Jul 18, 2012 at 3:01 PM, Harrison Maseko  >
> >>> wrote:
> 
>  Hi All,
>  Massive Open Online Courses (MOOC) such as the ones offered by
>  Udacity, Coursera, and soon edX will eventually become platforms
> from which
>  a language can be showcased an

Re: Teaching beginners to program using an interactive ClojureScript REPL

2012-07-16 Thread Erlis Vidal
I really like it.

The feature to select and have the doc is super! Also having the live
execution is neat! I can see some similarities with Ligth Table. Are you
using it?

Keep going, I think is really a neat way to learn!

We can have even have books in this format... living books, the SICP ?

On Mon, Jul 16, 2012 at 10:18 AM, Baishampayan Ghose wrote:

> > I've built a website, http://talkingtomachines.org, that tries to teach
> > beginners to program using an interactive ClojureScript REPL.
> >
> > Try it out and let me know what you think!
>
> I played around with the app right now, and I really liked it!
>
> Keep up the good work, Pascal.
>
> Regards,
> BG
>
> --
> Baishampayan Ghose
> b.ghose at gmail.com
>
> --
> 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: 4Clojure exersice question

2012-01-14 Thread Erlis Vidal
Hi guys,

I don't know how the validations for this are done, but in this case I can
think on a naive check for the usage of a banned function. I think a regex
can do it. Something that look for* (count\s*+*
*
I know maybe there are more edges cases but I don't think it'll be much
than that. I understand all the sandbox discussion but in this case the
question we are trying to answer is: Given the user has found a solution,
did he used any banned function?

Sometimes while solving a problem, we can not see simpler solutions.

What do you think?

Erlis

On Fri, Jan 13, 2012 at 11:18 PM, Anthony Grimes wrote:

> I responded to this earlier, but I accidentally hit the 'reply to author'
> button instead of 'reply to post', and thus it went directly to Cedric
> rather than to the group. I'll respond here and quote the previous emails:
>
> On Fri, Jan 13, 2012 at 8:57 PM, Anthony Grimes 
> wrote:
>
>> 4Clojure uses clojail for sandboxing behind the scenes. I didn't realize
>> that you may not be aware of that.
>
>
> On Friday, January 13, 2012 at 8:12 PM, Cedric Greevey wrote:
>
>> Indeed I wasn't, and I doubt much of the rest of its user base is either.
>
> On top of that, the *reason* for this is that it's an implementation
>
> detail. Implementation details do not excuse incorrect user-visible
>> behavior in an application. Figuring out how to make the application
>> do what it should, from the user's perspective, and how best to
>> implement it to do so is part of the developer's responsibility.
>
>
> Sandboxing is hard. Sacrifices have to be made. This is *not* just an
> implementation detail. Users are running their code inside of a sandbox.
> This can't be really be hidden. That said, you are absolutely correct. It
> is the developer's responsibility to make sure that all of this is as clean
> and easy as possible.
>
> I think Jack's suggestion below is a nice middleground. As a matter of
> fact, given a small patch to add a little pre-processing step to clojail
> (optional, of course), clojail could even throw a nice error message when a
> user tries to use 'for'. How does something like that sound to you? Would
> that be an okay compromise? There isn't much more that can be done beyond
> actually providing reasonable error messages for these failures. There are
> limitations to what can be done.
>
> On Friday, January 13, 2012 6:44:11 PM UTC-6, Cedric Greevey wrote:
>
>> On Fri, Jan 13, 2012 at 6:47 PM, Anthony Grimes 
>> wrote:
>> > Clojail errs on the side of safety and not on the side of "Oh, well
>> maybe he
>> > wasn't trying to break the sandbox. Let's allow it anyway.". Treating
>> macros
>> > as opaque is just another hole in what is already difficult sandboxing.
>> > Macros are not even remotely close to functions. They *create* code.
>> That
>> > code, just like any other explicitly written in your application, needs
>> to
>> > be sandboxed. It is much easier and safer to sandbox dangerous
>> functions.
>> > The fact that expanded macro code that uses those functions is also
>> affected
>> > is less of a bug and more of a feature.
>>
>> You seem to be confused. We were discussing 4Clojure's rules, where
>> the stakes are at worst letting a person "cheat" slightly, not a
>> server security system or something, where the stakes would be
>> allowing hacking of some sort. Your concern is immensely out of
>> proportion to the consequences of someone cheating at 4Clojure's
>> learning game.
>>
>> > That said, of course it is unfortunate that things like this occur in
>> > 4Clojure for things as simple as for. But clojail and 4clojure are
>> separate
>> > projects. clojail is focused on being as safe as possible, which may
>> > sometimes clash with what would be most convenient in 4Clojure.
>>
>> Unclear here is what the two have to do with one another. There's no
>> obvious relevance of clojail's requirements for 4Clojure. Indeed, as
>> you seem to have realized, the requirements are distinct and sometimes
>> would conflict.
>>
>>  --
> 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: 4Clojure exersice question

2012-01-11 Thread Erlis Vidal
Hi Cedric,

You know what? Now I understand what happens but while solving the problem
I though something was wrong. Maybe this is something to consider in the
future.

Thanks for all the responses.

On Wed, Jan 11, 2012 at 1:02 PM, Cedric Greevey  wrote:

> It seems dubious to me that it accuses users of cheating when they
> clearly had no intent to cheat. Is this intended behavior of 4Clojure
> or a bug?
>
> --
> 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: 4Clojure exersice question

2012-01-11 Thread Erlis Vidal
Thank you guys, for all the tips!

On Wed, Jan 11, 2012 at 11:08 AM, blcooley  wrote:

>
>
> On Jan 10, 12:03 pm, Erlis Vidal  wrote:
> > Hi,
> >
> > I'm solving the following exercise and when I'm trying to use the answer:
> >
> > #(reduce + (for [x coll] 1))
> >
> > I get the error saying that I was using "count" which I'm not. Someone
> > knows why is that? Is this a bug in 4Clojure or something in the language
> > that I cannot see?
>
> Like Jack Moffitt suggested, for uses count. A handy tip: you can
> check the source of a function or macro in a repl using clojure.repl/
> source:
>
> (require 'clojure.repl)
> (clojure.repl/source for)
>
> ;(defmacro for
> ;  "List comprehension. Takes a vector of one or more
> ;   binding-form/collection-expr pairs, each followed by zero or more
> ;   modifiers, and yields a lazy sequence of evaluations of expr.
> ;   Collections are iterated in a nested fashion, rightmost fastest,
> ;   and nested coll-exprs can refer to bindings created in prior
> ;   binding-forms.  Supported modifiers are: :let [binding-form
> expr ...],
> ;   :while test, :when test.
> ;
> ;  (take 100 (for [x (range 1) y (range 100) :while (< y
> x)] [x y]))"
> ;  {:added "1.0"}
> ;  [seq-exprs body-expr]
> ;  (assert-args for
> ; (vector? seq-exprs) "a vector for its binding"
> ; (even? (count seq-exprs)) "an even number of forms in binding
> vector")
> ; 
>
> You can see that the last line above calls count. My guess is that
> since for is a macro, it gets expanded and the 4clojure engine sees
> the count function and trips the alarm.
>
> --
> 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: 4Clojure exersice question

2012-01-10 Thread Erlis Vidal
I did an small mistake in the previous email but it's irrelevant I get the
same result.

the function should be

#(reduce + (for [x %] 1))

Thanks,
Erlis

On Tue, Jan 10, 2012 at 1:03 PM, Erlis Vidal  wrote:

> Hi,
>
> I'm solving the following exercise and when I'm trying to use the answer:
>
> #(reduce + (for [x coll] 1))
>
> I get the error saying that I was using "count" which I'm not. Someone
> knows why is that? Is this a bug in 4Clojure or something in the language
> that I cannot see?
>
> Thanks
> Erlis
>
> [image: impossible.png]
>
>

-- 
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<>

4Clojure exersice question

2012-01-10 Thread Erlis Vidal
Hi,

I'm solving the following exercise and when I'm trying to use the answer:

#(reduce + (for [x coll] 1))

I get the error saying that I was using "count" which I'm not. Someone
knows why is that? Is this a bug in 4Clojure or something in the language
that I cannot see?

Thanks
Erlis

[image: impossible.png]

-- 
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<>

Is there any site hosting the labrepl ?

2012-01-04 Thread Erlis Vidal
Hi guys,

I was wondering if there is any site that host the labrepl.

I'm following this and I find it very useful, but sometimes I have to
change from PC and is a big deal to reinstall everything again, also I want
to share it with some friends, but installing it and having everything set
up requires some effort for them.

Is it there somewhere?

Thanks
Erlis

-- 
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: Clojure list syntax sugar: f(x) notation

2011-12-30 Thread Erlis Vidal
+1 Luc,

You have to let go. There was something I read once from Alistair and said
that people prefer familiarity over comfort, this is a real problem,
because when people get used to something it's really hard to show them
something more comfortable. I was shocked when I found myself choosing
familiarity over comfort, for example I tend to drive following the routes
I know better.

And this is another one that I think is good to remember, this come from
Leo Tolstoy

"The most difficult subjects can be explained to the most slow-
witted man if he has not formed any idea of them already; but the
simplest thing cannot be made clear to the most intelligent man if
he is firmly persuaded that he knows already, without a shadow of
doubt, what is laid before him"

My intention is not to offend anyone. I think it's great to see how people
have fun with this great language, and for me is really fun to see how they
are trying crazy things, just thinking on what you are trying to do here
and see if that's possible on another language is mind blowing, but that's
all, just an exercise.

See you around
Erlis

On Fri, Dec 30, 2011 at 11:32 AM, Softaddicts
wrote:

> I am a polyglot programmer and never insisted to change the look of any
> language.
> I used them as is assuming that many people worked on their design for
> several man years, more that I could spend myself on any of these design
> decisions
> and their impacts.
>
> I worked with at least a dozen of these (on the job, not as a hobby) for
> the last 30 years.
>
> You cannot make everything a nail so you can hammer on anything with a
> single tool.
>
> A choice has been made to use a lisp-like syntax. Just shift your brains
> accordingly,
> I can still do it at 50+, it should not be too hard to do for younger
> people :)))
>
> This discussion comes back every year or so. I would really be
> flabergasted if Clojure Core
> accepts such a change.
>
> If it is so much a hurdle, then maybe people not at ease with the syntax
> should instead
> stick with an Algol like language and that's perfectly fine. They are a
> few on the jvm,
> just pick one.
>
> Luc
>
> > True, lack of conciseness may not be the first thing that comes to mind
> > when speaking about Lisps :-)
> >
> > What I should have said is that I think equivalent Python code has fewer
> > 'noise' symbols than S-expressions. Of course, that depends greatly on
> how
> > the programs are structured.
> >
> > And, that brings us back to readability. Since this subject keeps popping
> > up, over years and even decades, maybe there's something here that the
> Lisp
> > experts don't quite understand? Maybe it has something to do with
> programs
> > needing to be quickly understood, even by non-experts?
> >
> >
> > --
> > 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
> --
> Softaddicts sent by ibisMail!
>
> --
> 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: Really loving Clooj but..

2011-12-30 Thread Erlis Vidal
Hi Jonas,

That's what I was looking for. Thanks for your reply


On Fri, Dec 30, 2011 at 8:16 AM, Jonas  wrote:

> You should take a look at tools.trace [1]. A minimal example:
>
> (ns trc.core
>   (:use [clojure.tools.trace :only [deftrace]]))
>
> (deftrace fib [n]
>   (if (or (= n 0) (= n 1))
> 1
>(+ (fib (- n 1)) (fib (- n 2)
>
> the following is printed when (fib 4) is evaluated:
>
> TRACE t2302: (fib 4)
> TRACE t2303: | (fib 3)
> TRACE t2304: | | (fib 2)
> TRACE t2305: | | | (fib 1)
> TRACE t2305: | | | => 1
> TRACE t2306: | | | (fib 0)
> TRACE t2306: | | | => 1
> TRACE t2304: | | => 2
> TRACE t2307: | | (fib 1)
> TRACE t2307: | | => 1
> TRACE t2303: | => 3
> TRACE t2308: | (fib 2)
> TRACE t2309: | | (fib 1)
> TRACE t2309: | | => 1
> TRACE t2310: | | (fib 0)
> TRACE t2310: | | => 1
> TRACE t2308: | => 2
> TRACE t2302: => 5
>
>
> [1]: https://github.com/clojure/tools.trace
>
>  --
> 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: Really loving Clooj but..

2011-12-30 Thread Erlis Vidal
Hi Cedric,

I'm glad to know there's no such need for debugging. Maybe it's a need for
me right now due to my level, but the more I work with the language, the
more I'll learn. On top of that the community helps a lot, thanks to all of
you for that. I've been in a lot of places, and I can tell that here is a
really different feeling.

I know I can use other IDEs and debugging is supported there, but I was
looking something like the *trace *feature in LISP
http://wwwcgi.rdg.ac.uk:8081/cgi-bin/cgiwrap/wsi14/poplog/lisp/help/trace

If there's nothing like that, how complex is to implement it?
*
*See you around.
Erlis

On Thu, Dec 29, 2011 at 11:55 PM, Cedric Greevey  wrote:

> On Thu, Dec 29, 2011 at 10:50 PM, Erlis Vidal 
> wrote:
> > Cedric, you have a really good point, I just realized it after reading
> your
> > email. After sending the original email I saw what the error was, but
> what I
> > still unable to know is how could I debug from Clooj, other than using
> > println, any built-in trace a la LISP?
> >
> > I'm liking Clooj a lot, but really don't know how to debug there. Anyone?
>
> I wouldn't know. I rarely need to do more than look over the code,
> think about it, call functions from the repl with various inputs,
> examine stack traces, macroexpand-1, and occasionally slip in a
> println or two to solve problems and find and fix bugs. Making as much
> stuff as possible pure functions helps a lot, because pure functions
> can be tested in isolation and if they work then, they work period.
>
> --
> 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: Really loving Clooj but..

2011-12-29 Thread Erlis Vidal
Guys,

Thanks so much for all the answers, thanks for taking the time to give me
so many hints even when my email shows my Clojure ignorance.

Cedric, you have a really good point, I just realized it after reading your
email. After sending the original email I saw what the error was, but what
I still unable to know is how could I debug from Clooj, other than using
println, any built-in trace a la LISP?

I'm liking Clooj a lot, but really don't know how to debug there. Anyone?

Thanks one more
Erlis

On Thu, Dec 29, 2011 at 9:57 PM, Cedric Greevey  wrote:

> On Thu, Dec 29, 2011 at 6:23 PM, Mark Engelberg
>  wrote:
> > I'd also like to know whether Clooj has any debug or stacktracing
> > capabilities.  Also, can the Clooj repl control the print level of
> > infinite lazy structures?
>
> (set! *print-length* 20)
>
> (set! *print-level* 20)
>
> (.printStackTrace *e)
>
> Having shortcut buttons or keys for the latter, at least, would be
> useful though.
>
> As for the original code, there is actually a bug in the function --
> namely, if an argument is nil (or false) it stops there without an
> error message and without considering later arguments. Usually for a
> loop like that I'd use (if more (let [x (first more)] ...)) in lieu of
> if-let. That distinguishes the case more is nil from (first more) is
> nil. The correct termination condition is more is nil, in this case.
> The < comparison will then naturally blow up with an NPE or type error
> if a nil makes it.
>
> An unfortunate feature of the original code, but hard to classify as a
> bug, is that the < test is never performed, and thus no type error can
> be generated, if there's only one argument -- which fact made it
> harder for the OP to identify the nature of their conundrum. Harder
> enough to end up posting here rather than instantly realizing what had
> gone wrong, in fact. An explicit additional test at the fn start, such
> as (if-not (instance? Number x) (throw ...)) would ensure an exception
> throw if the only argument was nonnumeric. Or you could use a
> precondition, which is exactly the tool for the job 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 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

Really loving Clooj but..

2011-12-29 Thread Erlis Vidal
Hi guys,

I've using Clooj and following the labrepl but I'm hitting a wall right
now. How can I debug here?

This the code I want to debug

(defn min-1 [x & more]
  (loop [min x
 more (seq more)]
(if-let [x (first more)]
  (recur (if (< x min) x min) (next more))
  min)))

This is suppose to return the min value but it's not, It's returning me the
same sequence I'm passing:

student.dialect=> (min-1 [1 2 3])
[1 2 3]

Even if you find the problem, don't forget to let me know how can I debug
here, so I can do it the next time

Thanks
Erlis

-- 
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: How to start using clojureCLR?

2011-12-29 Thread Erlis Vidal
Hi!

Thanks for the link. I really appreciate it.

It looks like the CLR project is really in it first stage. Is someone
working on the tools? Any plans to integrate it with VS?

thanks! and thanks for the CLR version!

On Thu, Dec 29, 2011 at 2:04 PM, Benny Tsai  wrote:

> Hi Erlis,
>
> This is the most recent blog entry I've found w.r.t. getting up and
> running with Clojure CLR:
>
>
> http://www.myclojureadventure.com/2011/10/getting-started-with-clojure-clr.html
>
> What I really like about this particular blog is that the author has also
> written follow-up articles (in Nov. and Dec. of 2011) on how to do things
> like talk to SQL Server from Clojure CLR and how to call into Clojure CLR
> from C#.  Hope this helps!
>
>
> On Tuesday, December 27, 2011 9:59:09 AM UTC-8, Erlis Vidal wrote:
>>
>> Hi group,
>>
>> I just joined the group and I'm really hypnotized with the Clojure
>> language. Most of the time in my day job I do .Net development but outside
>> of the job I'm always trying to learn and apply other languages and
>> technologies. The curse of the mainstream.
>>
>> I've just finished Stuart's book  "Programming Clojure" and I would like
>> to start introducing some fun in my day to day programming, and when I saw
>> ClojureCLR I was really happy.
>>
>> The point is that I don't know where to start, I haven't found anything
>> that explain how to start working with it. Any blog on how to prepare the
>> environment and start using introducing clojure on my .Net projects ?
>>
>> I'm also curious about ClojureScript, I've been looking CoffeeScript and
>> there are some tools that even integrate with Visual Studio allowing to
>> generate the JavaScript file associate with the CoffeeScript, is there
>> anything like that for ClojureScript? Is it recommended to use
>> ClojureScript in the same scenarios as CoffeeScript or they should serve
>> different purposes?
>>
>> I probably should have two questions, but I see so many opportunities to
>> use Clojure right now that I don't want to miss anything.
>>
>> Thanks in advance and let me know where can I find some information, even
>> if you feel is irrelevant maybe for me is a gold mine.
>> Erlis
>>
>  --
> 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: Clojure list syntax sugar: f(x) notation

2011-12-29 Thread Erlis Vidal
do you mean syntax sugar = macro ?

On Thu, Dec 29, 2011 at 12:48 PM, James Reeves wrote:

> On 29 December 2011 16:35, Louis Yu Lu  wrote:
> > Agree on looking from the angle of data structure and their internal
> > presentation. But conceptually, [] and {} are just syntax sugars:
> >  [x y] -> (vector x y)
> >  {x y} -> (hash-map x y)
> >  #{x y} -> (hash-set x y)
>
> Well, no, not really.
>
> It's true that (vector x y) evaluates to [x y], but that's not syntax
> sugar, any more than (+ 1 1) is syntax sugar for 2.
>
> - James
>
> --
> 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

How to start using clojureCLR?

2011-12-27 Thread Erlis Vidal
Hi group,

I just joined the group and I'm really hypnotized with the Clojure
language. Most of the time in my day job I do .Net development but outside
of the job I'm always trying to learn and apply other languages and
technologies. The curse of the mainstream.

I've just finished Stuart's book  "Programming Clojure" and I would like to
start introducing some fun in my day to day programming, and when I saw
ClojureCLR I was really happy.

The point is that I don't know where to start, I haven't found anything
that explain how to start working with it. Any blog on how to prepare the
environment and start using introducing clojure on my .Net projects ?

I'm also curious about ClojureScript, I've been looking CoffeeScript and
there are some tools that even integrate with Visual Studio allowing to
generate the JavaScript file associate with the CoffeeScript, is there
anything like that for ClojureScript? Is it recommended to use
ClojureScript in the same scenarios as CoffeeScript or they should serve
different purposes?

I probably should have two questions, but I see so many opportunities to
use Clojure right now that I don't want to miss anything.

Thanks in advance and let me know where can I find some information, even
if you feel is irrelevant maybe for me is a gold mine.
Erlis

-- 
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