Re: Can Clojure be as readable as Python or Ruby ?

2012-03-12 Thread Andrzej
orms. I don't think that would have to be any more difficult than it is now, though. A new language would likely come with its own macro framework. Andrzej -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: Can Clojure be as readable as Python or Ruby ?

2012-03-10 Thread Andrzej
27;m using LISP long enough to be comfortable with its syntax). Is it worth implementing in an *existing* language? Nah..., maybe in some DSLs. Andrzej -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Clojure on PyPy

2011-11-21 Thread Andrzej
r (1) producing a stream of s-expressions, which goes to evaluator... (1) here should come the macro expander but I haven't finished it yet. The code is on github: https://github.com/andrzej-r/PScheme Cheers, Andrzej -- You received this message because you are subscribed to the Google G

Re: ANN: A simple scheme interpreter in clojure

2011-01-27 Thread Andrzej
On Tue, Jan 25, 2011 at 12:52 AM, Andrzej wrote: > On Mon, Jan 24, 2011 at 5:50 PM, dennis wrote: >> Hi, >> Yes,i have seen the rscheme. >> >> cscheme is just an exercise,it is not practical at all. > > So was rscheme. :-) In many respects your implementa

Re: ANN: A simple scheme interpreter in clojure

2011-01-24 Thread Andrzej
On Mon, Jan 24, 2011 at 5:50 PM, dennis wrote: > Hi, > Yes,i have seen the rscheme. > > cscheme is just an exercise,it is not practical at all. So was rscheme. :-) In many respects your implementation is more complete than mine. Cheers, Andrzej -- You received this message bec

Re: ANN: A simple scheme interpreter in clojure

2011-01-23 Thread Andrzej
like. Cheers, Andrzej On Mon, Jan 24, 2011 at 11:45 AM, dennis wrote: > I have implemented a simple interpreter in clojure,it is just > transformed from the interpreter in SICP.Maybe someone interested in > it. > > I have pushed it on github at > https://github.com/killme2008/c

Re: Enhanced primitive support - redux

2010-06-26 Thread Andrzej
at all when you happen to use other numbers. What I'd rather like to have is an array of N preallocated objects waiting to be assigned values and used. This way an allocation cycle could be triggered every N Integer constructor calls and all boxes used in a single procedure would be gathered

Re: Enhanced primitive support - redux

2010-06-25 Thread Andrzej
ers in a cache, - using both boxed and primitive math but keeping the boundary between them as explicit as possible (different operators, no automatic conversion etc.). Existing operators should default to boxed math (for runtime safety and compatibility). Andrzej -- You received this message bec

Re: Non-tail recursion (Clojure way to hierarchies)

2010-06-13 Thread Andrzej
ng else fails use a trampoline http://groups.google.com/group/clojure/browse_frm/thread/6257cbc4454bcb85/7d5fd827cd549080#7d5fd827cd549080 Cheers, Andrzej -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegr

Re: A simple csv parsing library

2010-06-09 Thread Andrzej
ls under OLAP but I've never really bothered learning about it. Thanks for your work, -Andrzej -- 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

Re: Complex type in clojure

2010-06-08 Thread Andrzej
d be plugged into numeric tower: - vectors/matrices - symbolic expressions Maybe instead of hardwiring all these types, we should provide a mechanism for overloading math operators? I guess multimethods would be too slow and I have no experience with defrecord/... to predict robustness of this solu

Re: Anyone experienced in using clojure as a "database"

2010-05-29 Thread Andrzej
rds). What do you think about it? Andrzej -- 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.

Re: Anyone experienced in using clojure as a "database"

2010-05-27 Thread Andrzej
on in Perl). Can you tell me more about these hooks to Clojure STM and Cells? Thanks, Andrzej -- 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

Re: Anyone experienced in using clojure as a "database"

2010-05-26 Thread Andrzej
ield and use it in other operations. Another thing is tying such a database to some on-disk storage. Is there any database backend that doesn't internally mutate data? Even if not, such a data type could still be useful as a read-only view for other databases. Andrzej On Wed, May 26, 2010 at

Re: concurrency and rand-int

2010-03-25 Thread Andrzej
57456467474 Cheers, Andrzej On Fri, Mar 26, 2010 at 11:35 AM, Lee Spector wrote: > > I'm trying to track down the reason that I sometimes see a lot of concurrency > in my system (up to 1200% CPU utilization on a dual quadcore mac that also > has some kind of hyperthreading, allegedl

Re: Sequential vs. "divide and conquer" algorithm

2010-03-22 Thread Andrzej
ompare against the patch I submitted today? Are they functionally equivalent as far as the vector decomposition part is concerned? -Andrzej -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googleg

Re: java vector canvas

2010-03-22 Thread Andrzej
and can independently respond to mouse clicks. http://www.piccolo2d.org/ -Andrzej -- 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 - pl

[patch] Re: Sequential vs. "divide and conquer" algorithm

2010-03-22 Thread Andrzej
ch is not that surprising, taking into account the size of chunks and tasks: user=> (dotimes [_ 5] (time (sum_tree5 l3))) "Elapsed time: 962.212255 msecs" "Elapsed time: 956.484688 msecs" "Elapsed time: 967.799812 msecs" "Elapsed time: 947.298315 msecs" &qu

Re: General question: Petri nets and STM in clojure

2010-03-21 Thread Andrzej
n be applied for modeling systems based on STM (in Clojure's flavor). I've only seen them used in common lock-based designs (not that it means anything - I barely touched the surface). Andrzej -- You received this message because you are subscribed to the Google Groups "Clojure&qu

Re: Sequential vs. "divide and conquer" algorithm

2010-03-21 Thread Andrzej
ly large sequential chunks or heavy enough computations but I'm still aiming at optimizing a general case). Andrzej -- 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 fro

Re: Sequential vs. "divide and conquer" algorithm

2010-03-21 Thread Andrzej
de - a root). So I'm not sure whether this would give any net performance gain, perhaps not. Andrzej -- 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 mem

Re: Sequential vs. "divide and conquer" algorithm

2010-03-20 Thread Andrzej
it) but ultimately it might be better to let the user or a system administrator decide about it. > Oh, one more thing. The presentation by Guy Steele at ICFP 2009, > "Organizing Functional Code for Parallel Execution; or, foldl and > foldr Considered Slightly Harmful", is inter

Re: Sequential vs. "divide and conquer" algorithm

2010-03-19 Thread Andrzej
FT to an FFT?  In > this case, is there any theoretical reason the algorithm does less > work?  Are you making a time/memory trade off? No, although balancing the operations could potentially help with some second order effects (e.g. numerical errors). Thanks, Andrzej -- You received this messag

Sequential vs. "divide and conquer" algorithm

2010-03-19 Thread Andrzej
ral overhead. As for (1), how to split the collection so that no data copying is required and resulting subvectors are more or less balanced? Or, how to query the underlying data structure whether, or where, such a "convenient" position exists? Andrzej -- You received this message becau

Re: newbie question: Please help me stop creating constructors

2010-03-01 Thread Andrzej
il. This would require us to do the calculations symbolically. Can Clojure help here somehow? What would be a minimal CAS framework in Clojure? -Andrzej -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email t

Re: Clojure and c++ and a bit more

2009-12-23 Thread Andrzej
he GC). Clojure exercises GC quite a lot but it does that in a somewhat predictable manner (uses a lot of linked data structures). In contrast, standard GC's are tuned for managing a smaller number of irregular and relatively independent objects. Maybe writing a custom GC is not that bad idea