Re: [ANN] The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-11 Thread Jeffrey Straszheim
Looks awesome. I think we're going the same direction. Myself, I wanted clays to be first-class items that can live in Clojure namespaces, and give you all of that. The downside is this: if I particular clay is wrong for some particular evaluation, you're stuck. The clay is the clay is the clay

Re: The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-09 Thread Jeffrey Straszheim
Well, I’m not sure what you mean. It does nothing specific with the “data types” as such, so I would say, no, that isn’t it. On Monday, May 7, 2012 10:59:22 AM UTC-4, cperkins wrote: > > I like it. Kiln looks like it is automatically composing the request > handler based mostly on a descripti

Re: The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-09 Thread Jeffrey Straszheim
On Tuesday, May 8, 2012 11:18:42 AM UTC-4, Andrew wrote: > > Cool... Do you use kilns at Akamai, and to what extent? > > Another question: you set up coals and clays and eventually kilns are > fired. When you're setting up the coals and clays in code, you're telling > the system about dependenc

Re: The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-06 Thread Jeffrey Straszheim
it? > Is Kiln's goal to create a uniform interface to a finite state machine > -esque concept? > > Thanks! > Paul > > > > On May 6, 2:08 pm, Jeffrey Straszheim wrote: > > The Kiln is an evaluation strategy for insanely complex functions. It > wa

Re: [ANN] Exploding Fish: A URI Library for Clojure

2012-05-06 Thread Jeffrey Straszheim
But why "Exploding Fish", Walter? Why? Why? Poor fish. -- 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

[ANN] The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-06 Thread Jeffrey Straszheim
The Kiln is an evaluation strategy for insanely complex functions. It was designed based on two things: my experience with managing several large, complex, ever-changing web applications in Clojure, and my experience in dataflow approaches to modelling. I have released version 1.0.0 on Clojar

Re: prn/read and infinities

2009-10-20 Thread Jeffrey Straszheim
I'm thinking this should be handled at the reader level, not the evaluator. Since doubles are normally "understood" at read time, reading these values as symbols and expecting the evaluator to get them right could lead to unexpected behavior. On Tue, Oct 20, 2009 at 11:57 AM, Rich Hickey wrote:

Re: Redirecting Output

2009-10-20 Thread Jeffrey Straszheim
Speaking of which, NIO is certainly a subset of Java that would benefit from a nice Clojure wrapper. Not that I'm volunteering or anything. On Tue, Oct 20, 2009 at 3:06 AM, Alex Osborne wrote: > > John Harrop wrote: > > On Tue, Oct 20, 2009 at 12:07 AM, Alex Osborne > >

Re: Slime and stuff

2009-10-20 Thread Jeffrey Straszheim
n a hopeless romantic is a hopeful one" > > Magbasa bago Mamuna. Mag-isip bago mambatikos > > Without Truth there is no Justice, > Without Justice, there is Tyranny > > Semper fi > > Proof of Desire is Pursuit > > www.onthe8spot.com > igan.l...@gm

Slime and stuff

2009-10-19 Thread Jeffrey Straszheim
So, I just upgraded my machine to a Macbook Pro, and am reinstalling everything. I'm thinking about using Slime with Aquamacs. Does anyone have a link to a tutorial getting Slime up and running w/ Aquamacs? --~--~-~--~~~---~--~~ You received this message because yo

Re: Got a Clojure user group?

2009-04-12 Thread Jeffrey Straszheim
I'd love to meet some other Clojure folks. Is anyone else in Florida? On Sun, Apr 12, 2009 at 9:22 AM, atreyu wrote: > > A group for share bookmarks (and comments) about clojure and > functional programming: > http://groups.diigo.com/groups/clojure_dev > > thanks for clojure! it rocks! > > On A

Re: Java 6 dependency in clojure-contrib ok?

2009-04-09 Thread Jeffrey Straszheim
Yes to 5! I'm on a Mac and don't feel like dealing w/ upgrading to 6. On Thu, Apr 9, 2009 at 9:03 AM, Francesco Bellomi < francesco.bell...@gmail.com> wrote: > > Looks like an interesting idea for me; it would also allow for > automated dependency analysis for a given target jvm. > > btw, I'd al

Re: Bloggin' 'bout Dataflow

2009-04-04 Thread Jeffrey Straszheim
Yes! I did forget to provide a link. http://jstraszheim.livejournal.com/ On Apr 4, 1:23 pm, Jeffrey Straszheim wrote: > I've started a series of blog posts about the use and implementation of my > "Cells like" Dataflow library that currently lives in contrib.  I'd

Bloggin' 'bout Dataflow

