Re: Generating permutations in core.logic

2012-10-25 Thread Jim - FooBar();
I think you want to have a look at clojure.math.combinatorics Jim On 25/10/12 20:10, Jordan Lewis wrote: Hi, I'm new to core.logic and logic programming in general. I tried to write a small program to generate all permutations of any size for an input list with unique elements. To sta

Re: thinking in data, polymorphism, etc.

2012-10-25 Thread Jim - FooBar();
On 25/10/12 19:49, Brian Craft wrote: heh. I see. Thanks! No problem...;-) Jim ps: It goes without saying that you shouldn't sprinkle your code with multi-methods just because you can! Trust me, I know they are nice and very tempting to use but save them for when you truly need mul

Re: what is the modern equivalent of clojure.contrib.java-utils/file?

2012-10-25 Thread Jim - FooBar();
ontrib you need to pull in explicitly. Otherwise it's part of Clojure itself. Clojure's namespaces are documented here (linked from 'clojure' in the left column of the above page): http://clojure.github.com/clojure/ Nice... : This definitely more informative than what I sugges

Re: what is the modern equivalent of clojure.contrib.java-utils/file?

2012-10-25 Thread Jim - FooBar();
s but generally any newcomer to the language struggles at first...A general rule of thumb is that if something starts with clojure.something.. chances are it is part of Clojure itself (there are exception though e.g clojure.java.jdbc)... hope that helps :-) Jim -- You received this message be

Re: thinking in data, polymorphism, etc.

2012-10-25 Thread Jim - FooBar();
quot;-S"||"-y"||(||str||"-g"||seconds-after||)||"-i"||"S"||:in||(||str||root-pwd||"\n"||)||)||)| |;;in case nothing fires| |(||defmethod||halt||:default||[||]||(||throw||(||UnsupportedOperationException.||"Unsupported operating system!&quo

Re: what is the modern equivalent of clojure.contrib.java-utils/file?

2012-10-25 Thread Jim - FooBar();
On 25/10/12 19:25, larry google groups wrote: So, in project.clj, I do this: [org.clojure/io] ? No no this namespace is part of Clojure itself. No need to put it in the project.clj. Just require it in your namespace where you want to use it... Jim -- You received this message because

Re: thinking in data, polymorphism, etc.

2012-10-25 Thread Jim - FooBar();
y other games. So yes, I made it a multi-method and now consumers of the lib that are supposed to build board-games with i,t can simply add their own canva-react that handles their game...Does this sound similar to what you're trying to do? Jim ps: if you go down the protocol road mo

Re: Could not locate clojure/data/json__init.class or clojure/data/json.clj on classpath

2012-10-25 Thread Jim foo.bar
as io] [clojure.data.json :as json] [who-is-logged-in.memory_display :as who]) ;;assuming this is an ns you can reach also try deleting all your class files and recompile...keep your eye on the mailing list cos I think something changed with data.json...there is a discussion currently going on...

Re: thinking in data, polymorphism, etc.

2012-10-25 Thread Jim foo.bar
s not practical you can always make a HOF that returns the appropriate handler for the data-type you're examining at any given time...meta-data could help you distinguish between the maps... am I missing something? Jim -- You received this message because you are subscribed to the Google Grou

Re: what is the modern equivalent of clojure.contrib.java-utils/file?

2012-10-25 Thread Jim foo.bar
times Jim On 25/10/12 13:58, larry google groups wrote: Hmm, how do I include this? I have a strange error. I had an app that was working fine, and then I added this one line at the the :require block in core.clj: (:require clojure.string clojure.java.io who-is-logged-in.memory_display

Re: [java interop] downcast

2012-10-24 Thread Jim - FooBar();
user=> (class (int (cast Number 1))) java.lang.Integer is this what you want? Jim On 24/10/12 22:12, Steffen Panning wrote: Hello Group, the Java API I'm currently working with expects that an Interface is downcasted to a concrete class. As a quick test I toyed with this: (cast

Re: Troubles working with nl.bitwalker.useragentutils

2012-10-24 Thread Jim foo.bar
aaa sorry I can see from a previous post that you already tried that! this is strange! Jim On 24/10/12 14:48, Jim foo.bar wrote: On 24/10/12 14:41, AtKaaZ wrote: The error doesn't help you solve the problem... which is: don't pass a seq to :import You can easily pass seqs

Re: Troubles working with nl.bitwalker.useragentutils

2012-10-24 Thread Jim foo.bar
cAlgorithm CustomGeneticScoreAdapter Referee]) you just need a space after the package-name... try *(:import [nl.bitwalker.useragentutils UserAgent]) *hope that helps Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: when to be lazy

