Idiomatic equivalent for double dispatch in clojure?

2012-11-19 Thread Thomas Goossens
In a java project last year we had to create a board game.
A Board had "Piece" objects.

Some pieces can share position. Some don't.

The way i solved this in Java was using double dispatch.

http://pastebin.com/brrRtqsS

(I just extracted the methods out of their respective classes)

But i think it is really hard ("or is it complex?") to keep track of 
whether the dispatching will eventually end, whether I have all the 
possible cases. 

What would be an idiomatic way to do something similar in clojure.

*doing exactly the same using multimethods?
*{:type ::robot :canshare (fn [..] ...)}
* ...other

Thanks



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

Re: ANN: Clojure/West - Portland, OR - Mar 18-20, 2013

2012-11-19 Thread Cesar Pinera
I hereby volunteer to organize a welcome party of Portland locals, a
goodwill committee of sorts, to plan and orchestrate visits to local
landmarks -and by that I mean microbreweries- and highlights.


On Sat, Nov 17, 2012 at 9:26 AM, Alex Miller  wrote:

> If you somehow missed the Conj, fear not! You can still attend a Clojure
> conference soon!
>
> Clojure/West will take place March 18-20th in the wonderful town of
> Portland, Oregon. We will be using the Gerding Theater at the Armory as our
> venue. Some portions of the conference will be single track like the conj
> and some will be double-track.
>
> Rich Hickey will be there and plans are underway for other great keynote
> speakers. If you're interested in speaking, the Call for Presentations is
> now open:
>
> http://clojurewest.org/call-for-presentations/
>
> Speakers will receive airfare (stipend if outside US) and hotel
> compensation. The call closes on January 4th and I expect to notify
> speakers and publish the schedule the following week.
>
> If you have any questions or suggestions, please let me know.
>
> Alex Miller
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

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

Re: Idiomatic equivalent for double dispatch in clojure?

2012-11-19 Thread Stuart Sierra
A long time ago I posted some macros to do double-dispatch with protocols 
and records. The link was http://paste.lisp.org/+2023 but it no longer 
works.

The basic idea is you dispatch on the first argument to an intermediate 
type that then dispatches on the second argument. It's complicated, but 
essentially mechanical.

Clojure multimethods have built-in multi-argument dispatch.

-S

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

Re: Idiomatic equivalent for double dispatch in clojure?

2012-11-19 Thread Brian Marick
Here's an example of using multimethods. (Note: I overrode the Clojure 
defmulti/defmethod macros with my own that play more nicely with the repl, and 
for other purposes. It's a straightforward translation.) You can see all the 
code here:

https://github.com/marick/fp-oo/blob/master/sources/asteroids.clj

The code's explained in chapter 14 of https://leanpub.com/fp-oo



;;; Objects of interest
(def make
 (fn [type value-map]
   (with-meta value-map {:type type})))

(def rim-griffon (make ::starship {:name "Rim Griffon", :speed 1000}))
(def malse (make ::asteroid {:name "Malse", :speed 0.1, :gravitational-pull 
0.5}))


;;; Collide with multi-arg dispatch

(defgeneric collide (fn [one two] [(type one) (type two)]))
 
(defspecialized collide [::asteroid ::asteroid]
  (fn [& asteroids] asteroids))

(defspecialized collide [::asteroid ::starship]
  (fn [asteroid starship]
[asteroid (stopped starship)]))

(defspecialized collide [::starship ::asteroid]
  (fn [starship asteroid]
[(stopped starship) asteroid]))

(defspecialized collide [::starship ::starship]
  (fn [& starships]
(let [speed (apply max (map :speed starships))]
  (map (partial with-speed speed) starships





-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Occasional consulting on Agile
Writing /Functional Programming for the Object-Oriented Programmer/: 
https://leanpub.com/fp-oo


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


Re: Idiomatic equivalent for double dispatch in clojure?

2012-11-19 Thread Thomas Goossens
Yes indeed. with multimethods you can doue multi-argument dispatch.

But that means that for every possible collision. I have to specify a 
method?

Would it be a good idea to introduce taxonomies here? 

On Monday, November 19, 2012 4:02:18 PM UTC+1, Stuart Sierra wrote:
>
> A long time ago I posted some macros to do double-dispatch with protocols 
> and records. The link was http://paste.lisp.org/+2023 but it no longer 
> works.
>
> The basic idea is you dispatch on the first argument to an intermediate 
> type that then dispatches on the second argument. It's complicated, but 
> essentially mechanical.
>
> Clojure multimethods have built-in multi-argument dispatch.
>
> -S
>
>

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

Re: A Simple FeedForward NeuralNetwork (using BackPropagation)

2012-11-19 Thread Andreas Liljeqvist
Yes, you are seeding and taking different paths in the problem area.
Best case one could model the problem area with some priors and do some
minimal-overlapping search of features.

I find this one very interesting: http://metacog.org/main.pdf
Apparently it produces good results and to me seems theoretically sound.


On Mon, Nov 19, 2012 at 1:46 PM, nicolas.o...@gmail.com <
nicolas.o...@gmail.com> wrote:

> I am not a specialist a t all, but I think I remember back propagation
> benefits from learning multiple times with
> starting coefficients at random. (In order to find better local minimas).
>
>
>
>
> On Mon, Nov 19, 2012 at 3:29 AM, Timothy Washington wrote:
>
>> Yes agreed. The only reason I chose to begin with BackPropagation was to
>> first get a thorough understanding of gradient descent. The next 2
>> approaches I have in mind are i) Resilient 
>> Propagation and
>> ii) the Levenberg–Marquardt 
>> algorithm
>> .
>>
>> Now, by overtraining for the specific data, are you wondering if the
>> algorithm is skewed to accomodate it? That may be the case, and I have to
>> get more sample data sets. That's, in fact, one of the questions I have
>> with this post. More broadly, it would be good to have more eyes look at
>> the training algorithm and see if I got the main bits right. Then
>> strategies for picking network architecture, avoiding local minima, etc.
>>
>> The next things I want to do is setup a configuration so that *A)* one
>> can specify i) BackPropagation ii) ResilentPropagation iii) etc, *B)*have 
>> the network architecture (how many hidden and output neurons, etc) be
>> configurable, and *C)* add more and more types of training data.
>>
>>
>> Tim
>>
>>
>>
>>
>> On Sun, Nov 18, 2012 at 7:55 PM, Andreas Liljeqvist wrote:
>>
>>> Well machine-learning is a complex area.
>>> Basically you have to widen the search area when you get stuck in a
>>> local minima.
>>>
>>> Another question is, are you overtraining for you specific data? Using
>>> too many neurons tend learn the specific cases but not the generality.
>>> Getting a perfect score is easy, just keep adding neurons...
>>>
>>> Standard backpropagation isn't really the state of the art nowadays.
>>> Go and look up the thousands of paper written in the area, and none of
>>> them have a definitive answer :P
>>>
>>>
>>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>
>
> --
> Sent from an IBM Model M, 15 August 1989.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

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

Re: A Simple FeedForward NeuralNetwork (using BackPropagation)

2012-11-19 Thread Andreas Liljeqvist
If you have too many neurons or not a big enough dataset, you risk learning
the features of the trainingset but not the generality of the problem.

[e1 e2 answer]
(def dataset[[1 1 2] [2 2 4] [4 4 8]])

Are you learning addition here or a doubling function?

If you have enough neurons, you could also more or less encode a lookup
function instead of the logic behind it.
eg.
(defn func [x] ({[1 1] 2 [2 2] 4} x)) ; yeah I would not look like this if
I was encoded in a NN.
instead of:
(defn func [x] (apply + x))