2009-04-04 Thread Jeffrey Straszheim
I've started a series of blog posts about the use and implementation of my "Cells like" Dataflow library that currently lives in contrib. I'd love to get some traffic to it. Even more, since I'm looking for a job now, I wouldn't mind some links to it so maybe it will show up when potential employ

Re: Clojure + Terracotta Update

2009-04-02 Thread Jeffrey Straszheim
You're doing amazing work! I look forward to the result. On Thu, Apr 2, 2009 at 5:37 PM, Paul Stadig wrote: > I've been speaking with the Terracotta engineers, so here is an update on a > couple of the issues: > > 1) array.clone(). It turns out this is a bug in Terracotta. They have > acknowled

Re: Questions about Clojure and Common Lisp

2009-04-01 Thread Jeffrey Straszheim
I can't give you any numbers on #2, but I have used both languages and there is no comparison. Groovy is freakishly slow. Clojure is relatively zippy. On Wed, Apr 1, 2009 at 11:41 AM, Chanwoo Yoo wrote: > > Hello. Yesterday, I talked with a representative of a publisher about > a translation o

Re: detecting retries

2009-03-20 Thread Jeffrey Straszheim
The last I looked it would need to be added at the Java level. On Fri, Mar 20, 2009 at 5:32 PM, Mark Volkmann wrote: > > On Fri, Mar 20, 2009 at 4:02 PM, Jeffrey Straszheim > wrote: > > +1 > > I think two simple atomic integers would do the trick: > > 1. Number of

Re: detecting retries

2009-03-20 Thread Jeffrey Straszheim
+1 I think two simple atomic integers would do the trick: 1. Number of transactions entered 2. Number completed, or exited through exception. The amount 1 exceeds 2 is your retry rate. On Fri, Mar 20, 2009 at 4:38 PM, Mark Volkmann wrote: > > It seems that an important part of optimizing the

Re: Producing HTML

2009-03-17 Thread Jeffrey Straszheim
01a859329409 > > I've used it to output html to a file and found it very convenient: > http://clojure.googlegroups.com/web/categories.clj > > > On Mar 18, 12:01 am, Jeffrey Straszheim > wrote: > > Is there a good standalone library to create HTML from Clojure, > pre

Re: Clojure STM and deadlocks

2009-03-17 Thread Jeffrey Straszheim
The code isn't too hard to follow, 'cept the barging stuff gets a bit tricky. A nice 10,000 foot overview would be nice, however. On Tue, Mar 17, 2009 at 8:04 AM, Mark Volkmann wrote: > > Is there a summary somewhere of the steps Clojure STM takes to avoid > deadlocks? I'm just trying to underst

Producing HTML

2009-03-17 Thread Jeffrey Straszheim
Is there a good standalone library to create HTML from Clojure, preferably something like the CL-WHO? This will be for a standalone application, not an application server. I just need to generate some populated HTML and put it in to a file. Thanks. --~--~-~--~~~---~-

Re: Clojure Web Framework, what I want to add

2009-03-17 Thread Jeffrey Straszheim
> http://github.com/weavejester/compojure/tree/master. > Just need some time to get my head around compojure. > > Cheers, > Hubert. > > > > On Tue, Mar 17, 2009 at 12:52 AM, Jeffrey Straszheim < > straszheimjeff...@gmail.com> wrote: > >> I'd love

Re: I got to use Clojure at work today !!!

2009-03-16 Thread Jeffrey Straszheim
Just using the REPL to test some Java code interactively. On Mon, Mar 16, 2009 at 9:44 PM, Vincent Foley wrote: > > Personal project at work, or part of something bigger? > > On Mar 16, 9:27 pm, Jeffrey Straszheim > wrote: > > Only to do a tiny little test w/ not-deploye

Re: Question about profiling

2009-03-16 Thread Jeffrey Straszheim
Are they both Java 6? I know it fixed a lot of performance issue over 5. On Mon, Mar 16, 2009 at 9:22 PM, Vincent Foley wrote: > > I found that the problem is caused by the version of Sun's JVM on > Ubunty Hardy Heron. On my Ibex machine at home, the first two lines > (Object.wait and Referenc

I got to use Clojure at work today !!!

