Re: Literate Programming

2011-12-24 Thread daly
On Sat, 2011-12-24 at 12:56 -0600, Jay Edwards wrote: > Like this? http://brighterplanet.github.com/flight/impact_model.html My first reaction, after the first reading was "almost ok". The task is reasonably mathematical so it seems useful to show the equations. Unfortunately, at the end, I hav

Re: Alternative structures to arrays?

2011-12-24 Thread Milton Silva
http://en.wikipedia.org/wiki/Quadtree Quadtrees and octrees are very good for sparse data(2-d and 3-d respectively), but it depends on the manipulations you want to make (depending on how they are implemented some update operations can be very costly when compared to arrays). I think there isn't a

Re: (:require [clojure.contrib.sql :as sql]))

2011-12-24 Thread Sean Corfield
You're still not answering the question of how exactly you are _running_ your Clojure code. No one is going to be able to help you if you don't provide enough details about what _exactly_ you are doing and what error / stack trace you are getting. Please also try the command sequence I showed you

Re: (:require [clojure.contrib.sql :as sql]))

2011-12-24 Thread sixs
C:\>pathg 'pathg' is not recognized as an internal or external command, operable program or batch file. C:\>path PATH=C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\Syst em32\Wbem;C:\hp\bin\Python;c:\Program Files\Common Files\Roxio Shared\DLLShared\ ;c:\Program Files\Com

Re: (:require [clojure.contrib.sql :as sql]))

2011-12-24 Thread Sean Corfield
On Sat, Dec 24, 2011 at 1:49 PM, wrote: > I am trying to run clojure file as: > > (ns mysql > >  (:require [clojure.contrib.sql :as sql])) Looks like you're missing a line here before :subprotocol...? >  :subprotocol "mysql" >         :subname "//loc

Re: Which Clojure libraries with 1.2 dependencies should we upgrade to 1.3?

2011-12-24 Thread Sean Corfield
On Sat, Dec 24, 2011 at 1:29 PM, Robert Levy wrote: > In addition to 3rd-party libs there are also more fka-contrib libs that > should probably be upgraded > (see http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go) and > it might be good to discuss those too.  By the way, I signed

Merry Christmas all

2011-12-24 Thread Colin Yates
And a happy new year! Sent from my iPad -- 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 unsubsc

Re: (:require [clojure.contrib.sql :as sql]))

2011-12-24 Thread sixs
I am trying to run clojure file as: (ns mysql (:require [clojure.contrib.sql :as sql])) :subprotocol "mysql" :subname "//localhost:3306/dummy" :user "root" :password "pass"}) (defn create-users [] (sql/create-table

Which Clojure libraries with 1.2 dependencies should we upgrade to 1.3?

2011-12-24 Thread Robert Levy
I have come across a few libraries here and there that are still on 1.2(.1). I have upgraded some of them as needed. Are there any libraries you use that you would like to see moved? I ask because I have upgraded a good amount of code from 1.2 to 1.3 (mostly proprietary, but a few free libraries to

Re: Alternative structures to arrays?

2011-12-24 Thread Simon Holgate
Thanks for the pointers. I have played with Incanter a little but the vector of vectors seems a good option. Cheers, Simon On 22 déc, 09:08, Brian Hurt wrote: > If I wasn't using Incanter (see Alex Robbin's reply), I'd probably just use > a vector of vectors.  If your matricies 70% dense, it's

Re: core.logic

2011-12-24 Thread David Nolen
A clarification, non-ground keys in maps is not a good idea and not really supported in core.logic. On Saturday, December 24, 2011, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Ambrose, > I tried to run your code .. the following gist describes how I tried to run it ... > https://

Re: core.logic

2011-12-24 Thread Ambrose Bonnaire-Sergeant
Hi Sunil, Here's a version of unify-map with these input/output argument restrictions (I is input, ie. ground, O is output, ie. non-ground) IIOI IIIO https://gist.github.com/1517552 Does this satisfy your requirements? Thanks, Ambrose On Sat, Dec 24, 2011 at 6:54 PM, Sunil S Nandihalli <

Re: Should read-string support \x.. escaped characters?

2011-12-24 Thread Softaddicts
My mother language being French, I would be naturally inclined to say yes. However I do have a real concern, I am currently evaluating a dashboard option to be added to our hospital integration product and our pilot site uses French. I am counting on ClojureScript in the browser to make this thin

Re: multiple return values

2011-12-24 Thread Razvan Rotaru
On Dec 23, 5:08 am, Alan Malloy wrote: > > It turns out even this is not true, becauseproxyuses some kind of > deep JVM magic called (appropriately)ProxyClasses. So every time you > write (proxy[Object] (...anything at all...)), you get an instance of > the same class, initialized with a differe

Re: core.logic

2011-12-24 Thread Ambrose Bonnaire-Sergeant
My function assumes all arguments to be ground values. I'll attempt to revise it tomorrow. Ambrose On Sat, Dec 24, 2011 at 6:54 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Ambrose, > I tried to run your code .. the following gist describes how I tried to > run it ... > htt

Re: core.logic

2011-12-24 Thread Sunil S Nandihalli
Hi Ambrose, I tried to run your code .. the following gist describes how I tried to run it ... https://gist.github.com/384b50f23ff99f409b5c I was expecting the answer to be ([:a :b]) .. but I instead got () .. can you please clarify? Thanks, Sunil. On Sat, Dec 24, 2011 at 4:05 PM, Sunil S Nandiha

Re: core.logic

2011-12-24 Thread Ambrose Bonnaire-Sergeant
Great, glad to help. Ambrose On Sat, Dec 24, 2011 at 6:35 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Thanks Ambrose.. That is exactly what I wanted. > Sunil. > > > On Sat, Dec 24, 2011 at 1:23 PM, Ambrose Bonnaire-Sergeant < > abonnaireserge...@gmail.com> wrote: > >> Or is thi

Re: core.logic

2011-12-24 Thread Sunil S Nandihalli
Thanks Ambrose.. That is exactly what I wanted. Sunil. On Sat, Dec 24, 2011 at 1:23 PM, Ambrose Bonnaire-Sergeant < abonnaireserge...@gmail.com> wrote: > Or is this more what you're after? https://gist.github.com/1516727 > > Ambrose > > On Sat, Dec 24, 2011 at 3:39 PM, Sunil S Nandihalli < > suni