Re: Frustrations so far

2016-07-23 Thread Mimmo Cosenza
One of the best and instructive post I have read in years. Thanks Timothy

Mimmo

> Il giorno 23 lug 2016, alle ore 22:26, Timothy Baldridge 
>  ha scritto:
> 
> Peter, 
> 
> I share your frustration, or at least I did at one point. If you dig back 
> about 6 years in this mailing list you will find an epic rant by me about 
> OpenGL and Clojure. Looking back on what I thought at that time, I'll mention 
> as perhaps they can help you not make the mistakes I did. 
> 
> 1) Be as specific as possible. If I say "clojure sucks because I can get a 
> nil anywhere", isn't that helpful to anyone. But if I say "here's some code 
> that stumped me, what am I doing wrong, how can I get better", people can 
> chime in with a direct example, and a direct solution.
> 
> 2) It's hard, but stick with one problem per email thread.  Too often I see 
> lists (and yes I've written them myself) that go on a tirade of "everything 
> that's wrong with X". The problem is that mailing lists are very poor mediums 
> for having multithreaded conversations. So some questions will get lost or 
> emphasized, to the determent of other questions. So to use your email as an 
> example, it would be awesome to see a email thread about "defrecord 
> reloading", one about "empty? and ints" and another about datomic's log 
> function. They all have different answers and it's hard to answer them all at 
> once. 
> 
> 3) Many things in Clojure seem random until you understand the reasoning 
> behind them. I hate telling people to go read the Clojure source, but I'll 
> say the more of it you read the more you will understand. Very few things in 
> Clojure are done without a reason, and some things that seem like bugs may 
> actually just be a misunderstanding of the basic concepts of the language. 
> 
> I once had a co-worker (who used Ruby a lot) say, "why does Python suck so 
> much?". After a conversation with him we both kindof realized it's not that 
> Ruby rocks and Python sucks, its simply a different set of tradeoffs and 
> optimizations that make each language unique. The same is true for Clojure. 
> Learning what those tradeoffs is, is very important. 
> 
> 4) Don't give up! I played with Clojure for about 2 years before becoming 
> comfortable with it. Don't be like me and throw it away every few months in 
> anger. Keep at it, please keep asking questions, and do so before you reach 
> the point of frustration. I've worked with more languages than I can 
> remember, but Clojure is the only one I've stuck with this long, simply 
> because it's that good. Not perfect, but more perfect (imo) than any other 
> language I've used. 
> 
> Hope this helps, 
> 
> Timothy
> 
>> On Sat, Jul 23, 2016 at 8:17 AM, Colin Yates  wrote:
>> Abstractions and dynamic/static typing are orthogonal. Static/dynamic
>> is simply _when_ types are considered. Strong/weak typing is arguably
>> more relevant and is about how narrowly type information is
>> considered.
>> 
>> I can't find an actual declaration but I consider Clojure is dynamic
>> but strongly typed. Some dynamically typed languages tend to be more
>> forgiving when asking questions and will guess at what you are asking
>> regardless of whether they are statically or dynamically typed, so
>> Ruby (sort of strongly typed) and JavaScript (weakly typed) have no
>> problem with asking if an Integer is empty.
>> 
>> Wow, that reads like I am lecturing down to somebody - apologies, that
>> isn't my intent. Half of the problem is that like 'Functional
>> Programming' there isn't really an authoritative definition of
>> 'strongly typed' or 'weakly typed' :-).
>> 
>> On 23 July 2016 at 14:15, 'Adrian A.' via Clojure
>>  wrote:
>> >
>> >
>> >> The point is that an 'Integer'
>> >> (abstraction) has no sense of 'emptiness' or 'fullness'.
>> >>
>> > IMHO that might be true for a statically typed language, but in the case of
>> > a dynamic language like Clojure it makes perfect sense, and most users
>> > expect
>> > this behavior.
>> >
>> > --
>> > 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 

Re: [ANN] CIDER 0.12 (Seattle)

2016-04-18 Thread Mimmo Cosenza
a thousand thanks for the Clojure Interactive Development Environement that 
Rocks!
mimmo

> On 18 Apr 2016, at 08:17, Andrea Russo  wrote:
> 
> Awesome! Thank you very much!
> 
> Il 18/apr/2016 03:50, "Timothy Washington"  > ha scritto:
> +1. Great work :)
> 
> 
> Tim 
> 
> 
> On Sat, Apr 16, 2016 at 7:54 PM, Bozhidar Batsov  > wrote:
> Hey everyone,
> 
> CIDER 0.12 (Seattle) is out! It packs a lot of small improvements and bug 
> fixes!
> 
> Check out the release notes here 
> https://github.com/clojure-emacs/cider/releases/tag/v0.12.0 
> 
> 
> We've also got a brand new user manual 
> http://cider.readthedocs.org/en/stable/ 
>  for your
> consideration. We'd love to get some help and feedback to make it better. 
> 
> Enjoy!
> 
> 
> 
> -- 
> 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: Reagent html tags

2016-04-17 Thread Mimmo Cosenza
onclick is not an html tag.

here is the event list of react. take into account that react events are 
camelCase like onClick

http://facebook.github.io/react/docs/events.html#supported-events 


and here is the explanation of the event system in react

http://facebook.github.io/react/docs/events.html 


reagent, as almost everything in clojure(script), is kebab case like 
this-is-a-name:

in my understanding any event available in react should be available (as 
keywordized kebab case) in reagent as well, but I did not used all of them and 
could be wrong.

mimmo

> On 18 Apr 2016, at 01:02, 'Alan Forrester' via Clojure 
>  wrote:
> 
> I am trying to use reagent for a personal project, but I have a problem with 
> html tags. The keywords corresponding to html tags are not the same as the 
> html tags with a colon in front of them. For example, the onclick html tag 
> becomes :on-click in reagent. So I would like to see a list of which html 
> tags are available and what keywords correspond to them. I have looked at 
> reagent’s documentation, and hiccup’s documentation and I can’t find any such 
> list. Nor can I find such a list in any of the other sites I found while 
> googling.
> 
> Does anybody know where I might find such a list?
> 
> Thanks,
> Alan
> 
> -- 
> 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 IoT?

2016-04-10 Thread Mimmo Cosenza
Hi Gregg,
my team is working for a customer which is making a very intersting IoT device 
(named Linfa).
We use cljs on a nodejs running on a microcontroller, clojure to implement 
microservices on the back-end and cljs/react.js/react.native to implement the 
app to control the iot device from any platform (browser, desktop, iOS, 
Android). 
Here is a link of its picture:

https://drive.google.com/open?id=0B6VEMmGF1rzZVGZLa0RCcHgtck0

mimmo

> On 10 Apr 2016, at 00:38, Gregg Reynolds  wrote:
> 
> A very general question : is anybody other than me working with Clojure for 
> IoT stuff?
> 
> 
> -- 
> 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 do threads work in command-line REPL?

2016-02-09 Thread Mimmo Cosenza
I just tried with boot real:

> boot.user=> (.getId (Thread/currentThread))
> 34
> boot.user=> (.getId (Thread/currentThread))
> 34
> boot.user=> (.getId (Thread/currentThread))
> 34
> boot.user=> (.getId (Thread/currentThread))
> 34
> boot.user=> (.getId (Thread/currentThread))
> 34
> boot.user=> (.getId (Thread/currentThread))
> 34

mimmo

> On 09 Feb 2016, at 19:38, Alex Miller  wrote:
> 
> That seems pretty weird. I can't reproduce it. I'm using lein 2.5.2. 
> 
> On Tuesday, February 9, 2016 at 12:19:09 PM UTC-6, Nathan Marz wrote:
> I was doing some work that involved the use of thread locals, and I noticed 
> that within a REPL session (launched via 'lein repl') my thread locals would 
> reset themselves to their initial value. I did some digging and found that 
> the thread id keeps changing within a single REPL session, e.g.:
> 
> user=> (.getId (Thread/currentThread))
> 65
> user=> (.getId (Thread/currentThread))
> 74
> user=> (.getId (Thread/currentThread))
> 78
> user=> (.getId (Thread/currentThread))
> 78
> user=> (.getId (Thread/currentThread))
> 78
> user=> (.getId (Thread/currentThread))
> 82
> 
> I'm hoping someone who knows the internals of the REPL could shed some light 
> onto why this is the behavior and why it was designed this way.
> 
> Thanks,
> Nathan
> 
> 
> -- 
> 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 do threads work in command-line REPL?

2016-02-09 Thread Mimmo Cosenza
yep..now I get the same weird result with boot too:

boot.user=> (.getId (Thread/currentThread))
34
boot.user=> (.getId (Thread/currentThread))
34
boot.user=> (.getId (Thread/currentThread))
34
boot.user=> (.getId (Thread/currentThread))
34
boot.user=> (.getId (Thread/currentThread))
34
boot.user=> (.getId (Thread/currentThread))
34
boot.user=> (.getId (Thread/currentThread))
64
boot.user=> (.getId (Thread/currentThread))
64

mimmo

> On 09 Feb 2016, at 19:48, Nathan Marz <nat...@nathanmarz.com> wrote:
> 
> I should clarify that the thread id doesn't change instantly, it seems to 
> change when I've left it idle for a bit. Also on lein 2.5.2.
> 
> On Tue, Feb 9, 2016 at 1:45 PM, Mimmo Cosenza <mimmo.cose...@gmail.com 
> <mailto:mimmo.cose...@gmail.com>> wrote:
> I just tried with boot real:
> 
>> boot.user=> (.getId (Thread/currentThread))
>> 34
>> boot.user=> (.getId (Thread/currentThread))
>> 34
>> boot.user=> (.getId (Thread/currentThread))
>> 34
>> boot.user=> (.getId (Thread/currentThread))
>> 34
>> boot.user=> (.getId (Thread/currentThread))
>> 34
>> boot.user=> (.getId (Thread/currentThread))
>> 34
> 
> mimmo
> 
>> On 09 Feb 2016, at 19:38, Alex Miller <a...@puredanger.com 
>> <mailto:a...@puredanger.com>> wrote:
>> 
>> That seems pretty weird. I can't reproduce it. I'm using lein 2.5.2. 
>> 
>> On Tuesday, February 9, 2016 at 12:19:09 PM UTC-6, Nathan Marz wrote:
>> I was doing some work that involved the use of thread locals, and I noticed 
>> that within a REPL session (launched via 'lein repl') my thread locals would 
>> reset themselves to their initial value. I did some digging and found that 
>> the thread id keeps changing within a single REPL session, e.g.:
>> 
>> user=> (.getId (Thread/currentThread))
>> 65
>> user=> (.getId (Thread/currentThread))
>> 74
>> user=> (.getId (Thread/currentThread))
>> 78
>> user=> (.getId (Thread/currentThread))
>> 78
>> user=> (.getId (Thread/currentThread))
>> 78
>> user=> (.getId (Thread/currentThread))
>> 82
>> 
>> I'm hoping someone who knows the internals of the REPL could shed some light 
>> onto why this is the behavior and why it was designed this way.
>> 
>> Thanks,
>> Nathan
>> 
>> 
>> -- 
>> 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 
>> <mailto: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 
>> <mailto:clojure+unsubscr...@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+unsubscr...@googlegroups.com 
>> <mailto:clojure+unsubscr...@googlegroups.com>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> 
> 
> -- 
> Twitter: @nathanmarz
> http://nathanmarz.com <http://nathanmarz.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 
> <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 
> <mailto:clojure+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <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: In search of the little transducer

2016-01-30 Thread Mimmo Cosenza
I personally confirm you opinion
mimmo

> On 30 Jan 2016, at 15:44, jjttjj  wrote:
> 
> Personally I found Tim Baldridge's video series on transducers to be 
> extremely eye opening.  They can be found (among some other good videos) here:
> https://tbaldridge.pivotshare.com/
> They cost a couple bucks but I would definitely recommend checking them 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.

-- 
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: [ANN] Truss, an assertions lib for Clojure/Script

2016-01-12 Thread Mimmo Cosenza
Thanks Peter, I like it a lot, I mean a lot…
mimmo

> On Jan 12, 2016, at 9:06 AM, Peter Taoussanis  wrote:
> 
> Hi all,
> 
> Quick update: have published a new assertions lib today for Clojure and 
> ClojureScript called Truss.
> 
> tl;dr - can help you improve Clojure/Script error messages in high-value 
> locations.
> 
> Docs and info at: https://github.com/ptaoussanis/truss 
> 
> Introductory talk at: https://youtu.be/gMB4Y-EIArA 
> 
> 
> Hope someone finds this useful. As usual, please feel free to ping with 
> questions/etc.
> 
> Happy Tuesday!
> 
> Cheers :-)
> 
> - Peter Taoussanis
> 
> --
> 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.


signature.asc
Description: Message signed with OpenPGP using GPGMail


[ANN] 20th tutorial of the modern-cljs series

2016-01-11 Thread Mimmo Cosenza
Hi all, I just published the 20th tutorial of the modern-cljs series. It talks 
about publishing a lib to clojars by using the boot build tool.

https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-20.md
 


HIH

Cheers

mimmo

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


[ANN] 19th Tutorial the modern-cljs

2016-01-09 Thread Mimmo Cosenza
Hi all,
I just published the 19th tutorial of the modern-cljs series. Based on a 
reference sample, it tries to explain how to make a library compliant with the 
Reader Conditionals extension:

https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-19.md
 


HIH

Cheers

Mimmo

-- 
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] Boot running on Windows (was: [ANN] modern-cljs - 17th tutorial - REPLing with Enlive

2016-01-01 Thread Mimmo Cosenza

> And, yes, I am a bit of a masochist for having an Emacs / Leiningen / Clojure 
> environment on Windows XP :)
Lol :-)
Happy new year!
Mimmo
> 
> Sean Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
> 
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
> 
> 
> From: Sean Corfield 
> Date: Sunday, December 27, 2015 at 12:02 PM
> To: , Clojure Mailing List 
> 
> Subject: Re: [ClojureScript] Re: [ANN] modern-cljs - 17th tutorial - REPLing 
> with Enlive
> 
> Sven Richter wrote on Friday, December 25, 2015 at 1:08 PM:
> Maybe they changed something within the file access code in W10.
> 
> This appears to be the case, yes. The issue on Windows 7 (and earlier — and 
> maybe still on Windows 8?) is one that has caused countless problems for JVM 
> based tooling that I’ve mentioned over the years: holding onto file locks too 
> long and not allowing open files to be deleted.
> 
> Still I want to argue that a lot of business runs on Windows, especially 
> development environments.
> 
> I would say it’s more likely that the sort of businesses that would run 
> Clojure are also more likely to be using Mac or Linux for development work, 
> but I certainly understand your point. I’ve only worked at a couple of 
> companies over my entire 30+ year career that have used Windows for 
> development, and one of those was a very conservative insurance-related 
> business (the only company I’ve ever worked at where the product I was 
> building actually had to run on a desktop computer). The other was Macromedia 
> where the default laptop was Windows but you could opt for a Mac if you 
> wanted (I started with a Toshiba but it quickly fell apart so I opted for a 
> MacBook Pro to replace it) — we targeted *nix servers for everything my team 
> built.
> 
> One of my big complaints about Boot when it first appeared was that Windows 
> was very much a second-class citizen for that project, but now — on Windows 
> 10 at least — Boot is very smooth to install and use on Windows. For a long 
> time, Leiningen also treated Windows as a bit of a second-class citizen (the 
> packaged installer made it much better, since you no longer need a 
> third-party curl/wget installed just to use the Leiningen .bat script).
> 
> Sean Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
> 
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
> 
> -- 
> 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 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: clojars down?

2016-01-01 Thread Mimmo Cosenza
it’s down here too. 

http://status.linode.com/ 

mimmo

> On 01 Jan 2016, at 19:49, Bobby Eickhoff  wrote:
> 
> Is anyone else having trouble connecting to clojars.org?  Firefox can't 
> connect: "The connection has timed out".  Neither can lein:
> 
> INFO: I/O exception (java.net.NoRouteToHostException) caught when processing 
> request to {s}->https://clojars.org:443: No route to host
> 
> 
> -- 
> 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.


[ANN] 18th Tutorial of the modern-clsj series

2015-12-29 Thread Mimmo Cosenza
Hi all,
just before my vacation, I published the 18th tutorial of the modern-cljs 
series. It uses a TDD environment  augmented with REPLs to show how experiment 
within the CLJS REPL in the middle of a TDD workflow.

https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-18.md
 


HIH

Happy new year to all of you!

Mimmo

-- 
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-27 Thread Mimmo Cosenza
Hi Sven,
I forwarded your guess to the #boot channel on slack 

https://clojurians.slack.com/archives/boot/p1451213798007029 


My best

mimmo

