Re: CloudFormation template generation with Clojure

2013-11-25 Thread Craig
I don't know much about CF templates, but stripping some detail from your middle fragment moves further from data and to a DSL: (deftemplate my-template :aws-template-format-version "2010-09-09" :description "My description" (param my-parameter :type :string :description "My string para

Re: println / for unexpected behaviour

2013-11-25 Thread edward
Thanks Stefan. I had a suspicion that it was to do with for's laziness but I had assumed it was a characteristic of the seq it built rather than the forms inside it. Seems a bit strange but will have to get used to it :-) On Monday, November 25, 2013 2:11:45 PM UTC, Stefan Kamphausen wrote: > >

Re: println / for unexpected behaviour

2013-11-25 Thread edward
Thanks very much Cedric. (What do you mean by: 'Clearly "board" is a chunked seq in this case.'?) On Monday, November 25, 2013 1:58:36 PM UTC, Cedric Greevey wrote: > > Clearly "board" is a chunked seq in this case. > > Use doseq when you want side effects for-each of some seqable, but don't > c

ANN: core.logic 0.8.5

2013-11-25 Thread David Nolen
This release represents a fairly significant change to the simple DB functionality that core.logic provides - instead of a mess of mutable atoms thanks to Norman Richard we now store facts in a persistent data structure. This is likely a breaking change for some people, but it's a long outstanding

Re: [ANN] Optimus - a Ring middleware for frontend performance optimization.