2012-10-23 Thread Jim - FooBar();
On 23/10/12 19:57, Brian Hurt wrote: Unless you don't need to do it at all. nce... ;-) 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

Re: when to be lazy

2012-10-23 Thread Jim - FooBar();
petal to the metal perf. Most of the precious fns in core now have a reducer brother. No assumptions or promises about the underlying collection are made with reducers...just poor the reducer into a vector and you're golden... :-) hope that helps... Jim -- You received this message

Re: Meta data access

2012-10-22 Thread Jim - FooBar();
:test (meta (var f2))) false user=> (println (:test (meta (var f2 false nil ...this proves that it works as I described previously...probably your f1 var is namespaced so unless you're in that namespace or you 're 'use'ing that namespace you need to qualify the var...I

Re: Calling name on a keyword gives nil??

2012-10-22 Thread Jim foo.bar
be the one starting with 'def' not the function's. Nothing is wrong really, you're just communicating the wrong thing to someone reading your function signature. Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: Meta data access

2012-10-22 Thread Jim foo.bar
well not quite! you need (-> form var meta :test) or the same thing written differently (:test (meta (var form))) Hope that helps, Jim ps: basically the meta-data sit with the var not the function On 22/10/12 16:33,

Re: Meta data access

2012-10-22 Thread Jim foo.bar
If I've understood correctly all you need is (meta form)... Jim On 22/10/12 15:30, Mamun wrote: Hi All, I've a application with following structure. Now I would like to access meta data of f1 and f2 within process function. (defn ^{:test true} f1 [] (println "call

Re: Calling name on a keyword gives nil??

2012-10-22 Thread Jim foo.bar
a pre-condition attached to your fn would be a nice and clean way to check for upper/lower case without 'polluting' the fn itself with if statements...just a thought ... :-) Jim On 22/10/12 16:16, Jim foo.bar wrote: A couple of issues: 1) 'name' is a fn in core so it&#

Re: Calling name on a keyword gives nil??

2012-10-22 Thread Jim foo.bar
pital I think it would be faster to just capitalise them without checking...not sure though... Jim On 22/10/12 16:09, Bronsa wrote: I've had this happening to me too. Couldn't figure out wtf was going on. Until somebody understands what's the problem is, you can(let [s (.sym ^cl

Re: ANN: Spyscope, a trace/println-oriented debugging tool for Clojure

2012-10-20 Thread Jim - FooBar();
looks neat! I'll check it out as soon as possible...:-) Jim On 21/10/12 00:01, David Greenberg wrote: Spyscope is a better println, inspired by some of the recent postings on the Clojure mailing list about using reader macros for debugging. Spyscope can be included in your project by a

Re: Coming from Common Lisp to Clojure

2012-10-18 Thread Jim - FooBar();
u can literally read the thing as a sentence. The same with 'doto' regardless of the fact that it returns the object rather than the result of last form... Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: class name clashes on importing classes of same name from different Java packages into the same clojure namespace...

2012-10-18 Thread Jim foo.bar
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 simply don't import them...just use the fully-qualified name Jim -- You received this message because you ar

Re: Clojure turns 5

2012-10-17 Thread Jim foo.bar
On 17/10/12 15:41, Timothy Baldridge wrote: So thank you Rich...thank you for ruining all other languages for me. +1 very well put... Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Clojure turns 5

2012-10-17 Thread Jim foo.bar
WOW! Has it been 5 years already? Thanks a lot Rich for this beautiful gift to all of us...You rock and Clojure rules!!! Jim On 17/10/12 02:54, Rich Hickey wrote: I released Clojure 5 years ago today. It's been a terrific ride so far. Thanks to everyone who contributes to making Cl

Re: parallel alpha-beta pruning possible?

2012-10-16 Thread Jim - FooBar();
y I'm wrong I'm just trying to find someone that knows a lot around reducers/fork-join t give me clues...thanks for your time anyway :-) Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure

Re: trampoline not compatible with reducers?

2012-10-16 Thread Jim - FooBar();
anger of a stackoverflow, but are sacrificing readability and a smidge of performance to keep your stack "really small" instead of "not big enough to be a problem". I see what you mean...thanks for the detailed answer. Jim -- You received this message because you are subscribed

parallel alpha-beta pruning possible?

2012-10-16 Thread Jim - FooBar();
x27;t understand how such an inherently serial process could be efficiently forked. Can anyone help? [1] http://www.infoq.com/presentations/brian-goetz-concurrent-parallel Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: trampoline not compatible with reducers?

2012-10-16 Thread Jim - FooBar();
'my-min' and 'my-max' simply wrap core/min core/max. You mean i have to trampoline these calls as well? return something like this? : #(r/reduce (trampoline my-max) ;;was my-max (r/map (fn [child] (minimize (:tree child) (dec d))) (:ch

Re: trampoline not compatible with reducers?

2012-10-16 Thread Jim - FooBar();
ption Clondie24.lib.search$search$maximize__3081$fn__3082 cannot be cast to java.lang.Number clojure.lang.Numbers.lt (Numbers.java:219) Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

trampoline not compatible with reducers?

2012-10-16 Thread Jim - FooBar();
e minimize tree (int depth Can anyone shine some light? Is it something that has to do with reducers? Jim ps: it works fine without trampoline and '#' behind 'r/reduce'. -- You received this message because you are subscribed to the Google Groups "Clojure" g

Re: Simple way to get image from url

2012-10-16 Thread Jim foo.bar
/output-stream file)] (io/copy in out))) this looks nice...also, no dependencies - you can run this on your android! 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