> On 26 Dec 2015, at 21:42, 'Sven Richter' via ClojureScript 
>  wrote:
> 
> Hi Yuri,
> 
> I followed to the CLJ bug and as far as I understood Alex said that clojure 
> is not related to this. This is also my thinking. NTF has different semantics 
> regarding file locking than linux. And I guess that's the problem, probably 
> the adzerk team never tried it on windows themselves.
> 
> Despite that I just gave it a try with 1.8.0-RC4 and the same error occurs.
> 
> Best Regards,
> Sven
> 
> Am Samstag, 26. Dezember 2015 14:55:30 UTC+1 schrieb Yuri Steinschreiber:
> From what I understand by looking at the Boot file access bugs, they are 
> actually Clojure problems (open file leaks) fixed in 1.8, so you might want 
> to give it a try using 1.8 Release Candidate.
> 
> Cheers……..Yuri
> 
> 
> From: 'Sven Richter' via ClojureScript 
> Sent: Friday, December 25, 2015 1:08 PM
> To: Clojure 
> Cc: clojur...@googlegroups.com 
> Subject: Re: [ClojureScript] Re: [ANN] modern-cljs - 17th tutorial - REPLing 
> with Enlive
> 
>  
> Hm, 
> 
> Thats interesting, the first time I tried boot (when it was officially 
> anounced) on W7 it did not work for me (one of the already existing issues 
> hit me). 
> As I read this announcement here I tried it again, before writing my answer.
> What I did was to to install the latest boot and clone: 
> https://github.com/martinklepsch/tenzing 
>  and then run boot dev in the repl.
> After changing the only cljs file the File*Access*Exception occured. Again 
> this was on W7.
> 
> Maybe they changed something within the file access code in W10.
> 
> Still I want to argue that a lot of business runs on Windows, especially 
> development environments. Especially given the fact the the JVM runs on many 
> different platforms I would prefer that also the clojure tooling runs on 
> these platforms.
> 
> Of course this is only my opinion, but still I am concerned about that move.
> 
> Best Regards,
> Sven
> 
> Am Freitag, 25. Dezember 2015 18:02:28 UTC+1 schrieb Sean Corfield:
> 
> Sven Richter wrote on Wednesday, December 23, 2015 at 11:33 PM:
> 
> 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.
> 
>  
> I’ve been using Boot extensively on Windows 10 for the last few weeks and it 
> seems to work pretty flawlessly. The only glitch I’ve seen is in Git Bash 
> where `boot repl` hangs (it works perfectly in the regular CMD window).
> 
>  
> Whilst my main development setup is OS X — and I agree that the Clojure 
> ecosystem in general favors *nix-like environments — I’ve done almost all my 
> Boot learning on my Windows 10 laptop while watching TV in the evenings, 
> including developing the boot-expectations library (to run Expectations in a 
> pod in Boot), before embarking on using Boot on OS X for work (we have almost 
> completed a switch from Leiningen to Boot — I’m expecting it to be fully 
> complete on dev/QA today).
> 
>  
> Sean
> 
>  
> -- 
> 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 clojurescrip...@googlegroups.com .
> To post to this group, send email to clojur...@googlegroups.com .
> Visit this group at https://groups.google.com/group/clojurescript 
> .
> 
>  
> 
> -- 
> 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 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 

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

2015-12-27 Thread Mimmo Cosenza

https://clojurians.slack.com/archives/boot/p1451225818007032

Mimmo

> Il giorno 26 dic 2015, alle ore 21:42, 'Sven Richter' via ClojureScript 
>  ha scritto:
> 
> Hi Yuri,
> 
> I followed to the CLJ bug and as far as I understood Alex said that clojure 
> is not related to this. This is also my thinking. NTF has different semantics 
> regarding file locking than linux. And I guess that's the problem, probably 
> the adzerk team never tried it on windows themselves.
> 
> Despite that I just gave it a try with 1.8.0-RC4 and the same error occurs.
> 
> Best Regards,
> Sven
> 
> Am Samstag, 26. Dezember 2015 14:55:30 UTC+1 schrieb Yuri Steinschreiber:
>> 
>> From what I understand by looking at the Boot file access bugs, they are 
>> actually Clojure problems (open file leaks) fixed in 1.8, so you might want 
>> to give it a try using 1.8 Release Candidate.
>> 
>> Cheers……..Yuri
>> 
>> 
>> From: 'Sven Richter' via ClojureScript
>> Sent: Friday, December 25, 2015 1:08 PM
>> To: Clojure
>> Cc: clojur...@googlegroups.com
>> Subject: Re: [ClojureScript] Re: [ANN] modern-cljs - 17th tutorial - REPLing 
>> with Enlive
>> 
>>  
>> 
>> Hm, 
>> 
>> Thats interesting, the first time I tried boot (when it was officially 
>> anounced) on W7 it did not work for me (one of the already existing issues 
>> hit me). 
>> As I read this announcement here I tried it again, before writing my answer.
>> What I did was to to install the latest boot and clone: 
>> https://github.com/martinklepsch/tenzing and then run boot dev in the repl.
>> After changing the only cljs file the File*Access*Exception occured. Again 
>> this was on W7.
>> 
>> Maybe they changed something within the file access code in W10.
>> 
>> Still I want to argue that a lot of business runs on Windows, especially 
>> development environments. Especially given the fact the the JVM runs on many 
>> different platforms I would prefer that also the clojure tooling runs on 
>> these platforms.
>> 
>> Of course this is only my opinion, but still I am concerned about that move.
>> 
>> Best Regards,
>> Sven
>> 
>> Am Freitag, 25. Dezember 2015 18:02:28 UTC+1 schrieb Sean Corfield:
>> 
>> Sven Richter wrote on Wednesday, December 23, 2015 at 11:33 PM:
>> 
>> 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.
>> 
>>  
>> 
>> I’ve been using Boot extensively on Windows 10 for the last few weeks and it 
>> seems to work pretty flawlessly. The only glitch I’ve seen is in Git Bash 
>> where `boot repl` hangs (it works perfectly in the regular CMD window).
>> 
>>  
>> 
>> Whilst my main development setup is OS X — and I agree that the Clojure 
>> ecosystem in general favors *nix-like environments — I’ve done almost all my 
>> Boot learning on my Windows 10 laptop while watching TV in the evenings, 
>> including developing the boot-expectations library (to run Expectations in a 
>> pod in Boot), before embarking on using Boot on OS X for work (we have 
>> almost completed a switch from Leiningen to Boot — I’m expecting it to be 
>> fully complete on dev/QA today).
>> 
>>  
>> 
>> Sean
>> 
>>  
>> 
>> -- 
>> 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 clojurescrip...@googlegroups.com.
>> To post to this group, send email to clojur...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/clojurescript.
>> 
> 
> -- 
> 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 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: Would a custom constructor for records be a silly idea?

2015-12-27 Thread Mimmo Cosenza
A custum constructor (aka factory function) is even considered idiomatic

https://github.com/swannodette/lt-cljs-tutorial/blob/master/lt-cljs-tutorial.cljs#L1289
 


HIH

mimmo


> On 27 Dec 2015, at 17:22, juh...@gmail.com wrote:
> 
> I'm wondering about the record usage where a record would have relations 
> between its fields. This would be best explained with the following example:
> 
> user=> (defrecord Time [minutes seconds])
> 
> user.Time
> 
> user=> (->Time 0 59)
> 
> #user.Time{:minutes 0, :seconds 59}
> 
> user=> (update (->Time 0 59) :seconds inc)
> 
> #user.Time{:minutes 0, :seconds 60}
> 
> 
> It's not very nice since 60 seconds is not really a valid value. If it would 
> be possible to define so that
> 
> 
> 
> 
> user=> (Time. 0 60)
> #user.Time{:minutes 1, :seconds 0}
> 
> 
> 
> then if I'm reading emit-defrecord correctly, assoc and therefore update etc. 
> would work as expected here. Would this be semantically against principles of 
> record or could some kind of structure to modify the fields while creating a 
> new instance of a record be considered as part of Clojure?
> 
> 
> 
> 
> 
> Juho
> 
> 
> 
> 
> -- 
> 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-25 Thread Mimmo Cosenza
Yes, your way is quicker...

[mc]

> Il giorno 25 dic 2015, alle ore 12:43, Erik Assum <e...@assum.net> ha scritto:
> 
> When it's just a matter of correcting typos, I tend to fork the project, do 
> the edit directly in the github gui, commit, and add a pull request, which 
> would correspond to steps 1,5,6,8 below. 
> 
> Erik. 
> -- 
> i farta
> 
>> Den 25. des. 2015 kl. 08.36 skrev Mimmo Cosenza <mimmo.cose...@gmail.com>:
>> 
>> Hi Erlis,
>> the best way to correct typos is by using the pull request mechanics of 
>> github
>> 
>> 1. fork the project from github User Interace
>> 2. clone locally the forked project
>> > git clone https://github.com/yourname/modern-cljs.git
>> > cd modern-cljs
>> 3. add the upstream to remote
>> > git remote add upstream https://github.com/magomimmo/modern-cljs.git
>> 4. be sure of being in the master branch
>> > git checkout master
>> 5. correct the typos: the tutorias of the second edition are located under 
>> the doc/second-edition directory
>> 6. commit the correction
>> > git commit -am “typos”
>> 7. push the commit to origin (your fork)
>> > git push origin master
>> 8. Pull request from github User Interface
>> 
>> After a while this process become a second nature :-)
>> 
>> HIH
>> mimmo
>> 
>>> On 25 Dec 2015, at 03:45, Erlis Vidal <er...@erlisvidal.com> wrote:
>>> 
>>> 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 <mimmo.cose...@gmail.com> 
>>>> 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=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 
>>>>>>

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

2015-12-24 Thread Mimmo Cosenza
Hi Erlis,
the best way to correct typos is by using the pull request mechanics of github

1. fork the project from github User Interace
2. clone locally the forked project
> git clone https://github.com/yourname/modern-cljs.git 
> <https://github.com/yourname/modern-cljs.git>
> cd modern-cljs
3. add the upstream to remote
> git remote add upstream https://github.com/magomimmo/modern-cljs.git
4. be sure of being in the master branch
> git checkout master
5. correct the typos: the tutorias of the second edition are located under the 
doc/second-edition directory
6. commit the correction
> git commit -am “typos”
7. push the commit to origin (your fork)
> git push origin master
8. Pull request from github User Interface

After a while this process become a second nature :-)

HIH
mimmo

> On 25 Dec 2015, at 03:45, Erlis Vidal <er...@erlisvidal.com> wrote:
> 
> 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 <mimmo.cose...@gmail.com 
> <mailto:mimmo.cose...@gmail.com>> wrote:
> I wrote a warning note in the README.MD <http://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 <mailto:clojurescr...@googlegroups.com>> 
>> wrote:
>> 
>> Also I just added a new doc issue: 
>> https://github.com/boot-clj/boot/issues/368 
>> <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=is%3Aissue+is%3Aopen+windows
>>  
>> <https://github.com/boot-clj/boot/issues?utf8=%E2%9C%93=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 
>> <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 

Re: [ClojureScript] [ANN] kabel 0.1.0 release

2015-12-24 Thread Mimmo Cosenza
nice!
thanks
mimmo

> On 24 Dec 2015, at 18:03, Christian Weilbach  wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hello,
> 
> I am happy to announce the first independent release of kabel (German
> for wire or cable), a websocket library that is used by several of my
> projects. From the REAMDE:
> 
> kabel is a minimal, modern connection library modelling a
> bidirectional wire to pass clojure values between endpoints. Peers in
> Clojure and ClojureScript are symmetric and hence allow symmetric
> cross-platform implementations. At the moment web-sockets are used and
> transit is the serialization format.
> 
> https://github.com/replikativ/kabel
> 
> I hope it is useful for others as well. Feedback is appreciated :)
> 
> Christian
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2.0.22 (GNU/Linux)
> 
> iQEcBAEBAgAGBQJWfCVxAAoJEKel+aujRZMk5g4H/0Wp84eGotnBwQItb17NsGc+
> /Vt5HiG9nEO1FriylPMkoGgnwhdYDKs7BXhJJGPB9JIe2adJKZFQgL9Wpx0WiLC/
> borxP7LcwmY1sbFquy+AZ5+kl6PSqDyM0eolfKuL+kRlXgaFeMhfopZ3562yLf71
> FjQmn2NS+h+i0OP+obSjl+dDJFE8ndv7lJYgWXWklnDZST9ctVNVD+kyY0nXXfo3
> db5wcGvtU0MBhngzDMyhzrJtgXp4RqvcIMICesN63osFkfADzKWo2VKV/MSxPNk1
> ZsYB89OxBzWuj6fmIEBZQ+v9HDTbExiVr467W0N2DL67YcjqyAzKrDOERu1MaCc=
> =y9hg
> -END PGP SIGNATURE-
> 
> -- 
> 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 members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2015-12-24 Thread Mimmo Cosenza
yes, I saw it. As I have some free time I’ll add a note ato the series for 
windows users that suggest to use a virtual machine or docker while waiting for 
boot be able to run on windows too.

cheers

mimmo

> On 24 Dec 2015, at 09:13, 'Sven Richter' via ClojureScript 
>  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=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 members are moderated - please be patient with your 
first post.

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

2015-12-24 Thread Mimmo Cosenza
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 
>  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=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 members are moderated - please be patient with your 
first post.
To unsubscribe from 

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

2015-12-20 Thread Mimmo Cosenza

> (release 4.2.3 at the moment). 

typo….release 2.4.2 
sorry about that

mimmo

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


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

2015-12-20 Thread Mimmo Cosenza
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

-- 
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: [ANN] Boot 2.5

2015-12-18 Thread Mimmo Cosenza
Hi Sean,
FWIW, I confirm your words, even if I only used the 2.4.2 release and I stll 
have to understand a lot of thing about it.

cheers
mimmo

> On 18 Dec 2015, at 23:14, Sean Corfield  wrote:
> 
> Alan Dipert wrote on Wednesday, December 16, 2015 at 3:26 PM:
>> Boot, your friendly neighborhood functional build tool, has just hit version 
>> 2.5.  I invite you to try it out!
> 
> 
> As someone who was extremely skeptical about Boot when it first appeared and 
> who had some bad experiences with very early versions (and was perhaps rather 
> more public in my frustration than was appropriate), I want to say that I’ve 
> spent a couple of days with Boot 2.5 while I’ve been on vacation (taking care 
> of my wife, post-surgery) and I’m very impressed with how far this build tool 
> has come, how friendly and helpful the community is (in the #boot channel on 
> the Clojurians Slack), and how (relatively) easy it is to extend Boot to 
> perform new tasks!
> 
> Sean Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
> 
> "Perfection is the enemy of the good."
> -- Gustave Flaubert, French realist novelist (1821-1880)
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To 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.


[ANN] 16th episode of modern-cljs series

2015-12-17 Thread Mimmo Cosenza
Hi all,
I just published the 16th episode/tutorial - On pleasing TDD practitioners - of 
the modern-cljs series. It approaches as much as possibile a tdd environment 
for both CLJ/CLJS within a live coding enviromment. The tutorial is based on 
boot instead of leiningen/cljsbuild

https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-16.md
 


HIH

mimmo

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


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] modern-cljs second edition

2015-12-16 Thread Mimmo Cosenza
Thanks Bryan!
mimmo

> On 16 Dec 2015, at 03:54, Bryan Maass  wrote:
> 
> Kudos on your second edition.  I used the first edition back when it came out 
> to dip my toes into the cljs universe.  I've since led development on a 
> medium-large cljs spa.
> 
> I gave a skim to the first few articles and I'll be able to give more 
> feedback since I plan to learn about boot through this tutorial.
> 
> Thanks!
> 
> On Monday, December 14, 2015 at 2:09:44 AM UTC+11, Magomimmo wrote:
> Hi all,
> I just published the very first draft of the second edition of the 
> modern-cljs series which already includes 15 tutorials.
> 
> In the next few weeks I hope to find the time to publish other 4/5 tutorials 
> of the series. 
> 
> https://github.com/magomimmo/modern-cljs 
> 
> 
> This new edition does not use leining/cljsbuild anymore and is now based on 
> the boot build tool (I had some fun with it). The series is now using .cljc 
> (instead of leining crossover and cljx) and cljs.test (instead of 
> clojurescript.test).
> 
> Be forgiving for any typos or even bugs in the code, becasue this is a very 
> first draft. 
> 
> Hope it helps
> 
> Mimmo
> 
> p.s. I’m not going to update or support anymore the first edition based on 
> leaning/cljsbuild. Sorry about that, but I really do not have the time and 
> the strenght to do 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 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.


[ANN] modern-cljs second edition

2015-12-13 Thread Mimmo Cosenza
Hi all,
I just published the very first draft of the second edition of the modern-cljs 
series which already includes 15 tutorials.

In the next few weeks I hope to find the time to publish other 4/5 tutorials of 
the series. 

https://github.com/magomimmo/modern-cljs 


This new edition does not use leining/cljsbuild anymore and is now based on the 
boot build tool (I had some fun with it). The series is now using .cljc 
(instead of leining crossover and cljx) and cljs.test (instead of 
clojurescript.test).

Be forgiving for any typos or even bugs in the code, becasue this is a very 
first draft. 

Hope it helps

Mimmo

p.s. I’m not going to update or support anymore the first edition based on 
leaning/cljsbuild. Sorry about that, but I really do not have the time and the 
strenght to do 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 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: CIDER 0.10 is out!

