A newbie question with using parkour

2015-02-22 Thread Sunil S Nandihalli
Hi Everybody, I am complete newbie to using parkour. I am having trouble just reading in data. Can somebody help me figure out the problem. The code I am using is here.. https://gist.github.com/52f4298e5b6ca6a46699 I agree that there is no other stage apart from the input. I had all other stage

Re: A newbie question with using parkour

2015-02-22 Thread Sunil S Nandihalli
Thanks Jeremy for the response. I was using clojure-1.7.0-alpha5 , parkour 6.2that looked was the original problem. After I changed the version to clojure-1.6.0 I got past that problem and hit a new set of problems. Marshall suggested that the issue could be because of mismatched hadoop-versions. I

Dependency conflict between parkour [0.6.2] and inflections [0.9.13]

2015-02-23 Thread Sunil S Nandihalli
Hi Everybody, I am having a dependency conflict when using parkour and inflections library. [inflection "0.9.13"] also pulls [com.google.protobuf/protobuf-java "2.4.1"] I don't want it to pull [com.google.protobuf/protobuf-java "2.4.1"] since the hadoop system (CDH-5.3.1) I am running already

Re: Dependency conflict between parkour [0.6.2] and inflections [0.9.13]

2015-02-23 Thread Sunil S Nandihalli
AM, Sunil S Nandihalli < > sunil.nandiha...@gmail.com> wrote: > >> I tried putting the above in :exclusions in the project.clj with no >> success. > > > What do you mean by "with no success"? Can you show how you modified your > project.clj? > > -- &g

cascalog and java 1.7

2015-02-26 Thread Sunil S Nandihalli
Hi Everybody, I have been meaning to try cascalog for a while now looking at its powerful query language. But today when I was trying to play with it I am getting some errors and when I go back cascalog readme page it says cascalog runs only with java 1.6 . Is it just that the readme is outdated o

Re: cascalog and java 1.7

2015-02-27 Thread Sunil S Nandihalli
the Hadoop distro you've chosen runs on JDK6 or JDK8 > you're going to be fine. > > Cheers, > Sam > > Sunil S Nandihalli > February 26, 2015 at 1:25 PM > Hi Everybody, > I have been meaning to try cascalog for a while now looking at its > powerful query l

Re: Probabilistic programming anyone?

2015-05-12 Thread Sunil S Nandihalli
Hi Frank, I am looking forward to giving it a shot. I am familiar with and used Stan. While I understand that stan may not as flexible. A comparison with of Anglician with Venture and Stan would be very much appreciated. Thanks for probabilistic-language embedded in clojure. Sunil. On Wed, May 1

[no subject]

2014-06-23 Thread Sunil S Nandihalli
Hi Everybody, I have the following lein setup. sunil@ubuntu-14:~/rabbit/rabbit-clj$ lein version Leiningen 2.4.2 on Java 1.7.0_55 OpenJDK Server VM I get the following exception when i run "lein repl" can somebody tell me as to what could be wrong? Exception in thread "main" java.lang.IllegalA

Re:

2014-06-23 Thread Sunil S Nandihalli
answering my own question. a closer look at the stack-trace revealed that it was a problem with vinyasa plugin which was part of the profiles.clj. Removing it fixed it. I haven't tried to get vinyasa working. thanks, Sunil. On Mon, Jun 23, 2014 at 1:35 PM, Sunil S Nandihalli < sunil

pigpen newbie question

2014-09-11 Thread Sunil S Nandihalli
Hi , I am trying to compile a simple clj file which does nothing apart from requiring the pigpen name-space and it fails to compile with the following error. Can anybody help? Attempting to call unbound fn: #'instaparse.combinators-source/cat the full stack trace is here. https://gist.github.com

Re: pigpen newbie question

2014-09-11 Thread Sunil S Nandihalli
back to a non-alpha release of Clojure, or wait for the > pigpen folks to update, or perhaps there is some leiningen-fu you can do in > the project.clj file to override the instaparse dependency loaded by pigpen > with instaparse 1.3.4. > > On Thu, Sep 11, 2014 at 5:16 PM, Sunil S

Re: pigpen newbie question

2014-09-11 Thread Sunil S Nandihalli
f instaparse. > > You can either go back to a non-alpha release of Clojure, or wait for the > pigpen folks to update, or perhaps there is some leiningen-fu you can do in > the project.clj file to override the instaparse dependency loaded by pigpen > with instaparse 1.3.4. > > On

Re: pigpen newbie question