Re: Evaluating an anonymous function with closure

2012-10-16 Thread Jim foo.bar
On 16/10/12 13:20, Michael Gardner wrote: On Oct 16, 2012, at 5:16 AM, Jim foo.bar wrote: so you're saying that if I write a for-loop in Java that populates an array with constants from 1-1 and then a 2nd loop to add them up, it would happen at compile-time and i would get the

Re: Evaluating an anonymous function with closure

2012-10-16 Thread Jim foo.bar
!!! when doing unit conversion we have all the numbers + the formula upfront! where can I find this macro that you're describing? Have you got the book? Could you copy and paste it here please? could the same be done in Java? Jim -- You received this message because you are subscribed t

Re: Evaluating an anonymous function with closure

2012-10-16 Thread Jim foo.bar
're saying that if I write a for-loop in Java that populates an array with constants from 1-1 and then a 2nd loop to add them up, it would happen at compile-time and i would get the same timing-result? Jim -- You received this message because you are subscribed to the Google Groups

Re: Evaluating an anonymous function with closure

2012-10-15 Thread Jim - FooBar();
On 16/10/12 01:45, Andy Fingerhut wrote: On Oct 15, 2012, at 5:41 PM, Jim - FooBar(); wrote: On 15/10/12 22:44, Alan Malloy wrote: You add the numbers at compile time, and then time how long it takes to...do nothing to them, at runtime. You are comparing N to zero, not to some smaller factor

Re: Evaluating an anonymous function with closure

2012-10-15 Thread Jim - FooBar();
On 15/10/12 22:44, Alan Malloy wrote: On Oct 15, 1:07 pm, "Jim - FooBar();" wrote: On 15/10/12 19:42, Ben Smith-Mannschott wrote: If the distinction I'm trying to make is not clear to you, I'd suggest having a look athttp://www.infoq.com/presentations/Clojure-Macros

Re: Evaluating an anonymous function with closure