2009-03-16 Thread Jeffrey Straszheim
Only to do a tiny little test w/ not-deployed code. But still: I am a professional Clojure developer now :) (Please don't kill my dream.) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to th

Re: Clojure Web Framework, what I want to add

2009-03-16 Thread Jeffrey Straszheim
I'd love to see something built around very-high scalability, using NIO and thread pools and such. On Mon, Mar 16, 2009 at 7:40 PM, Sean wrote: > > I'm not sure if some of the design inputs make sense, specifically > Spring and Hibernate. > > Point 1 - I've found the strength of Spring to be mak

Re: Symbols evaluated at compile time?

2009-03-16 Thread Jeffrey Straszheim
I agree. It doesn't matter what order the compiler reads the definitions: I can scroll up and type. It does effect humans reading the code, however. Often when looking at unfamiliar Clojure code, I find myself scrolling to the bottom first. On Mon, Mar 16, 2009 at 1:58 PM, Meikel Brandmeyer wro

Re: errors?

2009-03-15 Thread Jeffrey Straszheim
Don't be discouraged. At work I use Eclipse with all sorts of mature tools (this is Java). It is, more or less, pretty easy to use. At home I use Aquamacs with a simple clojure-mode.el. I can produce lines of code many times faster and easier with the later. No doubt a big part reflects the su

Re: design patterns for event driven applications

2009-03-15 Thread Jeffrey Straszheim
Maybe I'll put together a Parsec. I seem to remember it supported a cut operator? That would be fun. On Sat, Mar 14, 2009 at 2:10 PM, Meikel Brandmeyer wrote: > Hi, > > Am 14.03.2009 um 18:42 schrieb Jeffrey Straszheim: > > Hasn't someone been working on a Clojure v

Re: design patterns for event driven applications

2009-03-14 Thread Jeffrey Straszheim
Hasn't someone been working on a Clojure vesion of Parsec? On Sat, Mar 14, 2009 at 4:31 AM, Christophe Grand wrote: > > Anatoly Yakovenko a écrit : > > basically i am dealing with a 3rd party library, (interactive brokers > > tws api), that takes an interface with lots of different methods that >

Re: errors?

2009-03-14 Thread Jeffrey Straszheim
Try frequently doing: (use :reload 'fully.qualified.name.of.my.file) When you are interactively adding code to the REPL (by typing or through Slime or whatever) it doesn't know the line number. If you reload the file containing the offending code, it will. I usually have a comment block like thi

Re: "08" and "09" are invalid numbers, but "01" through "07" are fine?

2009-03-12 Thread Jeffrey Straszheim
In Java, numbers prefixed with a "0" are treated as octal. It should not surprise us, then, that 08 and 09 blow up. On Thu, Mar 12, 2009 at 4:08 PM, levand wrote: > > Seems like there's a bug here. All the digits less than 8 work. If > leading zeros aren't allowed, at least the behavior ought t

Re: ANN: A pretty printer for Clojure

2009-03-12 Thread Jeffrey Straszheim
Awesome! I expect I'll be trying it out tonight. Oh, and I hope this goes into contrib -- it'll keep my classpath shorter. On Thu, Mar 12, 2009 at 2:05 AM, Tom Faulhaber wrote: > > I have now "released" the first version of my pretty printer as part > of my cl-format library. It is released unde

Another cells library

2009-03-11 Thread Jeffrey Straszheim
I've put together another cells-like library. Mine differs from the others in that it uses ref's and transactions, allowing global integrity checks, rollbacks, and other features that the agent based cells systems do not have. It can be found at: http://github.com/straszheimjeffrey/dataflow/tr

Re: Enjoying test-is

2009-03-11 Thread Jeffrey Straszheim
Me too! I'm writing tests right now. On Wed, Mar 11, 2009 at 6:11 PM, Stuart Sierra wrote: > > On Mar 11, 2:45 am, mikel wrote: > > I just wanted to say thanks to Stuart Sierra for test-is. > On Mar 11, 9:15 am, stephaner wrote: > > I use test-is too, this is a very usefull test framework. > >

Re: Request: Can clojure.contrib.walk provide a reduce type operation?

2009-03-11 Thread Jeffrey Straszheim
1, 2009 at 9:24 AM, Jeffrey Straszheim > wrote: > > Currently the clojure.contrib.walk code provides a nice way to perform a > > depth first map operation on trees. However, I need to fold across a > tree. > > It would be nice if walk provided this. > > > > &

Request: Can clojure.contrib.walk provide a reduce type operation?

2009-03-11 Thread Jeffrey Straszheim
Currently the clojure.contrib.walk code provides a nice way to perform a depth first map operation on trees. However, I need to fold across a tree. It would be nice if walk provided this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: design patterns for event driven applications

2009-03-11 Thread Jeffrey Straszheim
It is impossible to give a simple answer. You need to be more specific about the needs of your application. Will it need to be concurrent, for instance? On Tue, Mar 10, 2009 at 7:49 PM, Anatoly Yakovenko wrote: > > I just starting playing around with clojure, and i know nothing of > java beyond

Re: Debugging support for clojure?

2009-03-11 Thread Jeffrey Straszheim
Probably. The Java BigInteger classes are not particularly fast, and do not seem to be a priority to Sun. Therefore Clojure is not competitive on large integer algorithms. On Wed, Mar 11, 2009 at 2:21 AM, Tassilo Horn wrote: > > Phil Hagelberg writes: > > Hi Phil, > > >> If not, is there bette

add-watch to refs

2009-03-09 Thread Jeffrey Straszheim
When you add a watch to a ref (as opposed to an agent), when is it called? After transaction commit, I assume, but can someone confirm that. The docs for add-agent mention that the watch function might be called from various threads. If used from a dosync, can it be called from a different thread

Re: What is Clojure NOT good for?

2009-03-09 Thread Jeffrey Straszheim
Well, there is no real replacement for raw intelligence, but I hope we'll all agree that attitude and curiosity are also critical. On Mon, Mar 9, 2009 at 7:33 PM, Phil Hagelberg wrote: > > bOR_ writes: > > > I'm not from the software engineers field, but how difficult is it for > > some non-lis

Re: filter-split

2009-03-07 Thread Jeffrey Straszheim
There is separate in seq_utils in contrib. On Sat, Mar 7, 2009 at 11:29 PM, David Sletten wrote: > > I'm reading the Sequences chapter of Programming Clojure, and Stu > points out that split-with combines the semantics of take-while and > drop-while. But is there a function that does something s

Re: Datalog update

2009-03-07 Thread Jeffrey Straszheim
I've added some Datalog material to the wiki: http://code.google.com/p/clojure-contrib/wiki/DatalogOverview On Wed, Feb 18, 2009 at 4:55 PM, Jeffrey Straszheim < straszheimjeff...@gmail.com> wrote: > Makes sense. That would work. It certainly looks cleaner. > > > On We

Re: hash-map based on identity

2009-03-07 Thread Jeffrey Straszheim
java.util.IdentityHashMap On Sat, Mar 7, 2009 at 1:49 AM, Mark Engelberg wrote: > > Is there a variation of hash-map which supports comparison of keys > using identical? rather than = ? Ditto with sets. > > > > --~--~-~--~~~---~--~~ You received this message beca

Re: pmap slower than map when reducing

2009-03-07 Thread Jeffrey Straszheim
(pnpoly np xp yp -0.5 -2.5))) > (range 0 1000 > (range 0 1000))) > > Clojure is reasonable :) > > Jeffrey Straszheim wrote: > > It is pretty common to get a slowdown when moving from map to pmap. It > just >