It will break down once it finds data not in the trainingset.

About the validation of your implementation.
Try to find a textbook where they are calculating a simple backprop network
by hand.
Steal their data and make unit tests from it.


On Mon, Nov 19, 2012 at 4:29 AM, Timothy Washington wrote:

> Yes agreed. The only reason I chose to begin with BackPropagation was to
> first get a thorough understanding of gradient descent. The next 2
> approaches I have in mind are i) Resilient 
> Propagation and
> ii) the Levenberg–Marquardt 
> algorithm
> .
>
> Now, by overtraining for the specific data, are you wondering if the
> algorithm is skewed to accomodate it? That may be the case, and I have to
> get more sample data sets. That's, in fact, one of the questions I have
> with this post. More broadly, it would be good to have more eyes look at
> the training algorithm and see if I got the main bits right. Then
> strategies for picking network architecture, avoiding local minima, etc.
>
> The next things I want to do is setup a configuration so that *A)* one
> can specify i) BackPropagation ii) ResilentPropagation iii) etc, *B)*have the 
> network architecture (how many hidden and output neurons, etc) be
> configurable, and *C)* add more and more types of training data.
>
>
> Tim
>
>
>
>
> On Sun, Nov 18, 2012 at 7:55 PM, Andreas Liljeqvist wrote:
>
>> Well machine-learning is a complex area.
>> Basically you have to widen the search area when you get stuck in a local
>> minima.
>>
>> Another question is, are you overtraining for you specific data? Using
>> too many neurons tend learn the specific cases but not the generality.
>> Getting a perfect score is easy, just keep adding neurons...
>>
>> Standard backpropagation isn't really the state of the art nowadays.
>> Go and look up the thousands of paper written in the area, and none of
>> them have a definitive answer :P
>>
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

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

Re: A Simple FeedForward NeuralNetwork (using BackPropagation)

2012-11-19 Thread Timothy Washington
Yes, that's exactly what I found. I did a lot of test runs, varying my
learning coefficient each time. The learning coefficients I used, ranged
from 0.01 to 1.5. 0.02 seems to be a good coefficient for the data set I've
started out with. I'm going to play around with it a little more though -
using more datasets.

Tim


On Mon, Nov 19, 2012 at 7:46 AM, nicolas.o...@gmail.com <
nicolas.o...@gmail.com> wrote:

> I am not a specialist a t all, but I think I remember back propagation
> benefits from learning multiple times with
> starting coefficients at random. (In order to find better local minimas).
>
>
>

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

Re: A Simple FeedForward NeuralNetwork (using BackPropagation)

2012-11-19 Thread Timothy Washington
Hey, thanks for the "*COMPETENT PROGRAM EVOLUTION*" paper. I'll take a
closer look at that.

And I too think using reference material is a good start. The only clear
outline of the backprop algorithm I found was in this paper:
page.mi.fu-berlin.de/rojas/neural/chapter/K7.pdf. I haven't found a paper
or text with good datasets. If you know where I can get some other good
data sets, that have been used in a backprop system, I'm keen to get my
mitts on them :) The only other dataset I had my eye on was the sun spots
as seen in the encog Clojure
wrapper.
So
I think that'll help.

Thanks
Tim


On Mon, Nov 19, 2012 at 10:49 AM, Andreas Liljeqvist wrote:

> If you have too many neurons or not a big enough dataset, you risk
> learning the features of the trainingset but not the generality of the
> problem.
>
> [e1 e2 answer]
> (def dataset[[1 1 2] [2 2 4] [4 4 8]])
>
> Are you learning addition here or a doubling function?
>
> If you have enough neurons, you could also more or less encode a lookup
> function instead of the logic behind it.
>  eg.
> (defn func [x] ({[1 1] 2 [2 2] 4} x)) ; yeah I would not look like this if
> I was encoded in a NN.
> instead of:
> (defn func [x] (apply + x))
>
> It will break down once it finds data not in the trainingset.
>
> About the validation of your implementation.
> Try to find a textbook where they are calculating a simple backprop
> network by hand.
> Steal their data and make unit tests from 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

Re: Idiomatic equivalent for double dispatch in clojure?

2012-11-19 Thread Jim - FooBar();
for what its worth, I'm building  a highly polymorphic board-game engine 
[1] and I've stayed away from multimethods...I've used every single 
polymorphism capabillity that clojure provides (records/protocols, 
map-based, HOFs etc) except multi-methods. Performance is acritical 
matter for this project especially for chess...


Using my lib I've got a purely functional chess, checkers and 
tic-tac-toe implementations so feel free to check it out...


Jim

[1] https://github.com/jimpil/Clondie24


On 19/11/12 15:32, Thomas Goossens wrote:

Yes indeed. with multimethods you can doue multi-argument dispatch.

But that means that for every possible collision. I have to specify a 
method?


Would it be a good idea to introduce taxonomies here?

On Monday, November 19, 2012 4:02:18 PM UTC+1, Stuart Sierra wrote:

A long time ago I posted some macros to do double-dispatch with
protocols and records. The link was http://paste.lisp.org/+2023
but it no longer works.

The basic idea is you dispatch on the first argument to an
intermediate type that then dispatches on the second argument.
It's complicated, but essentially mechanical.

Clojure multimethods have built-in multi-argument dispatch.

-S

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

To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en 


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

Re: [ANN] Clojars Releases repository

2012-11-19 Thread Phil Hagelberg
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sean Corfield  writes:

> Then you can show it with `gpg --export -a $KEY_ID`.
> 
>
> $KEY_ID? (again, as I noted at the conj, without good documentation on
> the Leiningen site for this, folks won't necessarily know what this is
> or why they need to do all of this)

Perhaps it would be helpful if you could explain in more detail what it
is about the provided explanation that you found confusing?

> > If you don't have a key yet, generate one with `gpg --gen-key`. The
> > default settings are pretty good, though I'd recommend making it expire
> > in a year or two. Next find your key ID. It's the 8-character part after
> > the slash on the line beginning with "pub":
> >
> > $ gpg --list-keys
> >
> > 
> > pub   2048R/77E77DDC 2011-07-17 [expires: 2014-07-16]
> > uid  Phil Hagelberg 
> > sub   2048R/39EFEE7D 2011-07-17

> So if the status quo persists and Mac and Windows users don't bother
> to install gpg, the Clojars process will stay exactly as it is? In
> other words, we can simply ignore the whole gpg issue and continue
> with things just as we do today and it won't break? Will users of
> Clojars projects be required to install and use gpg?

If you turn off :sign-releases inside your :repositories entry when
deploying libraries everything will work for you as before. But your
libraries won't qualify for the Releases repo in this case. So once your
users upgrade to Leiningen 2.0.0 they will have to include a separate
:repositories entry for the classic repo to indicate that they are OK
with pulling in dependencies that don't meet the higher standards of the
new repo.

> (I'm not arguing against encryption or signing - just trying to a)
> point out that I think the vast majority of Clojure library developers
> probably don't have gpg installed and b) establish what is _required_
> vs _optional_ and figure out what your plans are regarding existing
> Clojars projects and users)

Indeed, the root problem is this notion that you can be a professional
software developer and remain ignorant of how public-key crypto works.
So collecting improved documentation and educational resources is going
to need to be a priority. I'll do what I can to put together good general
resources but will need help covering systems like Windows and OS X that
make things more difficult.

But I should emphasize that signing is only necessary for library
authors, and verifying the signatures will always be optional.