2012-10-15 Thread Jim - FooBar();
ic speed increase? To be honest I'm a bit surprised...Regardless of when the actual calculation will be performed (compile vs run time), it will eventually be performed. why is at compile time so much faster? Jim -- You received this message because you are subscribed to the Google Groups "

Re: pmap performance degradation after 30-40 min of work?

2012-10-14 Thread Jim - FooBar();
On 14/10/12 00:17, Ben Mabey wrote: I switched from pmap to (r/fold n (r/monoid into vector) conj coll)) and the same thing happened again! after approximately 50 minutes cpu utilisation dropped from 4/4 to 1/4...I don't understand! Jim Are you holding on to the head of the colle

Re: pmap performance degradation after 30-40 min of work?

2012-10-13 Thread Jim - FooBar();
On 13/10/12 12:55, Jim - FooBar(); wrote: On 13/10/12 12:50, Tassilo Horn wrote: pmap might not be as perfect for you use-case as you think. Because it is lazy and chunked, it won't keep you cores busy. Some time ago, there was a detailed thread about this on this list. But it does ke

where is pvmap?

2012-10-13 Thread Jim - FooBar();
I am struggling to find the namespace in which 'pvmap' lives! Can anyone help? 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 ar

Re: pmap performance degradation after 30-40 min of work?

2012-10-13 Thread Jim - FooBar();
+UseCompressedStrings" (as long as the speed penalty is not that big)... 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 moder

arguments to 'lein uberjar'?

2012-10-13 Thread Jim - FooBar();
e' so that only foo.core + clojure are packaged? My intuition says it is not currently possible to do that and i'd have to pull my gen-class namespace out in a separate project in order to package it as standalone... is my intuition correct? thanks in advance... Jim -- You re

Re: pmap performance degradation after 30-40 min of work?

2012-10-12 Thread Jim foo.bar
No i haven't profiled memory , only cpu but what you're saying makes perfect sense. In every single iteration (each file) I'm 'slurp'-ing the 2 files (the dictionary and the file to annotate) provided. Would you suggest a different GC if that is the case or simply sto

pmap performance degradation after 30-40 min of work?

2012-10-12 Thread Jim foo.bar
but with the current behaviour I have no choice but to abort and restart it passing it the leftovers... any ideas? are there any issues involved with creating that many futures? Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To pos

Re: ANN: codeq

2012-10-10 Thread Jim foo.bar
On 10/10/12 15:27, Rich Hickey wrote: I released a little app today that imports Git repos into Datomic. My hope is that it can be used as the underpinnings of some interesting Clojure tooling. More info here: http://blog.datomic.com/2012/10/codeq.html Rich Good stuff! :-) Jim -- You

Re: bug in clojure.lang.ASeq

2012-10-10 Thread Jim foo.bar
r, result in an UnsupportedOperationException." Elements are NOT copied to the unmodified list. So yes, it seems that Clojure lists are the culprit after all...I would use vectors until this is sorted. :-) Jim On 10/10/12 15:26, Jim foo.bar wrote: Hmmm...It turns out this is not exclusive

Re: bug in clojure.lang.ASeq