2015-12-03 Thread Mimmo Cosenza
thanks. You rock
mimmo

> On 04 Dec 2015, at 01:10, Edward Knyshov  wrote:
> 
> Congratulations! You made a great work.
> 
> -- 
> 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: best practice with forked libraries

2015-11-17 Thread Mimmo Cosenza
A lot of time ago I wrote the following tutorial on this topic.

https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-19.md 


HIH

mimmo

> On 17 Nov 2015, at 20:48, Paul deGrandis  wrote:
> 
> In addition to Ray's response (which I would also suggest), I'd encourage you 
> to reach out to the project maintainer/author with your additions - it's 
> always nice to see how your project is being used and the shortcomings that 
> others are hacking around.
> 
> Cheers,
> Paul
> 
> 
> -- 
> 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: Tessel and ClojureScript

2015-10-15 Thread Mimmo Cosenza
I never used tessel, but we run class/nodejs on a bunch of similar products. 
Probably you have to verify the compatibility of the nodejs version. Eventually 
you could recompile the one the fit cljs. 

and yes, you’ll have a lot, really a lot of fun too.

mimmo

> On 15 Oct 2015, at 03:11, Erlis Vidal  wrote:
> 
> 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 
> .

-- 
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 to do functional programming

2015-10-08 Thread Mimmo Cosenza
https://tbaldridge.pivotshare.com/media/oop-lesson-1/28290 


I do not remember if the other tutorials (2,3 and 4) on OOP are free as well…

mimmo

> On 08 Oct 2015, at 21:36, Raoul Duke  wrote:
> 
>> The way I like to think about FP vs OO is that OO usually couples state with
>> identity and the code that operates on both, while FP defines a clear
>> boundary between data, state, and the functions that operate on the data.
> 
> https://en.wikipedia.org/wiki/Expression_problem
> 
>> Designing a FP program often involves looking at the data first, then
>> thinking about what transformations that the data needs in order to become
>> what you want it to be. I like to think of functions as instructions about
>> how to transform that data.
> 
> http://lists.racket-lang.org/users/archive/2010-April/038935.html
> 
> -- 
> 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: ClojureScript 0.0-2644, enhanced REPLs

2015-01-02 Thread Mimmo Cosenza
may I borrow some energy from you? 
you’re awesome 
thanks, thanks. thanks so much!

mimmo

 On 03 Jan 2015, at 00:18, David Nolen dnolen.li...@gmail.com wrote:
 
 ClojureScript, the Clojure compiler that emits JavaScript source code.
 
 README and source code: https://github.com/clojure/clojurescript
 
 New release version: 0.0-2644
 
 Leiningen dependency information:
 
[org.clojure/clojurescript 0.0-2644]
 
 This release is one of the most significant in a very long while - it includes
 enhanced REPLs that are far closer to the experience provided by Clojure
 itself.
 
 All REPLs when supplied with an `:output-dir`  `:cache-analysis true` can
 now boot rapidly - a second or less on newer hardware.
 
 All REPLs now support `in-ns`, `doc`, and `require`.
 
 There is a brand new Node.js based REPL that doesn't suffer from the 
 performance
 issues present in Rhino. As to why we didn't go with Nashorn - Nashorn loads
 JavaScript 10X slower than Rhino or Node.js.
 
 The Node.js REPL ships with source mapping support and correctly handles
 Node.js requires so that you can hot update namespaces as expected.
 
 There were a large number of changes to enhance the REPL experience so
 there's likely edge cases we've missed - feedback, bug fixes, and further
 enhancement are incredibly welcome.
 
 For basic instructions on the running the REPLs from a checkout:
 
 https://github.com/clojure/clojurescript/wiki/Quick-Start#local-clojurescript-repl
 
 ## 0.0-2644
 
 ### Enhancements
 * Add Node.js REPL
 * REPLs can now reuse build/analysis caching
 * in-ns, require, doc support in REPLs
 
 ### Changes
 * add :verbose flag to compiler to output compiler activity
 * add *load-macros* to cljs.analyzer to optionally disable macro loading
 * errors during ns parsing always through
 * `cljs.util/compiled-by-version` needs to always return String
 * pin Closure Compiler in bootstrap script
 * refactor cljs.build.api namespace
 
 ### Fixes
 * CLJS-953: require REPL special fn can only take one argument
 * CLJS-952: Bad type hinting on bit-test
 * CLJS-947: REPL require of goog namespaces does not work
 * CLJS-951: goog.require emitted multiple times under Node.js REPL
 * CLJS-946: goog.require in REPLs will not reload recompiled libs
 * CLJS-950: Revert adding compiled-by string to CLJS deps file
 * CLJS-929: Minor fixes to test script
 * CLJS-946: goog.require in REPLs will not reload recompiled libs
 * add cljs.test/are macro
 * CLJS-931 : cljs.compiler/requires-compilation? ignores changes to
 build options
 * CLJS-943: REPL require special fn is brittle
 * CLJS-941: Warn when a symbol is defined multiple times in a file
 * CLJS-942: Randomized port for Node.js REPL if port not specified
 * CLJS-675: QuickStart example not working properly
 * CLJS-935: script/noderepljs leaves node running after exit
 * CLJS-918: preserve :arglists metadata in analysis cache
 * CLJS-907: False positives from arithmetic checks
 * CLJS-919 compare-and-set! relies on Atom record structure instead of 
 protocols
 * CLJS-920 add-watch/remove-watch should return reference, as in Clojure
 * CLJS-921: cljs.repl/doc output includes namespace twice
 
 -- 
 Note that posts from new members are moderated - please be patient with your 
 first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ClojureScript] Using ClojureScript in Production?

2014-12-29 Thread Mimmo Cosenza
Done! Thanks
mimmo
 
 On 29 Dec 2014, at 18:03, David Nolen dnolen.li...@gmail.com wrote:
 
 If you or your team are using ClojureScript in production add an entry here:
 
 https://github.com/clojure/clojurescript/wiki/Companies-Using-ClojureScript
 
 Many thanks,
 David
 
 -- 
 Note that posts from new members are moderated - please be patient with your 
 first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ClojureScript] ANN: ClojureScript 0.0-2505

2014-12-21 Thread Mimmo Cosenza
David, you’re unstoppable ;-)
mimmo
 
 On 21 Dec 2014, at 19:12, David Nolen dnolen.li...@gmail.com wrote:
 
 ClojureScript, the Clojure compiler that emits JavaScript source code.
 
 README and source code: https://github.com/clojure/clojurescript
 
 New release version: 0.0-2505
 
 Leiningen dependency information:
 
[org.clojure/clojurescript 0.0-2505]
 
 This release fixes an issue with cljs.test and improves Node.js
 support.
 
 ### Changes
 * Stop generating random files for IJavaScript Strings
 * added :source-map-timestamp build flag to get cache busting source
  map urls
 * Enhancements to bootstrap script
 * Stop warning about deps.cljs usage
 
 ### Fixes
 * Fix Node.js source mapping regression introduced by commit 254e548
 * CLJS-914: thrown-with-msg? is unable to get message of exception
 * CLJS-915: On empty call, List and PersistentQueue do not retain
  meta, sorted-set/sorted map do not retain comparator
 
 -- 
 Note that posts from new members are moderated - please be patient with your 
 first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ClojureScript] Browserless ClojureScript

2014-12-21 Thread Mimmo Cosenza
wonderful!
mimmo
 
 On 21 Dec 2014, at 19:58, David Nolen dnolen.li...@gmail.com wrote:
 
 ClojureScript's Node.js support has come a very long way. I've written
 a short post about it
 http://swannodette.github.io/2014/12/21/browserless-clojurescript/.
 
 I think this will be of interest to anyone building
 non-browser-centric ClojureScript libraries or those people who want
 to write shell scripts with Clojure syntax.
 
 David
 
 -- 
 Note that posts from new members are moderated - please be patient with your 
 first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] cljs-start 1.0.4

2014-11-11 Thread Mimmo Cosenza
Hi all,
I just deployed the 0.1.4 release of cljs-start lein-template to create 
ClojureScript libs with batteries included.

https://github.com/magomimmo/cljs-start 
https://github.com/magomimmo/cljs-start

It update all dependencies and plugins to the latest available releases:

- clojure 1.6.0
- clojurescript 0.0-2371
- lein-cljsbuild 1.0.3
- clojurescript-test 0.3.1
- ring 1.3.1
- compojure 1.2.1
- austin 0.1.5

HIH

My best

mimmo



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: is their a Clojure framework for handling form validation?

2014-07-08 Thread Mimmo Cosenza
Sorry for the delay, I just saw this thread now.

I used https://github.com/cemerick/valip

A version of https://github.com/weavejester/valip by Chas Emerick which can be 
used for both client and server side validation. You could eventually take a 
look at the way I used from here on:

https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-13.md

HIH

mimmo

On Jul 5, 2014, at 2:48 PM, Asim Jalis asimja...@gmail.com wrote:

 For validation check out Bouncer [1][2]. It is elegant and minimal, and also 
 lets you chain together validators using the threading macro. 
 
 [1] https://github.com/leonardoborges/bouncer
 [2] 
 http://www.leonardoborges.com/writings/2013/01/04/bouncer-validation-lib-for-clojure/
 
 Asim
 
 On Sunday, July 22, 2012 4:46:52 PM UTC-7, larry google groups wrote:
 Since 2000 I've been doing web development, first with PHP and then with Ruby 
 On Rails. In the world of PHP, there are some frameworks, such as Symfony, 
 that have classes for managing forms, both generating the HTML for the forms, 
 and also handling the validation of the forms. In the world of Python, the 
 Django framework also has facilities for generating and validating forms. 
 These frameworks offer certain time saving conveniences. For instance, with 
 the Symfony framework, if you have a database table that has a foreign key, 
 then you can get that other table (the target of the foreign key) to appear 
 in a form as a pre-populated select box, automatically (after filling out 
 some config files).
 
 I'm now trying to make Clojure my primary development language for 
 everything, including web development. I'm curious, are there any libraries 
 in the land of Clojure that offer similar conveniences for forms? 
 
 -- 
 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] Re: ClojureScript Clojure 1.6.0

2014-06-06 Thread Mimmo Cosenza
that’s great.
thanks Nicola
mimmo

On 06 Jun 2014, at 19:48, Nicola Mometto brobro...@gmail.com wrote:

 
 For that matters, I'm working on writing tools.analyzer.js and the
 minimum clojure version supported will be 1.4.0
 
 Nicola
 
 
 Chris Granger writes:
 
 Since I doubt there'd be any others, I'll be the only dissenter ;)
 
 People already get mad Light Table requiring 1.5 since we use CLJS to do
 analysis and such. Bumping it up to 1.6 means it'd be a long time before we
 could move our version of CLJS again. Maybe that's not a real issue and
 really just an indication that we shouldn't be using the CLJS analyzer for
 this stuff anymore, but figured I should mention.
 
 Cheers,
 Chris.
 
 
 On Fri, Jun 6, 2014 at 10:37 AM, Mimmo Cosenza mimmo.cose...@gmail.com
 wrote:
 
 +1
 mimmo
 
 On 06 Jun 2014, at 19:22, Andrey Antukh n...@niwi.be wrote:
 
 +1
 
 
 2014-06-06 19:19 GMT+02:00 Karsten Schmidt i...@toxi.co.uk:
 
 +1
 On 6 Jun 2014 16:59, David Nolen dnolen.li...@gmail.com wrote:
 
 Clojure 1.6.0 introduced Murmur3 for much improved collection hashing
 and several new functions  macros. There's very little incentive to
 continue to support 1.5.X given these enhancements.
 
 David
 
 
 On Fri, Jun 6, 2014 at 11:48 AM, Joshua Ballanco jball...@circleci.com
 wrote:
 
 No objection, but I’m curious what are the motivating factors? Are
 there any new features/bug-fixes planned for ClojureScript that will 
 depend
 on Clojure 1.6.0 features? or is this just a case of keeping things as
 up-to-date as possible?
 
 
 On Friday, June 6, 2014 at 17:43, David Nolen wrote:
 
 Future releases of ClojureScript will have a hard dependency on
 Clojure 1.6.0. If you have any objections, speak up now :)
 
 David
 
 --
 You received this message because you are subscribed to the Google
 Groups Clojure Dev group.
 To unsubscribe from this group and stop receiving emails from it,
 send an email to clojure-dev+unsubscr...@googlegroups.com (mailto:
 clojure-dev+unsubscr...@googlegroups.com).
 To post to this group, send email to clojure-...@googlegroups.com
 (mailto:clojure-...@googlegroups.com).
 Visit this group at http://groups.google.com/group/clojure-dev.
 For more options, visit https://groups.google.com/d/optout.
 
 
 
 --
 You received this message because you are subscribed to the Google
 Groups Clojure Dev group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to clojure-dev+unsubscr...@googlegroups.com.
 To post to this group, send email to clojure-...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojure-dev.
 For more options, visit https://groups.google.com/d/optout.
 
 
 
 --
 You received this message because you are subscribed to the Google
 Groups Clojure Dev group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to clojure-dev+unsubscr...@googlegroups.com.
 To post to this group, send email to clojure-...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojure-dev.
 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.
 
 
 
 
 --
 Andrey Antukh - Андрей Антух - andrei.anto...@kaleidos.net / 
 n...@niwi.be
 http://www.niwi.be http://www.niwi.be/page/about/
 https://github.com/niwibe
 
 --
 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.
 
 
 
 
 -- 
 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

Re: Leiningen just hangs

2014-05-15 Thread Mimmo Cosenza
try removing ~/.m2

On 15 May 2014, at 20:56, Mark Watson mkw5...@gmail.com wrote:

 I don't have a ~/.lein/profiles.clj file. I removed all the Leiningen files, 
 tried with a fresh install, still no luck.
 
 
 
 On Thursday, May 15, 2014 2:38:34 PM UTC-4, Gary Trakhman wrote:
 Did you try to clean out ~/.lein/profiles.clj?
 
 
 On Thu, May 15, 2014 at 2:34 PM, Mark Watson mkw...@gmail.com wrote:
 I'm running Leiningen on CentOS 6.5. Everything was working fine, and today 
 when I try lein run it just hangs. It takes about 15 minutes for lein 
 version to return.
 
 The project works fine on my macbook pro, and another CentOS box.
 
 I deleted ~/.m2 and reinstalled Leiningen. I updated Leiningen. I removed and 
 reinstalled Java as well.
 
 Has anyone else come across this? I have no clue what I did or what the 
 problem could be. Any help would be greatly appreciated.
 
 -bash-4.1$ java -version
 java version 1.7.0_55
 OpenJDK Runtime Environment (rhel-2.4.7.1.el6_5-x86_64 u55-b13)
 OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
 
 -bash-4.1$ lein version
 Leiningen 2.3.4 on Java 1.7.0_55 OpenJDK 64-Bit Server VM
 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ClojureScript] Re: [ANN] om-start lein template for nrepl compliant editors/IDEs