2014-09-15 Thread Sunil S Nandihalli
with an update > to deal with this change in alpha 2, but pigpen has not yet been updated to > use that version of instaparse. > > You can either go back to a non-alpha release of Clojure, or wait for the > pigpen folks to update, or perhaps there is some leiningen-fu you can do in &g

behavior of as-> macro

2014-09-29 Thread Sunil S Nandihalli
Hi everybody, I get the following when I try to use the as-> macro user=> (def x (as-> {:a 10 :b 20} {:keys [a b] :as w} {:a (* 2 a) :b (* 2 b)})) #'user/x user=> x {:keys [20 40], :as {:a 20, :b 40}} user=> I would have expected x to be {:a 20 :b 40}, not what I see above. Can somebody expla

Re: behavior of as-> macro

2014-09-29 Thread Sunil S Nandihalli
2014 at 2:11 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi everybody, > I get the following when I try to use the as-> macro > > > user=> (def x (as-> {:a 10 :b 20} {:keys [a b] :as w} {:a (* 2 a) :b (* 2 > b)})) > #'user/x > user=&g

Re: behavior of as-> macro

2014-09-29 Thread Sunil S Nandihalli
upvoted your bug-report. On Mon, Sep 29, 2014 at 4:56 PM, Nahuel Greco wrote: > I reported this issue to the Clojure JIRA a while ago: > http://dev.clojure.org/jira/browse/CLJ-1418 , please vote it up. > El 29/09/2014 05:55, "Sunil S Nandihalli" > escribió: > >&g

Re: `as->` does not work with `recur`.

2014-10-04 Thread Sunil S Nandihalli
This issue has been reported May be you should upvote this.. http://dev.clojure.org/jira/browse/CLJ-1418 On Sun, Oct 5, 2014 at 4:56 AM, Leon Grapenthin wrote: > Thought: > > (defmacro as-> > [expr name & forms] > `(let [~name ~expr >~@(interleave (repeat name

Re: [ANN] rmap - define lazy, recursive maps

2014-10-04 Thread Sunil S Nandihalli
On Sun, Oct 5, 2014 at 1:17 AM, Mayank Jain wrote: > This looks amazing! > Could you write a blog post explaining in detail your thought process, > what inspired you, and walking through what you have written? > +1 for usage patterns that motivated this... > > Thanks! This is beautiful! :D > > O

class file too large

2014-10-05 Thread Sunil S Nandihalli
Hi Everybody, I am getting class file too-large errors when I compile the clojure file. Do you have pointers as to how one can identify the offending piece of code? Thanks, Sunil. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: class file too large

2014-10-05 Thread Sunil S Nandihalli
if it makes the difference. Thanks, Sunil. On Sun, Oct 5, 2014 at 5:18 PM, Michael Klishin wrote: > > > On 5 October 2014 at 15:20:36, Sunil S Nandihalli ( > sunil.nandiha...@gmail.com) wrote: > > I am getting class file too-large errors when I compile the clojure > > file. D

uniqueness of hash if computed on different jvms across different machines.

2014-10-12 Thread Sunil S Nandihalli
Hi, Is the clojure hash function guaranteed to produce the same hash on different jvms running on different jvms for the same "data-structure" which would satisfy "equality" if checked on a single jvm. The data structure is simply a hash-map. Thanks, Sunil. -- You received this message because yo

Get the value of the persistentArrayMap from the exception which was thrown

2014-11-05 Thread Sunil S Nandihalli
Hi Everybody, user=> ({:a 1}) ArityException Wrong number of args (0) passed to: PersistentArrayMap clojure.lang.AFn.throwArity (AFn.java:429) user=> *e # >From *e is it possible to infer that the object which threw it was {:a 1}? Thanks, Sunil. -- You received this message because you are s

help with my inefficient instaparse grammar

2014-12-02 Thread Sunil S Nandihalli
Hi Everybody, https://gist.github.com/cced1cf377ed49005704 *instaparse_question.clj* Raw

Re: help with my inefficient instaparse grammar

2014-12-02 Thread Sunil S Nandihalli
The file I tried it on is here <https://gist.github.com/8c0daef5b832b58c86fa> On Wed, Dec 3, 2014 at 10:28 AM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Everybody, > https://gist.github.com/cced1cf377ed49005704 *instaparse_question.clj* > <https://g

Re: Clojure with Tensorflow, Torch etc (call for participation, brainstorming etc)

2016-10-06 Thread Sunil S Nandihalli
I think deeplearning4J is a contender for deeplearning in clojure. I have not used it .. but I repeatedly see the sponsored link on clojure-reddit. Since nobody mentioned it .. I thought of mentioning it On Fri, Oct 7, 2016 at 7:40 AM, kovas boguta wrote: > On Thu, Oct 6, 2016 at 9:26 PM, Mikera