2012-10-10 Thread Jim foo.bar
Hmmm...It turns out this is not exclusive to Clojure... user=> (java.util.Collections/unmodifiableList '(1 2 3 4 5)) # user=> (def l *1) #'user/l user=> l # user=> (serialize! l "TEST5") nil user=> (.hashCode (deserialize! "TEST5.ser")) 0 Jim

Re: bug in clojure.lang.ASeq

2012-10-10 Thread Jim foo.bar
Lazy-seqs also seem to behave: user=> (serialize! (map inc [1 2 3 4]) "TEST4") nil user=> (.hashCode (deserialize! "TEST4.ser")) 986115 Jim On 10/10/12 15:14, Jim foo.bar wrote: I can confirm I am seeing the behavior you describe under Clojure 1.4... user=>

Re: bug in clojure.lang.ASeq

2012-10-10 Thread Jim foo.bar
(.writeObject oout b))) (defn deserialize! "Deserializes the object in file f from the disk using Java serialization." [fname] (let [upb (promise)] ;waiting for the value shortly (with-open [oin (java.io.ObjectInputStream. (java.io.FileInputStream. fname))]

Re: ANN: cronj - task scheduling

2012-10-08 Thread Jim Crossley
;increment" operator. See http://www.quartz-scheduler.org/api/2.1.5/org/quartz/CronExpression.html for details. Thanks, Jim On Mon, Oct 8, 2012 at 9:58 PM, zcaudate wrote: > cronj > This is another cron-inspired task-scheduling library. I have found > many scheduling libraries for c

Re: File endings proposal for easier cross-compiling

2012-10-08 Thread Jim - FooBar();
e+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en that would be purely and utterly awesome!!! Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: Clojurejs: a lightweight clojure to javascript compiler

2012-10-08 Thread Jim foo.bar
from Clojure source to the equivalent Javascript, which would mean smaller output but not a robust implementation of Clojure. aaa ok that clears things up a bit.. thanks! :-) Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Clojurejs: a lightweight clojure to javascript compiler

2012-10-08 Thread Jim foo.bar
On 08/10/12 07:18, Hoàng Minh Thắng wrote: Clojurejs started by [kriyative](https://github.com/kriyative) is an amazing project that compile clojure to javascript. Now I'm confused! Isn't clojureScript exactly that? Jim -- You received this message because you are subscribed to

Re: Clojure web framework

2012-10-02 Thread Jim Crossley
ut if and how you use them in your application is completely up to you. > And red hat is behind it I just find out, that usually means great > doc... You mean like this? ;-) https://twitter.com/gphil/statuses/253285427702816768 Sorry to hijack the thread, Jim -- You received this message because

Re: Playing with clojure-encog, Machine-Learning wrapper

2012-10-01 Thread Jim - FooBar();
ncog book which i cannot guarantee it goes that deep, in my public dropbox for you. the link is :https://dl.dropbox.com/u/45723414/for_Tim.tar.gz ...I'll leave it up until tomorrow... hope that helps... Jim ps: the encog source did not help you? On 01/10/12 19:41, Timothy Washington wrot

Re: how do I evaluate this lazy sequence?

2012-09-27 Thread Jim - FooBar();
It is a bit alien at first but it does pay off in the long run... If you absolutely need to stick with your code style (mutability not-recommended in general) use a java HashMap instead... Jim ps: i recently used a cheshire without any problems :-) On 27/09/12 18:53, gaz jones wrote: Coup

Re: Clojure : a good start for non-programmers?

2012-09-26 Thread Jim - FooBar();
Closure and Java together was heavy going because it was documented in two places. The language is called "Clojure" not "Closure" sorry for nitpicking but you did it 3 times... :-) Jim -- You received this message because you are subscribed to the Google Groups "Clojur

Re: Clojure : a good start for non-programmers?

2012-09-26 Thread Jim foo.bar
ecome problem-solvers first and programmers after...Java is too grounded in most schools! Jim On 26/09/12 14:29, Jim foo.bar wrote: On 26/09/12 14:04, Lee Spector wrote: Having taught Clojure as a first language so, reading the above statement, can I infer that Hampshire college offers a Cl

Re: Clojure : a good start for non-programmers?

2012-09-26 Thread Jim foo.bar
e is beyond me! Assuming you faced the same 'corporate obstacles 'when you first proposed the idea, how did you get past them? Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

[ANN] Immutant 0.4.0 released

2012-09-25 Thread Jim Crossley
t.com More details available from the above link. Thanks, 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 w

Re: nested parallel execution...is that even possible?

2012-09-21 Thread Jim foo.bar
ept for special use cases like repl, testing, crude hacks, ... that is good to know... thanks a million! 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 p

Re: nested parallel execution...is that even possible?

2012-09-21 Thread Jim foo.bar
Ok I can see there is a 'var-set' fn that seems to behave exactly as i need...this is good stuff! I can now do: (var-set clojure.core.reducers/pool (ForkJoinPool. 6)) Jim On 21/09/12 17:14, Jim foo.bar wrote: On 21/09/12 16:54, Herwig Hochleitner wrote: So if you're asking