2014-05-01 Thread Mimmo Cosenza
Hi Laurent,
thanks so much. Today I had the time to take a look at my repos on github after 
a while :((

just merged your PRs together with other couple which were pending there….

My best

mimmo

On 01 May 2014, at 18:49, Laurent PETIT laurent.pe...@gmail.com wrote:

 Hi Mimmo, 
 
 I sent 2 small pull requests for updating things in om-start README:
 
 - link of the om basic tutorial has changed in swanodette's wiki
 - starting leiningen projects in CCW uses the familiar (to Eclipse users) 
 Run as  Clojure Application instead of the specific Lein  Launch 
 headless REPL
 
 Cheers,
 
 -- 
 Laurent
 
 
 
 2014-05-01 15:56 GMT+02:00 Ivan L ivan.laza...@gmail.com:
 Thanks mimmo!  Looking forward to trying this out.
 
 --
 Note that posts from new members are moderated - please be patient with your 
 first post.
 ---
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Comprehensive lein template list?

2014-04-26 Thread Mimmo Cosenza
thanks!

On 26 Apr 2014, at 03:18, Colin Jones trptco...@gmail.com wrote:

 Since these projects have to be named lein-template, you can actually get the 
 full list via `lein search`, provided you don't need to search 
 non-standard/private repositories.
 
 I bumped my :user profile's :search-page-size to 1000, and got this when I 
 ran `lein-template`: https://gist.github.com/trptcolin/11309006
 
 These could be cleaned up a bit to make it easier to review them (e.g. unique 
 by version; links to repos where applicable), but this should be a good 
 starting point.
 
 
 On Friday, April 25, 2014 5:49:47 PM UTC-5, puzzler wrote:
 Is there a list somewhere of the various lein templates?
 
 I'm especially interested in comparing the templates for clojure web 
 development and/or clojurescript.  
 
 The few I've sampled exhibit a wide variety of philosophies in terms of 
 whether to be minimalist or batteries-included (and which batteries are 
 included).  So a summary would be extremely useful.
 
 Thanks,
 
 Mark
 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Comprehensive lein template list?

2014-04-26 Thread Mimmo Cosenza
Regarding the lein-templates for cljs going from very minimal to batteries 
included, my personal opinion is that we should be able to create something like

http://yeoman.io/index.html

Any thoughts?

Thanks

mimmo

On 26 Apr 2014, at 00:49, Mark Engelberg mark.engelb...@gmail.com wrote:

 Is there a list somewhere of the various lein templates?
 
 I'm especially interested in comparing the templates for clojure web 
 development and/or clojurescript.  
 
 The few I've sampled exhibit a wide variety of philosophies in terms of 
 whether to be minimalist or batteries-included (and which batteries are 
 included).  So a summary would be extremely useful.
 
 Thanks,
 
 Mark
 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Style - Keyword access or accessors?

2014-04-25 Thread Mimmo Cosenza
I do as Dan does. Sometimes I prefer to use defrecord instead of a regular map, 
e.g. when there are mutable values involved. In such a case I always define a 
constructor for the record instances. 

mimmo

On 22 Apr 2014, at 12:06, Colin Yates colin.ya...@gmail.com wrote:

 Thanks Dan,
 
 One benefit is compile time safety and the refactoring I mentioned.
 
 But yes, I am coming around to the notion of just using raw keywords...
 
 On Tuesday, April 22, 2014 10:49:33 AM UTC+1, Dan Kersten wrote:
 I've personally always used keywords. I don't see any value in aliasing :foo 
 to foo. For navigating nested maps, get-in, update-in and assoc-in with 
 keywords seem natural and practical to me.
 
 
 On 22 April 2014 10:43, Colin Yates colin...@gmail.com wrote:
 (This has been discussed before but as this is fairly subjective I am 
 interested in whether people's opinion has changed)
 
 What are people's experiences around using keywords or defined accessors for 
 navigating data structures in Clojure (assuming the use of maps)?  Do people 
 prefer using raw keywords or do people define accessors.
 
 For example, given {:my-property 10} would people inline my-property or 
 define a (defn my-property [m] (:my-property m))?  If you use keywords then 
 do you alias them (i.e. (def my-property :my-property)?
 
 My experience is that accessors become painful and restrictive really quickly 
 (navigating nested maps for example) so keywords are the way to go.  I tend 
 to have a domain.clj which documents my domain and defines all the important 
 abstractions (i.e. (def my-property :my-property).  I find this very useful, 
 combined with marginalia for documentation purposes.  It also offers some aid 
 in refactoring as multiple abstractions might resolve to the same keyword 
 (i.e. value-group and bracket-group might resolve to :group).
 
 But, to be blunt, it can be a little cumbersome.  I also refer :as the 
 namespace, so instead of (get-in m [:a :b]) it is (get-in m [dom/a dom/b]).
 
 What are your thoughts (and any other hints/tips for maintaining large 
 Clojure code bases?)
 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Comprehensive lein template list?

2014-04-25 Thread Mimmo Cosenza
AFAIK the only available list of plugins/templates the following:

https://github.com/technomancy/leiningen/wiki/plugins

IMHO the best thing would be to create a pair of template/plugin which allow 
you to create a bare bone project (via template) and then add component as you 
need/choose during development. 

The closest example I found is here:

https://github.com/yogthos/luminus-template

I would like to have enough time to work on cljs-start template to make it to 
evolve it that direction (template+plugin pair). But it’s a kind of wish that 
it’s going to stay as it is for the next few months. 

If someone would like to start from cljs-start to go on I’m very happy to give 
her/him the access to the repo.  

https://github.com/magomimmo/cljs-start

mimmo

On 26 Apr 2014, at 00:49, Mark Engelberg mark.engelb...@gmail.com wrote:

 Is there a list somewhere of the various lein templates?
 
 I'm especially interested in comparing the templates for clojure web 
 development and/or clojurescript.  
 
 The few I've sampled exhibit a wide variety of philosophies in terms of 
 whether to be minimalist or batteries-included (and which batteries are 
 included).  So a summary would be extremely useful.
 
 Thanks,
 
 Mark
 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


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

2014-04-16 Thread Mimmo Cosenza
In my humble experience, the best way to learn a language is to follow your way 
to learn a language, that means the same way you were already successful with 
the latest language you learnt.

Hopefully in the future CLJ could become the very first language the new 
generation will learn (today I think it’s python). But at the moment I don’t 
know anyone which start programming by using CLJ as her/his very first 
programming language. 

There should be no reasons why CLJ/CLJS requires you to adopt a different 
approach from the latest language you learnt. 

My best

mimmo
   
On 16 Apr 2014, at 21:41, blake dsblakewat...@gmail.com wrote:

 As one who has been immersed in Clojure since the beginning of the year, I'd 
 say use 4Clojure judiciously. 
 
 For one thing, the format of the exercises adds an extra layer of complexity: 
 Most of the time, you can't just solve the problem, you must solve the 
 problem and then try to figure out how to phrase your solution into the 
 surrounding assertion.
 
 For another, a lot of the easy questions are of the category easy, if you 
 already know the answer. The first section of the clojure cheat-sheet 
 (http://clojure.org/cheatsheet) gives you your basic tools. (A lot of my 
 first weeks were Oh, there's a function for that?) 
 
 And finally, personally, I find that there's only so many times I can do 
 Fibonaccis and factorials (and all those other Comp Sci exercises that I've 
 never used in a productive program) before I get antsy. After a few weeks of 
 focusing on 4clojure, I realized I couldn't actually write a running program.
 
 Then, after a few weeks of playing around with a few dumb programs (but 
 actual programs) I could go back and knock out a lot of 4clojure exercises.
 ​
 But! now I go back and if there's an exercise I can't do, I know it's because 
 there's a hole in my Clojure knowledge, so it's been very good for filling 
 those in. When you start, though, it's all holes.
 
 My 2 cents.
 
 ===Blake===
 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Why I'm giving Clojure a try

2014-04-16 Thread Mimmo Cosenza
On 16 Apr 2014, at 23:10, Sean Corfield s...@corfield.org wrote:

 I used Emacs for just over two years before switching to LT, BTW (well, after 
 a near 20 year break from Emacs before that).

which means you stopped to use emacs because of Java like I did 20 years ago? 
Have you noted that your fingers still remember emacs key-chords?

my best
mimmo






signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] 1st public release of thi.ng geometry toolkit (CLJ CLJS)

2014-03-10 Thread Mimmo Cosenza
This stuff should be great. Thanks so much for sharing it.

mimmo

On 10 Mar 2014, at 22:32, Karsten Schmidt toxmeis...@gmail.com wrote:

 It is my absolute pleasure to finally announce the first public
 release of the 2d/3d geometry library/toolkit: thi.ng/geom
 
 Having worked on this regularly since late 2011 as successor of my
 Java-based toxiclibs.org project, the new project has already
 undergone three complete overhauls as I've been improving my grasp of
 Clojure. The project currently consists of 26 namespaces and 6500+
 lines of code.
 
 You can find all existing details, sources  initial examples at:
 https://github.com/thi-ng/geom/blob/master/src/index.org
 
 Leiningen coords: [thi.ng/geom 0.2.0] (available from Clojars)
 
 This project is part of a bigger  rapidly growing collection of
 Clojure libraries targeted at the wider computational/generative
 design context. All libraries in the thi.ng collection are (will be)
 developed in a literal programming format to also encourage their use
 in teaching contexts and generally try to improve the state of
 documentation  managing source code. Clojure with its focus on
 isolated functionality is particular nice to work with in this sense
 and Org-mode has completely transformed my way of working.
 
 Since this is only the 1st release and I've planned a few more
 (potentially) breaking API changes I cannot currently accept major
 pull requests until the API is more solid (and once I'm less up
 against deadlines). In general though, I hope this project has a wide
 enough scope  license to encourage further communal development.
 
 Lastly, if you're not too allergic to strong German accents, you can
 also watch (and follow along) a little live coding session I've done
 with Paul Kinlan @ Google Developers Live last month:
 
 http://youtu.be/tKIVJ2TaS2k?t=20m9s
 
 Happy coding! :)
 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Lessons Learned from Adopting Clojure

2014-02-04 Thread Mimmo Cosenza
On Feb 4, 2014, at 1:06 PM, Jay Fields j...@jayfields.com wrote:

Hi Jay,
thanks for the report.  I only have few doubts about REPL making TDD to shame. 

I'm not a TDD practitioner, but I would not be so tranchant with it. 

The REPL is great, that's for sure, but IMHO it does not relegate TDD 
feedback/loop in a niche, because you can complement one with the other. 

I'm a fan of http://www.youtube.com/user/Misophistful?feature=watch stuff. he's 
able to be very clear and deep at the same time and if you take a look at his 
screencasts you would see that he uses both the REPL and the TDD at the same 
time. And he uses both unit test and simple-check tests as well. 

It is true that at  the moment the feedback-loop in clojurescript is not 
feasible, but the REPL experience with cljs has to be improved too to make it 
comparable with the clj REPL experience (at least with a nREPL compliant 
editor/ide).

Cheers

mimmo


 
 - REPL driven development, putting TDD's 'rapid feedback' to shame.
 - Operations impact of adding a language - i.e. get ready for some DevOps.
 - Functional programming, the Lisp Advantage, and their impact on
 maintainability.
 
 Of course, no good experience report is all roses. The adoption has
 seen several hurdles along the way, and I'll happily to describe those
 as well.
 
 -- 
 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: Lessons Learned from Adopting Clojure

2014-02-04 Thread Mimmo Cosenza
On Feb 4, 2014, at 5:33 PM, Jay Fields j...@jayfields.com wrote:

 On Tuesday, February 4, 2014 8:17:44 AM UTC-5, Magomimmo wrote:
 thanks for the report.  I only have few doubts about REPL making TDD to 
 shame. 
 
 In this blog entry - 
 http://blog.jayfields.com/2014/01/repl-driven-development.html - I 
 demonstrate (very briefly, by design) my workflow. I also give my thoughts on 
 TDD.

Thanks Jay, in the post you were less tranchant about TDD. As I said I'm not 
a TDD practitioner, but recently I started to appreciated it by mixing my REPL 
based workflow, mostly when I'm writing portable CLJ/CLJS code (you can't image 
how many subtle differences I discovered between CLJ and CLJS in this way.

Thanks again

mimmo


-- 
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: Lessons Learned from Adopting Clojure

2014-02-04 Thread Mimmo Cosenza
On Feb 4, 2014, at 6:13 PM, Sean Corfield s...@corfield.org wrote:

 
 The REPL is great, that's for sure, but IMHO it does not relegate TDD 
 feedback/loop in a niche, because you can complement one with the other.
 
 Indeed you can - and Jay does - and so do I.


And me too. So we are all in the same boat :-).

mimmo

-- 
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: [ClojureScript] A question for TDD practitioners

2014-01-29 Thread Mimmo Cosenza
Thanks Sean. 
Ok. I'll update the various lein templates in accordance with this choice. 

Unfortunately  we still have to wait for cljsbuild to be extended to support 
the auto mode for test subtaks. I tested the feedback-loop with fsrun plug-in 
to automate the cljsbuild test subtask…….too slow….for TDD

BTW, I'm starting to get fun with this TDD…..especially when I applied it to 
cljx files…..generating clj and cljs files for both the source code and the 
unit test code and you automate the execution of the clj tests and the cljs 
file as well…..I ended up with something like 5 terminals, but was really fun 
(almost like modern times by C.Chaplin).

mimmo
  
On Jan 29, 2014, at 9:13 PM, Sean Johnson belu...@acm.org wrote:

 I'm a bit more TDD inclined than the average Clojurian (having come over most 
 recently from Ruby/Rails) and I have to say speed is king in TDD. I agree 
 that source maps are life savers when you need to debug an issue in browser, 
 but I don't really see how they'd be all that useful in the average TDD 
 workflow.
 
 So... +1 for whitespace and no source map == speed.
 
 On Monday, January 27, 2014 3:34:04 AM UTC-5, Magomimmo wrote:
 I do not practice TDD a lot, but I think that thanks to recent events 
 clojurescript will attract people more sensible to TDD workflows.
 
 
 
 Due to a limitation of austin and clojurescript.test regarding :none 
 optimisation, it's not possible to use it with them. So we have to switch to 
 :whitespace (or one of the others). 
 
 
 
 But if we use :whitespace (or one of the others optimisation options) its 
 compilation/recompilation time it's very slow compared to :none when paired 
 with :source-map. 
 
 
 
 By renouncing to :source-map option, the :whitespace 
 compilation/re-compilation time is very fast again.
 
 
 
 The question for TDD practitioners is the following:
 
 
 
 How fundamental is the availability of cljs's source-map in a TDD workflow? 
 Could we renounce to it in favour of a quicker TDD loop? Do you see any 
 drawback in a TDD scenario for not having the source-map?
 
 
 
 Honestly, I use source-map rarely (never in a TDD workflow) and only for 
 debugging purpose because it allows me to set breakpoints and inspect 
 bindings. It seems to me that renouncing to source-map in a TDD workflow is 
 not a big deal. 
 
 
 
 Am I correct?
 
 
 
 Thanks
 
 
 
 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 http://groups.google.com/group/clojurescript.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ClojureScript] A question for TDD practitioners

2014-01-29 Thread Mimmo Cosenza
terminal 1: lein repl this is the repl for the clj code
terminal 2: lein repl, (run), (browser-repl) this is the repl for the cljs code
terminal 3: lein test-refresh this is clj test code in auto mode
terminal 4: lein cljsbuild auto this is for recompiling the cljs source and 
source code
terminal 5: lein fsrun name of the js file containing the unit test code

and then in emacs I have two open buffers: one for the unit test code and the 
other for source code. As I change one or the other source file, the modern 
times machine starts moving, and you jump from one terminal to the other and 
again to the source code, or to the unit test code like Chaplin in that 
wonderful movie. 

You need to be athletic for practicing TDD!!

Sometimes I'm afraid I'm too lazy to afford it. At the end of the day you are 
stoned :-)

Mimmo

On Jan 29, 2014, at 10:59 PM, Jamie Orchard-Hays jamie...@gmail.com wrote:

 Wow. Props for the Modern Times reference!
 
 
 On Jan 29, 2014, at 4:50 PM, Mimmo Cosenza mimmo.cose...@gmail.com wrote:
 
 Thanks Sean. 
 Ok. I'll update the various lein templates in accordance with this choice. 
 
 Unfortunately  we still have to wait for cljsbuild to be extended to support 
 the auto mode for test subtaks. I tested the feedback-loop with fsrun 
 plug-in to automate the cljsbuild test subtask...too slowfor TDD
 
 BTW, I'm starting to get fun with this TDD.especially when I applied it 
 to cljx files.generating clj and cljs files for both the source code and 
 the unit test code and you automate the execution of the clj tests and the 
 cljs file as well.I ended up with something like 5 terminals, but was 
 really fun (almost like modern times by C.Chaplin).
 
 mimmo
 
 On Jan 29, 2014, at 9:13 PM, Sean Johnson belu...@acm.org wrote:
 
 I'm a bit more TDD inclined than the average Clojurian (having come over 
 most recently from Ruby/Rails) and I have to say speed is king in TDD. I 
 agree that source maps are life savers when you need to debug an issue in 
 browser, but I don't really see how they'd be all that useful in the 
 average TDD workflow.
 
 So... +1 for whitespace and no source map == speed.
 
 On Monday, January 27, 2014 3:34:04 AM UTC-5, Magomimmo wrote:
 I do not practice TDD a lot, but I think that thanks to recent events 
 clojurescript will attract people more sensible to TDD workflows.
 
 
 
 Due to a limitation of austin and clojurescript.test regarding :none 
 optimisation, it's not possible to use it with them. So we have to switch 
 to :whitespace (or one of the others). 
 
 
 
 But if we use :whitespace (or one of the others optimisation options) its 
 compilation/recompilation time it's very slow compared to :none when 
 paired with :source-map. 
 
 
 
 By renouncing to :source-map option, the :whitespace 
 compilation/re-compilation time is very fast again.
 
 
 
 The question for TDD practitioners is the following:
 
 
 
 How fundamental is the availability of cljs's source-map in a TDD 
 workflow? Could we renounce to it in favour of a quicker TDD loop? Do you 
 see any drawback in a TDD scenario for not having the source-map?
 
 
 
 Honestly, I use source-map rarely (never in a TDD workflow) and only for 
 debugging purpose because it allows me to set breakpoints and inspect 
 bindings. It seems to me that renouncing to source-map in a TDD workflow 
 is not a big deal. 
 
 
 
 Am I correct?
 
 
 
 Thanks
 
 
 
 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 http://groups.google.com/group/clojurescript.
 
 
 -- 
 Note that posts from new members are moderated - please be patient with your 
 first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.



signature.asc
Description: Message signed with OpenPGP using GPGMail


A question for TDD practitioners

2014-01-27 Thread Mimmo Cosenza
I do not practice TDD a lot, but I think that thanks to recent events 
clojurescript will attract people more sensible to TDD workflows.

Due to a limitation of austin and clojurescript.test regarding :none 
optimisation, it's not possible to use it with them. So we have to switch to 
:whitespace (or one of the others). 