how to speedup lein uberjar?

2015-10-26 Thread Sunil S Nandihalli
Hi Everybody, My lein uberjar takes about 2 minutes to run. It also recompiles all the clj files everytime. Is there a way to speedup lein-uberjar .. Or may be make it incremental? Thanks, Sunil. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: how to speedup lein uberjar?

2015-11-01 Thread Sunil S Nandihalli
is your use case and workflow around this? > > Thanks. > > Asim > > On Mon, Oct 26, 2015 at 2:04 AM, Sunil S Nandihalli < > sunil.nandiha...@gmail.com> wrote: > >> Hi Everybody, >> My lein uberjar takes about 2 minutes to run. It also recompiles all >> t

Re: how to speedup lein uberjar?

2015-11-02 Thread Sunil S Nandihalli
can run the driver > inside the REPL and then test out the changes in the REPL. Once you have > something that works you can save that and deploy an uberjar. > > Deploying an uberjar 4-5 times an hour feels like it goes against the > spirit of Clojure. > > Asim > > On Sun

Re: how to speedup lein uberjar?

2015-11-03 Thread Sunil S Nandihalli
. Regards, Sunil. On Tue, Nov 3, 2015 at 12:05 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Thanks Asim for this suggestion. I wanted to do it but did not have the > bandwidth to explore how to do it.. I am new to spark.. I usually do > repl-driven dev for local apps..

Re: how to speedup lein uberjar?

2015-11-03 Thread Sunil S Nandihalli
have used something much simpler in the past such > as server-socket. This starts listening on a specific port and then you can > telnet to that port from your client and start telnet with rlwrap to get > history and editing. > > Asim > > On Tue, Nov 3, 2015 at 12:00 AM, Sunil

stack overflow

