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

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 dependencies.

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 description

[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

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

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

2012-05-06 Thread Jeffrey Straszheim
concept? Thanks! Paul On May 6, 2:08 pm, Jeffrey Straszheim jstra...@akamai.com wrote: 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

Re: Slime and stuff

2009-10-20 Thread Jeffrey Straszheim
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...@gmail.com 09173822367 On Tue, Oct 20, 2009 at 2:30 AM, Jeffrey Straszheim straszheimjeff

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 a...@meshy.org wrote: John Harrop wrote: On Tue, Oct 20, 2009 at 12:07 AM, Alex Osborne a...@meshy.org

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

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

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 atreyu_...@yahoo.es wrote: A group for share bookmarks (and comments) about clojure and functional programming: http://groups.diigo.com/groups/clojure_dev thanks for clojure! it

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 also

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

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 straszheimjeff...@gmail.com 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 love

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 p...@stadig.name 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

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 r.mark.volkm...@gmail.comwrote: It seems that an

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 r.mark.volkm...@gmail.comwrote: On Fri, Mar 20, 2009 at 4:02 PM, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: +1 I think two simple atomic integers would do the trick

Re: Clojure Web Framework, what I want to add

2009-03-17 Thread Jeffrey Straszheim
://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 to see something built around very-high scalability, using NIO and thread

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 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 r.mark.volkm...@gmail.comwrote: Is there a summary somewhere of the steps Clojure STM takes to avoid deadlocks? I'm

Re: Producing HTML

2009-03-17 Thread Jeffrey Straszheim
/f35d01a859329409 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 straszheimjeff...@gmail.com wrote: Is there a good standalone library to create HTML from Clojure, preferably something

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

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 francoisdev...@gmail.com wrote: I'm not sure if some of the design inputs make sense, specifically Spring and Hibernate. Point 1 - I've found the strength

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

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 vfo...@gmail.com 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

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 vfo...@gmail.com wrote: Personal project at work, or part of something bigger? On Mar 16, 9:27 pm, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: Only to do a tiny little test w

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

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

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 christo...@cgrand.netwrote: Anatoly Yakovenko a écrit : basically i am dealing with a 3rd party library, (interactive brokers tws api), that takes an interface with lots of

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 tomfaulha...@gmail.comwrote: I have now released the first version of my pretty printer as part of my cl-format library.

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 luke.vanderh...@gmail.com wrote: Seems like there's a bug here. All the digits less than 8 work. If leading zeros aren't allowed, at least

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 tass...@member.fsf.orgwrote: Phil Hagelberg p...@hagelb.org writes: Hi

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 aeyakove...@gmail.comwrote: I just starting playing around with clojure, and i know

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

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

2009-03-11 Thread Jeffrey Straszheim
, 2009 at 9:24 AM, Jeffrey Straszheim straszheimjeff...@gmail.com 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. -- And what is good

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:

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 p...@hagelb.org wrote: bOR_ boris.sch...@gmail.com writes: I'm not from the software engineers field, but how

Re: pmap slower than map when reducing

2009-03-07 Thread Jeffrey Straszheim
(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 means that the thread scheduling overhead is greater than the gain from parallelizing the code. The behavior might be very different

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 mark.engelb...@gmail.comwrote: Is there a variation of hash-map which supports comparison of keys using identical? rather than = ? Ditto with sets. --~--~-~--~~~---~--~~ You received

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 Wed, Feb 18, 2009 at 4:51 PM

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 da...@bosatsu.net 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

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: 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

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

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 p...@hagelb.org wrote: Cosmin Stejerean cstejer...@gmail.com

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 joshuat...@gmail.com wrote: Can Clojure generate warnings when a function has side effects, particularly in transactions and other

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,

Re: Clojure creates lots of classloaders

2009-03-04 Thread Jeffrey Straszheim
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 style. However, there are times when it is justified

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)

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 richhic...@gmail.com wrote: On Mar 2, 10:41 pm, Jeffrey Straszheim straszheimjeff

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 richhic...@gmail.com wrote: On Mar 2, 10:41 pm, Jeffrey Straszheim straszheimjeff

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 anand.prabhakar.pa...@gmail.com wrote: On Mar 3, 1:04 pm, Rich Hickey richhic...@gmail.com wrote: I think it is

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

2009-03-03 Thread Jeffrey Straszheim
anand.prabhakar.pa...@gmail.com wrote: On Mar 3, 3:38 pm, Jeffrey Straszheim straszheimjeff...@gmail.com 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. I think you can get solid

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

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 nguyenlinh.m...@gmail.com wrote: thanks, this will be very useful for me On 27 Feb, 09:05, Itay Maman itay.ma...@gmail.com wrote: Some of the reaction for

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: 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 timothyprat...@gmail.comwrote: user= (remove nil? '(:a nil nil :b :a)) (:a :b :a) On Feb 25, 2:38 pm, Sean

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

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 the.stuart.sie...@gmail.comwrote: On Feb 25, 8:29 am, Meikel Brandmeyer m...@kotka.de wrote: That's interesting. I almost

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 konrad.hin...@laposte.netwrote: I have just added a new library to clojure.contrib. It provides a proof-of-concept implementation of algebraic data types. An

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

Re: error-kit and threads

2009-02-25 Thread Jeffrey Straszheim
recently on another thread, but I forget which. On Wed, Feb 25, 2009 at 9:26 PM, Chouser chou...@gmail.com wrote: On Wed, Feb 25, 2009 at 12:32 PM, Chouser chou...@gmail.com wrote: On Wed, Feb 25, 2009 at 9:05 AM, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: Does the stuff in error

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 bsmith.o...@gmail.com wrote: On Feb 23, 11:46 pm, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: Have you figured this out yet? On Mon, Feb 23, 2009 at 4:58 PM, Jeffrey Straszheim straszheimjeff...@gmail.com

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 tomfaulha...@gmail.comwrote: I'm just a few days away from having announcing the first release of my pretty printer (the pretty printer itself is working now,

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 richhic...@gmail.com wrote: On Feb 22, 2009, at 10:11 AM, Jeffrey Straszheim wrote: Just as a point of fact, I don't plan to make a complete *every

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 bsmith.o...@gmail.com wrote: ;; - ;; using clojure.jar from source r1301 ;; ;; I'm new to clojure and working

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 at 4:04 PM, bsmith.occs bsmith.o...@gmail.comwrote

Re: Directed Graphs for Contrib

2009-02-23 Thread Jeffrey Straszheim
: Jeffrey Straszheim wrote: 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

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 squee...@mac.com wrote: The fibs implementation in

Re: Directed Graphs for Contrib

2009-02-23 Thread Jeffrey Straszheim
23, 6:38 pm, Jeffrey Straszheim straszheimjeff...@gmail.com 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 implementation that more

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 fsodo...@gmail.comwrote: 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

Re: Directed Graphs for Contrib

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

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

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, that

Re: arguments to dissoc and select-keys

2009-02-21 Thread Jeffrey Straszheim
On Sat, Feb 21, 2009 at 8:49 PM, David Nolen dnolen.li...@gmail.com 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

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

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 r.mark.volkm...@gmail.comwrote: The doc string for the

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 r.p.l...@gmail.com 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

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 berlin.br...@gmail.comwrote: This is a general termingology question. What is this idiom, called where you pass a function as an

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 rocco.ro...@gmail.com wrote: After watching Rich's video presentations and reading Stuart's fine book, I was

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

2009-02-20 Thread Jeffrey Straszheim
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 straszheimjeff...@gmail.com wrote: It would be pretty easy to wrap an agent (as pmf suggests) to notify your model class if a Vector changes. You

Re: Contributing

2009-02-20 Thread Jeffrey Straszheim
section. It implements the system found in The Reasoned Schemer. On Feb 18, 2:59 pm, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: 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

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, Feb

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 use...@yusupov.com 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.pltowner=jaymccarthy

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

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 michel.syl...@gmail.comwrote: On Feb 18, 3:17 am, Laurent PETIT laurent.pe...@gmail.com wrote: Hello, 2009/2/18 CuppoJava

Re: Datalog update

2009-02-18 Thread Jeffrey Straszheim
each tuple that has a Z in janet, and also remove any tuple where XY fails. The resulting X,Y would be projected as relation fred. On Wed, Feb 18, 2009 at 3:23 PM, Rich Hickey richhic...@gmail.com wrote: On Feb 9, 8:46 am, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: No, but I'm

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 jhaw...@gmail.com wrote: I am currently in a masters level Compiler class. We have a final project for the class and I was wondering if there

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 richhic...@gmail.com wrote: On Feb 18, 3:51 pm, Jeffrey Straszheim

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 richhic...@gmail.com wrote: On Feb 18, 4:32 pm, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: Easy enough to do. The only drawback is I'd probably want to force

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 konrad.hin...@laposte.netwrote: 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

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

Re: terminology question re: binding

2009-02-17 Thread Jeffrey Straszheim
I'm still not *entirely* clear about the mappings from symbols and namespaces to Vars. I think I sort of understand how it works in practical terms, but this is a confusing area and getting the terminology nailed down would be a big help. On Tue, Feb 17, 2009 at 10:10 AM, Chouser

Re: what is the new version of clj about?

2009-02-17 Thread Jeffrey Straszheim
http://clojure.org/lazy On Tue, Feb 17, 2009 at 8:54 PM, wubbie sunj...@gmail.com wrote: Hi, I read a few messages on the new version. Could someone summarize the changes and the motivation behind? Thanks, sun --~--~-~--~~~---~--~~ You received this

Re: what is the new version of clj about?

2009-02-17 Thread Jeffrey Straszheim
Not shameless ... you took the time to write it. It is on-topic. It should be shared. :) On Tue, Feb 17, 2009 at 9:04 PM, Chouser chou...@gmail.com wrote: On Tue, Feb 17, 2009 at 8:56 PM, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: http://clojure.org/lazy Also: http

Re: Fully lazy sequences are coming - feedback wanted!

2009-02-16 Thread Jeffrey Straszheim
I'd vote for the breaking changes. We don't have so much code written that it cannot be fixed. However, this depends on the book in production. Having _Programming Clojure_ come out with incompatible code would be a big blow, I think. On Mon, Feb 16, 2009 at 9:22 AM, Mibu mibu.cloj...@gmail.com

Re: Fully lazy sequences are coming - feedback wanted!

2009-02-16 Thread Jeffrey Straszheim
You're right, of course, but in life compromises must happen. If Rich proceeds *with no regard* for Pragmatic's needs, they have a recourse which is simply no Clojure book. Or a Clojure book that has broken examples. On Mon, Feb 16, 2009 at 11:34 AM, wlr geeked...@gmail.com wrote: Regarding

Re: New lazy branch of clojure-contrib

2009-02-16 Thread Jeffrey Straszheim
Isn't that second url just the normal one for contrib trunk? On Mon, Feb 16, 2009 at 12:23 PM, Stuart Sierra the.stuart.sie...@gmail.com wrote: I created a lazy branch of clojure-contrib to track patches to contrib that are needed in the lazy branch of Clojure. For clojure-contrib hackers:

Re: New lazy branch of clojure-contrib

2009-02-16 Thread Jeffrey Straszheim
Good. I was worried I'd be forced over to the Lazy branch before I was ready. :) On Mon, Feb 16, 2009 at 4:05 PM, Stephen C. Gilardi squee...@mac.comwrote: On Feb 16, 2009, at 3:52 PM, Jeffrey Straszheim wrote: Isn't that second url just the normal one for contrib trunk? Yes, you should

Re: Clojure on CLR/DLR

2009-02-16 Thread Jeffrey Straszheim
Awesome! On Mon, Feb 16, 2009 at 5:43 PM, dmiller dmiller2...@gmail.com wrote: [I thought I'd slip this in while Rich has everyone distracted lazy sequences.] What do you do when you love Lisp, are intrigued by Clojure, but have absolutely no projects at hand to test it out? Oh, and you

  1   2   >