Re: pmap slower than map when reducing

2009-03-06 Thread Jeffrey Straszheim
It is pretty common to get a slowdown when moving from map to pmap. It just means that the thread scheduling overhead is greater than the gain from parallelizing the code. The behavior might be very different w/ larger data sets, or w/ more CPU's. It is often best to leave parallelism as an opti

Re: What is Clojure NOT good for?

2009-03-06 Thread Jeffrey Straszheim
If these theories are correct (and I believe they are) then this is an opportunity to beat the crap out these guys in head-to-head competition. The Rails guys seem to have successfully broken into industry by being better (relatively compared to Java/VB/C#). We can do the same thing if we don't w

Re: Missing function?

2009-03-06 Thread Jeffrey Straszheim
Which raises the question when will there be another release? The current one is getting pretty wildly outdated. Also, I think a corresponding release of contrib would be a good idea. People "just trying out" Clojure are unlikely to want to mess with the nightly builds, but all the libraries are

Re: Chrono date library

2009-03-05 Thread Jeffrey Straszheim
I took a brief glance at Joda. It appears they already use immutable objects to a large degree. It looks like *exactly* the sort of library we can just use out of the box, unwrapped. On Thu, Mar 5, 2009 at 6:49 PM, Phil Hagelberg wrote: > > Cosmin Stejerean writes: > > > I like the API so far

Re: Clojure creates lots of classloaders

2009-03-04 Thread Jeffrey Straszheim
d as necessary -- or is the > number of created classloaders so significant as to hit some serious > limitation? > > - Chas > > On Mar 4, 2009, at 3:16 PM, Jeffrey Straszheim wrote: > > > Many people consider the use of eval in "normal" code to be bad &g

Re: Clojure creates lots of classloaders

2009-03-04 Thread Jeffrey Straszheim
Many people consider the use of eval in "normal" code to be bad style. However, there are times when it is justified, such as genetic programming or dynamic code loading. In these cases Clojure falls down without the classloader trick. On Wed, Mar 4, 2009 at 3:03 PM, Chas Emerick wrote: > > He

Re: Clojure creates lots of classloaders

2009-03-04 Thread Jeffrey Straszheim
This was to fix a bug where new code (generated by (eval ...)) would never get garbage collected and crashed some programs that used eval heavily. The JVM has a limitation that it will never GC a loaded class, but can GC a collection of classes referenced by a single classloader. On Wed, Mar 4, 2

Re: warning on mutation

2009-03-04 Thread Jeffrey Straszheim
Not exactly, but there is the IO! macro (see core.clj) that you can use to mark your side effect generating code. On Wed, Mar 4, 2009 at 10:49 AM, Joshua Fox wrote: > Can Clojure generate warnings when a function has side effects, > particularly in transactions and other places where one should

Re: So what do we want for a Cells-alike ?

2009-03-03 Thread Jeffrey Straszheim
Patil < anand.prabhakar.pa...@gmail.com> wrote: > > On Mar 3, 3:38 pm, Jeffrey Straszheim > wrote: > > I'm pretty sure I don't want an agent based model. I want clear > > transactional semantics. However, there is no reason both should not > > exist. >

Re: So what do we want for a Cells-alike ?

2009-03-03 Thread Jeffrey Straszheim
I'm pretty sure I don't want an agent based model. I want clear transactional semantics. However, there is no reason both should not exist. On Mar 3, 9:11 am, Anand Patil wrote: > On Mar 3, 1:04 pm, Rich Hickey wrote: > > > I think it is important to embrace asynchrony and concurrency as > >

Re: So what do we want for a Cells-alike ?

2009-03-03 Thread Jeffrey Straszheim
I've actually been looking at Rete. However, for my present purposes I want something that just does computation dependency graphs. Rete is way heavier than I'm currently thinking. On Mar 3, 8:12 am, Rich Hickey wrote: > On Mar 2, 10:41 pm, Jeffrey Straszheim > wrote: >

Re: So what do we want for a Cells-alike ?

2009-03-03 Thread Jeffrey Straszheim
I've actually been looking at Rete. However, for my present purposes I want something that just does computation dependency graphs. Rete is way heavier than I'm currently thinking. On Mar 3, 8:12 am, Rich Hickey wrote: > On Mar 2, 10:41 pm, Jeffrey Straszheim > wrote: >

Re: So what do we want for a Cells-alike ?

2009-03-03 Thread Jeffrey Straszheim
Access to the previous value is an interesting idea. I'm thinking of putting together a lib where all updates are collection into transactions (which would run *inside* of Clojure transactions, but would have their own semantics also). Something like this: (update-model (update x 3) (upda

So what do we want for a Cells-alike ?

2009-03-02 Thread Jeffrey Straszheim
There are a lot of "toy" cells implementations for Clojure, but as far as I can tell none of them are really full-production ready libraries like K. Tilton's. I'm planning on starting a GUI based project and something cell's like would be very helpful. I may end up building it myself, and am wond

Re: The Application Context Pattern

2009-02-27 Thread Jeffrey Straszheim
I've seen the term "skyhook" used to describe a very similar system. In any event, it looks cool. On Fri, Feb 27, 2009 at 5:24 AM, linh wrote: > > thanks, this will be very useful for me > > On 27 Feb, 09:05, Itay Maman wrote: > > Some of the reaction for Waterfront was related to the Applicat

Re: Richer 'partial'

2009-02-26 Thread Jeffrey Straszheim
"partial" is a currying function. It can be provided any number of parameter(s), but it is always behaves sequentially from start to finish. That is what currying *is*. You can easily partially apply to other arguments by doing this: #(fred %1 some-arg %2 other-arg). "partial" could not easily

Re: error-kit and threads

2009-02-25 Thread Jeffrey Straszheim
ussed recently on another thread, but I forget which. On Wed, Feb 25, 2009 at 9:26 PM, Chouser wrote: > > On Wed, Feb 25, 2009 at 12:32 PM, Chouser wrote: > > On Wed, Feb 25, 2009 at 9:05 AM, Jeffrey Straszheim > > wrote: > >> Does the stuff in error kit work across th

Multimethods in other namespaces

2009-02-25 Thread Jeffrey Straszheim
If in namespace one I define (defmulti fred dispatch-fred) and have imported that ns into another, can I just do (defmethod fred ::val [x] ), or do I need to scope the method name? --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Algebraic data types in clojure.contrib

2009-02-25 Thread Jeffrey Straszheim
Is there any reason they cannot be implemented as structs with some sort of type tag? On Wed, Feb 25, 2009 at 10:26 AM, Konrad Hinsen wrote: > > I have just added a new library to clojure.contrib. It provides a > proof-of-concept implementation of algebraic data types. An example > for what you c

Re: dorun and map

2009-02-25 Thread Jeffrey Straszheim
I really like the "close it as the last item in the sequence" trick. Sadly, I don't see how it can be made exception safe. On Wed, Feb 25, 2009 at 9:02 AM, Stuart Sierra wrote: > > On Feb 25, 8:29 am, Meikel Brandmeyer wrote: > > That's interesting. I almost never use doall or dorun together wi

error-kit and threads

2009-02-25 Thread Jeffrey Straszheim
Does the stuff in error kit work across thread boundaries. I'm thinking, for instance, if you run a computation using pmap, the individual computations are run inside of Java futures, which will propagate exceptions back to the caller when the caller gets the value. So, pmap should work fairly tr

Re: Waterfront - The Clojure-based editor for Clojure

2009-02-25 Thread Jeffrey Straszheim
Count me interested also. On Wed, Feb 25, 2009 at 7:49 AM, Itay Maman wrote: > > > > On Feb 25, 11:48 am, linh wrote: > > where can i read about "application context" pattern? > It is something I had occasionally used in the past. As I started > working on Waterfront, I realized it is well suit

Re: Flatten a list

2009-02-25 Thread Jeffrey Straszheim
I always end up doing (filter identity '(:fred :mary nil :sue)) (remove nil? ...) is actually more clear. I'll try to remember that. On Tue, Feb 24, 2009 at 10:42 PM, Timothy Pratley wrote: > > user=> (remove nil? '(:a nil nil :b :a)) > (:a :b :a) > > On Feb 25, 2:38 pm, Sean wrote: > > I've go

Re: pretty printing code

2009-02-24 Thread Jeffrey Straszheim
I look forward to it. A good pretty-printer would be very helpful in my current work. On Tue, Feb 24, 2009 at 11:54 AM, Tom Faulhaber wrote: > > I'm just a few days away from having announcing the first release of > my pretty printer (the pretty printer itself is working now, I'm just > gearing

Re: newbie troubles with new lazy-seq hotness (OutOfMemory)

2009-02-24 Thread Jeffrey Straszheim
Glad I could help. On Tue, Feb 24, 2009 at 1:07 AM, bsmith.occs wrote: > > > > On Feb 23, 11:46 pm, Jeffrey Straszheim > wrote: > > Have you figured this out yet? > > > > On Mon, Feb 23, 2009 at 4:58 PM, Jeffrey Straszheim < > > > > straszhe

Re: Directed Graphs for Contrib

2009-02-23 Thread Jeffrey Straszheim
are functions of their keys is amazing. Why haven't other languages figured that out?) On Mon, Feb 23, 2009 at 9:50 PM, Jeffrey Straszheim < straszheimjeff...@gmail.com> wrote: > It would be easy to convert from your form to adjacency lists, so if you > want it write a converter

Where to put fixed-point?

2009-02-23 Thread Jeffrey Straszheim
For my graph code in contrib, I've created a function fixed-point. It is, I believe, generally useful. However, it is not properly a "graph" function per se, and might belong elsewhere in the library. Does anyone have a better suggestion of a file in contrib to put a fixed-point function? --~--

Re: Directed Graphs for Contrib

2009-02-23 Thread Jeffrey Straszheim
n Feb 23, 6:38 pm, Jeffrey Straszheim > wrote: > > Well, right now I'm just handling directed graphs, and basically treating > > nodes as integer indexes, with a simple formula from index to adjacency > list > > of nodes. > > > > I would actually like to see an imp

Re: challenge: best fibo implementation under the new laziness?

2009-02-23 Thread Jeffrey Straszheim
The speed of the JVM's big ints, and therefore Clojure's, doesn't seem to be competitive. On Mon, Feb 23, 2009 at 5:46 PM, Raffael Cavallaro < raffaelcavall...@gmail.com> wrote: > > > > On Feb 23, 2:51 pm, "Stephen C. Gilardi" wrote: > > > The fibs implementation in clojure.contrib.lazy-seqs is

Re: Directed Graphs for Contrib

2009-02-23 Thread Jeffrey Straszheim
Well, right now I'm just handling directed graphs, and basically treating nodes as integer indexes, with a simple formula from index to adjacency list of nodes. I'm not opposed to a more elaborate implementation. Patch welcome :) On Mon, Feb 23, 2009 at 7:33 PM, Jeff Rose wrote: &

Re: newbie troubles with new lazy-seq hotness (OutOfMemory)

2009-02-23 Thread Jeffrey Straszheim
Have you figured this out yet? On Mon, Feb 23, 2009 at 4:58 PM, Jeffrey Straszheim < straszheimjeff...@gmail.com> wrote: > The identifier "fibl" is holding on to the head of the sequence. > > > On Mon, Feb 23, 2009 a

Re: newbie troubles with new lazy-seq hotness (OutOfMemory)

2009-02-23 Thread Jeffrey Straszheim
The identifier "fibl" is holding on to the head of the sequence. On Mon, Feb 23, 2009 at 4:04 PM, bsmith.occs wrote: > > ;; > - > ;; using clojure.jar from source r1301 > ;; > ;; I'm new to clojure and working from B7.0 of Prog

Re: Directed Graphs for Contrib

2009-02-23 Thread Jeffrey Straszheim
> There was a thread earlier about defining cyclic graphs in Clojure. > Can someone point me to it? > > Thanks, > Cliff > > > On Feb 22, 7:55 am, Rich Hickey wrote: > > On Feb 22, 2009, at 10:11 AM, Jeffrey Straszheim wrote: > > > > > Just as a point of f

Re: Directed Graphs for Contrib

2009-02-22 Thread Jeffrey Straszheim
llomi < francesco.bell...@gmail.com> wrote: > > +1 > > Francesco > > On Feb 22, 2:59 am, Jeffrey Straszheim > wrote: > > As part of my Datalog work I'm putting together some directed graph > > algorithms, mostly things like finding strongly connected compon

Re: Issue 52 looks solved

2009-02-22 Thread Jeffrey Straszheim
Does zero arguments return #{} ? Has intersection changed? On Sun, Feb 22, 2009 at 5:16 AM, Frantisek Sodomka wrote: > > Hello! Just a quick note: > Issue 52: Make set/union accept any number of arguments > http://code.google.com/p/clojure/issues/detail?id=52 > > seems to be solved already by: >

Re: arguments to dissoc and select-keys

2009-02-21 Thread Jeffrey Straszheim
On Sat, Feb 21, 2009 at 8:49 PM, David Nolen wrote: > > Ah the power of Clojure ;) The fact that (almost?) anything can be a key is > a pretty liberating thing. > It is truly an amazing ability. --~--~-~--~~~---~--~~ You received this message because you are subs

Re: dependencies + observers + java interop: how to?

2009-02-21 Thread Jeffrey Straszheim
I have a "toy" version of Datalog working now here: http://code.google.com/p/clojure-datalog/ By "toy" I mean it works but is incredibly slow and wasteful. I would not use it in a production system. "Real" Datalog is coming, but I'm now doing research regarding the correct approach. Note, th

Directed Graphs for Contrib

2009-02-21 Thread Jeffrey Straszheim
As part of my Datalog work I'm putting together some directed graph algorithms, mostly things like finding strongly connected components, and building dependency stratifications (think topological sort but with the results groups in tiers of non-interdependent nodes). Anyhow, I'm thinking this stu

Re: Calling method in Java that mutates passed argument

2009-02-20 Thread Jeffrey Straszheim
The Clojure collections are immutable, which is their entire reason for existing. However, there is nothing stopping you from creating a plain old Java collection in Clojure. (let [list (ArrayList. '("Fred" "mary" "sue")] (do (java.util.Collections/sort list) list)) Should work. On Fri

Re: Contributing

2009-02-20 Thread Jeffrey Straszheim
odule in the files section. It > implements the system found in "The Reasoned Schemer". > > On Feb 18, 2:59 pm, Jeffrey Straszheim > wrote: > > Did you cover logic programming? Any bottom up logic query techniques? > > (My motives are probably transparent.) >

Re: Anyone tried to create a dynamic TableModel (or ListModel)?

2009-02-20 Thread Jeffrey Straszheim
hat information instead of losing it > and having to diff 2 complete collections later... But I don't have an > idea on how to do this in Clojure. > > On Feb 20, 11:15 pm, Jeffrey Straszheim > wrote: > > It would be pretty easy to wrap an agent (as pmf suggests) to notify

Re: Where did nil go?

2009-02-20 Thread Jeffrey Straszheim
There have been some major changes in the last week or so. See http://clojure.org/lazy for a brief overview. Also: http://blog.n01se.net/?p=39 On Fri, Feb 20, 2009 at 10:31 AM, Rock wrote: > > After watching Rich's video presentations and reading Stuart's fine > book, I was absolutely convinced

Re: General Question Clojure(Lisp) Idiom, cross cutting? What is the terminology

2009-02-20 Thread Jeffrey Straszheim
The OO folks call this an "internal iterator" or "visitor". However, I'd recommend against adopting their point of view. On Fri, Feb 20, 2009 at 10:12 AM, BerlinBrown wrote: > > This is a general termingology question. What is this idiom, called > where you pass a function as an argument to ano

Re: compiling a GUI app and also: interference of Java's built-in architechture

2009-02-20 Thread Jeffrey Straszheim
If your CLJ files are in the classpath, and you include clojure.jar, then your good. On Fri, Feb 20, 2009 at 9:30 AM, rob wrote: > > What do you mean when you say there is no need to compile your program > to distribute it? Doesn't that require end users to set up a clojure > environment? And

Re: doc suggestion for future function

2009-02-20 Thread Jeffrey Straszheim
As far as I can tell, futures are *not* agents, but wrap the java.util.concurrent.Future class. However, they do run in the same thread pool that the agents use, so your point still stands. On Fri, Feb 20, 2009 at 9:09 AM, Mark Volkmann wrote: > > The doc string for the future function should p

Re: Anyone tried to create a dynamic TableModel (or ListModel)?

2009-02-20 Thread Jeffrey Straszheim
It would be pretty easy to wrap an agent (as pmf suggests) to notify your model class if a Vector changes. You could then do something like (map = old_vec new_vec) And then look for false results in the array and send a notification to Swing. On Fri, Feb 20, 2009 at 5:40 AM, Rowdy Rednose wrote

Re: how to learn clojure ?

2009-02-18 Thread Jeffrey Straszheim
The Common Lisp and Scheme books suggested are great, of course, particularly _On Lisp_. However, I think learning CL or Scheme is an awfully roundabout way to learn Clojure. I think we should really be pushing the Pragmatic book. It is good and gets the user to Clojure in a straight line. On W

Re: Clojure.contrib: name changes in monads

2009-02-18 Thread Jeffrey Straszheim
I like that. It makes it clear what is a monad, and what is not. On Wed, Feb 18, 2009 at 3:24 AM, Konrad Hinsen wrote: > > The latest Clojure version broke many of my code by introducing the > function sequence whose name collided with my sequence monad. So I > decided that since now is the time

Re: Datalog update

2009-02-18 Thread Jeffrey Straszheim
Makes sense. That would work. It certainly looks cleaner. On Wed, Feb 18, 2009 at 4:51 PM, Rich Hickey wrote: > > > > On Feb 18, 4:32 pm, Jeffrey Straszheim > wrote: > > Easy enough to do. The only drawback is I'd probably want to force it > into > >

Re: Datalog update

2009-02-18 Thread Jeffrey Straszheim
Easy enough to do. The only drawback is I'd probably want to force it into a hash during the query. For large datasets (say 100,000 records) this might get expensive. On Wed, Feb 18, 2009 at 4:13 PM, Rich Hickey wrote: > > > > On Feb 18, 3:51 pm, Jeffrey Straszheim > w

Re: Contributing

2009-02-18 Thread Jeffrey Straszheim
Did you cover logic programming? Any bottom up logic query techniques? (My motives are probably transparent.) On Wed, Feb 18, 2009 at 2:34 PM, Joshua wrote: > > I am currently in a masters level Compiler class. We have a final > project for the class and I was wondering if there would be any >

Re: Datalog update

2009-02-18 Thread Jeffrey Straszheim
ed into positional notation (assuming the columns are named in the obvious way): fred(X,Y) :- sally(X,Z), becky(Y), ~Janet(Z), when X wrote: > > > > On Feb 9, 8:46 am, Jeffrey Straszheim > wrote: > > No, but I'm really learning as I go here. I'll look into it. &g

Re: Performance of (fn [] ...)?

2009-02-18 Thread Jeffrey Straszheim
Creating a small object like that is cheap on the JVM. There are much better places to put optimization effort. On Wed, Feb 18, 2009 at 1:07 PM, Michel Salim wrote: > > > > On Feb 18, 3:17 am, Laurent PETIT wrote: > > Hello, > > > > 2009/2/18 CuppoJava > > > > > > > > > Hi, > > > I've noticed

Re: Questions about a Clojure Datalog

2009-02-18 Thread Jeffrey Straszheim
I see nothing in his code or documentation for handling negation or stratification. Also, it appears to be a top down evaluator, and I don't see any fixed-point or other recursion handling. I *suspect* this does not guarantee termination over arbitrary safe rules. It is not real Datalog. On Wed

Re: Questions about a Clojure Datalog

2009-02-18 Thread Jeffrey Straszheim
It is worth looking at. On Wed, Feb 18, 2009 at 12:42 PM, Telman Yusupov wrote: > > Could this be of any help for your development? There is now a version > of Datalog for PLT Scheme: > > Software: > > http://planet.plt-scheme.org/display.ss?package=datalog.plt&owner=jaymccarthy > > Documentatio

  1   2   >