Re: ? stateful-map ?

2022-11-28 Thread Jules
50015.clj:60). Wrong number of args (1) passed to: clojure.core/reductions core> at least I now know what to call what I am looking for. Thanks for your help - much appreciated, Jules On Sunday, 27 November 2022 at 23:47:22 UTC sritc...@gmail.com wrote: > Pretty sure what you’

Re: ? stateful-map ?

2022-11-27 Thread Jules
step... Jules On Sunday, 27 November 2022 at 19:00:48 UTC Jules wrote: > Guys, > > I've found myself needing a function that I am sure cannot be an original > but I'm not aware of it existing anywhere... > > It is a cross between 'map', 'reduce&

? stateful-map ?

2022-11-27 Thread Jules
ap (stateful-mapper +)) [0 1 2 3 4 5]) ``` Am I missing a standard way of doing this in Clojure ? Or is a stateful function the best answer ? Interested in your thoughts, Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Using core.logic for bi-directional json transformation

2020-09-30 Thread Jules
(logic/is nil schema (fn [s] (s "format"))) or (logic/pred schema (fn [s] (not (contains? s "format" clumsy - but works still interested to hear what other people think of this approach... Jules On Wednesday, 30 September 2020 at 17:15:42 UTC+1 Jules wrote: &g

Using core.logic for bi-directional json transformation

2020-09-30 Thread Jules
look for another solution - in which case can anyone suggest anything ? I find the idea of using core.logic to do bi-directional JSON doc transformations really appealing - what do others think ? Jules -- You received this message because you are subscribed to the Google Groups "Clojure&q

Re: [ANN] Killer: Functional Event Stream Processing in Clojure with Transducers

2016-06-28 Thread Jules
n to start thinking about adding a number more D3 widgets: https://github.com/d3/d3/wiki/Gallery If anyone else is interested in getting involved, just shout ! :-) Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

[ANN] Killer: Functional Event Stream Processing in Clojure with Transducers

2016-06-16 Thread Jules
-time Charting/Tabling Web UI in ClojureScript - please get in touch. I'm going to have my hands full working on the back-end and my front-end knowledge is poor at best. Interested to hear what everyone thinks. Jules -- You received this message because you are subscribed to the Goo

Re: [ANN] dali SVG library 0.7.0

2016-04-04 Thread Jules
to a graph of a live feed etc ? cheers Jules On Thursday, 11 February 2016 00:49:54 UTC, Stathis Sideris wrote: > > Hello all, > > dali is a Clojure library for representing the SVG graphics format. It > allows the creation and manipulation of SVG files. The syntax > &

Re: crazy idea...

2015-11-29 Thread Jules
Lee, Thanks for the link - I can see that I have a lot of reading ahead of me :-) - looks very interesting indeed. Jules On Saturday, 28 November 2015 20:26:48 UTC, Lee wrote: > > > Jules, > > There's work using random variation and selection to do some of the more >

Re: crazy idea...

2015-11-29 Thread Jules
Thanks for this pointer, Lucas - it looks as if I could learn a lot from Kibit - I'll have a good look at it. Jules On Saturday, 28 November 2015 18:54:11 UTC, Lucas Bradstreet wrote: > > Kibit (https://github.com/jonase/kibit > <https://www.google.com/url?q=https%3A%2F%2Fgi

crazy idea...

2015-11-28 Thread Jules
to talk to lots of people much smarter than myself about it - so here I am. What does everyone think ? Is this worth discussing or just pie in the sky ? Looking forward to hearing your thoughts, Jules -- You received this message because you are subscribed to the Google Groups "Clojure

Re: 2 way transform in single definition ? unification ?

2015-07-14 Thread Jules
This does look good - I'll give it a whirl - thanks for the example :-) Jules On Monday, 13 July 2015 11:00:55 UTC+1, Jonathan Winandy wrote: > > To me it's a very good option. > > Given you example : > > (./pull '[org.clojure/core.logic "0.8.10&

Re: 2 way transform in single definition ? unification ?

2015-07-13 Thread Jules
I haven't. Are you just suggesting it because I mentioned unification, or have you used it and know that it might be a good fit ? Thanks, Jules On Monday, 13 July 2015 10:37:55 UTC+1, Gary Verhaegen wrote: > > Have you already looked at core.logic? > > On Monday, 13 July 20

Re: 2 way transform in single definition ? unification ?

2015-07-13 Thread Jules
I was hoping for something in idiomatic Clojure - but I'll take a look thanks. Jules On Monday, 13 July 2015 04:45:00 UTC+1, craig worrall wrote: > > You may have already discounted Java versions, but just in case ... > http://www.javacodegeeks.com/2013/10/java-object-to-obje

2 way transform in single definition ? unification ?

2015-07-12 Thread Jules
single src. Ideally it would allow me to extend it to construct/destructure e.g. joda-time class instances etc as some of my internal rep uses these. It feels a bit like unification in PROLOG... Looking forward to hearing your ideas. regards, Jules -- You received this message because you are

Re: [ANN] seqspert-1.7.0-alpha4-1.0-SNAPSHOT now on Clojars - Merge big hash-maps, FAST !

2014-11-17 Thread Jules
as nothing to do with int-map etc. This is for merging standard Clojure hash-maps with large amounts of data in them very quickly and with very little churn. See the examples in the README. cheers Jules On Tuesday, 18 November 2014 00:14:30 UTC, Glen Mailer wrote: > > I did? > >

Re: [ANN] seqspert-1.7.0-alpha4-1.0-SNAPSHOT now on Clojars - Merge big hash-maps, FAST !

2014-11-17 Thread Jules
all is explained in the README on github :-) and here is an example Splicer: https://github.com/JulesGosnell/seqspert/blob/master/src/java/clojure/lang/ArrayNodeAndArrayNodeSplicer.java Jules On Monday, 17 November 2014 23:01:44 UTC, Fluid Dynamics wrote: > > On Monday, November 17,

[ANN] seqspert-1.7.0-alpha4-1.0-SNAPSHOT now on Clojars - Merge big hash-maps, FAST !

2014-11-17 Thread Jules
rties have kicked the tyres a bit. regards, Jules -- 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

using a private constructor...

2014-06-24 Thread Jules
ction and setAccessible from Clojure but I'm not keen on the performance overheads of this approach. Is there not some way that I could create a Clojure module in the same namespace as the Java class and get hold of the functions that I need directly :? Any guidance gratefully received :

Re: ANN: no.disassemble 0.1.3 - data disassembler

2014-03-24 Thread Jules
isassembler can't be resolved (argument types: java.lang.Object, java.lang.String, unknown). If these did not crop up, no.disassemble would rock even more ! Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

Re: fast parallel reduction into hash-set/map

2014-03-17 Thread Jules
k that it is a game-changer. We'll just have to wait and see Jules On Monday, 17 March 2014 12:15:37 UTC, Jean Niklas L'orange wrote: > > Hello, > > On Saturday, March 15, 2014 11:37:11 PM UTC+1, Jules wrote: >> >> 2. I've had a look at rrb-vector - ver

Re: (bytecode 'function-that-you-want-to-view-bytecode-of) ?

2014-03-16 Thread Jules
Yes - this is exactly what I was looking for :-) - thanks alot - will make my life much easier. Jules On Sunday, 16 March 2014 11:35:06 UTC, Jules wrote: > > Thanks, Karsten - it is dissasembly and not decompilation that I want :-) > - I'll take a look. > > Jules >

Re: (bytecode 'function-that-you-want-to-view-bytecode-of) ?

2014-03-16 Thread Jules
Thanks, Karsten - it is dissasembly and not decompilation that I want :-) - I'll take a look. Jules On Sunday, 16 March 2014 09:23:58 UTC, Karsten Schmidt wrote: > > Jules, there's also the no.disassemble lein plugin which works for any > repl: > > https://github

Re: (bytecode 'function-that-you-want-to-view-bytecode-of) ?

2014-03-15 Thread Jules
H Looks like it's time I figured out how to use Cider - it appears to have support for decompiling funcs at the repl... https://github.com/clojure-emacs/cider/pull/338 Just what I want :-) Jules > > -- You received this message because you are subscribed to the Go

(bytecode 'function-that-you-want-to-view-bytecode-of) ?

2014-03-15 Thread Jules
e produced by java and clojure for loops and mathematical functions. Did they get it the hard way or is there a magic fn floating about out there which I have failed to track down. many thanks, Jules -- You received this message because you are subscribed to the Google Groups "Clojure&qu

Re: fast parallel reduction into hash-set/map

2014-03-15 Thread Jules
what you would hope for, but not always as easy to achieve as you would expect. regards Jules On Friday, 21 February 2014 01:22:09 UTC, Ghadi Shayban wrote: > > Jules, > For recombination of parallel reductions into a vector, have you looked at > foldcat<https://github.com/

Re: fast parallel reduction into hash-set/map

2014-03-15 Thread Jules
o just put it all out there and see if anyone was interested in discussing it further - it is always good to bounce stuff of other people. that's all folks ! Jules On Friday, 21 February 2014 01:09:26 UTC, Jean Niklas L'orange wrote: > > Hi Jules, > > On Thursday, Fe

Re: XOR two arrays into a third on Clojure

2014-03-15 Thread Jules
able, then hand off a start and end point to each core and apply your solution between them. If the cost of set up and tear down does not outweigh the amount of work that you have to do you should see a fair performance boost. Jules -- You received this message because you are subscribed to

Re: 1.6.0-beta2 / sumatra / graal / okra / hsa / gpgpu

2014-03-09 Thread Jules
rking graal-enabled jdk8. Here is the project - Clumatra ! https://github.com/JulesGosnell/clumatra please get in touch if you're interested. Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

1.6.0-beta2 / sumatra / graal / okra / hsa / gpgpu

2014-03-05 Thread Jules
22 23 24 25 26 27 28 29 30 31] I tried doing a little maths on the value on the way through, but that did not work :-( Too tired to say much more now - but will pick this up tomorrow and play some more. Please let me know if you are interested - I will start checking in code somewhere. Jules

Re: [ANN] seqspert - demystify the internals of Clojure Sequences

2014-02-20 Thread Jules
welcome :-) Jules On Friday, 21 February 2014 00:16:11 UTC, Ambrose Bonnaire-Sergeant wrote: > > Nice, thanks for releasing! > > Ambrose > > > On Fri, Feb 21, 2014 at 5:47 AM, Jules >wrote: > >> I've been teaching myself a bit about the internals of vario

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread Jules
this tree up above the combined nodes, but with a smaller branching factor. Jules On Friday, 21 February 2014 00:10:19 UTC, TheBusby wrote: > > On Fri, Feb 21, 2014 at 8:51 AM, > > wrote: > >> One note about your SuperVecs idea though, it seems that using that >> app

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread Jules
jury is still out, but I thought I should put my ideas out onto the forum to kick off useful discussions just like this one ... thanks for your interest, Jules On Thursday, 20 February 2014 23:51:46 UTC, shlomi...@gmail.com wrote: > > Hey Jules, > > Really nice stuff your making

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread Jules
his promise and this issue is the last blocker for me for a couple of usecases that I have :-) I hope that explains where I am coming from - does it seem reasonable ? am I missing anything ? thanks again, Jules On Thursday, 20 February 2014 23:25:29 UTC, Andy Fingerhut wrote: > > H

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread Jules
e-combination with another seq of the same type. This could be leveraged by e.g. 'into' to deliver significant performance benefits and footprint reduction. more as and when, Jules On Saturday, 15 February 2014 23:06:24 UTC, Jules wrote: > > Guys, > > I've been playing

[ANN] seqspert - demystify the internals of Clojure Sequences

2014-02-20 Thread Jules
, you need to understand a bit about your hardware (mechanical sympathy), the JVM and the Clojure runtime. The Seqs are a large part of this and Seqspert will help you quickly understand how they work. Please take a look: https://github.com/JulesGosnell/seqspert.git regards, Jules --

Re: fast parallel reduction into hash-set/map

2014-02-17 Thread Jules
ll keep it in mind. Jules On Monday, 17 February 2014 18:42:28 UTC, Glen Mailer wrote: > > Is there a specific part of this implementation which means it needs to > live in core? > > It would be cool to have this as a library that could be used with > existing versions o

Re: fast parallel reduction into hash-set/map

2014-02-17 Thread Jules
Alex, thanks for the suggestion - I'll look at collection-check and raise the appropriate JIRA when I am happier with the code / idea. Jules On Monday, 17 February 2014 13:21:28 UTC, Alex Miller wrote: > > It is too late, but an enhancement jira would be appropriate. I woul

Re: fast parallel reduction into hash-set/map

2014-02-17 Thread Jules
is no issue lurking here. I'll put together some proper testcases and add them to my repo. thanks for your interest :-) Jules On Monday, 17 February 2014 09:28:28 UTC, Jean Niklas L'orange wrote: > > > > On Sunday, February 16, 2014 11:49:38 AM UTC+1, Mikera wrote: >> &g

Re: fast parallel reduction into hash-set/map

2014-02-16 Thread Jules
ld also be keen to investigate my idea about the efficient 'cleave'-ing of tree-based seqs so that they can be used as inputs to the reducers library, as mentioned in my original post... Jules On Sunday, 16 February 2014 10:57:35 UTC, Jules wrote: > > I would have thought s

Re: fast parallel reduction into hash-set/map

2014-02-16 Thread Jules
I would have thought so - it's only my first cut - seems to work but I wouldn't like to stake my life on it. It really needs a developer who is familiar with PersistentHashMap to look it over and give it the thumbs up...Still, I guess if it was marked "experimental" ...:-

Re: fast parallel reduction into hash-set/map

2014-02-16 Thread Jules
'user/m3 user=> (time (def m4 (clojure.lang.PersistentHashMap/splice m1 m2))) "Elapsed time: 1064.268269 msecs" #'user/m4 user=> (= m3 m4) true user=> as you would expect, a splice is faster and causes less of a memory spike. Jules On Sunday, 16 February 2014 10:01:04 UTC, Mikera wrote:

Re: fast parallel reduction into hash-set/map

2014-02-15 Thread Jules
where appropriate. This makes it faster and more memory efficient as evidenced in the (into c d) vs (splice c d) timings above. regards Jules On Saturday, 15 February 2014 23:52:00 UTC, Alex Miller wrote: > > You should try transients if you're looking to quickly fill collection

fast parallel reduction into hash-set/map

2014-02-15 Thread Jules
ot important for the reduction process. BTW - benchmarks were run on a 3.2ghz Phenom II / clojure/master / openjdk-1.7.0_51 / Fedora 20 with min and max 4gb ram. regards, Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Clojure Performance For Expensive Algorithms

2013-02-26 Thread Jules
Clojure code should in principle be possible to execute very fast when using the same data structures. Clojure is much better behaved than languages like Ruby and Javascript from a compiler perspective. See for example the Stalin scheme compiler. It runs well written Scheme at almost C speed (s

Re: Why is this so difficult?

2013-02-16 Thread Jules
@Andy: I hadn't seen that page before, and it is excellent. It explains everything step-by-step and also gives key information, for example that it is not necessary to install leiningen manually because it comes with CCW. If possible, that guide should be featured prominently on http://code.goo

Re: Why is this so difficult?

2013-02-15 Thread Jules
re out how to do the rest of the things one needs to do in CCW, like unit testing, having java files and clojure in the same project, integrating with version control, running the whole application, and creating a packaged application/library. If this process was described in a canonical how to g

Re: Why is this so difficult?

2013-02-15 Thread Jules
> between the current doc improvement for lein we're both participating in ( https://github.com/technomancy/leiningen/issues/1007) and the available doc for CCW (installation is one step really), are there any pain points that such a starter kit would address? A starter kit would address several

Re: Why is this so difficult?

2013-02-15 Thread Jules
; the newcomers, but making that happen requires a lot of effort - which > might or might not be worth it, especially considering lein devs' > contributions come from their free time (afaict). Same thing for Clojure > the language, the library ecosystem, etc. > > On Fri, Feb 15

Re: Why is this so difficult?

2013-02-15 Thread Jules
en an issue. >> >> I like your idea. Assuming curl is installed, when running `lein.bat >> self-install` the user could be asked whether he wants to download "a fully >> functioning Clojure development environment" or something like that. >> >> >

Re: Why is this so difficult?

2013-02-15 Thread Jules
ojure development environment" or something like that. > > On Fri, Feb 15, 2013 at 5:36 PM, Jules >wrote: > >> By the way, I've been trying to write an install script for windows that >> installs leiningen + CCW. Creating a folder for all Clojure stuff, putti

Re: Why is this so difficult?

2013-02-15 Thread Jules
up with an actual command that succesfully installs CCW. I suppose the -repository should have the ccw update site, but what should be the -installIU argument? 2. How to prevent CCW from hanging when creating a leiningen project. On Friday, February 15, 2013 5:19:01 PM UTC+1, Jules wrote: > &

Re: Why is this so difficult?

2013-02-15 Thread Jules
tter what you do if you use open source" really doesn't match with my experience. There *are* easy to use open source projects. Python is another example. You're right that there are a lot of open source projects that aren't as easy, like OCaml for example, and look how succe

Re: Why is this so difficult?

2013-02-15 Thread Jules
at least 20 hours with installation woes. The way I view it, learning the magic incantations to get a specific tool working is not useful knowledge. People would rather fill their brain with the cool stuff: how reducers, lambda, macros, core.logic work, etc. Jules On Friday, February 15, 2013 8

Re: Why is this so difficult?

2013-02-14 Thread Jules
a project and run it. Jules On Friday, February 15, 2013 12:34:26 AM UTC+1, vemv wrote: > > If this does not work for you, you can help everyone by opening an issue > at the Leiningen bug tracker: > > Make sure java and curl are correctly installed > Run the corresponding (unix or

Re: Why is this so difficult?

2013-02-14 Thread Jules
; > Same principle for practically every single Clojure lib. > > On Friday, February 15, 2013 12:08:18 AM UTC+1, Jules wrote: >> >> You are certainly not alone. Learning the language and concepts is very >> easy for me, but the sysadmin stuff to get set up is so much harder. &

Re: Why is this so difficult?

2013-02-14 Thread Jules
You are certainly not alone. Learning the language and concepts is very easy for me, but the sysadmin stuff to get set up is so much harder. Believe it or not, I had much more trouble with installing core.logic than understanding it. It doesn't end either, you bump into more problems once you t

Re: Why is this code so slow?

2013-02-03 Thread Jules
If your goal is just to make it fast, then you should use a different algorithm, e.g. (defn bump-up "Bump up n by a multiple of x until greater than or equal to k." [n x k] (if (>= n k) n (recur (+ n x) x k))) (defn bump-up-fast "Bump up n by a multiple of x until greater than or equal

Re: Why is this code so slow?

2013-02-03 Thread Jules
The Scala version is probably faster because it uses a range (1 to top) which is represented as a pair of integers (the start and endpoint). Perhaps the JVM can even eliminate that completely with escape analysis. The Java version is repeatedly filling an ArrayList with the numbers in that rang

Re: Clojure / RootBeer / CUDA / GPU

2012-10-03 Thread Jules
hinking the same thoughts... Jules -- 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. T

Re: language shootout / the phonecode study

2012-09-23 Thread Jules
The spec says if "there is no word in the dictionary that can be used in the partial encoding starting at digit k+1" then a digit can be used. Some people interpreted that as "no word from the dictionary can be used in a solution". Others interpreted that as "no word from the dictionary can be

Re: language shootout / the phonecode study

2012-09-23 Thread Jules
e algorithm as he did to generate his test cases. The people in the study also had to do the same, so if you want your code to be comparable with the results in the study that's what you have to do... Jules On Saturday, September 22, 2012 6:23:25 PM UTC+2, David Nolen wrote: > > On S

Re: language shootout / the phonecode study

2012-09-20 Thread Jules
This problem would be ideally suited for core.logic except because of the "hint" (http://page.mi.fu-berlin.de/prechelt/phonecode/hint2.html) you'd need to do something far more ugly. On Thursday, September 20, 2012 5:07:52 PM UTC+2, David Nolen wrote: > > On Thu, Sep 20, 2012 at 10:52 AM, Dennis

Re: Clojure / RootBeer / CUDA / GPU

2012-09-05 Thread Jules
ng to fly I will check in something at Github so others can have a look around. Good luck with OpenCL, and please keep us all posted, regards, Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Clojure / RootBeer / CUDA / GPU

2012-09-02 Thread Jules
llaborating or, maybe someone will be able to tell me why it will never work and save me the effort :-) all the best, Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.

Re: [ANN] ClojureC - A Clojure to C compiler - Work in Progress

2012-07-11 Thread Jules
You don't really need a JIT for those things, smart compile time analysis can get as good or better results. See Stalin scheme: http://en.wikipedia.org/wiki/Stalin_(Scheme_implementation) On Wednesday, July 11, 2012 3:05:50 PM UTC+2, tbc++ wrote: > > >> I've been debating on working on a native

Re: novice question, performance surprise

2012-02-11 Thread Jules
There is a standard library function for this: separate. For example (separate even? coll) returns two results in a vector: (filter even? coll) and (filter odd? coll). On Feb 10, 9:05 pm, Manuel Paccagnella wrote: > On 02/09/2012 11:40 PM, Steve Miner wrote: > > > filter is lazy so it won't actua

Re: Clojure Community Values

2012-01-27 Thread Jules
A healthy mix of course! There even has been some research on the second point. It turned out that unit tests and code review (=~ thinking) catch largely disjoint sets of bugs. Other than that, you need to randomize X over Y vs Y over X in order to get sound results. On Jan 27, 3:25 pm, a...@pure

Re: Can JVM GC be tweaked to quickly reuse memory of objects that soon become garbage?

2011-12-16 Thread Jules
o its memory can be reused sooner. So you could try to write your code in a way that triggers that optimization. A more general form of this is region inference (AFAIK the JVM doesn't do this though). Jules On Dec 16, 11:46 pm, Andy Fingerhut wrote: > This is a question about Clojure perfo

Re: A Taste of cKanren (via a coding challenge)

2011-11-13 Thread Jules
cKanren has a library predicate for that, but something like (forall xs p) that asserts p on all elements of xs isn't hard to define. Whether the resulting program is more concise I don't know, but I think it would at least be easier to understand. Jules On Nov 13, 5:17 am, David Nolen w

Re: A Taste of cKanren (via a coding challenge)

2011-11-12 Thread Jules
so that it also becomes nice? Jules On 12 nov, 07:16, David Nolen wrote: > Also note that even given all this generality over the Python code - the > earlier Python implementation takes ~300ms and this implementation takes > > >900ms on my machine. > > Quite a bit slower than

Re: A Taste of cKanren (via a coding challenge)

2011-11-11 Thread Jules
lt;= b <= c <= d and a+b+c+d == 40 and valid(a,b,c,d)] On 12 nov, 01:48, Jules wrote: > Are we reading the same cKanren code? I'll give you that the matches > definition is declarative, but then read checko and subchecko. They > are all about (recursive) control flow. Where do

Re: A Taste of cKanren (via a coding challenge)

2011-11-11 Thread Jules
appens to have one stone equal to 1, but how is that part of or trivially follows from the specification? We might as well hard-code the whole solution. Jules On 12 nov, 00:49, Timothy Baldridge wrote: > > My Python code is much more declarative than the given > >

Re: A Taste of cKanren (via a coding challenge)

2011-11-11 Thread Jules
In the same way the cKanren version is syntactic sugar around imperative code. Declarative is not a property of a language, it's a property of code that says how close to a mathematical specification the code is. My Python code is much more declarative than the given cKanren code in that regard. Ju

Re: A Taste of cKanren (via a coding challenge)

2011-11-11 Thread Jules
nge(1,41-1-1-1) for b in range(a,41-a-1-1) for c in range(b,41-a-b-1) for d in range(c,41-a-b-c) if valid(a,b,c,d)] I wonder if you can make the cKanren version just as declarative as this one (cKanren's purpose being declarative)

hammock driven development...

2011-06-09 Thread Jules
unately where I spend most of my time. Was Archimedes sitting or lying in his bath I wonder :-) ? cheers Jules -- 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: Clojure 1.3 Alpha 7

2011-05-24 Thread Jules
ll means lets log a warning about it, but we should not trip up perfectly valid code. Ah! that feels better :-) Jules -- 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 t

Re: Clojure 1.3 Alpha 7

2011-05-20 Thread Jules
Looks like a ?bug? has crept into defrecord somewhere - I know that there is a limit to the number of params that a fn can take, but is it intentional that the same limit applies to the number of slots that a record can have ? : [jules@megalodon dada]$ java -jar ~/.m2/repository/org/clojure

Re: Serialising functions...

2011-05-03 Thread Jules
of code that I would want to write in Clojure rather than in Java. You are likely to come across types that are not serialisable as well and have to write custom serialisation routines for them. Sounds interesting :-) - wish I could help more - please keep the list posted. Jules On Thu, Apr 28, 2

Re: Serialising functions...

2011-04-28 Thread Jules
This would enable a proper p2p architecture where classes can be created in any node, rather than a client-server arch where only the central server is allowed to create them. I'll investigate. regards, Jules -- You received this message because you are subscribed to the Google Group

Re: Serialising functions...

2011-04-28 Thread Jules
-) If you need any help getting this stuff to work, just shout. Jules -- 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

Re: odd reflection warning

2011-04-15 Thread Jules
Originally I thought it might be something to do with the overload on the TreeSet ctor expecting a Collection when I am probably only able to provide Collection, but then I discovered the wierdness around the 'if'... Jules -- You received this message because you are subscribed to

Re: odd reflection warning

2011-04-15 Thread Jules
I don't get it if I type into a repl - only when I put it into a file and compile it... It's been hanging around for a while so I figured it was time to get to the bottom of it :-) Jules -- You received this message because you are subscribed to the Google Groups "Clojure&quo

Re: def and ;dynamic

2011-04-15 Thread Jules
Aha ! Thanks, David. Now I can sort all those annoying warnings :-) Jules -- 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 -

Re: def and ;dynamic

2011-04-15 Thread Jules
It worked !!! I thought that *xxx* was just a _convention_ to mark a variable as global, not a syntax to mark a global as mutable... ? Thank you for your solution, but can you explain why it works ? Jules -- You received this message because you are subscribed to the Google Groups "Cl

def and ;dynamic

2011-04-15 Thread Jules
on-manager-name* in my code: [jules@megalodon dada-core]$ find . -name "*.clj" | xargs grep session-manager-name ./src/main/clojure/org/dada/core.clj:(def *session-manager-name* "SessionManager") [jules@megalodon dada-core]$ So, in the module that I am compiling, there is o

odd reflection warning

2011-04-15 Thread Jules
ytest) (do (def ^java.util.Collection some-numbers [0 23 45 64 67 78]) (def ^java.util.NavigableSet numbers (java.util.TreeSet. some-numbers)) ) and recompile, I do not see the warning. does anyone else see this ? am I going mad ? :-) wierd ! Jules -- You received this message because y

Re: 1.3.0alpha5: gen-class, java.io.Serializable, readObject, writeObject....

2011-04-14 Thread Jules
I could :-) At the moment I have a hack() method which I call explicitly post-deserialisation. This allows me to remain pure-Clojure. I'm not sure that the necessary complexity required to do it right is worthwhile in my particualr usecase - but thanks for all your suggestions. Jules --

Re: 1.3.0alpha5: gen-class, java.io.Serializable, readObject, writeObject....

2011-04-13 Thread Jules
ag to generate private methods either and then there is the :methods tag on gen-class Perhaps my mistake is somewhere in here ? thanks Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: 1.3.0alpha5: gen-class, java.io.Serializable, readObject, writeObject....

2011-04-13 Thread Jules
able to see it and therefore also be unable to replace its implementation. thanks for trying :-) - have I missed anything ? Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

1.3.0alpha5: gen-class, java.io.Serializable, readObject, writeObject....

2011-04-11 Thread Jules
vate and I cannot find any means to decorate their signatures with Exceptions. So, for the moment, I am having to live with some hacky workarounds. Am I missing something, or does Clojure's Java interop not yet stretch to this sort of thing ? It would be nice if it did. thanks for you

definterface / gen-class constructor issue - alpha4

2011-04-01 Thread Jules
ut if there is interest I may be able to reduce it further. thanks for your time, Jules -- 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

Re: using clojure for (java) code generation; advice sought

2011-03-31 Thread Jules
ode to handle this. Enums have the added benefit that they would be really simple to emit and decompile reliably. Hope this is not too off the wall ! Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: gen-class and state...

2011-03-28 Thread Jules
ame position as myself :-) Jules On Mar 25, 10:22 am, Jules wrote: > yes > > and that's great where the resource usage is scoped on a per-thread basis, > but not a per-object basis - but then, I am thinking in OO terms again :-) > > Jules -- You received this message be

Re: ClojureCLR in production ?

2011-03-27 Thread Jules
Thanks David, fortunately this is not one of the things that I would be using it for :-) but the heads up is very welcome and useful as well, I am sure, to other people reading this list. regards, Jules -- You received this message because you are subscribed to the Google Groups "Cl

Re: ClojureCLR in production ?

2011-03-26 Thread Jules
Thanks for getting back to me Timothy - I'm encouraged - I'll give it a whirl. Jules -- 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 m

Re: gen-class and state...

2011-03-25 Thread Jules
yes and that's great where the resource usage is scoped on a per-thread basis, but not a per-object basis - but then, I am thinking in OO terms again :-) Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Re: Java Interop - Generics - Hmmm...

2011-03-24 Thread Jules
cool :-) I had a feeling that there was some vestige of generics left at runtime - now I know exactly what it is. thanks guys, Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: gen-class and state...

2011-03-24 Thread Jules
which read/wrote this atom... - so I suppose this would be one way around the problem,,,] Would you mind clarifying ? Thanks Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: http://build.clojure.org/releases - no alpha5 alpha6.. ?

2011-03-24 Thread Jules
know if there are plans to ship contrib 1.3alphas from maven central as well ? thanks Jules -- 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

  1   2   >