Re: Question concerning eval

2016-01-14 Thread adrian . medina
You need to quote the entire vector `avec`, because otherwise the function you want to bind to `foo` will be evaluated before being evaluated by the `let` special operator, which expects only standard readable object literals to be embedded. Try changing: (def avec ['p true 'foo (fn

Re: [ANN] New clojure.org!

2016-01-14 Thread Marc O'Morain
Very nice! Good job all. On 14 January 2016 at 15:45, Alex Miller wrote: > The new http://clojure.org is alive! > > Most of the content on the site is the same content as before (but in a > new shinier package). However, the site is now sourced from the public repo > at

[ANN] New clojure.org!

2016-01-14 Thread Alex Miller
The new http://clojure.org is alive! Most of the content on the site is the same content as before (but in a new shinier package). However, the site is now sourced from the public repo at https://github.com/clojure/clojure-site and is open for contribution. Contributions (via pull request)

Re: [ANN] New clojure.org!

2016-01-14 Thread Sean Corfield
Very nice! Also good to see a number of Pull Requests already and some discussion in Issues as well! 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: Clojure Mailing List

Re: [ANN] New clojure.org!

2016-01-14 Thread Laurens Van Houtven
Huge fan of the redesign! Unfortunately HTTPS is still broken, serving with a CloudFront cert. > On Jan 14, 2016, at 11:44 AM, Sean Corfield wrote: > > Very nice! > > Also good to see a number of Pull Requests already and some discussion in > Issues as well! > > Sean

Re: Question concerning eval

2016-01-14 Thread gianluca torta
Hi Adrian, with your suggestion it certainly works also with avec' however, I still don't see why the original code from Burt works with avec and does not work with avec' cheers, Gianluca On Thursday, January 14, 2016 at 5:06:02 PM UTC+1, adrian...@mail.yu.edu wrote: > > You need to quote

Question concerning eval

2016-01-14 Thread Burt
Hi, I got an exception using eval and I do not understand why! Can anybody explain what happens? Here is a small piece of code showing the problem: (defn eval-phi [avec phi] (eval `(let ~avec ~phi))) ; The idea of eval-phi is the evaluation of ; arbitrary lists where the symbols are ;

Re: Question concerning eval

2016-01-14 Thread gianluca torta
Hi Burt, I have done some investigation, further reducing your issue to the following: (def g (make-adder 2)) (eval `(let [~'f ~g] (~'f 5))) ; --> error IllegalArgumentException No matching ctor found for class user$make_adder$fn__7609 etc. (defn h [x] (+ x 2)) (eval `(let [~'f ~h] (~'f 5)))

ANN Langohr 3.5.0 is released

2016-01-14 Thread Michael Klishin
Langohr [1] is a small Clojure client for RabbitMQ. Release notes: http://blog.clojurewerkz.org/blog/2016/01/14/langohr-3-dot-5-0-is-released/ 1. http://clojurerabbitmq.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You received this message because you are

automat reverse path

2016-01-14 Thread Kurt Sys
I'd like to use automat as a core engine for web applications. It should be able to hold state, as a state machine does :). However, I can only see 'forward' paths in automat (which is probably what a state machine is about). Taking 'the short example' on the webpage: > (def pages [:cart

Re: [ANN] New clojure.org!

2016-01-14 Thread JeremyS
The new website is great ! Cheers, Jeremy. On Thursday, January 14, 2016 at 5:08:41 PM UTC+1, Colin Yates wrote: > > +1 this is really great. > > > On 14 Jan 2016, at 16:07, Stephen Gilardi > wrote: > > > > +1 great fresh look and process! > > > >> On Jan 14, 2016, at

Re: [ANN] New clojure.org!

2016-01-14 Thread Eunmin Kim
Great!! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email

Re: [ANN] New clojure.org!

2016-01-14 Thread Michael Cohen
Awesome! Every time - every single time - I've ever pulled up the api docs in a browser, for a split second I feel a tinge of embarrassment to be part of a community that has a language this good but a docs site that *#@&$#!& bad. The new site is a quantum leap forward. Everyone involved take

Awesome VIM cheatsheet!

2016-01-14 Thread Alan Thompson
Hey - I just found this awesome VIM cheatsheet, laid out in the form of a keyboard showing all of the keys and what they do (normal, shift, control, etc), along with an extensive legend. Check it out at: http://michael.peopleofhonoronly.com/vim/ It is from a wiki of cheatsheets located at:

Re: [ANN] New clojure.org!

2016-01-14 Thread Ritchie Cai
New site looks great! I feel like https://clojuredocs.org should be added to the community resources. Personally, it's my main reference website, and it has been extremely helpful. I'm sure it will be for other people too. On Thursday, January 14, 2016 at 9:45:06 AM UTC-6, Alex Miller wrote:

Re: [ANN] New clojure.org!

2016-01-14 Thread Alex Miller
The clojure.org has never, and does not now, support https. It is an entirely static site, so it is not high on my priority list to work on. On Thu, Jan 14, 2016 at 11:55 AM, Laurens Van Houtven <_...@lvh.cc> wrote: > Huge fan of the redesign! Unfortunately HTTPS is still broken, serving > with

Re: Question concerning eval

2016-01-14 Thread Burt
Hi Adrian, Gianluca, I understand that quoting the entire binding vector avec solves my problem. @Adrian Thanks for the hint. But nethertheless, it's a riddle for me why there's a difference between my original approaches. cheers, Burt -- You received this message because you are

Re: [ANN] New clojure.org!

2016-01-14 Thread Bozhidar Batsov
Great work! This was long overdue, but I'm extremely happy we made this solid first step! On 15 January 2016 at 04:11, Eunmin Kim wrote: > Great!! > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this

Re: [ANN] New clojure.org!

2016-01-14 Thread Leon Grapenthin
Amazing. I really like the clean and minimalistic design. Congratulations! On Thursday, January 14, 2016 at 4:45:06 PM UTC+1, Alex Miller wrote: > > The new http://clojure.org is alive! > > Most of the content on the site is the same content as before (but in a > new shinier package). However,

Re: [ANN] New clojure.org!

2016-01-14 Thread Alex Miller
Noted, I will bump it up the priority list. On Thursday, January 14, 2016 at 1:49:55 PM UTC-6, Laurens Van Houtven wrote: > > Hi, > > On Jan 14, 2016, at 12:34 PM, Alex Miller wrote: > > The clojure.org has never, and does not now, support https. It is an > entirely static

Re: [ANN] New clojure.org!

2016-01-14 Thread Alex Miller
Hi Ritchie, There are actually two different places where "resources" exist (just a by-product of the transition into the new structure really): - http://clojure.org/guides/getting_started - has a ton of things at the end, including clojuredocs - http://clojure.org/community/resources - more

Re: [ANN] New clojure.org!

2016-01-14 Thread Laurens Van Houtven
Hi, > On Jan 14, 2016, at 12:34 PM, Alex Miller > wrote: > > The clojure.org has never, and does not now, support > https. It is an entirely static site, so it is not high on my priority list > to work on. Sure; but it

Re: [ANN] New clojure.org!

2016-01-14 Thread Colin Yates
+1 this is really great. > On 14 Jan 2016, at 16:07, Stephen Gilardi wrote: > > +1 great fresh look and process! > >> On Jan 14, 2016, at 11:01 AM, Marc O'Morain wrote: >> >> Very nice! Good job all. > > -- > You received this message because you are

Re: Question concerning eval

2016-01-14 Thread gianluca torta
small update: I found that the problem happens because make-adder returns a closure; with a simple function it works: (defn make-2-adder [] (fn [x] (+ 2 x))) (def g2 (make-2-adder)) (eval `(let [~'f ~g2] (~'f 5))) ; --> 7 On Thursday, January 14, 2016 at 12:52:47 PM UTC+1, gianluca torta

Re: [ANN] New clojure.org!

2016-01-14 Thread Howard Lewis Ship
Long overdue, and an excellent start. I hope to squeeze in some time to provide some contributions! On Thu, Jan 14, 2016 at 12:27 PM, Alex Miller wrote: > Hi Ritchie, > > There are actually two different places where "resources" exist (just a > by-product of the transition