On Sun, Jan 23, 2011 at 2:07 AM, Sean Corfield wrote:
> On Tue, Jan 18, 2011 at 12:45 PM, Chas Emerick wrote:
>> The links to the users' and developers' google groups for ccw are
>> prominently linked on the right side of the ccw site:
>>
>> http://code.google.com/p/counterclockwise/
>
> And tha
wrote:>> Please don't. It has already been
discussed and declined. The metadata is uglier because we want doing
this to be slightly ugly..
Sorry, didn't get your response in time..
Anyways, I agree with Ken it seems weird to have defn- in core and not
def- - or is defn- sort of deprecated in favo
I got to thinking how one might implement a persistent, immutable
deque that was efficient.
At first I considered modifying my queue implementation. Peeking at
both ends could easily be done in constant time, and popping from the
left. Popping from the right presented a problem: when it ate the
wh
Did you have a look at:
http://www.cs.cmu.edu/~rwh/theses/okasaki.pdf
After p. 50 there is a description of dequeues. I don't know how they
compare to yours.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojur
On Sun, Jan 23, 2011 at 5:48 AM, nicolas.o...@gmail.com
wrote:
> Did you have a look at:
>
> http://www.cs.cmu.edu/~rwh/theses/okasaki.pdf
>
> After p. 50 there is a description of dequeues. I don't know how they
> compare to yours.
That's weird. If I click that link in Chromium I get a blank pag
What is this "Chrome" of which you speak? Are you trying to say that
you don't use clojure for everything?
(clojure.java.io/copy (.openStream (java.net.URL.
"http://www.cs.cmu.edu/~rwh/theses/okasaki.pdf"; )) (file-str
"~/okasaki.pdf"))
--Robert McIntyre
On Sun, Jan 23, 2011 at 5:59 AM, Ken Wess
On Sun, Jan 23, 2011 at 6:15 AM, Robert McIntyre wrote:
> What is this "Chrome" of which you speak? Are you trying to say that
> you don't use clojure for everything?
Certainly not up to and including implementing my own whole web
browser from scratch.
At least, not yet. ;)
--
You received thi
I'm relying entirely on memory at the moment, but there are two answers to this
question.
First, Sonatype's validation of -sources.jar and -javadoc.jar aren't as
stringent as you might expect. That is, the OSS/central repos' validation
routines appear to check for the existence of those artifa
Is it possible to create a map key from an integer or string to be
used for retrieving data dynamically from a map?
Bill
--
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
On Sun, Jan 23, 2011 at 11:59 AM, WoodHacker wrote:
> Is it possible to create a map key from an integer or string to be
> used for retrieving data dynamically from a map?
Yep.
user=> (keyword "foo")
:foo
user=> (keyword (str 42))
:42
user=>
--
You received this message because you are subscri
2011/1/23 WoodHacker
> Is it possible to create a map key from an integer or string to be
> used for retrieving data dynamically from a map?
>
Yes,
but with numbers and Clojure 1.2, be careful to always use the same kind of
"wrapper" (java.lang.Integer or java.lang.Long) or you'll be in trouble
On Jan 22, 8:16 pm, David Nolen wrote:
> On Sat, Jan 22, 2011 at 2:09 PM, rb wrote:
> > On Jan 21, 11:41 pm, Alex Baranosky
> > wrote:
> > > Hi,
>
> > > I've read a bit about clojure.core.unify (
> >http://blog.fogus.me/2010/12/14/unification-versus-pattern-matching-t...
> > > )
>
> > > I have
I've been using records extensively lately and I think they are a
really great addition to Clojure. One problem I'm facing tough is to
read them back once printed to a file (or anything else). All others
Clojure data structures are supported by the reader, but not records.
One way to do this would
I have added you to committers group, so you can commit your work.
Later I will switch to github since SVN with its "central repository"
scenario is not very useful in situation where I'm lack of time.
On 23 Sty, 00:28, Laurent PETIT wrote:
> Hello again Olek,
>
> 2011/1/18 Olek
>
> > Hi,
>
> >
Pros:
1. Yes, it uses Swing. I have even stared writting it in Clojure, but
startup time was too long, not acceptable for lightweight text editor.
2. Yes, it is. I've carefully studied Mac's TextEdit, NetBeans and
Eclipse and merged theirs ideas.
Cons:
1. Yeah, I haven't implemented highligting ye
2011/1/23 Olek
> I have added you to committers group, so you can commit your work.
> Later I will switch to github since SVN with its "central repository"
> scenario is not very useful in situation where I'm lack of time.
>
OK, thanks.
What I've achieved is more a "proof of concept" right now.
Yes, make a branch.
I seen many people are using "leiningened", so it is a good (main
stream) choice, especially that your parts of code are written in
Clojure.
The layout of menus is made in pl/olek/textmash/menu/
WorkspaceMenu.java.
I have also started TextMash2 which is going to be entirely wr
On Sun, Jan 23, 2011 at 12:46 AM, Ken Wesson wrote:
>>> http://code.google.com/p/counterclockwise/
>> And that URL is the #1 Google result for: clojure eclipse
> And looks to CCW newbies like it's likely to just lead to a code
> repository, tracker, and CCW-developer-centric mailing lists.
I'll c
Thank you for sharing this Rob! I've recently gone thru a similar
process with a company and we ended up introducing both Scala and
Clojure, for different purposes, although we didn't have a large team
to convince (so I didn't need to do as much work to get the changes
accepted :)
I love the compa
Suppose I have a sequence of tasks I'd like to parallelize using pmap. The
amount of CPU time these tasks require varies greatly; in particular, many of
them will require virtually no work. Can I rely on pmap to divide the work
efficiently even if there is some pattern to the distribution of eas
No, you cannot rely on pmap to do that.
pmap is lazy in the sequence it produces, so it tries not to work
farther ahead of the consumer of its "output sequence" than the amount
of parallelism it uses, which is the number of available processors
plus 2.
Suppose you have 4 available process
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/cscheme
,you can clone and run it by yourself.
--
You received this message because you are subscribe
I just pushed the latest version of Logos. The project is now, I believe,
sufficiently original. For the amount of time that I've spent on it, I'm
surprised that it can solve the classic Zebra problem in nearly the same
amount of time as SWI-Prolog - 7ms on my machine. I attribute this to a few
thi
On Sun, Jan 23, 2011 at 10:01 PM, David Nolen wrote:
> I just pushed the latest version of Logos. The project is now, I believe,
> sufficiently original. For the amount of time that I've spent on it, I'm
> surprised that it can solve the classic Zebra problem in nearly the same
> amount of time as
On Jan 23, 2011, at 8:34 PM, Andy Fingerhut wrote:
> No, you cannot rely on pmap to do that.
Thanks for the detailed and informative answer. I'll probably settle for
shuffling the list of inputs before passing them to pmap, and just accept that
there may be some inefficiency in the distributio
On Sun, Jan 23, 2011 at 8:56 PM, Michael Gardner wrote:
> Suppose I have a sequence of tasks I'd like to parallelize using pmap. The
> amount of CPU time these tasks require varies greatly; in particular, many of
> them will require virtually no work. Can I rely on pmap to divide the work
> eff
On Sun, Jan 23, 2011 at 10:31 PM, Ken Wesson wrote:
> On Sun, Jan 23, 2011 at 8:56 PM, Michael Gardner wrote:
>> Suppose I have a sequence of tasks I'd like to parallelize using pmap. The
>> amount of CPU time these tasks require varies greatly; in particular, many
>> of them will require virtu
On Sun, Jan 23, 2011 at 7:21 PM, Sean Corfield wrote:
> On Sun, Jan 23, 2011 at 12:46 AM, Ken Wesson wrote:
>>> (and this discussion has occurred before about the discoverability of
>>> IDE documentation with much the same content and result)
>> It has indeed.
>
> Which tempts me to ask why you d
Other posts to the thread indicate that longer-range patterns in the
inputs could cause problems. If you know you'll be consuming the full
sequence, try this:
(defn eager-pmap [f & colls]
(map deref (doall (apply map #(future (f %)) colls
This creates all of the futures right away (due to t
On Sun, Jan 23, 2011 at 11:34 PM, Ken Wesson wrote:
> Other posts to the thread indicate that longer-range patterns in the
> inputs could cause problems. If you know you'll be consuming the full
> sequence, try this:
>
> (defn eager-pmap [f & colls]
> (map deref (doall (apply map #(future (f %))
Line 86 of core.clj is:
(list 'cadr caddr)
and should be:
(list 'caddr caddr)
On Jan 23, 9:45 pm, 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 g
Hello.
Sorry to cut in, but I agree with Ken, too.
If defn- should be in core and def- shouldn't, it seems asymmetric.
Showing why there is asymmetric design may leads to positive
discussion, I think.
Thank you.
--
Name: OGINO Masanori (荻野 雅紀)
E-mail: masanori.og...@gmail.com
--
You received
Hi,
You may want to see if there is anything of interest for you there:
http://clojure.wikidot.com/scheme-interpreter-in-clojure
It has its own reader that attempts to be more compatible with Scheme
than the reader used in Clojure. It constructs a fairly elaborate
syntactic tree (perhaps it would
33 matches
Mail list logo