Re: Leiningen in Debian

2011-08-05 Thread Paul Cavallaro
Awesome work guys, thanks a ton! -Paul On Aug 5, 7:17 pm, Phil Hagelberg wrote: > On Fri, Aug 5, 2011 at 5:39 AM, Wolodja Wentland wrote: > > That should be it. I would expect leiningen to be available in Ubuntu > > soonish. > > Have fun and please report all bugs you can find (preferrably wit

Using clj-ssh for scp?

2011-08-05 Thread Nishant Joshi
Hey everyone, I'm trying to use clj-ssh to copy stuff from my laptop to a remote machine (on amazon ec2). I'm able to ssh and run simple commands from the REPL, but the following command doesn't return (it's probably waiting for something) nor does it create any data on the remote machine. I am ab

Re: What information does (:key x) convey?

2011-08-05 Thread Stuart Sierra
Late to the party, but from a compiler hacker's perspective, `(:start voyage)` tells me that `voyage` implements ILookup, and probably Associative. There's nothing that says it can't have side-effects, although none of the built-in data structures do. `(start voyage)` leaves me in the dark: I

Re: JSON library for clojure 1.3

2011-08-05 Thread Stuart Sierra
Are there any features you found essential in clojure.contrib.str-utils{2|3} that are not included in clojure.string? Please let me know, and we can consider tickets for those specific functions. -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google G

Re: ClojureScript Compile errors

2011-08-05 Thread pmbauer
In Clojure, there is a clear distinction between using Clojure namespaces and importing interop packages. Is it a goal then to blur that line in ClojureScript? 'use' couldn't be used analogously just for ClojureScript names as it is in Clojure? On Friday, August 5, 2011 5:14:36 PM UTC-7, Rich

Re: ClojureScript Compile errors

2011-08-05 Thread Rich Hickey
On Aug 5, 2011, at 3:06 PM, David Nolen wrote: On Fri, Aug 5, 2011 at 2:51 PM, Fogus wrote: The following lines looks problematic: (ns mainpage (:use lib.dom-helpers)) That is, ClojureScript only supports the (ns foo (:require [a.b :as c])) form. Try changing your ns declaration ac

Re: Leiningen in Debian

2011-08-05 Thread Phil Hagelberg
On Fri, Aug 5, 2011 at 5:39 AM, Wolodja Wentland wrote: > That should be it. I would expect leiningen to be available in Ubuntu soonish. > Have fun and please report all bugs you can find (preferrably with patches ;) Thanks a bunch for seeing this all the way through, Wolodja! I've submitted an

Re: Interfacing Cljs with external libs.

2011-08-05 Thread Alen Ribic
> Well, Showdown is not really a namespace right?  It's an object in the > global environment.  You should be able to grab it via js/Showdown and do > all kinds of interopey things to it. Right, I totally agree. Where the problem occurs though in this particular scenario is when :optimizations is

Re: Interfacing Cljs with external libs.

2011-08-05 Thread Michael Fogus
Well, Showdown is not really a namespace right? It's an object in the global environment. You should be able to grab it via js/Showdown and do all kinds of interopey things to it. On Aug 5, 2011 4:27 PM, "Alen Ribic" wrote: > Thanks Fogus for clearing that up. > > Would a call to a constructor

Re: Interfacing Cljs with external libs.

2011-08-05 Thread Alen Ribic
Thanks Fogus for clearing that up. Would a call to a constructor function in a namespace of a third-party library be an exception for the time being? (I can't seem to see a clear way you can express that via `js` namespace.) Example: > new Showdown.converter().makeHtml(~{b-txt},~{safe}) Showdown

Re: ClojureScript Compile errors

2011-08-05 Thread pmbauer
You don't need 'use' in production? ;) *ducks* On Friday, August 5, 2011 12:06:29 PM UTC-7, David Nolen wrote: > > On Fri, Aug 5, 2011 at 2:51 PM, Fogus wrote: > >> The following lines looks problematic: >> >>(ns mainpage >>(:use lib.dom-helpers)) >> >> That is, ClojureScript only sup

Re: ClojureScript Compile errors

2011-08-05 Thread David Nolen
On Fri, Aug 5, 2011 at 2:51 PM, Fogus wrote: > The following lines looks problematic: > >(ns mainpage >(:use lib.dom-helpers)) > > That is, ClojureScript only supports the (ns foo (:require [a.b :as > c])) form. Try changing your ns declaration accordingly. > > The error message coul

Re: Interfacing Cljs with external libs.

2011-08-05 Thread Fogus
To access global JavaScript interop thingies (a technical term) you should use the `js` namespace. The use of `js*` should be considered a bad idea. It's used in core, but only for very low-level operations. It should be considered undocumented and therefore off- limits (we're working to elimina

Re: ClojureScript Compile errors

2011-08-05 Thread Fogus
The following lines looks problematic: (ns mainpage (:use lib.dom-helpers)) That is, ClojureScript only supports the (ns foo (:require [a.b :as c])) form. Try changing your ns declaration accordingly. The error message could be slightly better I agree. ;-) :F -- You received thi