- -Phil
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJQqnGSAAoJEK9We5d3533cMtEH/jJYEjkhymnB2sz6eWP5C5Wy
k5E6SXXSoOOyPPMYHZPsW9DedHRFpNi7bhZ8zYXlioKrRuKPEgUjjbM/oj9FB4oo
akJrf1cbR/rG9AoQn2aYiZAVVFQyWPCbieqdZRYyf6toxVAaDi3OJ3iDRX89NZvf
FPo/LbruJq32MJWNXo4PqZ9dq01K0Cs2ljCt9WLgzf/niKrwSi8tFC43NVH4k26t
fjH7UxHq6k8xs5tFpyXl4xZkc5rzoa85sRJE799R4+NA7IKoSseGSCrT6g0Ev6oy
IO0q4bz9Rc8Je9JZ5IV7Jpd4+kLp67cTCuXXnsqlIG9srkrDH4Q1VLH0Fp8JWpA=
=Ma81
-END PGP SIGNATURE-

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


Re: [ANN] Clojars Releases repository

2012-11-19 Thread Jeff Heon
As a starting point, the gpg website features native installers for both 
Windows and Mac OS.

http://www.gnupg.org

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


need to build clojure myself again?

2012-11-19 Thread Jim - FooBar();

Moving from clojure-1.5-alpha1 to -alpha4 i get this again:

NoClassDefFoundError jsr166y/ForkJoinTask clojure.core.reducers/fjinvoke 
(reducers.clj:61)


It took me a minute but eventually I remembered the same thing happened 
when I moved from 1.4 to 1.5-alpha1 in order to use reducers. There 
seems to exist aot-compiled (against javac 6) code that will not work 
with Java 7.


Is this intentional and will it generally continue happening?

Jim



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


Re: need to build clojure myself again?

2012-11-19 Thread Sean Corfield
Try -beta1 - I recall a patch recently that was supposed to fix this.


On Mon, Nov 19, 2012 at 11:47 AM, Jim - FooBar(); wrote:

> Moving from clojure-1.5-alpha1 to -alpha4 i get this again:
>
> NoClassDefFoundError jsr166y/ForkJoinTask clojure.core.reducers/fjinvoke
> (reducers.clj:61)
>
> It took me a minute but eventually I remembered the same thing happened
> when I moved from 1.4 to 1.5-alpha1 in order to use reducers. There seems
> to exist aot-compiled (against javac 6) code that will not work with Java 7.
>
> Is this intentional and will it generally continue happening?
>
> Jim
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscribe@**googlegroups.com
> For more options, visit this group at
> http://groups.google.com/**group/clojure?hl=en
>



-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

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

[ANN] clj-xpath 1.3.3

2012-11-19 Thread Kyle R. Burton
clj-xpath is a library that makes it easier to with XPath from Clojure.

I've never announced this library before (or any for that matter).  Someone
recently sent me a pull request to fix an issue in the README (during the
Conj) so I thought I'd announce it to solicit feedback.

The Leiningen coordiates are:

  [org.clojars.kyleburton/clj-xpath "1.3.3"]

An introduction and some documentation is available here:

  http://kyleburton.github.com/clj-xpath/site/

The project is on github here:

  https://github.com/kyleburton/clj-xpath


Best Regards,

Kyle

-- 
Twitter: @kyleburton
Github: https://github.com/kyleburton
Blog: http://asymmetrical-view.com/
Fun: http://snapclean.me/

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

Re: need to build clojure myself again?

2012-11-19 Thread Jim - FooBar();

On 19/11/12 19:48, Sean Corfield wrote:

Try -beta1 - I recall a patch recently that was supposed to fix this.


thanks it works! :)

Jim

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


Re: [ANN] Clojars Releases repository

2012-11-19 Thread Sean Corfield
On Mon, Nov 19, 2012 at 9:51 AM, Phil Hagelberg  wrote:

> Perhaps it would be helpful if you could explain in more detail what it
> is about the provided explanation that you found confusing?
>

In the first step you use an actual example, then switch to $KEY_ID without
explanation, instead of again showing an actual example. At the conj, you
just put up slides without any indication of what $KEY_ID was or where it
could be found.

If you turn off :sign-releases inside your :repositories entry when
> deploying libraries everything will work for you as before. But your
> libraries won't qualify for the Releases repo in this case. So once your
> users upgrade to Leiningen 2.0.0 they will have to include a separate
> :repositories entry for the classic repo to indicate that they are OK
> with pulling in dependencies that don't meet the higher standards of the
> new repo.


So the choices are:
* follow the signing path (install and learn gpg etc), users don't need to
do anything
* ignore the signing path, Leiningen will refuse to upload your libraries?
* explicitly turn off signing, users will be forced to change project.clj

Which means this isn't really an optional change: Leiningen is forcing
signing on the community.