Re: nested parallel execution...is that even possible?

2012-09-21 Thread Jim foo.bar
s, I cannot simply do: (alter-var-root pool #(.setParallelism % 6)) and obviously I cannot do : (alter-var-root pool (ForkJoinPool. 6)) I need to call the ctor and somehow rebind the 'pool' var to that object. How do I do that? any ideas? Would 'compare-and-set!' work in thi

Re: nested parallel execution...is that even possible?

2012-09-21 Thread Jim foo.bar
g-factor = no way to predict how many cores will be used at any given time... Jim On 21/09/12 08:38, Herwig Hochleitner wrote: Have you looked into work-stealing algorithms? Fork-Join (of which reducers can take advantage) implements that. The basic idea is that you split your work into delays

Re: ref to array suddenly changes type

2012-09-21 Thread Jim - FooBar();
of refs! If you absolutely need an native array, then forget about refs, otherwise clojure vectors might be a better fit... Jim ps: just a side note...STM refs should really be the last ref type to consider...I mean you can get away with just using atoms/futures/promises/agents in a lot of

nested parallel execution...is that even possible?

2012-09-20 Thread Jim foo.bar
f i manage to find a machine with more than 16 cores (I think there are a couple in my Uni) could I assign 6 cores for the minimax and the rest for the GA? Has anyone done something similar? thanks in advance... Jim -- You received this message because you are subscribed to the Google Group

Re: instantiating a clojure record from Java

2012-09-18 Thread Jim - FooBar();
trying at the repl: (class (Player. nil 1)) =>Clondie24.games.chess.Player if the fully-qualified name won't work I don't know what will! weird-stuff... Jim On 18/09/12 19:04, Jim - FooBar(); wrote: I want to instantiate a record and call a fn from java source code... I&#

instantiating a clojure record from Java

2012-09-18 Thread Jim - FooBar();
nd this in my clj : (defrecord Player [brain direction]) However i get again: ClassNotFoundException Clondie24.games.chess.Player It seems I've underestimated the degree of difficulty when going from clojure to java and back to clojure! thanks for any pointers... Jim -- You received

Re: mixing clojure source with java class files problem!

2012-09-18 Thread Jim - FooBar();
On 18/09/12 17:54, Jim - FooBar(); wrote: On 18/09/12 17:50, Aaron Cohen wrote: I actually just tried this (I don't recommend this approach though), and it worked for me, maybe you missed a step. what jar is lein2 using? the one with the nice name or the one with the numbers at th

Re: mixing clojure source with java class files problem!

2012-09-18 Thread Jim - FooBar();
On 18/09/12 17:50, Aaron Cohen wrote: I actually just tried this (I don't recommend this approach though), and it worked for me, maybe you missed a step. what jar is lein2 using? the one with the nice name or the one with the numbers at the end? which one of the 2 did you modify? Ji

Re: mixing clojure source with java class files problem!

2012-09-18 Thread Jim - FooBar();
ct of yours ? 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 t

Re: mixing clojure source with java class files problem!

2012-09-18 Thread Jim - FooBar();
2 directory and actually modified the jar by hand so the folder "encog-java" was renamed to "encog_java" but again the same story! I don't get it!!! Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: mixing clojure source with java class files problem!

2012-09-18 Thread Jim - FooBar();
**boolean*shouldMinimize(); *public**abstract**void*setPopulation(Population paramPopulation); } the package declaration seems perfectly fine in the class files (as expected)...what on earth is happening? Tried both hyphen/underscore when :import-ing but i get the same error! Jim On 18/09/12

Re: mixing clojure source with java class files problem!

2012-09-18 Thread Jim - FooBar();
ing a : ClassNotFoundException encog_java.customGA.CustomNeuralGeneticAlgorithm java.net.URLClassLoader$1.run (URLClassLoader.java:366) the jar i'm referring to is on clojars [enclog "0.5.6-SNAPSHOT"] in case you have any doubts that the classes are in there... any pointers are greatly appreciated..

Re: mixing clojure source with java class files problem!

2012-09-18 Thread Jim - FooBar();
use proxy and the gang cos it just seemed easier (mutable variables/inheritance etc etc) 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

mixing clojure source with java class files problem!

2012-09-18 Thread Jim - FooBar();
ge declarations so I can put them anywhere...I also tried without the "bar.baz" prefixing them but it doesn't work... what am I missing? any pointers? Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Re: Immutant 0.3.0 released

2012-09-17 Thread Jim Crossley
Hi Ali, Ali M writes: > Can you please elaborate more on this line ... maybe give examples > > On Wednesday, September 12, 2012 3:45:56 AM UTC+2, Jim Crossley wrote: >> >> For certain applications, I would recommend using libraries to access >> external processes l

Re: idiomatic use of iterate + cycle ?

2012-09-16 Thread Jim - FooBar();
t;[0 1 2] Jim On 16/09/12 18:15, Sean Corfield wrote: On Sun, Sep 16, 2012 at 5:15 AM, Jim - FooBar(); <mailto:jimpil1...@gmail.com>> wrote: It turns out that reduce is exactly what I need...I didn't know this but there is a handy 'reduced' fn that makes it eas

Re: idiomatic use of iterate + cycle ?

2012-09-16 Thread Jim - FooBar();
(try-move)) [sb] (take 100 (cycle '(-1 1) ;;50 moves each should be enough Ok, it's certainly not a one-liner but it's pretty clear and readable so I'm happy :-) Jim On 16/09/12 11:59, Jim - FooBar(); wrote: Hi all, I'm trying to come up with a way t

idiomatic use of iterate + cycle ?

2012-09-16 Thread Jim - FooBar();
e done in a one-liner using iterate+cycle or am I at a good path with reduce? 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 moderate

Re: Clojure Programming is a great book

2012-09-13 Thread Jim - FooBar();
y the most complete one, but for me Stuart's book (the very 1st ) started it all so it holds a special place in my heart! :-) Jim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googleg

Re: Using function that returns unique keys in map literals causes an

2012-09-12 Thread Jim - FooBar();
e-id) "foo" (generate-id) "bar") hope that helps Jim On 12/09/12 18:38, jarppe wrote: I have a function that returns unique ID every time it is called. If I try to create a new map with two entries, both having a unique key generated by that function, I get IllegalArgumentExce