Re: [ANN] CongoMongo 0.1.6

2011-08-05 Thread Sean Corfield
On Fri, Aug 5, 2011 at 8:48 AM, Jonathan Fischer Friberg < odysso...@gmail.com> wrote: > Might be appropriate: > https://github.com/aboekhoff/congomongo If folks want the source (or to log bugs etc), yup. There have been quite a few forks - and a rename of the official repo - so that help clears

Re: ClojureScript Compile errors

2011-08-05 Thread Timothy Baldridge
> Would it be possible to look at you project source? Sure this is all the source I currently have written: ;:mode=clojure: (ns lib.dom-helpers (:require [goog.dom :as dom] [goog.dom.classes :as classes])) (defn find-node [search] (if (keyword? search)

Re: Downloadable ClojureScript demo?

2011-08-05 Thread Base
Thanks all! On Aug 5, 12:14 pm, Michael Fogus wrote: > There is nothing ClojureScript specific as a LabRepl type of learning tool; > however, there is a samples directory in > thehttp://github.com/clojure/clojurescriptrepo with a couple of projects to > play with.  The ClojureScript ecosystem is

Re: Downloadable ClojureScript demo?

2011-08-05 Thread Michael Fogus
There is nothing ClojureScript specific as a LabRepl type of learning tool; however, there is a samples directory in the http://github.com/clojure/clojurescript repo with a couple of projects to play with. The ClojureScript ecosystem is in its infacy, but more will come. :-) On Aug 5, 2011 12:39 P

Re: Downloadable ClojureScript demo?

2011-08-05 Thread Alen Ribic
When you download ClojureScript from github have a look at the /samples directory. There is a nice Tweetbuzz sample app. -Alen Sent from my iPhone On 05 Aug 2011, at 6:39 PM, Base wrote: > Hi All - > > When I was getting started with Clojure the labrepl was SO helpful. > Does something like

Downloadable ClojureScript demo?

2011-08-05 Thread Base
Hi All - When I was getting started with Clojure the labrepl was SO helpful. Does something like this exist for ClojureScript to help people get started? Thanks Base -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: [ANN] CongoMongo 0.1.6

2011-08-05 Thread Jonathan Fischer Friberg
Might be appropriate: https://github.com/aboekhoff/congomongo Jonathan On Fri, Aug 5, 2011 at 1:29 AM, Sean Corfield wrote: > Available on Clojars. > > Compatible with Clojure 1.2 and Clojure 1.3. Fixes (almost) all reflection > warnings. Handles multi-server connections (bug in previous snapsho

Re: Problem when use google closure library when use optimizations (simple/advanced)

2011-08-05 Thread Fogus
Thank you for sharing your eventual solution. For the future, the Google Closure library reference is at http://closure-library.googlecode.com/svn/docs/index.html -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c

Re: One name space / Multiple Modules

2011-08-05 Thread Armando Blancas
You can see a concrete example of Meikel's answer right there in the Clojure sources: files core.clj, core_deftype.clj, core_print.clj, and core_proxy.clj define the clojure.core namespace. On Aug 5, 4:57 am, octopusgrabbus wrote: > Sure. module = .clj file > > On Aug 5, 2:35 am, Laurent PETIT w

Re: ClojureScript Compile errors

2011-08-05 Thread Fogus
> how do I deal with ClojureScript compile errors? For > instance: Would it be possible to look at you project source? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from

Re: Modelling relationships between objects

2011-08-05 Thread David Nolen
On Fri, Aug 5, 2011 at 10:21 AM, Meikel Brandmeyer (kotarak) wrote: > Hi, > > Am Freitag, 5. August 2011 15:56:28 UTC+2 schrieb faenvie: > >> so in your case after initial load of the knowledge-base there are no >> changes >> that need to be persisted, right ? >> > > Exactly. It's not a running s

Re: Modelling relationships between objects

2011-08-05 Thread Meikel Brandmeyer (kotarak)
Hi, Am Freitag, 5. August 2011 15:56:28 UTC+2 schrieb faenvie: > > so in your case after initial load of the knowledge-base there are no > changes > that need to be persisted, right ? > Exactly. It's not a running server process or the like. Just a simple small tool. The input data are create

Re: Modelling relationships between objects

2011-08-05 Thread faenvie
hi meikel so in your case after initial load of the knowledge-base there are no changes that need to be persisted, right ? following stefan tilkovs book i want to do a simple RESTful order-management (exercise only) and think of using core.logic for query-logic. persisting changes to rdbms seems

Re: Leiningen in Debian

2011-08-05 Thread Ambrose Bonnaire-Sergeant
Sweet! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email t

Re: Leiningen in Debian

2011-08-05 Thread Wolodja Wentland
On Fri, Aug 05, 2011 at 13:39 +0100, Wolodja Wentland wrote: > # apt-get build-dep librobert-hooke-clojure-clojure > # apt-get source -b librobert-hooke-clojure-clojure > # dpkg -i librobert-hooke-clojure*.deb This should have been "librobert-hooke-clojure" not "librobert-hooke-clojure

Re: Modelling relationships between objects

2011-08-05 Thread David Nolen
On Fri, Aug 5, 2011 at 8:29 AM, Meikel Brandmeyer (kotarak) wrote: > Hi, > > Am Freitag, 5. August 2011 14:06:58 UTC+2 schrieb David Nolen: > > > > Nope there's a not in the source to switch to refs and transactions. > > Woops. Indeed. I missed the comment. > > > >> And a last question: Is this s

Leiningen in Debian

2011-08-05 Thread Wolodja Wentland
Hi all, I have been working with Phil on the packaging of Leiningen for Debian and it has just been uploaded into the archive. The installation on most Debian versions is pretty painless: Sid --- # apt-get install leiningen Squeeze --- You can easily backport the packages from sid and

Re: Modelling relationships between objects

2011-08-05 Thread Meikel Brandmeyer (kotarak)
Hi, Am Freitag, 5. August 2011 14:06:58 UTC+2 schrieb David Nolen: > Nope there's a not in the source to switch to refs and transactions. Woops. Indeed. I missed the comment. >> And a last question: Is this something like (or developed to or help >> to move) contrib.datalog? > > As far as I can

Re: Modelling relationships between objects

2011-08-05 Thread David Nolen
On Fri, Aug 5, 2011 at 7:46 AM, faenvie wrote: > hi david, > > thanks for the sample ... > > as you have asked for questions, i take the chance for asking > a question that's in my mind for some times now: > > are there concepts for how to combine core.logic (minikanren) with > (database backed)

Re: Modelling relationships between objects

2011-08-05 Thread David Nolen
On Fri, Aug 5, 2011 at 2:19 AM, Meikel Brandmeyer (kotarak) wrote: > I agree. Clojure does a lot to separate such concerns. facts modifies two > atoms. Is this save in all cases? > Nope there's a not in the source to switch to refs and transactions. > Another superficial question: Should facts

Re: Modelling relationships between objects

2011-08-05 Thread David Nolen
On Thu, Aug 4, 2011 at 7:18 PM, Laurent PETIT wrote: > > What kind of "strict control over state mutation" stories can we expect > when using core.logic ? > I mean, in the above example, I see no explicit use of refs, and I see > somewhat "unmanaged" state change with the introduction of the new c

Re: One name space / Multiple Modules

2011-08-05 Thread octopusgrabbus
Sure. module = .clj file On Aug 5, 2:35 am, Laurent PETIT wrote: > 2011/8/4 octopusgrabbus > > > Can more than one module implement the same name space? In other > > words, can the functions that comprise a name space be spread out in > > multiple modules? > > To help answer the right question,

Re: Modelling relationships between objects

2011-08-05 Thread faenvie
hi david, thanks for the sample ... as you have asked for questions, i take the chance for asking a question that's in my mind for some times now: are there concepts for how to combine core.logic (minikanren) with (database backed) long term persistence ? my reasing: there must be, because pro

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-08-05 Thread Andreas Liljeqvist
I have problem getting it to work. Windows 7. swank-clojure 1.4.0-SNAPSHOT clojure-mode 1.10.0 lein 1.6.1 GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600) of 2011-03-10 on 3249CTO project.clj: (defproject tetris "1.0.0-SNAPSHOT" :description "FIXME: write" :dependencies [[org.clojure/clojure "1.2.1"]

Re: Interfacing Cljs with external libs.

2011-08-05 Thread Alen Ribic
Currently, you can wrap the JS call in js* like so (js* "MyLib.doSomething(arg1,arg2)"). So this will pass the compile time without resolving the external lib calls. It is worth noting that you may come across an interesting problem that I did in similar scenario to yours. If you set the optimizat

Re: How to write `when-lets`

2011-08-05 Thread Shen, Feng
I learned a lot. Thanks. Best Regards Shen Feng On Wed, Jul 27, 2011 at 8:50 PM, Feng Shen wrote: > Clojure core.clj has a macro when-let, > I am wondering how to write a macro `when-lets` > > (when-lets [symbol-1 test-1 > symbol-2 test-2 >... >] >