Again, I'm not arguing against it, I just want to be clear about whether we
have a status quo option (we don't) so we must change.

Indeed, the root problem is this notion that you can be a professional
> software developer and remain ignorant of how public-key crypto works.
>

Are you saying that all those people who don't have gpg or similar
installed are unprofessional? It seems that such a statement would insult a
very large number of software developers.

So collecting improved documentation and educational resources is going
> to need to be a priority. I'll do what I can to put together good general
> resources but will need help covering systems like Windows and OS X that
> make things more difficult.
>

Perhaps you could run Windows and OS X in VMs on your Linux machine so you
can experience what it is like and write about it from the perspective of a
newbie on those OSes? The Windows experience for Clojure is already sub-par
compared to OS X and Linux (although it has improved over time) and this is
another Linux-centric change. OS X has been sufficiently Linux-y in the
past to have escaped change but now is also on the other side of this
particular fence. Have you considered adding keygen to Leiningen so that it
can bridge that divide, as it does for every other aspect of the project
automation process? (well, barring the initial curl/wget issue on Windows
which can be mitigated by downloading the JAR directly)
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

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

Re: [ANN] Clojars Releases repository

2012-11-19 Thread Lee Hinman

Jeff Heon writes:

> As a starting point, the gpg website features native installers for both 
> Windows and Mac OS.
>
> http://www.gnupg.org

And for OSX:

https://www.gpgtools.org/

; Lee

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


Re: [ANN] Clojars Releases repository

2012-11-19 Thread jamii
I now have the same problem as Jim (with 
https://clojars.org/strucjure/versions/0.3.2). I do have a gpg key set up 
and previous deploys claimed to be signing (although they are list as 
unsigned now). 

What was the fix in this case?

On Sunday, 18 November 2012 11:27:36 UTC-5, Nelson Morris wrote:
>
> Yeah, i had checked the releases not expected the "classic" repo to 
> loose it.  Fixed manually. 
>
> On Sun, Nov 18, 2012 at 10:20 AM, Jim - FooBar(); 
> > 
> wrote: 
> > On 18/11/12 15:14, Nelson Morris wrote: 
> >> 
> >> enclog 0.5.8 appears in the releases repo, so everything is ok. 
> > 
> > 
> > No, unfortunately everything is not ok...fetching the jar from a project 
> > results in: 
> > 
> > 
> > Could not transfer artifact enclog:enclog:pom:0.5.8 from/to clojars 
> > (https://clojars.org/repo/): Checksum validation failed, no checksums 
> > available from the repository 
> > Check :dependencies and :repositories for typos. 
> > It's possible the specified jar is not in any repository. 
> > If so, see "Free-floating Jars" under http://j.mp/repeatability 
> > etc etc (exceptions) 
> > 
> > 
> > Jim 
> > 
> > 
> > -- 
> > 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 post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [ANN] Clojars Releases repository

2012-11-19 Thread Nurullah Akkaya
Is there a particular reason for not using Bouncy Castle[1]. Instead of
forcing users to install gpg lein can generate and/or upload the key.

[1] http://www.bouncycastle.org/

--
Nurullah Akkaya
http://nakkaya.com


On Mon, Nov 19, 2012 at 10:08 PM, Lee Hinman wrote:

>
> Jeff Heon writes:
>
> > As a starting point, the gpg website features native installers for both
> Windows and Mac OS.
> >
> > http://www.gnupg.org
>
> And for OSX:
>
> https://www.gpgtools.org/
>
> ; Lee
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

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

Re: [ANN] Clojars Releases repository

2012-11-19 Thread Phil Hagelberg
Nurullah Akkaya  writes:

> Is there a particular reason for not using Bouncy Castle[1]. Instead
> of forcing users to install gpg lein can generate and/or upload the
> key.

Yeah, we intended to use that originally, but Bouncy Castle's PGP
support is awful beyond words. It's effectively undocumented, and the
classes it exposes really only make sense if you have the OpenPGP RFC
memorized.

-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


Re: Idiomatic equivalent for double dispatch in clojure?

2012-11-19 Thread Brian Marick

On Nov 19, 2012, at 9:32 AM, Thomas Goossens wrote:

> Yes indeed. with multimethods you can doue multi-argument dispatch.
> 
> But that means that for every possible collision. I have to specify a method?

If you read along in `asteroids.clj` file I showed, you'll see an example of a 
taxonomy. A ::gaussjammer is a subtype of a ::spaceship.

-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Occasional consulting on Agile
Writing /Functional Programming for the Object-Oriented Programmer/: 
https://leanpub.com/fp-oo


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


Re: [ANN] Clojars Releases repository

2012-11-19 Thread Sean Corfield
On Mon, Nov 19, 2012 at 2:28 PM, Phil Hagelberg  wrote:

> Yeah, we intended to use that originally, but Bouncy Castle's PGP
> support is awful beyond words. It's effectively undocumented, and the
> classes it exposes really only make sense if you have the OpenPGP RFC
> memorized.
>

Ugh! :( And there are no other reasonable options?
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

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

Clojure Recursion (loop-recur) Questions

2012-11-19 Thread Curtis
Clojure Koans - Recursion

(defn recursive-reverse [coll]
  (loop [coll coll
 acc '() ]
 (if (= (count coll) 0)
acc
   (recur (rest coll) (cons (first coll) acc))
 )
  )
)

I struggled with this one for a while - I don’t want to admit it, but 
honestly even though i have been coding since I was 16 years old - there 
are still many areas where I am rusty or weak.

There is actually a surprising amount of low level concepts operating in a 
list recursive reverse in clojure.

   - tail-call recursion
   - accumulator
   - loop construct

I have some questions about how this “special form”  
loop
 operates 
with recur

I think I need to make sure that I always remember the following :

   - the arity of the recur call must match the arity of the loop form
   - recur must be in the tail position.

I’m not sure how this loop / recur mechanism is implemented in the JVM - I 
imaging that the binding created by ‘loop’ is associated with registers 
that are overwritten as part of the call to ‘recur’. The documentation says 
the bindings are rebound on call of recur in parallel and the execution of 
recur - is done in order.

My questions are

   - Is recur causing some kind of local jump after each binding?
   - What happens with the return address? 
   - If recur doesn’t consume stack - what is going on with the return 
   address? 
   - Is the return address always the same for the same recursive call?

More importantly - Is there a chapter in Knuth AOC that could help me with 
this? Any other resources?  

I feel like I am really missing some context. Am I missing anything 
obvious, important or insightful?

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

Re: ritz / nrepl.el / cljsbuild auto / cljsbuild repl-listen ... in same session?

2012-11-19 Thread Timothy Washington
Hey, just commented on the created
issueof how to get
*cljsbuild auto* and for *cljsbuild repl-listen* setup as nrepl middleware.
Is it a matter or passing those as arguments into the nrepl eval
middleware
?

Has anyone done this before? Any insights are appreciated.

Thanks
Tim


On Mon, Oct 15, 2012 at 7:05 PM, Timothy Washington wrote:

> Oh this is great. Thanks for the feedback. I tried the "*M-x
> nrepl-ritz-lein*" command. But I got this error eventhough I definitely
> have cljsbuild in my project.
>
> lein trampoline cljsbuild repl-listen ;; ( "*lein cljsbuild repl-listen*" also
> fails )
> 'cljsbuild' is not a task. See 'lein help'.
> Suppressed exit
> Lein failed - exit code 1
>
>
> I'll play around with it a bit more. But having middleware for those tasks
> would be very useful. I've put up a new 
> issue
> .
>
> Thanks again
> Tim
>

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

Re: Clojure Recursion (loop-recur) Questions

2012-11-19 Thread Andy Fingerhut
If you are familiar with tail recursion, then loop/recur this is Clojure's way 
to achieve tail recursion.

http://en.wikipedia.org/wiki/Tail_call

The general tail call optimization mechanism as implemented in the programming 
language Scheme, for example, means that tail-position calls must not consume 
additional stack, and must effectively work like a goto appropriate muddling of 
stack frames to pass the parameters to the new function (which might be a 
recursive call, or could be to a different function).  Whether the tail call is 
recursive or not, the return address of the original calling function doesn't 
change after the goto.

Clojure's loop/recur only implements tail recursion, not general tail-call 
optimization.  tail recursion is far more commonly used in languages that have 
it than the general tail-call optimization to arbitrary functions.


Specifically on your questions about the return address, suppose function foo 
calls function bar, and bar has the loop/recur inside of it.  At the time when 
foo first calls bar, it saves a return address inside of foo so that when bar 
returns, it continues in foo just after where the call to bar was.

loop/recur never touches that return address.   It stays there the whole time.

The loop is effectively a target label for a goto, and one or more occurrences 
of recur inside of it simply rebind the loop variable values, and goot the 
loop's target label.  Anything deeper down on the stack is not changed, and 
there is no pushing or popping of any return addresses.  Just a goto.


Rich would have liked to implement general tail recursion in Clojure.  Here are 
a couple of relevant excerpts from Rich Hickey's "Clojure for Lispers" talk, 
transcript here:

http://jafingerhut.github.com/clojure-info/clojure-for-lispers-transcript.txt

Clojure does not have tail call optimization.  Not because I'm against
it.  I'm all for it.  It's something I had to trade off in being on
the JVM.  However, I was just at the JVM languages summit, and tail
call optimization, every language designer who cam up there said "tail
call optimization, tail call optimization".  And they've heard it, and
hopefully it will come in a future VM, hopefully soon.
You've seen
languages... SISC Scheme does tail calls in the JVM, right.  It does
it with this whole other infrastructure.  They're calling scheme is
nothing like Java's, right?  You have to pass additional things, or
trampoline, or whatever.  Clojure does none of that.  Clojure has
pedal to the metal calling conventions that match Java's, so I don't
have tail recursion, because you can't do that unless the JVM does
that.
Andy



On Nov 19, 2012, at 4:38 PM, Curtis wrote:

> Clojure Koans - Recursion
> (defn recursive-reverse [coll]
>   (loop [coll coll
>  acc '() ]
>  (if (= (count coll) 0)
> acc
>(recur (rest coll) (cons (first coll) acc))
>  )
>   )
> )
> I struggled with this one for a while - I don’t want to admit it, but 
> honestly even though i have been coding since I was 16 years old - there are 
> still many areas where I am rusty or weak.
> 
> There is actually a surprising amount of low level concepts operating in a 
> list recursive reverse in clojure.
> 
> tail-call recursion
> accumulator
> loop construct
> I have some questions about how this “special form”  loop operates with recur
> 
> I think I need to make sure that I always remember the following :
> 
> the arity of the recur call must match the arity of the loop form
> recur must be in the tail position.
> I’m not sure how this loop / recur mechanism is implemented in the JVM - I 
> imaging that the binding created by ‘loop’ is associated with registers that 
> are overwritten as part of the call to ‘recur’. The documentation says the 
> bindings are rebound on call of recur in parallel and the execution of recur 
> - is done in order.
> 
> My questions are
> 
> Is recur causing some kind of local jump after each binding?
> What happens with the return address? 
> If recur doesn’t consume stack - what is going on with the return address? 
> Is the return address always the same for the same recursive call?
> More importantly - Is there a chapter in Knuth AOC that could help me with 
> this? Any other resources?  
> 
> I feel like I am really missing some context. Am I missing anything obvious, 
> important or insightful?

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

Re: [ANN] clj-xpath 1.3.3

2012-11-19 Thread Michael Klishin
2012/11/19 Kyle R. Burton 

> An introduction and some documentation is available here:
>
>   http://kyleburton.github.com/clj-xpath/site/
>
> The project is on github here:
>
>   https://github.com/kyleburton/clj-xpath
>

Dependency information is at the very bottom of the document? How are
newcomers
supposed to find it? Please make it more visible.

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

Re: [ANN] Clojars Releases repository

2012-11-19 Thread Sean Corfield
FWIW, after setting up a public key etc and using lein deploy clojars to
push congomongo 0.3.3 (successfully with one key), I am also getting the
error about transferring the POM:

Sending congomongo/congomongo/0.3.3/congomongo-0.3.3.pom.asc (1k)
to https://clojars.org/repo/
Sending congomongo/congomongo/0.3.3/congomongo-0.3.3.jar.asc (1k)
to https://clojars.org/repo/
Sending congomongo/congomongo/0.3.3/congomongo-0.3.3.jar (15k)
to https://clojars.org/repo/
Sending congomongo/congomongo/0.3.3/congomongo-0.3.3.pom (3k)
to https://clojars.org/repo/
Could not transfer artifact congomongo:congomongo:pom:0.3.3 from/to clojars
(https://clojars.org/repo/): Access denied to:
https://clojars.org/repo/congomongo/congomongo/0.3.3/congomongo-0.3.3.pom,
ReasonPhrase:Forbidden.
Failed to deploy artifacts: Could not transfer artifact
congomongo:congomongo:pom:0.3.3 from/to clojars (https://clojars.org/repo/):
Access denied to:
https://clojars.org/repo/congomongo/congomongo/0.3.3/congomongo-0.3.3.pom,
ReasonPhrase:Forbidden.

I still seem to be able to pull the library into a project and Clojars says
it has been promoted (after my first successful try - with a different key
/ user ID).


On Sun, Nov 18, 2012 at 7:14 AM, Nelson Morris wrote:

> The "Invalid anti-forgery token" message is a unfortunate side effect
> of interaction with sessions and restarting the server.  It should
> disappear if the profile page is refreshed.
>
> enclog 0.5.8 appears in the releases repo, so everything is ok.  I
> have a theory as to why that message occurred and will see what I can
> track down for the future.  Unfortunately, I'd expect a possibility of
> this occurring for any redeployment of artifacts with signatures
> already in the "classic" repo.
>
> Thanks for signing and feedback about the issues.
>
> On Sun, Nov 18, 2012 at 8:57 AM, Jim - FooBar(); 
> wrote:
> > Ok I managed to push my jar successfully, but i got this at the end:
> >
> > Could not transfer artifact enclog:enclog:pom:0.5.8 from/to clojars
> > (https://clojars.org/repo/): Access denied to:
> > https://clojars.org/repo/enclog/enclog/0.5.8/enclog-0.5.8.pom,
> > ReasonPhrase:Forbidden.
> > Failed to deploy artifacts: Could not transfer artifact
> > enclog:enclog:pom:0.5.8 from/to clojars (https://clojars.org/repo/):
> Access
> > denied to: https://clojars.org/repo/enclog/enclog/0.5.8/enclog-0.5.8.pom
> ,
> > ReasonPhrase:Forbidden.
> >
> > Is this important?
> >
> > Jim
> >
> >
> > On 18/11/12 14:46, Jim - FooBar(); wrote:
> >
> > On 18/11/12 14:39, Nelson Morris wrote:
> >
> > The previous one was a bit
> > strict on the whitespace
> >
> >
> > I just pasted the same with no wxtra white-space and now I'm getting
> >
> > Invalid anti-forgery token
> >
> > my god what is happening?
> >
> > Jim
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient with
> your
> > first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

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

Re: [ANN] Clojars Releases repository

2012-11-19 Thread Phil Hagelberg
Sean Corfield  writes:

> Are you saying that all those people who don't have gpg or similar
> installed are unprofessional? It seems that such a statement would
> insult a very large number of software developers.

It's one thing to not have gotten around to learning something; it's
another thing entirely to ignore a technology and not have any intention
of getting familiar with it. Someone who writes software for a living
without understanding how to securely share secrets over email *and is
perfectly happy with that fact* is doing something wrong.

> Perhaps you could run Windows and OS X in VMs on your Linux machine so
> you can experience what it is like and write about it from the
> perspective of a newbie on those OSes?

That's actually illegal to do with OS X. Anyway, the problem with
Windows isn't that we don't know what's broken; it's that nobody with
the skills to fix it has volunteered to help.

> Have you considered adding keygen to Leiningen so that it can bridge
> that divide, as it does for every other aspect of the project
> automation process?

I tried to do this; see my response to Nurullah Akkaya. I wish it were
feasible, but it is not.

-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


Re: [ANN] new book: "ClojureScript: Up and Running"

2012-11-19 Thread Mark Engelberg
I just received the book today.  I was surprised to see how thin it is, but
I'm glad the book exists.  I had a lot of trouble getting up and running
several months ago, using only the scattered install instructions on the
web.  It's nice to have a clear path to getting started.

Unfortunately, I can't get past page 8 and would appreciate some additional
guidance.
Using the latest lein 2.0 preview 10, I did "lein new cljs2" to create a
new project called cljs2.
Then, I edited the project.clj file as described in the book, using the
latest version number for lein-cljsbuild:

(defproject cljs2 "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME";
  :license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.4.0"]
 [org.clojure/clojurescript "0.0-1450"]]
  :plugins [[lein-cljsbuild "0.2.9"]]
  :cljsbuild {:builds []})

Then, at the command prompt I typed:
lein trampoline cljs-build repl-rhino
and got the following error message.  I'm running on Windows.  Any idea
what's going wrong?
Thanks.

C:\devel\Clojure\lein\cljs2>lein trampoline cljsbuild repl-rhino
Running Rhino-based ClojureScript REPL.
Exception in thread "main" clojure.lang.LispReader$ReaderException:
java.lang.Ru
ntimeException: EOF while reading, starting at line 1
at clojure.lang.LispReader.read(LispReader.java:215)
at clojure.core$read.invoke(core.clj:3346)
at clojure.core$read.invoke(core.clj:3344)
at clojure.main$eval_opt.invoke(main.clj:295)
at clojure.main$initialize.invoke(main.clj:316)
at clojure.main$script_opt.invoke(main.clj:340)
at clojure.main$main.doInvoke(main.clj:427)
at clojure.lang.RestFn.invoke(RestFn.java:703)
at clojure.lang.Var.invoke(Var.java:450)
at clojure.lang.AFn.applyToHelper(AFn.java:212)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: EOF while reading, starting at line 1
at clojure.lang.Util.runtimeException(Util.java:170)
at clojure.lang.LispReader.readDelimitedList(LispReader.java:1117)
at clojure.lang.LispReader$ListReader.invoke(LispReader.java:962)
at clojure.lang.LispReader.read(LispReader.java:180)
... 11 more

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

Re: [ANN] Clojars Releases repository

2012-11-19 Thread Sean Corfield
On Mon, Nov 19, 2012 at 10:32 PM, Phil Hagelberg  wrote:

> Someone who writes software for a living
> without understanding how to securely share secrets over email *and is
> perfectly happy with that fact* is doing something wrong.


Thanx for that clarification :)


> That's actually illegal to do with OS X.
>

They still don't allow you to run it in a VM if you bought a copy? Dang, I
thought they'd actually fixed that silliness. Good to know.


> Windows isn't that we don't know what's broken; it's that nobody with
> the skills to fix it has volunteered to help.


Well, I'm buying a Windows 8 ultrabook convertible in the next few weeks
and plan to use it for Clojure development while I'm on the road so I'll
have quite the incentive to help...
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

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

Re: [ANN] new book: "ClojureScript: Up and Running"

2012-11-19 Thread George Oliver


On Monday, November 19, 2012 8:18:16 PM UTC-8, puzzler wrote:
>
>
> Then, at the command prompt I typed:
> lein trampoline cljs-build repl-rhino
> and got the following error message.  I'm running on Windows.  Any idea 
> what's going wrong?
> Thanks.
>
>
>

These kinds of errors usually mean a file path or constructed command line 
is misquoted, double-quoted where it shouldn't be, etcetera. For example 
see issues like this, https://github.com/technomancy/leiningen/issues/674. 
Not sure myself what the problem is here since it seems like most of these 
issues have been closed but maybe there's something still there. 

 

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

Re: ANN: Clojure/West - Portland, OR - Mar 18-20, 2013

2012-11-19 Thread Alex Miller
Thanks for volunteering!  I need you!  

I'll be in touch... (it might be a few weeks but fear not, I have you in my 
notes).

Alex


On Monday, November 19, 2012 12:48:10 AM UTC-6, César Piñera wrote:
>
> I hereby volunteer to organize a welcome party of Portland locals, a 
> goodwill committee of sorts, to plan and orchestrate visits to local 
> landmarks -and by that I mean microbreweries- and highlights. 
>
>
> On Sat, Nov 17, 2012 at 9:26 AM, Alex Miller 
> 
> > wrote:
>
>> If you somehow missed the Conj, fear not! You can still attend a Clojure 
>> conference soon! 
>>
>> Clojure/West will take place March 18-20th in the wonderful town of 
>> Portland, Oregon. We will be using the Gerding Theater at the Armory as our 
>> venue. Some portions of the conference will be single track like the conj 
>> and some will be double-track.
>>
>> Rich Hickey will be there and plans are underway for other great keynote 
>> speakers. If you're interested in speaking, the Call for Presentations is 
>> now open:
>>
>> http://clojurewest.org/call-for-presentations/
>>
>> Speakers will receive airfare (stipend if outside US) and hotel 
>> compensation. The call closes on January 4th and I expect to notify 
>> speakers and publish the schedule the following week.
>>
>> If you have any questions or suggestions, please let me know.
>>
>> Alex Miller 
>>
>> -- 
>> 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 post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [ANN] new book: "ClojureScript: Up and Running"

2012-11-19 Thread Sean Corfield
I wonder if it's some aspect of lein trampoline on Windows. As I understand
it, trampoline generates a file that is used to fire up the next process
and it may well have some *nix-ism that isn't compatible with Windows?


On Mon, Nov 19, 2012 at 11:18 PM, Mark Engelberg
wrote:

> I just received the book today.  I was surprised to see how thin it is,
> but I'm glad the book exists.  I had a lot of trouble getting up and
> running several months ago, using only the scattered install instructions
> on the web.  It's nice to have a clear path to getting started.
>
> Unfortunately, I can't get past page 8 and would appreciate some
> additional guidance.
> Using the latest lein 2.0 preview 10, I did "lein new cljs2" to create a
> new project called cljs2.
> Then, I edited the project.clj file as described in the book, using the
> latest version number for lein-cljsbuild:
>
> (defproject cljs2 "0.1.0-SNAPSHOT"
>   :description "FIXME: write description"
>   :url "http://example.com/FIXME";
>   :license {:name "Eclipse Public License"
> :url "http://www.eclipse.org/legal/epl-v10.html"}
>   :dependencies [[org.clojure/clojure "1.4.0"]
>  [org.clojure/clojurescript "0.0-1450"]]
>   :plugins [[lein-cljsbuild "0.2.9"]]
>   :cljsbuild {:builds []})
>
> Then, at the command prompt I typed:
> lein trampoline cljs-build repl-rhino
> and got the following error message.  I'm running on Windows.  Any idea
> what's going wrong?
> Thanks.
>
> C:\devel\Clojure\lein\cljs2>lein trampoline cljsbuild repl-rhino
> Running Rhino-based ClojureScript REPL.
> Exception in thread "main" clojure.lang.LispReader$ReaderException:
> java.lang.Ru
> ntimeException: EOF while reading, starting at line 1
> at clojure.lang.LispReader.read(LispReader.java:215)
> at clojure.core$read.invoke(core.clj:3346)
> at clojure.core$read.invoke(core.clj:3344)
> at clojure.main$eval_opt.invoke(main.clj:295)
> at clojure.main$initialize.invoke(main.clj:316)
> at clojure.main$script_opt.invoke(main.clj:340)
> at clojure.main$main.doInvoke(main.clj:427)
> at clojure.lang.RestFn.invoke(RestFn.java:703)
> at clojure.lang.Var.invoke(Var.java:450)
> at clojure.lang.AFn.applyToHelper(AFn.java:212)
> at clojure.lang.Var.applyTo(Var.java:532)
> at clojure.main.main(main.java:37)
> Caused by: java.lang.RuntimeException: EOF while reading, starting at line
> 1
> at clojure.lang.Util.runtimeException(Util.java:170)
> at clojure.lang.LispReader.readDelimitedList(LispReader.java:1117)
> at clojure.lang.LispReader$ListReader.invoke(LispReader.java:962)
> at clojure.lang.LispReader.read(LispReader.java:180)
> ... 11 more
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

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

Re: [ANN] new book: "ClojureScript: Up and Running"

2012-11-19 Thread Sean Corfield
Looks like George nailed it with his note about issue 674 which came in
while I was writing my (accurate but not particularly helpful) response...


On Mon, Nov 19, 2012 at 11:45 PM, Sean Corfield wrote:

> I wonder if it's some aspect of lein trampoline on Windows. As I
> understand it, trampoline generates a file that is used to fire up the next
> process and it may well have some *nix-ism that isn't compatible with
> Windows?
>
>
> On Mon, Nov 19, 2012 at 11:18 PM, Mark Engelberg  > wrote:
>
>> I just received the book today.  I was surprised to see how thin it is,
>> but I'm glad the book exists.  I had a lot of trouble getting up and
>> running several months ago, using only the scattered install instructions
>> on the web.  It's nice to have a clear path to getting started.
>>
>> Unfortunately, I can't get past page 8 and would appreciate some
>> additional guidance.
>> Using the latest lein 2.0 preview 10, I did "lein new cljs2" to create a
>> new project called cljs2.
>> Then, I edited the project.clj file as described in the book, using the
>> latest version number for lein-cljsbuild:
>>
>> (defproject cljs2 "0.1.0-SNAPSHOT"
>>   :description "FIXME: write description"
>>   :url "http://example.com/FIXME";
>>   :license {:name "Eclipse Public License"
>> :url "http://www.eclipse.org/legal/epl-v10.html"}
>>   :dependencies [[org.clojure/clojure "1.4.0"]
>>  [org.clojure/clojurescript "0.0-1450"]]
>>   :plugins [[lein-cljsbuild "0.2.9"]]
>>   :cljsbuild {:builds []})
>>
>> Then, at the command prompt I typed:
>> lein trampoline cljs-build repl-rhino
>> and got the following error message.  I'm running on Windows.  Any idea
>> what's going wrong?
>> Thanks.
>>
>> C:\devel\Clojure\lein\cljs2>lein trampoline cljsbuild repl-rhino
>> Running Rhino-based ClojureScript REPL.
>> Exception in thread "main" clojure.lang.LispReader$ReaderException:
>> java.lang.Ru
>> ntimeException: EOF while reading, starting at line 1
>> at clojure.lang.LispReader.read(LispReader.java:215)
>> at clojure.core$read.invoke(core.clj:3346)
>> at clojure.core$read.invoke(core.clj:3344)
>> at clojure.main$eval_opt.invoke(main.clj:295)
>> at clojure.main$initialize.invoke(main.clj:316)
>> at clojure.main$script_opt.invoke(main.clj:340)
>> at clojure.main$main.doInvoke(main.clj:427)
>> at clojure.lang.RestFn.invoke(RestFn.java:703)
>> at clojure.lang.Var.invoke(Var.java:450)
>> at clojure.lang.AFn.applyToHelper(AFn.java:212)
>> at clojure.lang.Var.applyTo(Var.java:532)
>> at clojure.main.main(main.java:37)
>> Caused by: java.lang.RuntimeException: EOF while reading, starting at
>> line 1
>> at clojure.lang.Util.runtimeException(Util.java:170)
>> at clojure.lang.LispReader.readDelimitedList(LispReader.java:1117)
>> at clojure.lang.LispReader$ListReader.invoke(LispReader.java:962)
>> at clojure.lang.LispReader.read(LispReader.java:180)
>> ... 11 more
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>
>
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
> World Singles, LLC. -- http://worldsingles.com/
>
> "Perfection is the enemy of the good."
> -- Gustave Flaubert, French realist novelist (1821-1880)
>



-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

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

Trouble calling Dojo grid constructor from ClojureScript

2012-11-19 Thread Brian Nelson
Hi,

I'm brand new to ClojureScript and have been trying to get myself
familiarized with it's javascript interop capabilities by implementing
the Dojo toolkit tutorials. I've successfully implemented several of
the tutorials, but now I've run into something that I can't figure out
and am looking for someone to point me in the right direction.

I am calling the DGrid(Dojo grid) constructor using the function
maingrid

(ns couchadmin.core
  (:use [jayq.util :only [clj->js]])
  (:require [clojure.browser.repl :as repl]))

(defn greet [dom fx]
  (let [element (.byId dom "greetingcljs")]
(set! (. element -innerHTML) "Hello from Dojo using
ClojureScript")
(.play (.slideTo fx (clj->js {:top 200 :left 200 :node
element})

(defn maingrid [dom grd]
  (do

(grd. (clj->js {:columns (clj->js {:first "First Name"})}) "grid")
(js/alert "hello world")))

(defn ^:export main []
  (comment (repl/connect "http://localhost:9000/repl";))
  (comment (js/require (array "dojo/dom" "dojo/fx" "dojo/domReady!")
greet))
  (js/require (array "dojo/dom" "dgrid/Grid" "dojo/domReady!")
maingrid))


When the page is loaded the grid is constructed, but afterwards I see
the following javascript exception

Uncaught Error: No protocol method ILookup.-lookup defined for
type object: [object HTMLDivElement]

I'm wondering what this message is indicating. Did I call the
constructor incorrectly? Is this an incompatibility with Dojo? Do I
need to implement ILookup somehow? Any help would be greatly
appreciated.

Brian

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


Re: [ANN] Clojars Releases repository

2012-11-19 Thread Peter Taoussanis
I'd caution anyone against trying to redeploy their libraries right now 
since there seems to be some serious unresolved issues. I just tried a 
redeploy myself and am also getting the "ReasonPhrase:Forbidden" error.

Unfortunately this seems to leave the repo in a bad state, since dependency 
pull requests now come back with a "Checksum validation failed".

> I still seem to be able to pull the library into a project and Clojars 
says it has been promoted (after my first successful try - with a different 
key / user ID).

Sean, are you sure it's working if the dependency isn't already in your .m2 
cache?

- 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

Re: [ANN] Clojars Releases repository

2012-11-19 Thread Sean Corfield
I removed congomongo completely from my local repo and lein repl seemed to
pull it back down with no problems. Tested it on two machines. So it seems
the repo on Clojars is OK for me - except that I can't redeploy the POM?


On Tue, Nov 20, 2012 at 12:22 AM, Peter Taoussanis wrote:

> I'd caution anyone against trying to redeploy their libraries right now
> since there seems to be some serious unresolved issues. I just tried a
> redeploy myself and am also getting the "ReasonPhrase:Forbidden" error.
>
> Unfortunately this seems to leave the repo in a bad state, since
> dependency pull requests now come back with a "Checksum validation failed".
>
> > I still seem to be able to pull the library into a project and Clojars
> says it has been promoted (after my first successful try - with a different
> key / user ID).
>
> Sean, are you sure it's working if the dependency isn't already in your
> .m2 cache?
>
> - 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
>



-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

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

Re: [ANN] Clojars Releases repository

2012-11-19 Thread Peter Taoussanis
BTW for those of you running into the ReasonPhrase:Forbidden error, it 
seems as if the old lein-clojars can be used to restore a repo to a working 
(unsigned) state.

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

Re: [ANN] Clojars Releases repository

2012-11-19 Thread Wes Freeman
+1 on the checksum validation error and ReasonPhrase:Forbidden on the pom.
Using leiningen preview10. I updated my version number to not have
SNAPSHOT, so maybe that's why it's not working, compared to Sean's?

Regardless of the current bug, thanks for working on this functionality,
Phil (and whoever else contributed to it). It felt like clojars (along with
leiningen) was a great convenience, but was a bit weak on the security
side, being too open--and this closes that gap significantly.

Quick OSX/Homebrew tutorial (this is what I did):
brew install gpg
gpg --gen-key
# the following command is sufficient if you've just installed gpg and only
have one key, otherwise you should probably already know how to figure out
which key you want
gpg --export -a
(copy the resulting text into your clojars profile)
lein deploy clojars

Not too hard, right? (Admittedly, gpg is one of those homebrew recipes that
requires symlinking some stuff in /usr/local/share/locale/ to finish
linking; my usual work around is to "chown root:wheel" the homebrew
executable to "sudo brew link gpg", and then reset it.)

Wes

On Tue, Nov 20, 2012 at 12:22 AM, Peter Taoussanis wrote:

> I'd caution anyone against trying to redeploy their libraries right now
> since there seems to be some serious unresolved issues. I just tried a
> redeploy myself and am also getting the "ReasonPhrase:Forbidden" error.
>
> Unfortunately this seems to leave the repo in a bad state, since
> dependency pull requests now come back with a "Checksum validation failed".
>
> > I still seem to be able to pull the library into a project and Clojars
> says it has been promoted (after my first successful try - with a different
> key / user ID).
>
> Sean, are you sure it's working if the dependency isn't already in your
> .m2 cache?
>
> - 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 post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [ANN] new book: "ClojureScript: Up and Running"

2012-11-19 Thread Mark Engelberg
Ugh, I should have guessed.  My attempts to do clojurescript several months
back were foiled by trampolining problems, but that was on lein 1.7.  I was
under the impression those problems had been fixed in lein 2.0, so I had
expected it to work, but it looks like there is still an issue.  Any easy
workaround?

On Mon, Nov 19, 2012 at 8:48 PM, Sean Corfield wrote:

> Looks like George nailed it with his note about issue 674 which came in
> while I was writing my (accurate but not particularly helpful) response...
>
>
> On Mon, Nov 19, 2012 at 11:45 PM, Sean Corfield wrote:
>
>> I wonder if it's some aspect of lein trampoline on Windows. As I
>> understand it, trampoline generates a file that is used to fire up the next
>> process and it may well have some *nix-ism that isn't compatible with
>> Windows?
>>
>>
>> On Mon, Nov 19, 2012 at 11:18 PM, Mark Engelberg <
>> mark.engelb...@gmail.com> wrote:
>>
>>> I just received the book today.  I was surprised to see how thin it is,
>>> but I'm glad the book exists.  I had a lot of trouble getting up and
>>> running several months ago, using only the scattered install instructions
>>> on the web.  It's nice to have a clear path to getting started.
>>>
>>> Unfortunately, I can't get past page 8 and would appreciate some
>>> additional guidance.
>>> Using the latest lein 2.0 preview 10, I did "lein new cljs2" to create a
>>> new project called cljs2.
>>> Then, I edited the project.clj file as described in the book, using the
>>> latest version number for lein-cljsbuild:
>>>
>>> (defproject cljs2 "0.1.0-SNAPSHOT"
>>>   :description "FIXME: write description"
>>>   :url "http://example.com/FIXME";
>>>   :license {:name "Eclipse Public License"
>>> :url "http://www.eclipse.org/legal/epl-v10.html"}
>>>   :dependencies [[org.clojure/clojure "1.4.0"]
>>>  [org.clojure/clojurescript "0.0-1450"]]
>>>   :plugins [[lein-cljsbuild "0.2.9"]]
>>>   :cljsbuild {:builds []})
>>>
>>> Then, at the command prompt I typed:
>>> lein trampoline cljs-build repl-rhino
>>> and got the following error message.  I'm running on Windows.  Any idea
>>> what's going wrong?
>>> Thanks.
>>>
>>> C:\devel\Clojure\lein\cljs2>lein trampoline cljsbuild repl-rhino
>>> Running Rhino-based ClojureScript REPL.
>>> Exception in thread "main" clojure.lang.LispReader$ReaderException:
>>> java.lang.Ru
>>> ntimeException: EOF while reading, starting at line 1
>>> at clojure.lang.LispReader.read(LispReader.java:215)
>>> at clojure.core$read.invoke(core.clj:3346)
>>> at clojure.core$read.invoke(core.clj:3344)
>>> at clojure.main$eval_opt.invoke(main.clj:295)
>>> at clojure.main$initialize.invoke(main.clj:316)
>>> at clojure.main$script_opt.invoke(main.clj:340)
>>> at clojure.main$main.doInvoke(main.clj:427)
>>> at clojure.lang.RestFn.invoke(RestFn.java:703)
>>> at clojure.lang.Var.invoke(Var.java:450)
>>> at clojure.lang.AFn.applyToHelper(AFn.java:212)
>>> at clojure.lang.Var.applyTo(Var.java:532)
>>> at clojure.main.main(main.java:37)
>>> Caused by: java.lang.RuntimeException: EOF while reading, starting at
>>> line 1
>>> at clojure.lang.Util.runtimeException(Util.java:170)
>>> at
>>> clojure.lang.LispReader.readDelimitedList(LispReader.java:1117)
>>> at clojure.lang.LispReader$ListReader.invoke(LispReader.java:962)
>>> at clojure.lang.LispReader.read(LispReader.java:180)
>>> ... 11 more
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clojure@googlegroups.com
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> clojure+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>>
>>
>>
>>
>> --
>> Sean A Corfield -- (904) 302-SEAN
>> An Architect's View -- http://corfield.org/
>> World Singles, LLC. -- http://worldsingles.com/
>>
>> "Perfection is the enemy of the good."
>> -- Gustave Flaubert, French realist novelist (1821-1880)
>>
>
>
>
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
> World Singles, LLC. -- http://worldsingles.com/
>
> "Perfection is the enemy of the good."
> -- Gustave Flaubert, French realist novelist (1821-1880)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.

Re: [ANN] new book: "ClojureScript: Up and Running"

2012-11-19 Thread George Oliver


On Monday, November 19, 2012 9:34:29 PM UTC-8, puzzler wrote:
>
> Ugh, I should have guessed.  My attempts to do clojurescript several 
> months back were foiled by trampolining problems, but that was on lein 
> 1.7.  I was under the impression those problems had been fixed in lein 2.0, 
> so I had expected it to work, but it looks like there is still an issue.  
> Any easy workaround?
>


VirtualBox? :) 

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

Re: ANN: Clojure/West - Portland, OR - Mar 18-20, 2013

2012-11-19 Thread Cesar Pinera
Sounds good! There's a few more fellow clojurians around. I'll bring the matter 
during our next meeting. You have my email, and my phone is 503-860-2792. It 
was good meeting you at the conj.  


--  
Cesar Pinera


On Monday, November 19, 2012 at 8:32 PM, Alex Miller wrote:

> Thanks for volunteering! I need you!  
>  
> I'll be in touch... (it might be a few weeks but fear not, I have you in my 
> notes).
>  
> Alex
>  
>  
> On Monday, November 19, 2012 12:48:10 AM UTC-6, César Piñera wrote:
> > I hereby volunteer to organize a welcome party of Portland locals, a 
> > goodwill committee of sorts, to plan and orchestrate visits to local 
> > landmarks -and by that I mean microbreweries- and highlights.  
> >  
> >  
> > On Sat, Nov 17, 2012 at 9:26 AM, Alex Miller  > (javascript:)> wrote:
> > > If you somehow missed the Conj, fear not! You can still attend a Clojure 
> > > conference soon!  
> > >  
> > > Clojure/West will take place March 18-20th in the wonderful town of 
> > > Portland, Oregon. We will be using the Gerding Theater at the Armory as 
> > > our venue. Some portions of the conference will be single track like the 
> > > conj and some will be double-track.  
> > >  
> > > Rich Hickey will be there and plans are underway for other great keynote 
> > > speakers. If you're interested in speaking, the Call for Presentations is 
> > > now open:
> > >  
> > > http://clojurewest.org/call-for-presentations/
> > >  
> > > Speakers will receive airfare (stipend if outside US) and hotel 
> > > compensation. The call closes on January 4th and I expect to notify 
> > > speakers and publish the schedule the following week.
> > >  
> > > If you have any questions or suggestions, please let me know.
> > >  
> > > Alex Miller  
> > >  
> > > --  
> > > 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 (javascript:)
> > > 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 (javascript:)
> > > For more options, visit this group at
> > > http://groups.google.com/group/clojure?hl=en
> >  
>  
> --  
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com 
> (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



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