But if we use :whitespace (or one of the others optimisation options) its 
compilation/recompilation time it's very slow compared to :none when paired 
with :source-map. 

By renouncing to :source-map option, the :whitespace compilation/re-compilation 
time is very fast again.

The question for TDD practitioners is the following:

How fundamental is the availability of cljs's source-map in a TDD workflow? 
Could we renounce to it in favour of a quicker TDD loop? Do you see any 
drawback in a TDD scenario for not having the source-map?

Honestly, I use source-map rarely (never in a TDD workflow) and only for 
debugging purpose because it allows me to set breakpoints and inspect bindings. 
It seems to me that renouncing to source-map in a TDD workflow is not a big 
deal. 

Am I correct?

Thanks

Mimmo

 





 


 


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] om-start lein template for nrepl compliant editors/IDEs

2014-01-26 Thread Mimmo Cosenza
Thanks Rudy!

There is still room for improvements. At the moment I was not able make it to 
run with :none optimisation which is amazingly fast, while :whitespace an all 
the others are slow. But with an nrepl compliant editor/IDE you could enjoy the 
live coding stuff by David without running the lein cljsbuild auto. So, it's 
not a big deal.

But it's my opinion that we should extend that CLJS live experience to a TDD 
workflow too. We're not that faraway. cljsbuild is close to support auto mode 
for the test task, clojurescript.test is almost ready to support asynchronous 
tests.

The only two things that I don't now if they will be quickly solved are:
- the above limitation about using :none with austin browser connected REPL
- the same limitation about using :none with clojurescript.test.

Again, if 7/10 seconds of recompilation time is not considered inadequate for a 
TDD workflow, we can stays with the :whitespace compilation option both for 
austin and clojurescript.test. 

Mimmo

On Jan 26, 2014, at 11:41 AM, Rudi Engelbrecht r...@engelbrecht.me wrote:

 Hi Mimmo
 
 Thank you for this tutorial - I managed to follow along and experience the 
 same live coding with emacs/cider - really nice to see how all the components 
 work together and drive the browser from the browser-repl in emacs.
 
 Kind regards
 
 Rudi
 
 
 On 26/01/2014, at 2:34 AM, Mimmo Cosenza mimmo.cose...@gmail.com wrote:
 
 Hi all,
 yesterday Laurent Petit asked me how to run on CCW OM and Austin together to 
 have the same live experience obtained by David Nolen in his OM tutorial. 
 
 This morning I created this simple om-start lein-template (a kind of 
 cljs-start without unit testing stuff) which allows to create a OM project 
 and to run them in any (I hope) nREPL compliant editors/IDEs. I tested it 
 only on emacs/cider and Eclipse/CCW.
 
 https://github.com/magomimmo/om-start-template
 
 In the README.md there is also a quickstart for both Emacs/cider and 
 Eclipse/CCW users.
 
 That said, in the latest week I enjoyed a lot both LT and CCW after decades 
 of not using anything else than emacs for serious stuff. 
 
 I just wanted to try to give the same LT live experience to  users of other 
 development environment  while playing with the great stuff from David Nolen.
 
 HIH
 
 mimmo
 
 
 
 -- 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] com.stuartsierra/frequencies 0.1.0

2014-01-26 Thread Mimmo Cosenza
You could clone and deploy it yourself into clojars. The only caveat is to give 
it an org.clojars.youusername as group-id to make it clear it's not the 
official one.

HIH

mimmo

On Jan 26, 2014, at 10:05 PM, Michael Klishin michael.s.klis...@gmail.com 
wrote:

 2014-01-25 Stuart Sierra the.stuart.sie...@gmail.com
 Leiningen dependency:
 
 [com.stuartsierra/frequencies 0.1.0-SNAPSHOT]
 
 Please do a proper release. Non-snapshot projects cannot
 depend on snapshot libraries:
 https://github.com/technomancy/leiningen/wiki/Repeatability#snapshot-versions
 -- 
 MK
 
 http://github.com/michaelklishin
 http://twitter.com/michaelklishin
 
 -- 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] com.stuartsierra/frequencies 0.1.0

2014-01-26 Thread Mimmo Cosenza
sure, but it depends on who is going to use your project too. if it's only you, 
lein install is ok.

On Jan 26, 2014, at 10:17 PM, Moritz Ulrich mor...@tarn-vedra.de wrote:

 On Sun, Jan 26, 2014 at 10:10 PM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 You could clone and deploy it yourself into clojars. The only caveat is to
 give it an org.clojars.youusername as group-id to make it clear it's not
 the official one.
 
 Please don't deploy a project to the public clojars repository for
 such purposes. You can use `lein install' to install the jar locally
 on your machine under whatever name you wish.
 
 -- 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


[ANN] om-start lein template for nrepl compliant editors/IDEs

2014-01-25 Thread Mimmo Cosenza
Hi all,
yesterday Laurent Petit asked me how to run on CCW OM and Austin together to 
have the same live experience obtained by David Nolen in his OM tutorial. 

This morning I created this simple om-start lein-template (a kind of cljs-start 
without unit testing stuff) which allows to create a OM project and to run them 
in any (I hope) nREPL compliant editors/IDEs. I tested it only on emacs/cider 
and Eclipse/CCW.

https://github.com/magomimmo/om-start-template

In the README.md there is also a quickstart for both Emacs/cider and 
Eclipse/CCW users.

That said, in the latest week I enjoyed a lot both LT and CCW after decades of 
not using anything else than emacs for serious stuff. 

I just wanted to try to give the same LT live experience to  users of other 
development environment  while playing with the great stuff from David Nolen.

HIH

mimmo



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: clojure debugging repl

2014-01-25 Thread Mimmo Cosenza
On Jan 25, 2014, at 2:12 AM, Alexandr Kurilin a...@kurilin.net wrote:

 
 I'd love to be able to set breakpoints in a running clojure application, step 
 through the code and inspect locals and the referencing environment. Anything 
 that gets me off of the time-consuming process of adding 
 timbre/clojure.tools.trace statements would be really welcome. Is vim-redl 
 the closest I can get to that, or is ritz the way to go? Any other 
 recommendations?
 

The paradox is that you can have a simulacra of those features with 
ClojureScript by using :source-map and  Chrome Developer Tools. But AFAIK you 
loose something at the moment (e.g. cljs completion, cljs documentation). 

That said, when the scenario allows it, I always write portable CLJ/CLJS code 
by using cljx plugin. This way I can have an almost full powered REPL 
experience with CLJ REPL and when I really need to set breakpoints or inspect 
locals  (very rare), I switch to CLJS….

mimmo




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ClojureScript] [ANN] om-start lein template for nrepl compliant editors/IDEs

2014-01-25 Thread Mimmo Cosenza
Thanks Laurent! 

Has been a pleasure to interact with you!

mimmo

On Jan 25, 2014, at 5:56 PM, Laurent PETIT laurent.pe...@gmail.com wrote:

 Thanks a lot Mimmo, you're invaluable in helping people cross bridges between 
 tools, libraries, and a real bright light for newcomers also !
 
 Le samedi 25 janvier 2014, Mimmo Cosenza mimmo.cose...@gmail.com a écrit :
 Hi all,
 yesterday Laurent Petit asked me how to run on CCW OM and Austin together to 
 have the same live experience obtained by David Nolen in his OM tutorial. 
 
 This morning I created this simple om-start lein-template (a kind of 
 cljs-start without unit testing stuff) which allows to create a OM project 
 and to run them in any (I hope) nREPL compliant editors/IDEs. I tested it 
 only on emacs/cider and Eclipse/CCW.
 
 https://github.com/magomimmo/om-start-template
 
 In the README.md there is also a quickstart for both Emacs/cider and 
 Eclipse/CCW users.
 
 That said, in the latest week I enjoyed a lot both LT and CCW after decades 
 of not using anything else than emacs for serious stuff. 
 
 I just wanted to try to give the same LT live experience to  users of other 
 development environment  while playing with the great stuff from David Nolen.
 
 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 http://groups.google.com/group/clojurescript.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ClojureScript] [ANN] om-start lein template for nrepl compliant editors/IDEs

2014-01-25 Thread Mimmo Cosenza
Thanks David, 
it could be even better if someone explains to me how to make austin to run in 
a browser connected REPL with `:none` optimization ;-)

mimmo

On Jan 25, 2014, at 6:37 PM, David Nolen dnolen.li...@gmail.com wrote:

 This is great, thank you!
 
 
 On Sat, Jan 25, 2014 at 10:34 AM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 Hi all,
 yesterday Laurent Petit asked me how to run on CCW OM and Austin together to 
 have the same live experience obtained by David Nolen in his OM tutorial. 
 
 This morning I created this simple om-start lein-template (a kind of 
 cljs-start without unit testing stuff) which allows to create a OM project 
 and to run them in any (I hope) nREPL compliant editors/IDEs. I tested it 
 only on emacs/cider and Eclipse/CCW.
 
 https://github.com/magomimmo/om-start-template
 
 In the README.md there is also a quickstart for both Emacs/cider and 
 Eclipse/CCW users.
 
 That said, in the latest week I enjoyed a lot both LT and CCW after decades 
 of not using anything else than emacs for serious stuff. 
 
 I just wanted to try to give the same LT live experience to  users of other 
 development environment  while playing with the great stuff from David Nolen.
 
 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 http://groups.google.com/group/clojurescript.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Helping newcomers get involved in Clojure projects

2014-01-25 Thread Mimmo Cosenza
+1

On Jan 25, 2014, at 7:54 PM, Bridget bridget.hill...@gmail.com wrote:

 OpenHatch has this great initiative for encouraging newcomers to get involved 
 with open source projects. You tag some issues in your bug tracker as 
 newcomer or easy. This provides a gentle path into contributing. There is 
 some work involved with this. You have to do the tagging, and there needs to 
 be some capacity in your project for some mentoring.
 
 Leiningen is doing this already with newbie tagged issues, which is awesome.
 
 Are there any other Clojure projects that are doing this? Would you like to 
 do this with your project? If so, I can try to help. I have been spending a 
 lot of time thinking about the Clojure newcomer perspective lately, and I'd 
 like to work on some things that help smooth that path.
 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


[ANN] - modern-cljs integrates a port on emacs of lt-cljs-tutorial By David Nolen

2014-01-18 Thread Mimmo Cosenza
Hi all,

the `modern-cljs` series 

https://github.com/magomimmo/modern-cljs

now includes a port for Emacs users 

https://github.com/magomimmo/modern-cljs/tree/master/cljs-tutorial

of the recent lt-cljs-tutorial - A ClojureScript Programming Language Tutorial 
for Light Table Users
by David Nolen.

https://github.com/swannodette/lt-cljs-tutorial

I consider `lt-cljs-tutorial` the best companion resource for the
`modern-cljs` series because it represents the fastest path to start
learning the ClojureScript Programming Language as is, in a very
interactive way, and from the most competent guy for the language
itself.

For those not using Emacs or Light Table, it should be
very easy to run the emacs port of the David's tutorial with any editor/IDE 
supporting nREPL. The port has been generated by `cljs-start` lein-temaplate 
which works without problem with CCW, so the ported tutorial should work as 
well on it. 

Enjoy

Mimmo





signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: RESTful API Auth with Friend and Liberator

2014-01-17 Thread Mimmo Cosenza
:-)
mimmo
On Jan 17, 2014, at 10:27 PM, Sam Ritchie sritchi...@gmail.com wrote:

 Hey guys,
 
 Those of you working on webapps might find this interesting:
 
 http://sritchie.github.io/2014/01/17/api-authentication-with-liberator-and-friend/
 
 Enjoy!
 -- 
 Sam Ritchie (@sritchie)
 Paddleguru Co-Founder
 703.863.8561
 www.paddleguru.com
 Twitter // Facebook
 
 -- 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ClojureScript] A ClojureScript Tutorial For Light Table Users

2014-01-16 Thread Mimmo Cosenza
Great initiative David!!

It seems the fastest path to learn ClojureScript by minimising  any incidental 
complexities generated by tools.

mimmo

  
On Jan 15, 2014, at 2:44 PM, David Nolen dnolen.li...@gmail.com wrote:

 I've started what I hope will be a collaborative and comprehensive reference 
 on the ClojureScript language for people looking to extend Light Table. This 
 is a file that can be directly evaluated in the Light Table UI Connection. 
 http://swannodette.github.io/2014/01/15/clojurescript-for-light-table-users/
 
 I hope it inspires people to put together similar interactive guides on Light 
 Table specific functionality.
 
 David
 
 -- 
 Note that posts from new members are moderated - please be patient with your 
 first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ClojureScript] [ANN] cljs-start 0.1.1

2014-01-14 Thread Mimmo Cosenza
On Jan 14, 2014, at 9:26 AM, Ivan L ivan.laza...@gmail.com wrote:

 This is excellent work!  I played around with cljs-start tonight, thanks so 
 much for your work.

I'm glad you find it useful.

 
 One hopefully quick question.  Assuming the CCW lein headless start and then 
 (run) and (browser-repl), how can the cljs namespace being edited be updated?

I have to admit that I touched CCW for the very first time last weekend, 
because Laurent Petit needed an example of austin configuration and usage for 
improving CCW interoperability with complex project/templates.

So, I really don't how to keep the CLJS repl updated in CCW.  
 
 My first thought was to simply use ccw to reload or evaluate selection to 
 repl, but it seems to fail randomly (or maybe its missing dependences?  

Pay attention at the namespaces in the cljs repl and in the editor window. 
Again I don't know about CCW, but is the same thing I do in emacs. 

 Another thought would be to run another repl external to eclipse and have 
 that be cljsbuild auto and keep on reloading the page (localhost:3000) 
 manually.

Depends on the workflow that works better for you.

Recently I found my self in the following situation:
- no matter how better is becoming the CLJS REPL experience, I still prefer the 
CLJ REPL. To me, JS in an accident. Is here to stay, like the RR, but less 
JS/HTML/CSS code I read, the better for my eyes and my brain too

Because of this bad attitude towards JS, I'm starting experimenting the 
following workflow:

Principles and guide lines
- keep the CLJS code which implements logics separated from the CLJS code which 
implements rendering (which I'm very bad for). 
- write the CLJS code which implements the logic in pure CLJ code (i.e. cljx 
lein plugin);
- write the CLJS code which implements the unit tests of the above code in pure 
CLJ code (.cljx extensions);
- use a testing lib with the same API on both sides (i.e. java and JS). The 
only one I'm aware of is clojurescript.test/clojure.test (in the near future 
I'd like to introduce double-check too in my workflow).

Now the corresponding workflow:
- open your project in the editor/ide you prefer (last week for the very first 
time I did not use emacs)
- from a terminal launch the `lein cljx auto` task. 
- from an other terminal, launch the `lein cljsbuild once` task 
- launch the `lein test-refresh` task (test-refresh is a lein plugin)

Now in one terminal you can see the clix running when you save your code. It 
generates both clj and cljs code, but at the beginning I take care of CLJ only. 

In the other terminal you see the unit testing being re-executed because in the 
mean time the newly generated clj code/unit tests code have been recompiled. 
The test-refresh does this work for you. 

I always like to have a CLJ REPL around me to test something small that allows 
me to isolate what I need at the moment. I don't know how to do it with CCW, 
but I do it both in emacs and in Light Table, so there should be a way to 
reload the clj/cljs code from  CCW into the REPL. 

When the code works for CLJ:

- I launch the `lein cljsbuild auto` task from a third terminal. Hopefully 
everything get compiled. If not, fix the bug. In is not you bug, it could be a 
subtle difference between CLJ and CLJS, or, better, a bug in CLJS that you 
search/submit in JIRA
- If everything gets compiled, I launch the `lein cljsbuild test` command from 
a fourth terminal. 
- If all tests passed, then you have to repeat them with more aggressive 
compilation options. 

Do the following:
- lein clean
- lein with-profiles simple do clix once, cljsbuild once, cljsbuild test

You can eventually add a lein :alias for the above chain.

If everything is still working with the simple compilation, you can now go on 
with the :advanced compiler option.

- lein with-profiles simple clean
- lein with-profiles advanced clix once, cljsbuild once, cljsbuild test

At the moment this is the shortest path I found to have something to work with. 
I think I should add hardness to cljs-start, the sort of thing Stuart Sierra 
did.

There are two things that really annoy me at the moment:
- the fact that I can't use the :none compilation option in the :dev profile, 
because clojurescript.test does not support it. This is a pity, because the 
compilation time with the :none compilation its really unbelievable fast after 
the very first time, while the :whitespace compilation time gets you irritable
- the fact that that I did not find a test-plugin correspondent for 
cljurescript.test. Probably with some efforts someone could make test-refresh a 
two sides guy.

HIH

 Mimmo
  
 
 What do you suggest?
 
 Thanks again, thanks for such great work.
 
 -- 
 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 

[ANN] cljs-start 0.1.1

2014-01-13 Thread Mimmo Cosenza
I just published to clojars the 0.1.1 release of cljs-start lein template to 
create a batteries included Clojurescript lib. 

https://github.com/magomimmo/cljs-start

This release uses lein profiles (:user, :dev, :simple and :advanced) to keep 
the corresponding CLJS builds separated from each other (thanks so much to 
Laurent Petit for the suggestion).  

quick start:

lein new cljs-start wonderful-lib
cd wonderful-lib
lein compile
lein repl
(run)
(browser-repl)

Then visit the localhost:3000 and after the connection is established (few 
moments) you can start repling in CLJS with your browser.

Quick start with latest Eclipse/CCW (Thanks to Laurent Petit):

1. File - New Project - Clojure Project: 
- project name: wonderful-lib
- Leingen template: cljs-start
Click Finish
2. Right Click on wonderful-lib in the Package Explorer - Leiningen - Launch 
Headless REPL for the project
Once in the REPL:
(run)
(browser-repl) 

Then visit the localhost:3000 and after the connection is established (few 
moments) you can start repling in CLJS with your browser

HIH 
Mimmo




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: New release of Light Table (which is now open source!)

2014-01-08 Thread Mimmo Cosenza
On Jan 8, 2014, at 8:01 PM, Mark Engelberg mark.engelb...@gmail.com wrote:

 So for those of you who are actually using LightTable for development, how do 
 you function without a REPL?  

If you are on the TDD wagon, there is a very good introduction to TDD with LT 
at the following URL:

http://www.youtube.com/watch?v=H_teKHH_Rk0

You can reach a similar workflow by using clojure.test and lein-test-refresh 
plugin. 

The more you TDD the less time you spend in the REPL. I'm not a TDD fanatic at 
all, especially while programming in clojure (thanks to default immutability of 
its data structures), but if you are on that wagon you're going to spend less 
time in the REPL and more in the test files and LT let you make one of those 
file to be your repl too, which is not bad at all. 

mimmo

p.s. I'm addicted to emacs and REPL, but I have to admit that LT (I was a 
kickstarter supporter too) is intriguing me a lot. 


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



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: library development

2013-12-20 Thread Mimmo Cosenza
I used localrepo as Timmy said: 
- to install in the local maven repository a native dynamic c++ lib and its 
corresponding java wrapper
- to makes it available to all my clojure/java projects requiring to use that 
lib (artifact in maven parlance) 

It works like a charm.

Here you can find a sample of its use:

http://docs.opencv.org/2.4/doc/tutorials/introduction/clojure_dev_intro/clojure_dev_intro.html#install-the-java-specific-libs-as-local-repository

HIH 
mimmo

On Dec 20, 2013, at 6:22 PM, Tim Visher tim.vis...@gmail.com wrote:

 On Fri, Dec 20, 2013 at 12:16 PM, John Gabriele jmg3...@gmail.com wrote:
 If I can just `lein install` my libs (or other people's libs) and then use
 them in all my projects (just like the libs found at clojars), what extra
 functionality does lein-localrepo provide beyond that?
 
 lein-localrepo provides ways to interact with the local repo beyond
 just installing a leiningen project to it. You can install arbitrary
 artifacts that have poms. You can use to grab coords for a file. Etc.
 
 --
 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] cljs-start 0.0.7 now support source-map

2013-12-17 Thread Mimmo Cosenza

 May be for newcomers like me it will be good to add some integraional tips 
 for emacs(others) editors..

I always feel guilty when talking about editors because I use emacs. It seems 
that the top clojurists are pushing people to switch from emacs to something 
more used by younger/front-end programmers. In someway it seems that emacs 
could be felt as an incidental complexity on the path toward Clojure.

I don't know what to say. Perhaps only use the editor that lets you feel less 
incidental complexities in developing with  CLJ/CLJS. Initially this should be 
your current editor. 

My best
Mimmo














signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] cljs-start 0.0.7 now support source-map

2013-12-17 Thread Mimmo Cosenza

 Calling emacs incidental complexity is like calling the North Pole a bit 
 nippy this time of year. :)

LOL

mimmo


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ClojureScript] [ANN] cljs-start 0.0.7 now support source-map

2013-12-17 Thread Mimmo Cosenza
 I would encourage anyone who is not learning a
 language to learn Emacs. :)

Well said



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] cljs-start 0.0.7 now support source-map

2013-12-17 Thread Mimmo Cosenza
Hi Andrew, 
just remember that cljs-start is for pure CLJS project only. 

Few weeks ago I started working on a similar lein template for mixed CLJ/CLJS 
projects which have different requirement. then I stopped because of work 
overload on other projects. 

On the mixed cli/cljs path the luminoso-template took an interesting approach

https://github.com/magomimmo/luminus-template

In my mind I think about something like a pair composed by of a lein template 
and a lein plugin. 

The template should serve to create new mixed clj/cljs projects and the plugin 
should serve to easily manage the project itself.

I would be even better to absorb the awesome  stuff my Stuart Sierra and jig, 
then absorb stuff regarding continuos development, integration and deployment 
to try to minimize any incidental complexities caused by the used tools. 

A kind of reference sample could http://yeoman.io/

But we should do it better :-)

I final note. Apparently I'm  the only one using profiles.clj file local to the 
project. When I'm alone I'm alway worried to be on the wrong path. I still 
think that the profiles.clj local to the project is at the moment the best way 
to keep separated the complexity of the developer view of the project from the 
user view of the project. Hope not to be wrong in this approach. 

Any comment about this is very welcome

mimmo


On Dec 17, 2013, at 2:14 PM, Andrew Voron volan...@gmail.com wrote:

 Well, Im not sure if I expressed myself correctly when asked for tips about 
 editor - I thought about how to get Emacs (or may be other editor which 
 support nrepl workflow) work with cljs-start. Now I see that it works good 
 when I'm testing it. I use emacs-live for clojure work with emacs, and it 
 seems like all things work not only from emacs clojurescript repl but from 
 file - when I type C-x C-e - it evaluates my s-expressions and puts result to 
 emacs's status buffer... Could you tell us maybe some other good shotcuts and 
 tips that you use in development... I cant for ex. eval the whole buffer or 
 reload the namescpace...

What about other editors - I think they should work as far as them support 
 nrepl... Personally I tryed Sublime Text 3, but without success...
 
 Ok, I go to play with emacs cljsrepl...
 
 -- 
 -- 
 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: [ClojureScript] Re: [ANN] cljs-start 0.0.7 now support source-map

2013-12-16 Thread Mimmo Cosenza
Hi Jussi,

 I was wondering what sort of performance should I expect with Clojurescript 
 compile. I get 3-20 seconds per file on two different machines.

yes, I have similar results

 When I just change the root cljs file,

do you mean the core.cljs file? 

 cljsbuild recompiles three other files (advanced.js, useless.js and 
 simple.js).

did you issue the `$ lein cljsbuild auto whitespace` tasks instead of `$ lein 
compile`? 

That said, take into account that, if I remember well, there is an open issue 
on cljsbuild regarding the recompilation of builds non directly interested by a 
test launched by the lein cljsbuild test name-of-the-test. 

 I have Macbook with Maverick, Lein 2.3.4 on Java 1.6.0_65 and Ubuntu 13.04 
 with OpenJDK-7, same Lein version. Both should have plenty of resources.

yes I know. I personally adopted the following workflow during the early 
development.

1. comment out all the builds but whitespace
2. comment out all the tests but phantoms-ws
3. lein cljsbuild auto whitespace
4. lein cljsbuild test phantomjs-ws

Then, when I reach something stable I uncomment the other builds and tests.

one trick is to use `#_` to quickly comment an entire expression. 

 
 From all the cljs templates yours seem most featureful and easiest to start 
 with, so I'd very much like to see it perform better.