2013-11-25 Thread Paul Biggar
[FYI: I'm the author/forker of stefon] These libraries aren't bad, but to be honest, I think we've done it all wrong. We're just all scratching our own itches, not writing reusable components (unlike most of the rest of the clojure web ecosystem). If you look at stefon, you get a set of non-com

CloudFormation template generation with Clojure

2013-11-25 Thread Kevin Bell
Hey folks, I'm working on a tool to enable the generation of AWS CloudFormation templates using a Clojure-based syntax kind of like leiningen's project.clj. I'm working on how the syntax should look to be most clojurey, and I wonder if anyone has some input: https://gist.github.com/bellkev/7653

Re: [ANN] clojure.java.jdbc 0.3.0-beta2 BREAKING CHANGES!

2013-11-25 Thread Sean Corfield
The auto-generated documentation has been updated (thank you Tom!): http://clojure.github.io/java.jdbc/ This separates the documentation clearly into new API and deprecated API. Feedback on docstrings in the new API appreciated (via s...@corfield.org or issues on JIRA if you feel inclined to prov

Re: Clojure CLR versioning and binary downloads

2013-11-25 Thread Frank Hale
It'd be great if this page http://clojure.org/downloads could reflect Clojure JVM, Clojure CLR, Clojurescript or relevant info on how to easily obtain the necessary software to get started. Sure, it's not all that difficult if you are curious and don't mind poking around for a few minutes but I do

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 wrote: > > > > On Mon, Nov 25, 2013 at 8:59 PM, Mimmo Cosenza > wrote: > what are: > > - you operating system > > Ubuntu 12.04 64 bit > > - java virtual machine (java -v

Re: .cljrc

2013-11-25 Thread dgrnbrg
Another great feature of Leiningen is the :injections key in project.clj. This lets you run arbitrary code on the Leiningen-managed JVM startup. I recommend this when using Spyscope, which is a debugging tool that only needs to be required before you can use it: https://github.com/dgrnbrg/spysc

Re: [ANN] Optimus - a Ring middleware for frontend performance optimization.

2013-11-25 Thread Magnar Sveen
Thanks for the link to cornet. Must be the kerning on my font, since I read comet. :-) I'll definitely check it out. At first glance it looks like a replacement for Dieter/Stefon, more focused on transpiling than optimization. I can't see any mention of it tackling problems like cache busting,

Re: Clojure CLR versioning and binary downloads

2013-11-25 Thread Frank Hale
Awesome! Thanks Alex. On the current Clojure downloads page it's simple to get a copy of the JVM Clojure but it's not as simple to get a copy of the CLR Clojure. It'd be nice if a direct link could be made to make it just as easy to obtain the CLR version from the SourceForge page here: http://so

Re: Clojure CLR versioning and binary downloads

2013-11-25 Thread Alex Miller
I added a link here http://clojure.org/clojureclr to the binary download wiki page. I'm happy to update this page in whatever way people find useful - feel free to ping me on email David, Frank, or others. On Monday, November 25, 2013 12:48:51 PM UTC-6, Frank Hale wrote: > > Are there any plans

Re: expand a form

2013-11-25 Thread Alex Miller
You might find tools.trace useful for examining a form as it is executed. https://github.com/clojure/tools.trace On Monday, November 25, 2013 6:55:27 AM UTC-6, Andy Smith wrote: > > Hi, > > I am new to clojure and I was wondering if there is a macro I can use to > fully expand all symbols and

Re: [ANN] Optimus - a Ring middleware for frontend performance optimization.

2013-11-25 Thread Jason Bennett
Ok, thanks for the reply. Cornet is at https://github.com/cosmi/cornet, it's similar to stefon. I believe there are some existing middlewares for ring that do similar things (like wrap-not-modified). Do you replace this or work with it? jason On Monday, November 25, 2013 11:10:54 AM UTC-8, Mag

Re: T-shirts?

2013-11-25 Thread Paul Bostrom
The light-colored shirts have a bug...or is it a feature? On Monday, November 25, 2013 2:29:21 PM UTC-6, Gareth Jones wrote: > > This shirt appears to be complecting fashion, programming, AND advertising. > > > On Mon, Nov 25, 2013 at 11:17 AM, Laurent PETIT > > > wrote: > >> Hey Bruce, >> >> 20

Re: Clojure style

2013-11-25 Thread Frank Hale
Thank you. My example was contrived as I was reading through the Clojure style guide (linked below). This kind of thing isn't specifically mentioned so I had the urge to try it and it works. That got me thinking that this would likely be bad style (hackish). I started Googling but did not find anyt

Re: Clojure style

2013-11-25 Thread Gary Trakhman
Yes, I'd consider this bad style, for one, you don't get the arglists metadata showing the names of variables during a repl session. That metadata is on the var, and not the function itself. I'm not familiar with Math/pow's function signature off the top of my head. I would consider it only in t

Clojure style

2013-11-25 Thread Frank Hale
Given the following code snippet would declaring a Var with an anonymous function be considered bad style? Would there be any real use cases where this would be regarded as a cleaner mechanism to declare a function rather than declaring one with defn? user=> (def pow #(Math/pow %1 %2)) #'user/pow

Re: expand a form

2013-11-25 Thread Gary Verhaegen
Not sure it covers what you're asking for, but if you want to manually step through your function calls, you can use syntax-quote, provided that you have access to the spurce code of the functions you want to step through. Or you can try the debuggers in Clojure-enabled IDEs like Eclipse and Intel

Re: expand a form

2013-11-25 Thread John D. Hume
You won't find the results as easy to read as what you're asking for, but clojure.tools.analyzer will show you calls that have been inlined by the compiler. On Nov 25, 2013 2:24 PM, "Andy Smith" wrote: > In your example a full expansion might be : (. clojure.lang.Numbers (add > 10 1)) > > > On Mo

Re: T-shirts?

2013-11-25 Thread gaz jones
This shirt appears to be complecting fashion, programming, AND advertising. On Mon, Nov 25, 2013 at 11:17 AM, Laurent PETIT wrote: > Hey Bruce, > > 2013/11/25 Bruce Durling : > > Yay! Thanks Rich! > > > > Good picture of you. Have you been working out before taking those > > shots in the t-shirt

Re: expand a form

2013-11-25 Thread Andy Smith
In your example a full expansion might be : (. clojure.lang.Numbers (add 10 1)) On Monday, 25 November 2013 17:16:42 UTC, Guru Devanla wrote: > > Hi Andy, > > Not sure what you need in terms of function calls being expanded. Can you > provide an example. > > Here is an silly example, even thoug

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

2013-11-25 Thread Deniz Kurucu
On Mon, Nov 25, 2013 at 8:59 PM, Mimmo Cosenza 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 (buil

Re: [ANN] Optimus - a Ring middleware for frontend performance optimization.

2013-11-25 Thread Magnar Sveen
Hi Jason! Magnar, could you talk a little about how your project is better > than/different from Stefon/dieter and cornet? I feel like we have a lot of > these projects now, all doing mostly the same thing. > Thanks for asking. I'll try to shed some light on the differences as I see them, and

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

Re: Clojure CLR versioning and binary downloads

2013-11-25 Thread Frank Hale
Are there any plans to directly link the CLR downloads on the Clojure downloads page on Clojure.org? I think it may be helpful to do that because it's a bit difficult to get to the SourceForge download site by first going to Clojure.org. The link on Clojure.org takes you to the Github repo, there y

Re: Clojure CLR versioning and binary downloads

2013-11-25 Thread Frank Hale
Thanks David for this information, I really appreciate the work you (and others) are doing on the CLR version. On Sun, Nov 24, 2013 at 7:56 AM, Shantanu Kumar wrote: > I am trying to run some tests (that worked fine with Mono+ClojureCLR > 1.4.1) in Mono+ClojureCLR 1.5.0 from SourceForge and find

Re: [ANN] Optimus - a Ring middleware for frontend performance optimization.

2013-11-25 Thread Jason Bennett
Magnar, could you talk a little about how your project is better than/different from Stefon/dieter and cornet? I feel like we have a lot of these projects now, all doing mostly the same thing. I also don't totally understand why they're all done as Ring middleware instead of lein/maven plugins.

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-25 Thread Ryan Spangler
Jim, Thanks for the note! Yeah we have been talking about ways to make the immutant download optional, so that solves that problem, thanks! It will be coming out in the next release. As for the "app/" dir, it is configurable between environments, as long as people know about it. I can make tha

Re: T-shirts?

2013-11-25 Thread Laurent PETIT
Hey Bruce, 2013/11/25 Bruce Durling : > Yay! Thanks Rich! > > Good picture of you. Have you been working out before taking those > shots in the t-shirt? It's a direct side-effect of following Clojure's strengths in your life: simplicity, power, focus ;-) -- -- You received this message because

Re: expand a form

2013-11-25 Thread Guru Devanla
Hi Andy, Not sure what you need in terms of function calls being expanded. Can you provide an example. Here is an silly example, even though this kind of macro is not needed: (def addone [v] (+ v 1) (defmacro testmacro [init] (list 'addone init)) (macroexpand '(testmacro 10)) expands t

Re: [ANN] Optimus - a Ring middleware for frontend performance optimization.

2013-11-25 Thread Murtaza Husain
Magnar, Thanks for the project ! Nicely fills up a void. Thanks, Murtaza On Monday, November 25, 2013 3:30:10 AM UTC+5:30, Magnar Sveen wrote: > > I just open sourced optimus. README and code here: > https://github.com/magnars/optimus

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

2013-11-25 Thread Deniz Kurucu
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 wrote: > Hi, > > try the following: > > rm -rf ~/.m2/reposito

[ANN] Overtone 0.9.0 Released

2013-11-25 Thread Samuel Aaron
Hi there noise polluters! It's that glorious time again - another version of Overtone has forced its timbral wings out of its cocoon. 0.9.0 is here and is edgy. It was so edgy, that it burst into flames and mutated into 0.9.1 before a blink of the eye![1] This release represents a fundamental s

Re: T-shirts?

2013-11-25 Thread Bruce Durling
Yay! Thanks Rich! Good picture of you. Have you been working out before taking those shots in the t-shirt? cheers, Bruce On Mon, Nov 25, 2013 at 4:31 PM, Rich Hickey wrote: > Official T shirts are finally available! > > http://clojure.org/swag > > Thanks for your support, > > Rich > > On Jul 29

Re: T-shirts?

2013-11-25 Thread Rich Hickey
Official T shirts are finally available! http://clojure.org/swag Thanks for your support, Rich On Jul 29, 2013, at 5:27 PM, s...@ummon.com wrote: > Speaking as the person who "made" the 'Clojure = Simplicity' hoody/t-shirt, I > am more than happy to assign it to the clojure community if wante

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 yourli

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

2013-11-25 Thread Deniz Kurucu
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 wrote: > > On Nov 25, 2013

Re: .cljrc

2013-11-25 Thread Moritz Ulrich
Leiningen profiles in ~/.lein/profiles.clj will be merged into the current project.clj by leiningen. Also dumented in https://github.com/technomancy/leiningen/blob/stable/doc/PROFILES.md On Mon, Nov 25, 2013 at 3:34 PM, Dave Tenny wrote: > With all my attention on trying to learn things about clo

.cljrc

2013-11-25 Thread Dave Tenny
With all my attention on trying to learn things about clojure, I've either missed or forgotten how do to a simple thing. As I learn clojure I'm writing a few definitions that represent tools I like to use in development. What is the simplest way to have those tools present in arbitrary clojure

Re: expand a form

2013-11-25 Thread Andy Smith
It doesnt seem to expand function calls though right? On Monday, 25 November 2013 12:55:27 UTC, Andy Smith wrote: > > Hi, > > I am new to clojure and I was wondering if there is a macro I can use to > fully expand all symbols and macros in a form, without performing the final > evaluation of the

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

2013-11-25 Thread Mimmo Cosenza
On Nov 25, 2013, at 10:42 AM, Mimmo Cosenza 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. I

Re: Spit seems to use incorrect line terminator on Windoze

2013-11-25 Thread Alex Miller
PrintWriter has a different api than spit. PrintWriter has the ability to print objects and also the ability to "println" objects. When printing a "line", it inserts the host-specific new line characters. If you print a String with PrintWriter, it will be exactly the string you tell it (new lin

Re: println / for unexpected behaviour

2013-11-25 Thread Stefan Kamphausen
Hi Edward, you are being hit by laziness here. Clojure's 'for' is not like the 'for' you may know from other programming languages. It is made for list comprehensions, that is it is building new list-y things. It does not do this instantly, the items may be realized only when the caller ask

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

2013-11-25 Thread Phillip Lord
Deniz Kurucu writes: > 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://gi

Re: println / for unexpected behaviour

2013-11-25 Thread Cedric Greevey
Clearly "board" is a chunked seq in this case. Use doseq when you want side effects for-each of some seqable, but don't care about the return values. The arguments for doseq are identical to those for for, but a) doseq will return nil and b) if the output of for was discarded (rather than the repl

Re: println / for unexpected behaviour

2013-11-25 Thread Ambrose Bonnaire-Sergeant
Hi Edward, I believe the return value of your expression is (nil nil nil nil ...), but the printlns are forced just after the ( is printed. Thanks, Ambrose On Mon, Nov 25, 2013 at 9:14 PM, wrote: > Some (println) weirdness (board is a vector to vectors): > > (println (board 0)) > (println (bo

println / for unexpected behaviour

2013-11-25 Thread edward
Some (println) weirdness (board is a vector to vectors): (println (board 0)) (println (board 1)) (println (board 2)) (println (board 3)) (println (board 4)) (println (board 5)) (println (board 6)) (println (board 7)) Works as I would expect, printing to the console. However: (for [row board]

Re: expand a form

2013-11-25 Thread Guru Devanla
Hi Andy, Doesn't macroexpand do what you are looking for? Thx On Mon, Nov 25, 2013 at 4:55 AM, Andy Smith wrote: > Hi, > > I am new to clojure and I was wondering if there is a macro I can use to > fully expand all symbols and macros in a form, without performing the final > evaluation of the

expand a form

2013-11-25 Thread Andy Smith
Hi, I am new to clojure and I was wondering if there is a macro I can use to fully expand all symbols and macros in a form, without performing the final evaluation of the built in functions? Thanks Andy -- -- You received this message because you are subscribed to the Google Groups "Clojure

Re: Spit seems to use incorrect line terminator on Windoze

2013-11-25 Thread Tim Visher
On Mon, Nov 25, 2013 at 6:29 AM, Cedric Greevey wrote: > (println) outputs nothing *but* the host's line terminator. Note that you have not embedded a "\n" character in anything in that example. What does (println "\n") print? -- In Christ, Timmy V. http://blog.twonegatives.com/ http://five.

Re: Spit seems to use incorrect line terminator on Windoze

2013-11-25 Thread Cedric Greevey
(println) outputs nothing *but* the host's line terminator. On Mon, Nov 25, 2013 at 6:22 AM, Tim Visher wrote: > On Mon, Nov 25, 2013 at 6:18 AM, Cedric Greevey > wrote: > > And yet it does happen, with PrintWriter and similar. Consider the > output of > > (println) on different operating syst

Re: Spit seems to use incorrect line terminator on Windoze

2013-11-25 Thread Tim Visher
On Mon, Nov 25, 2013 at 6:18 AM, Cedric Greevey wrote: > And yet it does happen, with PrintWriter and similar. Consider the output of > (println) on different operating systems. Do you have an example of println converting a "\n" character embedded in a string to the host's line terminator? --

Re: Spit seems to use incorrect line terminator on Windoze

2013-11-25 Thread Cedric Greevey
And yet it does happen, with PrintWriter and similar. Consider the output of (println) on different operating systems. On Mon, Nov 25, 2013 at 12:59 AM, Stefan Kamphausen wrote: > I agree with Alex. I would not want any magic to happen > to my string. > > Best, > Stefan > > -- > -- > You receive

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

2013-11-25 Thread Mimmo Cosenza
On Nov 25, 2013, at 7:06 AM, Tom Henderson 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 mu