2015-12-12 Thread Sunil S Nandihalli
Hi Everybody, I wrote the simple function for computing the number of binary-search-trees that can be formed from a sequence of numbers from 1 to N using memoization. I get a stack-overflow for values more than N of 196. Can anybody help me in figuring out how to fix this? Thanks, Sunil. (defn num

Re: stack overflow

2015-12-12 Thread Sunil S Nandihalli
a small correction. The function computes the modulo 10007 of the answer and not the answer itself. I ran it in the repl. Thanks, Sunil. On Sun, Dec 13, 2015 at 11:08 AM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Everybody, > I wrote the simple function for c

Re: stack overflow

2015-12-13 Thread Sunil S Nandihalli
e is to write the code in a way > that doesn't make recursive calls, but this can often be fairly > inconvenient for functions that are naturally written recursively. > Increasing the maximum stack size would be a lot quicker. > > Andy > > On Sat, Dec 12, 2015 at 9:38 PM, S

Re: stack overflow

2015-12-13 Thread Sunil S Nandihalli
Thanks Mark. That is exactly what I ended up doing. Regards, Sunil. On Sun, Dec 13, 2015 at 8:45 PM, Mark Engelberg wrote: > Call your memoized function on values 1 .. n-1 first, before calling it on > n. > On Dec 12, 2015 9:45 PM, "Sunil S Nandihalli" > wrote: > &

A doubt about core.matrix

2016-02-16 Thread Sunil S Nandihalli
Hi Everybody, I am newbie to core.matrix .. I have the following expression W -> a large spare matrix of size MxN U -> a dense matrix of size MxK V -> a dense matrix of size KxN and K << (M,N) (require [clojure.core.matrix :as m]) I want to compute (m/mul W (m/* U V)) m/mul c

Re: A doubt about core.matrix

2016-02-17 Thread Sunil S Nandihalli
Thanks Mikera, for the detailed response. I tested the element-wise product on two sparse matrix.. it seems to run through the entire matrix ? Am I missing something. Regards, Sunil On Wed, Feb 17, 2016 at 7:47 AM, Mikera wrote: > Hi Sunil, > > You are correct that the naive code will eagerly p

unable to understand the behaviour of core.matrix/emap ( Bug maybe? )

2016-02-18 Thread Sunil S Nandihalli
Hi Everybody There seems to be a problem with core.matrix/emap implementation for vectorz implementation sunil@peacock:~/work/wnmf/clj/wnmf$ lein repl Clojure 1.8.0 wnmf.core=> (def t (m/array [[10] [20]])) #'wnmf.core/t wnmf.core=> (m/pm t) [[10.000] [20.000]] nil wnmf.core=> (m/pm (m/emap / t

Re: unable to understand the behaviour of core.matrix/emap ( Bug maybe? )

2016-02-22 Thread Sunil S Nandihalli
Thanks Mikera, Looking forward to the release. Regards, Sunil. On Tue, Feb 23, 2016 at 12:31 PM, Mikera wrote: > Yeah, confirmed this is a bug in vectorz-clj. Indexing error meant that > the operator was getting applied to the first row twice, instead of once to > each row. > > There is a fix an

a project template containing clj, cljs cljc files

2016-03-05 Thread Sunil S Nandihalli
Hi everybody, I am trying to port an old project which uses cljx plugin and reagent to use cljc and reader-conditionals. I was wondering if somebody can share a simple template which has clj, cljs and cljc files in it? Thanks and regards, Sunil. -- You received this message because you are subs

Re: a project template containing clj, cljs cljc files

2016-03-06 Thread Sunil S Nandihalli
create a new > >> directory for your .cljc files and add that to the project > >> source-path. > >> > >> On 6 March 2016 at 05:25, Sunil S Nandihalli < > sunil.nandiha...@gmail.com> > >> wrote: > >> > Hi everybody, > >> >

cljs build goog/base.js is not getting generated properly..

2016-03-06 Thread Sunil S Nandihalli
Hi Everybody, when I compile my cljs project, I find that goog/base.js has the contents // This is a dummy file to trick genjsdeps into doing the right thing. // TODO(nicksantos): fix this because of this my compiled js file is having trouble finding the goog namespace. What is causing this to h

Re: cljs build goog/base.js is not getting generated properly..

2016-03-06 Thread Sunil S Nandihalli
Please find my project.clj here https://gist.github.com/f3bcb03fdbbee75b56df Thanks, Sunil On Sun, Mar 6, 2016 at 6:18 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Everybody, > when I compile my cljs project, I find that goog/base.js has the contents > >

Re: cljs build goog/base.js is not getting generated properly..

2016-03-06 Thread Sunil S Nandihalli
Thanks Thomas for the response when I did lein deps :tree | egrep google I got [com.google.javascript/closure-compiler "v20151216"] [org.clojure/google-closure-library "0.0-20151016-61277aea"] [org.clojure/google-closure-library-third-party "0.0-20151016-61277aea"] the full output i

Re: cljs build goog/base.js is not getting generated properly..

2016-03-06 Thread Sunil S Nandihalli
I added all the recommended exclusions and I still see the above issue I mentioned. On Sun, Mar 6, 2016 at 7:03 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Thanks Thomas for the response > > when I did > > lein deps :tree | egrep google > > I got &g

Re: cljs build goog/base.js is not getting generated properly..

2016-03-06 Thread Sunil S Nandihalli
March 6, 2016 at 3:41:14 PM UTC+1, Sunil Nandihalli wrote: >> >> I added all the recommended exclusions and I still see the above issue I >> mentioned. >> >> >> On Sun, Mar 6, 2016 at 7:03 PM, Sunil S Nandihalli > > wrote: >> >>> Thanks Thomas

Re: [ANN] Inlein 0.1.0

2016-03-13 Thread Sunil S Nandihalli
Thanks Jean for this. A quick comparison to lein-exec shows that your stuff is very similar to lein-exec but probably much simpler to use with much faster startup times. I tried it. Thanks again. Sunil. On Sun, Mar 13, 2016 at 7:39 PM, Jean Niklas L'

connecting to infobrite server from clojure

2016-05-02 Thread Sunil S Nandihalli
Hi Everybody, I have tried to connect to infobrite server using clojure.java.jdbc . Infobrite server is supposed to be identical to mysql in terms of the protocol. I have successfully used mysqlworkbench to talk to it. When I try to connect to the infobrite server using clojure.java.jdbc, I get th

Re: connecting to infobrite server from clojure

2016-05-02 Thread Sunil S Nandihalli
Thanks Shantanu for the response. I installed dbvisualizer and it seems to work perfectly fine with infobright. On Mon, May 2, 2016 at 1:04 PM, Shantanu Kumar wrote: > Could you try connecting to InfoBright using DbVisualizer? It is a Java > based tool and any differences w.r.t. the MySQL JDBC

Re: connecting to infobrite server from clojure

2016-05-02 Thread Sunil S Nandihalli
Hi Shantanu, I am attaching the error stack trace of the exception I got. I am still unable to figure out what is happening. Thanks, sunil. On Mon, May 2, 2016 at 1:22 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Thanks Shantanu for the response. I installed dbvisualiz

Re: connecting to infobrite server from clojure

2016-05-03 Thread Sunil S Nandihalli
Hi Shantanu, Thanks for the inputs. I was able to resolve the problem by changing the version of mysql-java-connector library to 5.1.29. I was previously using 6.0.2 (latest). Regards, Sunil On Mon, May 2, 2016 at 7:04 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi

Unable to call the method when it clearly exists..

2016-05-12 Thread Sunil S Nandihalli
Hi everybody, I am trying to call function "parquet" on the var "inp-rdr-s". From the following reflection output using clojure.reflect, it is clear that the method parquet exists. However I am unable to call the function. Can somebody help? Thanks and regards, Sunil bidland.core> (def parq-path

Re: Unable to call the method when it clearly exists..

2016-05-12 Thread Sunil S Nandihalli
Just to add to the previous email, I have also tried (. inp-rdr-s (parquet (to-array '(parq-path)) but got the same error. Thanks Sunil. On Fri, May 13, 2016 at 9:55 AM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi everybody, > I am trying to call function &qu

Re: Unable to call the method when it clearly exists..

2016-05-12 Thread Sunil S Nandihalli
1 AM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Just to add to the previous email, > I have also tried > > (. inp-rdr-s (parquet (to-array '(parq-path)) > > but got the same error. > Thanks > Sunil. > > On Fri, May 13, 2016 at 9:55 AM, Sunil S Nan

rseq for subvec in clojurescript

2014-02-16 Thread Sunil S Nandihalli
Hi Everybody, I get the following error when I do a rseq on a subvec in clojurescript Uncaught Error: No protocol method IReversible.-rseq defined for type cljs.core/Subvec: [(:red :clockwise) (:blue :clockwise) (:yellow :clockwise) (:yellow :clockwise) (:orange :clockwise)] Is this a known probl

Re: rseq for subvec in clojurescript

2014-02-17 Thread Sunil S Nandihalli
thanks Michal for the fix. On Mon, Feb 17, 2014 at 12:58 AM, Michał Marczyk wrote: > It is now, thanks for the report! > > Ticket with patch: > > http://dev.clojure.org/jira/browse/CLJS-765 > > > On 16 February 2014 17:48, Sunil S Nandihalli > wrote: > >

Re: call clojure from java

2014-02-18 Thread Sunil S Nandihalli
You can't call a clojurescript function from java. However you can call clojure-code from Java and clojurescript code from javascript. On Tue, Feb 18, 2014 at 5:09 PM, sorin cristea wrote: > Hi > > do you know how I can call a clojure script from a java method ? > > > Thanks, > Sorin. > > -- >

Re: call clojure from java

2014-02-18 Thread Sunil S Nandihalli
sorry I misread the email! On Tue, Feb 18, 2014 at 6:17 PM, Michael Klishin < michael.s.klis...@gmail.com> wrote: > > 2014-02-18 16:00 GMT+04:00 Sunil S Nandihalli > : > > You can't call a clojurescript function from java. However you can call >> clojure-code

Re: how to convert current time to format i need?

2014-04-29 Thread Sunil S Nandihalli
Hi , I didn't verify if that particular formatter comes prepackaged ( I am assuming you are using clj-time since it is not mentioned..) Once you have created your custom formater all you have to do is "unparse" (clj-time.formatter/unparse ) . This is there in the readme.. may be you missed it.

a simple macro to tame the run-away loop-recurs

2013-12-28 Thread Sunil S Nandihalli
Hi Everybody, I just wrote a simple macro to tame the run-away loop-recur infinite loops. Some of you may find use for it. It only handles loop-recur pairs not fn-recur combination. It is trivial but useful .. so thought of sharing. (defmacro limit [max-recurs loop-expr] (let [[_ bindings & bod

How to place unicode characters in span tag in reagent (formerly known as cloact)

2014-01-27 Thread Sunil S Nandihalli
Hi Everybody, Can somebody help me figure out as to how I can place a unicode character. What I have tried is [:span "↺"] with the correct header but it renders it as-is. Thanks, Sunil. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: How to place unicode characters in span tag in reagent (formerly known as cloact)

2014-01-27 Thread Sunil S Nandihalli
ntity escaped. Try just [:span "\U"] with the > appropriate code (maybe the same one, 8634) for and see if that works. > > > On Mon, Jan 27, 2014 at 6:15 AM, Sunil S Nandihalli < > sunil.nandiha...@gmail.com> wrote: > >> Hi Everybody, >> Can some

webgl and reagent(cljs wrapper for reactjs)

2014-02-01 Thread Sunil S Nandihalli
Hi Everybody, I am new to web-programming but have done some stuff with clojurescript. Now I was looking add an webgl based canvas to render a cube. I am using reagent which is a cljs-wrapper around reactjs. I am unable to decide, due to my inexperience in bot

Re: jna Java Native Acess and clojure ....

2010-08-10 Thread Sunil S Nandihalli
Thanks Chouser for your reply .. I was wondering if it is possible to acess c++ code via clj-native .. I only seem to find c-native calls .. do you have a comment on this.. Sunil. On Mon, Aug 9, 2010 at 9:01 PM, Chouser wrote: > On Mon, Aug 9, 2010 at 10:55 AM, Sunil Nandihalli > wrote: > > Hel

Re: jna Java Native Acess and clojure ....

2010-08-10 Thread Sunil S Nandihalli
Thanks Mac for your clarification .. I am using clojure 1.2 .. so should be fine. And I was wondering if I can acess c++ stuff via clj-native .. What are your suggestions? Sunil On Tue, Aug 10, 2010 at 12:45 PM, mac wrote: > I'm the author of clj-native. > Currently it only works with Clojure 1.

help with native-jar files..

2010-08-25 Thread Sunil S Nandihalli
Hello everybody, I wanted to package jreality along with its native dependencies and upload it to my clojars since there were none already there.. I followed the procedure on http://nakkaya.com/2010/04/05/managing-native-dependencies-with-leiningen/ the resultant was the following ... http://cl

clojure and jogl and jReality

2010-08-30 Thread Sunil S Nandihalli
Hello everybody, I am trying to get a simple java code (about 10 lines in clojure ) which uses jReality ported to clojure. This is my attempt has been kind of half way successfull. The corresponding github-repo link is git://github.com/sunilnandihalli/jRealityTutorial.git The project is nic

Re: clojure and jogl and jReality

2010-09-01 Thread Sunil S Nandihalli
Hi David, Thanks for your response. I actually didn't know which is the correct jogl.jar to use .. So, I tried various things 1. searched for all the jogl on the clojars and added them to my project (it turns out that all the dependencies were pushed by Mozinator) .. but it does not seem to work..

matching with wild-cards in clojure multi-methods

2010-09-05 Thread Sunil S Nandihalli
Hello everybody, It is awesome that we can specify our own dispatch functions and corresponding values.. However, I feel we should also have control over the functions that is used to match the value of the dispatch function with that of the one specified in the defmethod. For instance if my dis

Re: matching with wild-cards in clojure multi-methods

2010-09-06 Thread Sunil S Nandihalli
It looks like the matchure <http://github.com/dcolthorp/matchure.git> does this kind of thing .. :) .. I guess somebody has already written a library to do what I wanted ... On Mon, Sep 6, 2010 at 9:44 AM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Mark, &

Re: matching with wild-cards in clojure multi-methods

2010-09-06 Thread Sunil S Nandihalli
odify the below to be what you are envisioning): > > (defmulti foo mclass) > (defmethod foo "1" [s] (str "I'm method 1")) > (defmethod foo "2" [s] (str "I'm method 2")) > > > > On Sun, Sep 5, 2010 at 11:58 PM, Sunil S Nandihall

Re: matching with wild-cards in clojure multi-methods

2010-09-06 Thread Sunil S Nandihalli
the idea: > > (defmulti foo mclass) > (defmethod foo 1 [s] (str "I'm method 1")) > (defmethod foo 2 [s] (str "I'm method 2")) > ... > > Is this what you are getting at? > > - Mark > > On Sun, Sep 5, 2010 at 8:50 PM, Sunil S Nandihalli < >

Re: external clojure lib >

2010-09-06 Thread Sunil S Nandihalli
Hi Abraham, Make sure that the jar file of the "external" library you are referring to is in path. If you are developing clojure code .. I would strongly advice you to use leiningen which takes care of a lot of these things for you. Btw. what is the "development environment" you are using? .. Try

Re: matching with wild-cards in clojure multi-methods

2010-09-06 Thread Sunil S Nandihalli
thanks Meikel for the suggestion .. I never thought of that .. (or actually didn't know about it).. I think that helps.. Sunil. On Mon, Sep 6, 2010 at 8:19 PM, Meikel Brandmeyer wrote: > Hi, > > On 6 Sep., 16:43, Meikel Brandmeyer wrote: > > > (defmulti foo > > your-dispatch-fn-here > > :hi

Re: external clojure lib >

2010-09-06 Thread Sunil S Nandihalli
when I say "is in path" ... I meant that you CLASSPATH variable has this jar file in it.. On Mon, Sep 6, 2010 at 8:30 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Abraham, > Make sure that the jar file of the "external" library you are refer

Re: Mapping a function to a map

2010-09-06 Thread Sunil S Nandihalli
Nicolas I am not sure of the performance characteristics.. but you may want to look at *(clojure.walk/walk #(do (println "inner : " %) %) #(do (println "outer : " %) %) {:a 1 :b 2}) * Best regards, Sunil. On Mon, Sep 6, 2010 at 9:10 PM, Nicolas Oury wrote: > Dear all, > > is there a function to

Re: Mapping a function to a map

2010-09-06 Thread Sunil S Nandihalli
(clojure.walk/walk (fn [[key val]] [key (* 2 val)]) identity {:a 1 :b 2}) On Mon, Sep 6, 2010 at 9:26 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Nicolas > I am not sure of the performance characteristics.. but you may want to look > at > > *(clojure.wa

giws a window for people using c/c++ into clojure ..

2010-09-07 Thread Sunil S Nandihalli
Hello everybody, I recently came across giws http://www.scilab.org/products/other/giws a tool to call java code from c/c++ all it really needs to generate all the jni-wrappers is a simple xml file which indicates the class name and the member functions .. some thing as simple as ...

Re: giws a window for people using c/c++ into clojure ..

2010-09-08 Thread Sunil S Nandihalli
, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hello everybody, > I recently came across giws > > http://www.scilab.org/products/other/giws > > a tool to call java code from c/c++ all it really needs to generate all the > jni-wrappers is a simple xml file which i

Re: Knowing in advance the complexity of count

2010-09-09 Thread Sunil S Nandihalli
actually there is a function called counted? Sunil. On Thu, Sep 9, 2010 at 8:59 PM, Nicolas Oury wrote: > Thank you very much. > > Never looked closely at count definition. > > I assumed it was a forawrd to .count of Counted, which explains my problem. > > I kind of remembered the O(1) of Coun

is it possible to check if a "promise" has been "deliver"ed to without blocking?

2010-09-13 Thread Sunil S Nandihalli
Hello Everybody, Let us say I have something like (def s (promise)) . . . . now can I check if the promise hase been delivered .. Thanks Sunil. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

Re: is it possible to check if a "promise" has been "deliver"ed to without blocking?

2010-09-14 Thread Sunil S Nandihalli
nt/util.clj#L21 > > Cheers, > Hubert. > > > On Tue, Sep 14, 2010 at 8:51 AM, Sunil S Nandihalli > wrote: > > Hello Everybody, > > Let us say I have something like > > (def s (promise)) > > . > > . > > . > > . > > now can I check if the

defining a function ...

2010-09-25 Thread Sunil S Nandihalli
Hi everybody, The following is a http://pastebin.com/0r9BBdmK code which is using clojuratica. I am trying to write a function .. But when evaluated it is not behaving as expected. The function definition is (defn irreducibleQ [x] (With [f 10 g 20] (* f (+ g x The output expecte

evaluation of a function via clojure ...

2010-10-04 Thread Sunil S Nandihalli
Hello everybody, I am trying to use clojure along with mathematica. Thanks to Clojuratica, the integration is seamless.. when I try to execute the following code (math (SetDelayed (func1 (Pattern x (Blank))) (With [f 10 g 20] (* f (+ g x) (math (func1 30)) I got (Clojuria

evaluation of a function via mathematica from clojure using the clojuratica bridge...

2010-10-04 Thread Sunil S Nandihalli
I am sorry for reposting .. I realized that the subject line was not very intelligible .. so I am changing the subject line and reposting the same message. Hello everybody, I am trying to use clojure along with mathematica. Thanks to Clojuratica, the integration is seamless.. when I try to execu

clojure-cake

2010-10-08 Thread Sunil S Nandihalli
Hello everybody, I am trying to use cake .. was just exploring it with a very simple default >> cake new expcake >> cake deps but cake deps gives me the following error http://gist.github.com/616564 can anybody suggest as to what could be going wrong? Thanks, Sunil. -- You received this mess

Re: clojure-cake

2010-10-08 Thread Sunil S Nandihalli
I forgot to mention the versions... My cake version is "0.4.18" and ruby version is "ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]" On Fri, Oct 8, 2010 at 3:17 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hello everybody, > I am trying to u

Re: clojure-cake

2010-10-10 Thread Sunil S Nandihalli
d in luke's link. ping me if this > doesn't work for. > -lance > > On Oct 8, 7:00 am, Luke Renn wrote: > > On Oct 8, 5:47 am, Sunil S Nandihalli > > wrote: > > > > > Hello everybody, > > > I am trying to use cake .. was just exploring i

Fwd: the project names with "-" in them .. bug report of "cake new"

2010-10-10 Thread Sunil S Nandihalli
Hi, Leiningen replaces the project names with "-" with "_" for the sake of the jvm.. But the default "cake new" does not seem to do that. so the jvm has trouble with it.. Thanks, Sunil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this g

almost abusing the system... defmutabletype

2011-03-18 Thread Sunil S Nandihalli
Hello everybody, I wanted to define a bunch of types which were mutable to be used in defining a cyclic data structure. So, I wrote the following macro .. . (defmacro defmutabletype [type-name members] (let [proto-name (symbol (str "I" (name type-name))) member-setter-names (map #(symbo

Re: almost abusing the system... defmutabletype

2011-03-18 Thread Sunil S Nandihalli
https://gist.github.com/876029 On Fri, Mar 18, 2011 at 6:33 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hello everybody, > I wanted to define a bunch of types which were mutable to be used in > defining a cyclic data structure. So, I wrote the

Re: almost abusing the system... defmutabletype

2011-03-18 Thread Sunil S Nandihalli
ation.. But I just thought it might just be simpler to do a mutable thing while still taking advantage of clojures stuff outside of this data-structure. Sunil. On Fri, Mar 18, 2011 at 7:08 PM, Daniel Solano Gomez wrote: > On Fri Mar 18 18:33 2011, Sunil S Nandihalli wrote: > > I wanted to de

one argument versions of conj and disj would be very nice

2011-03-22 Thread Sunil S Nandihalli
Hello everybody, I was wondering why there is no 1 argument version of conj and disj. I think that would be very convenient. Especially when used in the following way (apply conj some-collection collection-of-elements-to-be-conjed) Currently the above usage would fail for both conj and disj when

Re: one argument versions of conj and disj would be very nice

2011-03-22 Thread Sunil S Nandihalli
Thanks Shanthanu .. Sunil. On Tue, Mar 22, 2011 at 2:38 PM, Shantanu Kumar wrote: > > > On Mar 22, 1:15 pm, Sunil S Nandihalli > wrote: > > Hello everybody, > > I was wondering why there is no 1 argument version of conj and disj. I > > think that would be very co

Re: one argument versions of conj and disj would be very nice

2011-03-22 Thread Sunil S Nandihalli
Thanks Ken .. "into" is cool .. it does better.. Sunil. On Tue, Mar 22, 2011 at 4:09 PM, Ken Wesson wrote: > On Tue, Mar 22, 2011 at 5:08 AM, Shantanu Kumar > wrote: > > On Mar 22, 1:15 pm, Sunil S Nandihalli > > wrote: > >> Hello everybody, > >&g

unable to run Clj3D

2011-04-05 Thread Sunil S Nandihalli
Hello everybody, I tried Clj3D available from git://github.com/CharlesStain/clj3D.git . This depends on Incanter among other things .. I encountered the same problem as I had encountered before .. I get error: java.lang.ClassNotFoundException: incanter.Matrix (internal.clj:19) This is what I had

Re: unable to run Clj3D

2011-04-05 Thread Sunil S Nandihalli
My cake was probably pulling incanter from some other location... I manually downloaded it from clojars and it had both the Matrix.java and Matrix.class files... On Tue, Apr 5, 2011 at 1:48 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hello everybody, > I tried Clj

Re: clj3D, a Clojure 3D Library

2011-04-05 Thread Sunil S Nandihalli
Hi Charles, Thanks for this work. I wanted something like this for a while.. But when I run lein compile on my laptop .. it is not compiling the java files.. because of which it is not able to find the classes ObjectViewer and Viewer classes. Do you have a suggestion as to why this is happening? T

Re: clj3D, a Clojure 3D Library

2011-04-05 Thread Sunil S Nandihalli
lein -v gives the following. Leiningen 1.3.1 on Java 1.6.0_22 Java HotSpot(TM) Client VM Thanks, Sunil. On Tue, Apr 5, 2011 at 2:46 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Charles, > Thanks for this work. I wanted something like this for a while.. But when

Re: clj3D, a Clojure 3D Library

2011-04-05 Thread Sunil S Nandihalli
Hi Alfredo, I am not certain it is a type .. if you really think it is a typo .. can you pin-point which one your are refering to? Thanks, Sunil. p.s.. I have opened an issue on github.. On Tue, Apr 5, 2011 at 3:43 PM, Alfredo wrote: > Hi Sunil, > I'm glad that you have found my project usef

Re: clj3D, a Clojure 3D Library

2011-04-05 Thread Sunil S Nandihalli
I am quiet positive I followed what you said. It may not be a problem with clj3D I think it could be with the version lein .. I don't know though.. I have had similar frustrating issues before.. Sunil. On Tue, Apr 5, 2011 at 4:25 PM, Alfredo wrote: > I've just checked clj3D on another computer

  1   2   3   4   >