Probably when cljsbuild will have an `auto` subtask for the `test` task the 
response time of a recompilation will be much shorter, because only one build 
and one test will be recompiled.

Sorry about that, but I do not have a better answer.

Mimmo


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] introduction to opencv development with clojure

2013-12-13 Thread Mimmo Cosenza
This is a great talk by Zach Tellman on the subject…..

http://www.infoq.com/presentations/Distilling-Java-Libraries

So, it seems that now I have seesaw and this great talk to get inspiration 
from. 
mimmo



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] introduction to opencv development with clojure

2013-12-12 Thread Mimmo Cosenza
On Dec 12, 2013, at 4:01 AM, Colin Fleming colin.mailingl...@gmail.com wrote:

 Seesaw is the gold standard with lib wrapping IMO, it's a fantastic piece of 
 work.

thanks. I'll start to study it today and try to grab idea from there. if anyone 
have any suggestion on best-practices to wrap an OO c++/java lib which has such 
an amount of mutable objects like OpenCV has, I'll be very thankful. 

Mimmo


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


[ANN] introduction to opencv development with clojure

2013-12-11 Thread Mimmo Cosenza
Hi all,
I'm happy to announce that a first tutorial on introducing OpenCV development 
with clojure has been just merged in the official 2.4 documentation branch

https://github.com/Itseez/opencv/blob/2.4/doc/tutorials/introduction/clojure_dev_intro/clojure_dev_intro.rst

It's only the a very initial step, but my intention is to go on with the 
computer vision stuff. Eventually I'll ask some suggestion for implementing a 
seesaw GUI comparable to the current OpenCV Qt GUI. 

Seesaw seems to me even a great example on how to wrap an OO lib to make it 
usable in a more functional way. 

The REPL interactivity seems to really add some value in learning and 
experimenting OpenCV. Another step I have in mind is to create a Chrome Native 
Extension which use the OpenCV c/c++ lib for intensive calculation and 
ClojureScript for the visualizations, but it's only just a very draft idea. 

I don't know how much time I could spend in the few month on modern-cljs series 
of tutorials, but I promise that I'll do my best to keep it going

My best

Mimmo

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


[ANN] clojure tutorial on opencv

2013-12-05 Thread Mimmo Cosenza
Hi all,
while taking a watch to the OpenCV (Open Computer Vision) lib I wrote a very 
short tutorial on how to setup a clojure environment to start interacting with 
OpenCV with a CLJ REPL. 

https://github.com/magomimmo/opencv/blob/2.4.7-macosx/samples/clojure/simple-sample/README.md

I wrote it because it was a way for me to remember the very first step to be 
done, but also because I saw that on the official opencv website there are 
opencv tutorials in python, java and scala, but not on clojure. 

I personally think that we should try to contaminate other very active and 
important open source communities if we want to see clojure ramping up a little 
bit more. 

The opencv tutorial maintainer wrote me that they are interested in a clojure 
tutorial to be published on their site. So, if they are going to accept this 
thin contribution, in some way it will be the clojure face recognitio on 
their web site (opecv has millions of downloads).

this why I'm asking if anybody has anything against the submission of this 
tutorial to the opencv official community and eventually if someone could 
please verify that the quality of this very introductive tutorial is acceptable 
for representing clojure in the opencv community (which is large).

My best

Mimmo

p.s.1 opencv uses .rst for documentation (which I don't' know at all and it 
seems to me that it requires an annoying installation and setup on my mac osx). 
I think that pandoc should be able to make the trick of converting from 
markdown format to rst format, but if someone already has experience with rst 
stuff (sphinx or something like that) I'll be very glad to receive an help.

p.s.2 there few others short tutorials on opencv around. If someone think they 
are better that mine, just let me know. Just take into account that while I'm 
investigating opencv, if I'll have time and energy I'll eventually write more 
advanced tutorials.




  

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


[ANN] cljs-start 0.0.7 now support source-map

2013-11-30 Thread Mimmo Cosenza
Hi all,
I just added the source map support (and a very short explanation on how to use 
it in chrome developer tools) to the cljs-start lein template to build  a CLJS 
lib with batteries included.

Hope someone finds it useful.

My best

Mimmo



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] cljs-start 0.0.7 now support source-map

2013-11-30 Thread Mimmo Cosenza
the link….

https://github.com/magomimmo/cljs-start

how to start.

lein new cljs-start your-lib-name

mimmo

On Nov 30, 2013, at 11:38 AM, Mimmo Cosenza mimmo.cose...@gmail.com wrote:

 Hi all,
 I just added the source map support (and a very short explanation on how to 
 use it in chrome developer tools) to the cljs-start lein template to build  a 
 CLJS lib with batteries included.
 
 Hope someone finds it useful.
 
 My best
 
 Mimmo
 



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] Clara 0.3.0: Rete in ClojureScript

2013-11-29 Thread Mimmo Cosenza
Cool! It remembers me when I was developing expert systems 30 years ago…..the 
eternal recurrence ;-)
soon or later more devs will appreciate this wonderful unification language….

mimmo

On Nov 29, 2013, at 4:49 PM, Ryan Brush rbr...@gmail.com wrote:

 Clara 0.3.0, a forward-chaining rules engine in pure Clojure, has been 
 released.  The headliner is ClojureScript support, although a handful of 
 fixes and optimizations were included as well. 
 
 Some discussion of the ClojureScript port is in that group:
 https://groups.google.com/forum/#!topic/clojurescript/MMwjpcFUPqE
 
 The github project:
 https://github.com/rbrush/clara-rules
 
 Example usage from ClojureScript:
 https://github.com/rbrush/clara-examples/blob/master/src/main/clojurescript/clara/examples/shopping.cljs
 
 Feel free to ping me (@ryanbrush) with any questions or suggestions, or log 
 issues via github.
 
 -Ryan
 
 -- 
 -- 
 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: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-28 Thread Mimmo Cosenza
do you think could be useful to have a similar lein-template with batteries 
included for a mixed cli/cljs project? 

cljs-start is aimed for cljs lib only. 

LMK

My best

mimmo
 
On Nov 27, 2013, at 7:06 PM, test Comptetest un.compte.pour.tes...@gmail.com 
wrote:

 Indeed, with a fresh lein it now works.
 
 Thanks again, I'll be sure to use it with my students !
 
 Cheers,
 
 B.
 
 -- 
 Note that posts from new members are moderated - please be patient with your 
 first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] fsrun : file change notifier high order lein task

2013-11-27 Thread Mimmo Cosenza
in the mean time you can clone the repo, cd into it and

lein install # from the terminal

mimmo