Re: Question: Looking at Noir code - hey, are those singletons?

2012-09-12 Thread Jim - FooBar();
reate some vars in a ns where most (all?) the functions that use this data live. I must clarify that I'm only doing this with guis...I try to avoid this stuff in regular namespaces, unless you're referring to immutable things... Jim -- You received this message because you are subs

Re: Question: Looking at Noir code - hey, are those singletons?

2012-09-12 Thread Jim - FooBar();
less readable...can also introduce bugs...the purpose of dynamic vars is not to model state...we've got reference types for that... yes, binding conveyance makes sure your dynamic bindings are propagated appropriately...still don't like them! Jim -- You received this message becau

Re: Question: Looking at Noir code - hey, are those singletons?

2012-09-12 Thread Jim foo.bar
i have an atom at the top which holds a map with all he stateful aspects of the gui...but you're right - it's generally best to limit the amount of state in your program... Jim ps: defonce is not really related with singletons...there was a clojure.contrib ns for singletons wasn'

Re: Question: Looking at Noir code - hey, are those singletons?

2012-09-12 Thread Jim foo.bar
#x27; t have 2 Noir apps on the same project...basically defonce it is the same as def unless there is already a root value for that var... can anyone else add anything? Jim On 12/09/12 15:30, the80srobot wrote: Hello, So I've been working on a project at work, that required me to cod

Re: Immutant 0.3.0 released

2012-09-11 Thread Jim Crossley
organization to support it. Thanks, Jim On Tuesday, September 11, 2012 7:26:21 PM UTC-4, Takahiro Hozumi wrote: > > Hi, > > Forgive my ignorance, although I think the project must be useful, but > I still don't understand what is the benefit of using application > server. &