On Nov 27, 2013, at 8:00 AM, Deniz Kurucu makka...@gmail.com wrote:

 Ah yes, sorry it is not on clojars yet. Wanted some feedback before pushing 
 it there :)
 
 
 On Wed, Nov 27, 2013 at 2:26 AM, Plinio Balduino pbaldu...@gmail.com wrote:
 Excellent, Deniz
 
 But I'm getting an error when I try to run for the first time:
 
 Could not find artifact fsrun:fsrun:jar:0.1.0 in central 
 (http://repo1.maven.org/maven2/)
 Could not find artifact fsrun:fsrun:jar:0.1.0 in clojars 
 (https://clojars.org/repo/)
 This could be due to a typo in :dependencies or network issues.
 
 Part of my project.clj:
 
 (defproject blabla 0.1.0-SNAPSHOT
   ; licenses, description, url
   :dependencies [[org.clojure/clojure 1.5.1]]
   :plugins [[fsrun 0.1.0]]
   ; etc etc etc
 )
 
 Am I doing something wrong? My network is OK and I'm not using any proxy.
 
 Thank you
 
 Plínio
 
 On Monday, November 25, 2013 5:26:05 AM UTC-2, Deniz Kurucu wrote:
 fsrun is a simple high order lein task that run some other tasks when a file 
 modification occurs. Originally, i wanted to run my clojurescript tests 
 automatically and created fsrun. It is my first clojure project, so please 
 keep that in mind :)
 
 github : https://github.com/makkalot/fsrun
 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-27 Thread Mimmo Cosenza
confirm. 
mimmo

On Nov 27, 2013, at 11:56 AM, mynomoto mynom...@gmail.com wrote:

 Then the solution should be the same.
 
 As Magomimmo wrote:
 
 you need to upgrade to leiningen = 2.2.0
 
 lein upgrade # from the terminal
 
 
 
 On Wednesday, November 27, 2013 8:40:24 AM UTC-2, bernardH wrote:
 On Monday, November 25, 2013 7:59:00 PM UTC+1, Magomimmo wrote: 
  what are: 
  
  
  - you operating system 
  - java virtual machine (java -version # from the terminal) 
  - leiningen version (lein version # from the terminal) 
  
  
  Have you tried to create a project with others lein-template? e.g.  
  
  
  https://github.com/konrad-garus/cljs-kickoff 

 
 Not OP here, but I have exactly the same problem : 
 
 $ lein new cljs-start yourlibname 
 Generating fresh 'lein new' cljs-start project. 
 Template resource 'leiningen/new/cljs_start/README.MD' not found. 
 
 I tried your previous recommendations (rm -rf ~/.m2/repository/cljs-start, 
 git clone https://github.com/magomimmo/cljs-start.git) t no avail. 
 
 $ uname -a 
 Linux lightning 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 
 GNU/Linux 
 
 $ java -version 
 java version 1.7.0_45 
 Java(TM) SE Runtime Environment (build 1.7.0_45-b18) 
 Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode) 
 
 $ lein version 
 Leiningen 2.1.1 on Java 1.7.0_45 Java HotSpot(TM) 64-Bit Server VM 
 
 Cheers, 
 
 B. 
 
 PS: Thank you *so much* for your tutorials Modern ClojureScript !   
 
 
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-27 Thread Mimmo Cosenza
I should submit an issue to lein, because even if I set the min-lein-version to 
2.2.0 in the project.clj the eerro message you receive when you run from a lein 
version  2.2.0 is misleading.

mimmo

On Nov 27, 2013, at 11:56 AM, mynomoto mynom...@gmail.com wrote:

 Then the solution should be the same.
 
 As Magomimmo wrote:
 
 you need to upgrade to leiningen = 2.2.0
 
 lein upgrade # from the terminal
 
 
 
 On Wednesday, November 27, 2013 8:40:24 AM UTC-2, bernardH wrote:
 On Monday, November 25, 2013 7:59:00 PM UTC+1, Magomimmo wrote: 
  what are: 
  
  
  - you operating system 
  - java virtual machine (java -version # from the terminal) 
  - leiningen version (lein version # from the terminal) 
  
  
  Have you tried to create a project with others lein-template? e.g.  
  
  
  https://github.com/konrad-garus/cljs-kickoff 

 
 Not OP here, but I have exactly the same problem : 
 
 $ lein new cljs-start yourlibname 
 Generating fresh 'lein new' cljs-start project. 
 Template resource 'leiningen/new/cljs_start/README.MD' not found. 
 
 I tried your previous recommendations (rm -rf ~/.m2/repository/cljs-start, 
 git clone https://github.com/magomimmo/cljs-start.git) t no avail. 
 
 $ uname -a 
 Linux lightning 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 
 GNU/Linux 
 
 $ java -version 
 java version 1.7.0_45 
 Java(TM) SE Runtime Environment (build 1.7.0_45-b18) 
 Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode) 
 
 $ lein version 
 Leiningen 2.1.1 on Java 1.7.0_45 Java HotSpot(TM) 64-Bit Server VM 
 
 Cheers, 
 
 B. 
 
 PS: Thank you *so much* for your tutorials Modern ClojureScript !   
 
 
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [ANN] fsrun : file change notifier high order lein task

2013-11-27 Thread Mimmo Cosenza
Deniz,
you need to install gpg to be able to push a release to clojars.

here is the lein documentation 

When deploying a release that's not a snapshot, Leiningen will attempt to sign 
it using GPG to prove your authorship of the release. See the deploy guide. for 
details of how to set that up. The deploy guide includes instructions for 
deploying to other repositories as well.

and here is the deploy guide

https://github.com/technomancy/leiningen/blob/stable/doc/DEPLOY.md#gpg

mimmo

On Nov 27, 2013, at 12:25 PM, James Reeves ja...@booleanknot.com wrote:

 It'll be easier to get feedback if you push it to Clojars. I want to try it 
 out, but not enough to clone the repo and manually install it.
 
 Since it's only version 0.1.0, it's not as if it's expected to be flawless.
 
 - James
 
 
 On 27 November 2013 07:00, Deniz Kurucu makka...@gmail.com wrote:
 Ah yes, sorry it is not on clojars yet. Wanted some feedback before pushing 
 it there :)
 
 
 On Wed, Nov 27, 2013 at 2:26 AM, Plinio Balduino pbaldu...@gmail.com wrote:
 Excellent, Deniz
 
 But I'm getting an error when I try to run for the first time:
 
 Could not find artifact fsrun:fsrun:jar:0.1.0 in central 
 (http://repo1.maven.org/maven2/)
 Could not find artifact fsrun:fsrun:jar:0.1.0 in clojars 
 (https://clojars.org/repo/)
 This could be due to a typo in :dependencies or network issues.
 
 Part of my project.clj:
 
 (defproject blabla 0.1.0-SNAPSHOT
   ; licenses, description, url
   :dependencies [[org.clojure/clojure 1.5.1]]
   :plugins [[fsrun 0.1.0]]
   ; etc etc etc
 )
 
 Am I doing something wrong? My network is OK and I'm not using any proxy.
 
 Thank you
 
 Plínio
 
 On Monday, November 25, 2013 5:26:05 AM UTC-2, Deniz Kurucu wrote:
 fsrun is a simple high order lein task that run some other tasks when a file 
 modification occurs. Originally, i wanted to run my clojurescript tests 
 automatically and created fsrun. It is my first clojure project, so please 
 keep that in mind :)
 
 github : https://github.com/makkalot/fsrun
 
 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.

-- 
-- 
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] fsrun : file change notifier high order lein task

2013-11-27 Thread Mimmo Cosenza
Great. And remember to add it to the plugins directory as suggested by Phil.
During the wend I'll try to use it in my now project for the same reason you 
created it (i.e. to automagically run the unit tests when an emitted js file 
changes) and I'll let you know about my experience with it.

It could be great if it would be embeddable inside other plugins/libs as a lib 
by well defined API. 

mimmo

On Nov 27, 2013, at 3:34 PM, Deniz Kurucu makka...@gmail.com wrote:

 Thanks, will check docs and will push to clojars.
 
 
 On Wed, Nov 27, 2013 at 2:20 PM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 Deniz,
 you need to install gpg to be able to push a release to clojars.
 
 here is the lein documentation 
 
 When deploying a release that's not a snapshot, Leiningen will attempt to 
 sign it using GPG to prove your authorship of the release. See the deploy 
 guide. for details of how to set that up. The deploy guide includes 
 instructions for deploying to other repositories as well.
 
 and here is the deploy guide
 
 https://github.com/technomancy/leiningen/blob/stable/doc/DEPLOY.md#gpg
 
 mimmo
 
 On Nov 27, 2013, at 12:25 PM, James Reeves ja...@booleanknot.com wrote:
 
 It'll be easier to get feedback if you push it to Clojars. I want to try it 
 out, but not enough to clone the repo and manually install it.
 
 Since it's only version 0.1.0, it's not as if it's expected to be flawless.
 
 - James
 
 
 On 27 November 2013 07:00, Deniz Kurucu makka...@gmail.com wrote:
 Ah yes, sorry it is not on clojars yet. Wanted some feedback before pushing 
 it there :)
 
 
 On Wed, Nov 27, 2013 at 2:26 AM, Plinio Balduino pbaldu...@gmail.com wrote:
 Excellent, Deniz
 
 But I'm getting an error when I try to run for the first time:
 
 Could not find artifact fsrun:fsrun:jar:0.1.0 in central 
 (http://repo1.maven.org/maven2/)
 Could not find artifact fsrun:fsrun:jar:0.1.0 in clojars 
 (https://clojars.org/repo/)
 This could be due to a typo in :dependencies or network issues.
 
 Part of my project.clj:
 
 (defproject blabla 0.1.0-SNAPSHOT
   ; licenses, description, url
   :dependencies [[org.clojure/clojure 1.5.1]]
   :plugins [[fsrun 0.1.0]]
   ; etc etc etc
 )
 
 Am I doing something wrong? My network is OK and I'm not using any proxy.
 
 Thank you
 
 Plínio
 
 On Monday, November 25, 2013 5:26:05 AM UTC-2, Deniz Kurucu wrote:
 fsrun is a simple high order lein task that run some other tasks when a file 
 modification occurs. Originally, i wanted to run my clojurescript tests 
 automatically and created fsrun. It is my first clojure project, so please 
 keep that in mind :)
 
 github : https://github.com/makkalot/fsrun
 
 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.
 
 
 -- 
 -- 
 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

Re: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-26 Thread Mimmo Cosenza
Good. 
I added the version requirement in the README (sorry to have forgotten that 
before).

mimmo

On Nov 26, 2013, at 12:02 PM, Deniz Kurucu makka...@gmail.com wrote:

 Thanks, that worked !
 
 
 On Tue, Nov 26, 2013 at 1:15 AM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 you need to upgrade to leiningen = 2.2.0
 
 lein upgrade # from the terminal
 
 
 On Nov 25, 2013, at 8:18 PM, Deniz Kurucu makka...@gmail.com wrote:
 
 
 
 
 On Mon, Nov 25, 2013 at 8:59 PM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 what are:
 
 - you operating system
 
 Ubuntu 12.04 64 bit
  
 - java virtual machine (java -version # from the terminal)
 
 java version 1.7.0_45
 Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
 Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
 
  
 - leiningen version (lein version # from the terminal)
 
 
 Leiningen 2.1.3 on Java 1.7.0_45 Java HotSpot(TM) 64-Bit Server VM
 
  
 Have you tried to create a project with others lein-template? e.g. 
 
 https://github.com/konrad-garus/cljs-kickoff
 
 Yes, that one works.
  
  
 thanks
 
 mimmo
 
 
 Thanks.
  
 On Nov 25, 2013, at 6:02 PM, Deniz Kurucu makka...@gmail.com wrote:
 
 
 Hi,
 
 both didn't work. Any other ideas ?
 
 lein new cljs-start coolappp
 
 Generating fresh 'lein new' cljs-start project.
 Template resource 'leiningen/new/cljs_start/README.MD' not found.
 
 
 On Mon, Nov 25, 2013 at 5:20 PM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 Hi,
  
 try the following:
 
 rm -rf ~/.m2/repository/cljs-start
 
 and run again
 
 lein new cljs-start youlibname
 
 If this does not work try the following
 
 git clone https://github.com/magomimmo/cljs-start.git
 cd cljs-start
 lein install
 
 
 and try again to create the project with
 
 lein new cljs-start yourlibname
 
 LTM if it works.
 
 mimmo
 
 
 On Nov 25, 2013, at 4:06 PM, Deniz Kurucu makka...@gmail.com wrote:
 
 Hi,
 
 When i run lein new cljs-start wonderful-lib
 
 I'm getting that error and nothing is created.
 
 Generating fresh 'lein new' cljs-start project.
 Template resource 'leiningen/new/cljs_start/README.MD' not found.
 
 Thanks.
 
 
 
 On Mon, Nov 25, 2013 at 4:24 PM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 
 On Nov 25, 2013, at 10:42 AM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 
 I'm preparing an example on how to use cljs-start with an already 
 implemented cljs lib (I'll use hiccups as an example). If you have a 
 little of patient tomorrow should be published. 
 
 
 Hi Tom, here is the sample I was talking about. It use the already 
 implemented hiccups lib to demonstrate by instrumenting it with cljs-start.
 
 https://github.com/magomimmo/cljs-start/blob/master/doc/sample.md
 
 Inside you'll also find a brepling session with the instrumented hiccups. 
 I don't know why nobody documents any brepl session (even me. in the 
 modern-cljs series I should say something more about this task which is 
 very, very important to become productive in cljs). 
 
 I hope to contribute a little bit in modifying for the next year the 
 results of the recent survey conducted by the tireless Chas Emerick.
 
 
 HIH 
 Mimmo
 
 
 
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with 
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 
 -- 
 Note that posts from new members are moderated - please be patient with 
 your first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.
 
 
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with 
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojure+unsubscr...@googlegroups.com.
 For more options

Re: [ANN] fsrun : file change notifier high order lein task

2013-11-26 Thread Mimmo Cosenza
yes, it's very cool
mimmo

On Nov 26, 2013, at 10:31 PM, Phil Hagelberg p...@hagelb.org wrote:

 Cool; this looks really handy. Could you add it to the list of plugins on the 
 Leiningen wiki?
 
 https://github.com/technomancy/leiningen/wiki/Plugins
 
 -Phil
 
 -- 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-25 Thread Mimmo Cosenza
On Nov 25, 2013, at 7:06 AM, Tom Henderson t...@mathpunk.net wrote:

 It works! I've been discouraged-- I liked programming in Clojure, and I had 
 been hoping Clojurescript would be my grand entry into web sites and apps, 
 but trying to learn HTML and CSS and JS and CLJS all at the same time has 
 been too much. This just straight up WORKED. 

I'm glad it allows you keep trying hard!

 
 I don't understand why the (run) command doesn't give me access to the js 
 namespace,

The (run) just start an http server (using ring, composure and enlive libs). 
Here you're still on the server side (clojure). 

 but (browser-repl) works beautifully.

here you are on the client side (cljs) and from here you have access to js. 
 
 Once I figure out how to include a JS library, and maybe get my head around 
 templating, I'll be unstoppable! :D
 

I'm preparing an example on how to use cljs-start with an already implemented 
cljs lib (I'll use hiccups as an example). If you have a little of patient 
tomorrow should be published. 

My best

Mimmo

-- 
-- 
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: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-25 Thread Mimmo Cosenza

On Nov 25, 2013, at 10:42 AM, Mimmo Cosenza mimmo.cose...@gmail.com wrote:

 I'm preparing an example on how to use cljs-start with an already implemented 
 cljs lib (I'll use hiccups as an example). If you have a little of patient 
 tomorrow should be published. 
 

Hi Tom, here is the sample I was talking about. It use the already implemented 
hiccups lib to demonstrate by instrumenting it with cljs-start.

https://github.com/magomimmo/cljs-start/blob/master/doc/sample.md

Inside you'll also find a brepling session with the instrumented hiccups. I 
don't know why nobody documents any brepl session (even me. in the modern-cljs 
series I should say something more about this task which is very, very 
important to become productive in cljs). 

I hope to contribute a little bit in modifying for the next year the results of 
the recent survey conducted by the tireless Chas Emerick.


HIH 
Mimmo


-- 
-- 
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: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-25 Thread Mimmo Cosenza
Hi,
try the following:

rm -rf ~/.m2/repository/cljs-start

and run again

lein new cljs-start youlibname

If this does not work try the following

git clone https://github.com/magomimmo/cljs-start.git
cd cljs-start
lein install


and try again to create the project with

lein new cljs-start yourlibname

LTM if it works.

mimmo


On Nov 25, 2013, at 4:06 PM, Deniz Kurucu makka...@gmail.com wrote:

 Hi,
 
 When i run lein new cljs-start wonderful-lib
 
 I'm getting that error and nothing is created.
 
 Generating fresh 'lein new' cljs-start project.
 Template resource 'leiningen/new/cljs_start/README.MD' not found.
 
 Thanks.
 
 
 
 On Mon, Nov 25, 2013 at 4:24 PM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 
 On Nov 25, 2013, at 10:42 AM, Mimmo Cosenza mimmo.cose...@gmail.com wrote:
 
 I'm preparing an example on how to use cljs-start with an already 
 implemented cljs lib (I'll use hiccups as an example). If you have a little 
 of patient tomorrow should be published. 
 
 
 Hi Tom, here is the sample I was talking about. It use the already 
 implemented hiccups lib to demonstrate by instrumenting it with cljs-start.
 
 https://github.com/magomimmo/cljs-start/blob/master/doc/sample.md
 
 Inside you'll also find a brepling session with the instrumented hiccups. I 
 don't know why nobody documents any brepl session (even me. in the 
 modern-cljs series I should say something more about this task which is very, 
 very important to become productive in cljs). 
 
 I hope to contribute a little bit in modifying for the next year the results 
 of the recent survey conducted by the tireless Chas Emerick.
 
 
 HIH 
 Mimmo
 
 
 
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 
 -- 
 Note that posts from new members are moderated - please be patient with your 
 first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-25 Thread Mimmo Cosenza
what are:

- you operating system
- java virtual machine (java -version # from the terminal)
- leiningen version (lein version # from the terminal)

Have you tried to create a project with others lein-template? e.g. 

https://github.com/konrad-garus/cljs-kickoff
 
thanks

mimmo

On Nov 25, 2013, at 6:02 PM, Deniz Kurucu makka...@gmail.com wrote:

 
 Hi,
 
 both didn't work. Any other ideas ?
 
 lein new cljs-start coolappp
 
 Generating fresh 'lein new' cljs-start project.
 Template resource 'leiningen/new/cljs_start/README.MD' not found.
 
 
 On Mon, Nov 25, 2013 at 5:20 PM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 Hi,
  
 try the following:
 
 rm -rf ~/.m2/repository/cljs-start
 
 and run again
 
 lein new cljs-start youlibname
 
 If this does not work try the following
 
 git clone https://github.com/magomimmo/cljs-start.git
 cd cljs-start
 lein install
 
 
 and try again to create the project with
 
 lein new cljs-start yourlibname
 
 LTM if it works.
 
 mimmo
 
 
 On Nov 25, 2013, at 4:06 PM, Deniz Kurucu makka...@gmail.com wrote:
 
 Hi,
 
 When i run lein new cljs-start wonderful-lib
 
 I'm getting that error and nothing is created.
 
 Generating fresh 'lein new' cljs-start project.
 Template resource 'leiningen/new/cljs_start/README.MD' not found.
 
 Thanks.
 
 
 
 On Mon, Nov 25, 2013 at 4:24 PM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 
 On Nov 25, 2013, at 10:42 AM, Mimmo Cosenza mimmo.cose...@gmail.com wrote:
 
 I'm preparing an example on how to use cljs-start with an already 
 implemented cljs lib (I'll use hiccups as an example). If you have a little 
 of patient tomorrow should be published. 
 
 
 Hi Tom, here is the sample I was talking about. It use the already 
 implemented hiccups lib to demonstrate by instrumenting it with cljs-start.
 
 https://github.com/magomimmo/cljs-start/blob/master/doc/sample.md
 
 Inside you'll also find a brepling session with the instrumented hiccups. I 
 don't know why nobody documents any brepl session (even me. in the 
 modern-cljs series I should say something more about this task which is 
 very, very important to become productive in cljs). 
 
 I hope to contribute a little bit in modifying for the next year the results 
 of the recent survey conducted by the tireless Chas Emerick.
 
 
 HIH 
 Mimmo
 
 
 
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 
 -- 
 Note that posts from new members are moderated - please be patient with your 
 first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.
 
 
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 
 -- 
 Note that posts from new members are moderated - please be patient with your 
 first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-25 Thread Mimmo Cosenza
you need to upgrade to leiningen = 2.2.0

lein upgrade # from the terminal

On Nov 25, 2013, at 8:18 PM, Deniz Kurucu makka...@gmail.com wrote:

 
 
 
 On Mon, Nov 25, 2013 at 8:59 PM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 what are:
 
 - you operating system
 
 Ubuntu 12.04 64 bit
  
 - java virtual machine (java -version # from the terminal)
 
 java version 1.7.0_45
 Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
 Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
 
  
 - leiningen version (lein version # from the terminal)
 
 
 Leiningen 2.1.3 on Java 1.7.0_45 Java HotSpot(TM) 64-Bit Server VM
 
  
 Have you tried to create a project with others lein-template? e.g. 
 
 https://github.com/konrad-garus/cljs-kickoff
 
 Yes, that one works.
  
  
 thanks
 
 mimmo
 
 
 Thanks.
  
 On Nov 25, 2013, at 6:02 PM, Deniz Kurucu makka...@gmail.com wrote:
 
 
 Hi,
 
 both didn't work. Any other ideas ?
 
 lein new cljs-start coolappp
 
 Generating fresh 'lein new' cljs-start project.
 Template resource 'leiningen/new/cljs_start/README.MD' not found.
 
 
 On Mon, Nov 25, 2013 at 5:20 PM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 Hi,
  
 try the following:
 
 rm -rf ~/.m2/repository/cljs-start
 
 and run again
 
 lein new cljs-start youlibname
 
 If this does not work try the following
 
 git clone https://github.com/magomimmo/cljs-start.git
 cd cljs-start
 lein install
 
 
 and try again to create the project with
 
 lein new cljs-start yourlibname
 
 LTM if it works.
 
 mimmo
 
 
 On Nov 25, 2013, at 4:06 PM, Deniz Kurucu makka...@gmail.com wrote:
 
 Hi,
 
 When i run lein new cljs-start wonderful-lib
 
 I'm getting that error and nothing is created.
 
 Generating fresh 'lein new' cljs-start project.
 Template resource 'leiningen/new/cljs_start/README.MD' not found.
 
 Thanks.
 
 
 
 On Mon, Nov 25, 2013 at 4:24 PM, Mimmo Cosenza mimmo.cose...@gmail.com 
 wrote:
 
 On Nov 25, 2013, at 10:42 AM, Mimmo Cosenza mimmo.cose...@gmail.com wrote:
 
 I'm preparing an example on how to use cljs-start with an already 
 implemented cljs lib (I'll use hiccups as an example). If you have a 
 little of patient tomorrow should be published. 
 
 
 Hi Tom, here is the sample I was talking about. It use the already 
 implemented hiccups lib to demonstrate by instrumenting it with cljs-start.
 
 https://github.com/magomimmo/cljs-start/blob/master/doc/sample.md
 
 Inside you'll also find a brepling session with the instrumented hiccups. I 
 don't know why nobody documents any brepl session (even me. in the 
 modern-cljs series I should say something more about this task which is 
 very, very important to become productive in cljs). 
 
 I hope to contribute a little bit in modifying for the next year the 
 results of the recent survey conducted by the tireless Chas Emerick.
 
 
 HIH 
 Mimmo
 
 
 
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with 
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 
 -- 
 Note that posts from new members are moderated - please be patient with 
 your first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.
 
 
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 
 -- 
 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

[ANN] cljs-start 0.0.5

2013-11-24 Thread Mimmo Cosenza
I just updated the cljs-start lein template which allows you to start creating 
you wonderful cljs lib with batteries included.

https://github.com/magomimmo/cljs-start

 lein new cljs-start yourlibname
 cd yourlibname
 lein do compile, test
 lein rep

user= (run) ; run the http server to be ready for brepling with the cljs lib
user= (browser-repl) ; use austin to create the brepl

Visit localhost:3000 for activating the brepl connection and start brepling.

Many thanks to Chas for having created Austin and clojurescript.test and to 
David for being such an amazing clj/cljs coder and for pushing us to stay 
updated with him. 

HIH

mimmo
 

 


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Red Tape Form Validation - a style question

2013-11-24 Thread Mimmo Cosenza
Nice lib. I didn't know about it. 
Personally I use https://github.com/cemerick/valip for form validation because 
it allows me to share the validation rules (and unit tests too) between clojure 
and clojurescript (by adding clojurescript.test, clix and cljsbuild crossovers 
setting) and still be able to have specific validation on both sides. 

You can eventually take a look at those mechanics starting from 
https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-14.md  

I'll take a deeper look at the red-tape lib. Thanks for the link. 

mimmo

On Nov 24, 2013, at 10:48 AM, David Simmons shortlypor...@gmail.com wrote:

 Hi Folks
 
 I've been looking at the red-tape form validation library and really like it 
 (especially coming from a Django background). The one thing that makes me 
 nervous is that the when validating data it uses exceptions if the data is 
 invalid. 
 I'd read somewhere that you should only use exceptions for error conditions 
 you can't predict - I'd have thought that form validation was an example of 
 where you'd expect there to be errors and hence handle them.
 
 My question is: Do people think that the use of exceptions in this way is a 
 reasonable approach?
 
 BTW I think the library is great and the documentation first class so I'm in 
 no way criticizing the author.
 
 Cheers
 
 Dave 
 
 -- 
 -- 
 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ClojureScript] ANN: ClojureScript 0.0-2075

2013-11-23 Thread Mimmo Cosenza
unrestrainable :-)
thanks!

On Nov 23, 2013, at 4:04 PM, David Nolen dnolen.li...@gmail.com wrote:

 Just pushed out 0.0-2080, fixes a regression around inference and adds 
 unsigned-bit-shift-right to keep in sync with the Clojure 1.6 alphas.
 
 David
 
 
 On Fri, Nov 22, 2013 at 7:44 PM, David Nolen dnolen.li...@gmail.com wrote:
 Following the last announcement, the only significant changes are CLJS-681 
 which is Windows source map support and improved numeric checks.
 
 David
 
 
 -- 
 Note that posts from new members are moderated - please be patient with your 
 first post.
 --- 
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.



signature.asc
Description: Message signed with OpenPGP using GPGMail


[ANN] Major update of modern-cljs

2013-11-20 Thread Mimmo Cosenza
Hi all,
I just updated all the modern-cljs tutorials to the latest available libs and 
plugins. 

it has been a true PITA, because in few weeks a lot of libs/plugins used in the 
modern-cljs series of tutorials on ClojureScript have been considerably updated 
(and I had to update all the branches, one for each of the current 22 
tutorials).

It took me a full day to be able to make the updates (hopefully without too 
many errors) and there is no a more boring work that this (the only competitor 
being unit testing). 

Here is the link

https://github.com/magomimmo/modern-cljs.git

I'm exhaust.

HIH

By best

Mimmo






signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] cljs-start with batteries included

2013-11-18 Thread Mimmo Cosenza
Hi, I just updated the cljs-start lein-template to create a cljs lib with 
batteries included:

- directories layout of a cljs lib project
- cljsbuild configurations
- clojurescript.test configuration and setup
- brepl connection 

The most significant update regards the substitution of the piggieback lib with 
the austin plugins from Chas Emerick. 

All the Austin use cases should work as expected (but I did not test them 
intensively). 

To create a new cljs lib with batteries included:

lein new cljs-start wonderful-lib
cd wonderful-lib
lein compile
lein test

To connect the be repl:

lein repl
Compiling ClojureScript.
nREPL server started on port 55101 on host 127.0.0.1
REPL-y 0.2.1
Clojure 1.5.1
Docs: (doc function-name-here)
  (find-doc part-of-name-here)
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

ring.server=


Then run the http-server

ring.server= (run)
2013-11-18 22:54:42.997:INFO:oejs.Server:jetty-7.6.8.v20121106
2013-11-18 22:54:43.026:INFO:oejs.AbstractConnector:Started 
SelectChannelConnector@0.0.0.0:3000
#Server org.eclipse.jetty.server.Server@3e522509
ring.server=

Next create the brepl environment and launch it

ring.server= (def repl-env (reset! cemerick.austin.repls/browser-repl-env
(cemerick.austin/repl-env)))
Browser-REPL ready @ http://localhost:55146/5840/repl/start
#'ring.server/repl-env
ring.server= (cemerick.austin.repls/cljs-repl repl-env)
Type `:cljs/quit` to stop the ClojureScript REPL
nil
cljs.user=

Finally, just visit the localhost:3000 url, wait a moment and then you can go 
back to brepl in clojurescript for supporting the development of your wonderful 
cljs lib.

HIH

Mimmo


On Oct 31, 2013, at 11:33 PM, Mimmo Cosenza mimmo.cose...@gmail.com wrote:

 Hi all,
 I just create a simple leon-template to create CLJS libs with batteries 
 included:
 
 - separation of concerns between the user view and the dev view of the 
 created lib (obtained by using the profiles.clj local to the project
 - http server and brepl (with piggieback by Chas) to bREPLing with the 
 project (everything is kept separated in the profiles.clj)
 - unit test lib included (clojurescript.test by Chas)
 - compilatation included of each build optimisation
 - test-command already defined for phantoms
 - and few other minutiae
 
 I also started to write a quick README to use it.
 
 https://github.com/magomimmo/cljs-start
 
 Here is a very quick start
 
 lein new cljs-start your-project
 cd your-project
 lein compile
 lein test
 
 To connect with the browser
 
 lein repl
 (require '[ring.server :as http])
  (http/run)
  (browser-repl)
 
 Now visit localhost:3000 and wait a moment to go back to repl
 
 cljs.user (cemerick.cljs.test/run-all-tests)
 
 To generate the jar
 
 lein jar
 
 Everything is just started, so be benevolent with me. 
 
 Feedback are appreciated, even the bad ones.
 
 HIH 
 
 mimmo



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Step by step debugging

2013-11-07 Thread Mimmo Cosenza
Hi Lee,
you made me cry (almost). 

I've been working in the eighties on Lisp Machine (both Symbolics and Texas 
Instruments) and I still have to see a programming environment comparable to 
the one I was using 30 years ago. At the moment we're still far way from those 
happy days. 

Well written!

My Best

Mimmo
  
On Nov 7, 2013, at 6:32 PM, Lee Spector lspec...@hampshire.edu wrote:

 
 I'd like to chime in here from a background that involved a lot of Common 
 Lisping back in the day.
 
 I have been continually dismayed, as I've moved further from Common Lisp, 
 that debugging facilities that are so basic and ubiquitous and helpful in 
 that world are considered exotic or specialized or necessarily tied to 
 particular IDEs or tool chains in other language ecosystems.
 
 Even more basic (and useful, in my experience) than things like steppers or 
 the ability to set break points is the ability just to see the values of 
 locals when an error occurs. This is so obviously useful, and so obviously 
 doable (for decades), that I'm really quite stunned that it's so complicated 
 to do in Clojure and tied to a particular toolset if you can do it at all.
 
 In Common Lisp when you hit an error you're thrown into a break loop REPL in 
 which you can view locals, move up and down the stack, and do lots of other 
 fancier things (re-binding things, restarting...) that are probably useful in 
 some situations, but just being able to see the locals is, in my experience, 
 the really huge win. It doesn't matter what IDE you're using or if you're 
 running it from a command line or whatever -- it's part of the language and 
 easy to access no matter how you write and run your code. And my guess is 
 that every Common Lisper takes advantage of this frequently. Different 
 implementations/environments provide different modes of access to this 
 information (e.g. some are GUI-based, and in emacs you can have interactive 
 access to it using interaction conventions that seemed like a good idea in 
 the 1970s :-), but there's always some way to get the information. 
 
 By contrast in Clojure this information seems really hard to come by. I saw 
 and was excited by a Ritz video -- and I note the enthusiastic applause from 
 the crowd when it was shown that you could see locals (gasp!) -- but my 
 understanding is that this functionality requires commitment to an 
 Emacs-based tool set with all that that implies (which is a lot, IMHO).
 
 When I hit an error running my code from lein run or from Clooj or from 
 Eclipse/CCW (or I think from any other way that I might run it) I get (or can 
 easily get) a backtrace that shows the function call stack at the time of the 
 error... which is good, but surely (?) the locals are also available when the 
 backtrace is produced and I really also want to see those. The ability to 
 browse and navigate this information dynamically, as in a Common Lisp break 
 loop, is cool but I can understand that something about the Clojure/JVM 
 execution architecture might make that difficult -- maybe that really would 
 have to be tied to a particular IDE? However, if it would just dump all of 
 the values of the locals to standard output, just like it does already with 
 the trace, then I'd be plenty happy since I could dig through that output to 
 find what I need but can't currently get. (Yes, dumping the values of all of 
 the locals might produce a lot of output and yes, one might want to make this 
 an option that could be turned off or on, maybe including options re: limits 
 on how much of sequences to print, etc.)
 
 I guess the bottom line of this long message (sorry) is that I hope that some 
 of the great tool developers in this community will continue to consider 
 providing things like debugging tools that are as untethered as possible from 
 particular IDEs. My impression is that nrepl (and maybe other projects) are 
 intended to help untether things in this way, but it still seems like a lot 
 of people assume that something like access to locals should naturally be 
 tied to a specific IDE. From my perspective that seems like a really 
 unfortunate assumption. I realize that debugging tools are unlikely to become 
 part of the language in Clojure as they are in Common Lisp, but I think 
 there's an important middle ground between that and being available only 
 within some specific IDE.
 
 Thanks,
 
 -Lee
 
 
 phillip.l...@newcastle.ac.uk (Phillip Lord) writes:
 
 Ritz does some things, but it doesn't do step through like edebug.
 
 I've never found anything as nice as edebug in any language; I guess,
 it's the big advantage of running your editor and whatever you are
 debugging in the environment.
 
 -- 
 -- 
 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 

Re: [ClojureScript] [ANN] cljs-start with batteries included

2013-11-01 Thread Mimmo Cosenza
Yeah,
yestarday I forgot to publish the release 0.0.1. Sorry about that. I did it 
this morning. 

Now it should works.

Could you confirm me please?

Thanks so much.

Mimmo

p.s. In the next release I think I'm going to add both :crossovers and :clix in 
such a way to have a complete starting setup. Have you any more needs to start 
from?

 
On Nov 1, 2013, at 9:26 AM, Shantanu Kumar kumar.shant...@gmail.com wrote:

 Hi Mimmo,
 
 I think it is a really nice project, but I was not able to run it 
 successfully:
 
 $ lein new cljs-start foo
 Failed to resolve version for cljs-start:lein-template:jar:RELEASE: Could not 
 find metadata cljs-start:lein-template/maven-metadata.xml in local 
 (/home/shantanukumar/.m2/repository)
 This could be due to a typo in :dependencies or network issues.
 If you are behind a proxy, try setting the 'http_proxy' environment variable.
 Could not find template cljs-start on the classpath.
 
 I saw that on Clojars it has only SNAPSHOT versions are uploaded: 
 https://clojars.org/cljs-start/lein-template -- could that be a reason why it 
 does not automatically download the template? I am running Leiningen 2.3.3 
 with Java 7 on 64-bit Linux.
 
 Shantanu
 
 On Friday, 1 November 2013 04:03:32 UTC+5:30, Magomimmo wrote:
 Hi all,
 I just create a simple leon-template to create CLJS libs with batteries 
 included:
 
 - separation of concerns between the user view and the dev view of the 
 created lib (obtained by using the profiles.clj local to the project
 - http server and brepl (with piggieback by Chas) to bREPLing with the 
 project (everything is kept separated in the profiles.clj)
 - unit test lib included (clojurescript.test by Chas)
 - compilatation included of each build optimisation
 - test-command already defined for phantoms
 - and few other minutiae
 
 I also started to write a quick README to use it.
 
 https://github.com/magomimmo/cljs-start
 
 Here is a very quick start
 
 lein new cljs-start your-project
 cd your-project
 lein compile
 lein test
 
 To connect with the browser
 
 lein repl
 (require '[ring.server :as http])
  (http/run)
  (browser-repl)
 
 Now visit localhost:3000 and wait a moment to go back to repl
 
 cljs.user (cemerick.cljs.test/run-all-tests)
 
 To generate the jar
 
 lein jar
 
 Everything is just started, so be benevolent with me. 
 
 Feedback are appreciated, even the bad ones.
 
 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 http://groups.google.com/group/clojurescript.



signature.asc
Description: Message signed with OpenPGP using GPGMail


  1   2   >