[ANN] Immutant 0.3.0 released

2012-09-11 Thread Jim Crossley
ve published a library to facilitate integration testing, and continued to improve our nrepl/swank support so you can now add dependencies to your project on the fly without having to redeploy it. Here's the announcement: http://bit.ly/immutant030 Enjoy and thanks, Jim -- You received this mess

Re: [ANN] clojure-encog has a new name and repo

2012-09-08 Thread Jim - FooBar();
hat I would do is this: (let [xor-alt-input [[2.0 2.0] [0.0 0.0] [2.0 0.0] [0.0 2.0]] ;;your alternative input xor-alt-ideal [[0.0] [0.0] [1.0] [1.0]] ;;the ideal for your input dataset (data :basic-dataset xor-alt-input xor-alt-ideal)] (evaluate network dataset)) ;as usual Ji

Re: [ANN] clojure-encog has a new name and repo

2012-09-08 Thread Jim - FooBar();
s. hope that helps... Jim On 08/09/12 13:00, Jim - FooBar(); wrote: Hi Denis, you cannot bring 2 vars named 'network' in the same namespace...It is partly my fault cos since I changed 'make-network' to 'network' I should have changed the examples as well...try

Re: [ANN] clojure-encog has a new name and repo

2012-09-08 Thread Jim - FooBar();
amples as well... thanks for trying out enclog and for reporting what you thought was a bug... Jim On 08/09/12 10:12, Denis Labaye wrote: On Tue, Sep 4, 2012 at 9:05 PM, Jim - FooBar(); <mailto:jimpil1...@gmail.com>> wrote: Hi all, just wanted to let you know that I rename

Re: Fund raiser for our projects

2012-09-05 Thread Jim - FooBar();
On 05/09/12 19:37, Jim - FooBar(); wrote: On 05/09/12 19:35, Paul deGrandis wrote: Don't be scared to reach out and approach the authors of the libraries you're using. I've had much success directly contracting creators/maintainers of open source projects. me too :-) Jim

Re: Fund raiser for our projects

2012-09-05 Thread Jim - FooBar();
On 05/09/12 19:35, Paul deGrandis wrote: Don't be scared to reach out and approach the authors of the libraries you're using. I've had much success directly contracting creators/maintainers of open source projects. me too :-) Jim -- You received this message because you ar

Re: Fund raiser for our projects

2012-09-05 Thread Jim - FooBar();
aaa ok that makes things clearer...thank you I get your point now! i can't say it doesn't make sense but i would say it's rather ambitious. :-) Jim On 05/09/12 18:15, Simone Mosciatti wrote: I would say raise money to help people improve their project (documentation is a very

Re: Fund raiser for our projects

2012-09-05 Thread Jim - FooBar();
I'll be honest with you... I 'm not sure I understand at all what you mean! raise money for people to document their open-source projects better? forgive me but I missed your point... :-) Jim On 05/09/12 17:37, Simone Mosciatti wrote: Hi everybody, I get a little idea now t

Re: Where is Clojure CLR ?

2012-09-05 Thread Jim - FooBar();
Of course you can... http://clojureclr.blogspot.co.uk/ Jim On 05/09/12 16:36, Erlis Vidal wrote: Hi group, Have been a while since I don't into that project. Is the CRL version of clojure using another mailing list? How is the status of the project? I think it would be very

Re: Question about sets

2012-09-04 Thread Jim - FooBar();
On 05/09/12 00:53, Jim - FooBar(); wrote: of course not...this also goes against set/map semantics from a mathematics point of view...the mathematical guarantees of set ('there will be no duplicates') are imposed by the set itself and not by the person/program/whatever using it! the

Re: Question about sets

2012-09-04 Thread Jim - FooBar();
aid that, i thought i would never use unchecked-math either but my board-game engine has unchecked math in most namespaces! ok, the quest for performance almost turned that project into a freakshow but at the end of the day i did use that knob. Jim -- You received this message because you a

<    2   3   4   5   6   7   8   9   10   11   >