2010/7/9 B Smith-Mannschott
> On Thu, Jul 8, 2010 at 17:13, Laurent PETIT
> wrote:
> >
> > 2010/7/8 Lee Spector
> >>
> >> On Jul 8, 2010, at 10:31 AM, Laurent PETIT wrote:
> >> > What you first describe is odd. Is this a Mac particularity ?
> >> > On Windows/Linux, Hitting Ctrl+Space_bar result
Hi all,
I'm running Clojure 1.1
(def an-array (int-array 25000 (int 0)))
(time (amap an-array idx ret (+ (int 1) (aget an-array idx
"Elapsed time: 50.83188 msecs"
(def a-vec (vec (int-array 25000 (int 0
(time (dorun (map #(+ % (int 1)) a-vec)))
"Elapsed time: 17.392434 msecs"
So arrays
On Jul 9, 2010, at 12:55 AM, B Smith-Mannschott wrote:
command-space on the mac is used by the system to open the spotlight
search field from the menu bar. It would be best not to bind it in
Eclipse as this will mean the user must either rebind the spotlight
shortcut, or your eclipse shortcut
On Thu, Jul 8, 2010 at 17:13, Laurent PETIT wrote:
>
> 2010/7/8 Lee Spector
>>
>> On Jul 8, 2010, at 10:31 AM, Laurent PETIT wrote:
>> > What you first describe is odd. Is this a Mac particularity ?
>> > On Windows/Linux, Hitting Ctrl+Space_bar results in showing a popup with
>> > all the possibl
"Armando Blancas" wrote:
>> So they wouldn't object if I wanted to use my wordpress or sourceforge
>> domains?
>
>If I understand this correctly, they wouldn't:
>
>http://maven.apache.org/guides/mini/guide-central-repository-upload.html
By my reading, they would. A wordpress domain is simply ou
With 1.2:
(set! *warn-on-reflection* true)
(time (amap an-array idx ret (+ (int 1) (aget an-array idx
Reflection warning, NO_SOURCE_PATH:52 - call to aclone can't be resolved.
Reflection warning, NO_SOURCE_PATH:52 - call to alength can't be resolved.
Reflection warning, NO_SOURCE_PATH:52 - cal
On Jul 8, 2010, at 7:49 PM, Laurent PETIT wrote:
>
>> 2010/7/9 Lee Spector
>>
>> How is the Clojure version set in Eclipse/Counterclockwise projects? I'm
>> still wanting to work in 1.1.0, and while my older projects are using 1.1.0
>> my newer ones -- I guess maybe this changed after upgradi
Laurent PETIT writes:
> When you say "that it's hard ... '[' and ']' ...", you're talking
> about the original paredit.el in emacs?
Actually, I was talking both about the current Emacs Lisp editing
library (where `move-past-close-and-reindent' is defined) and the most
recent paredit.el library a
> So they wouldn't object if I wanted to use my wordpress or sourceforge
> domains?
If I understand this correctly, they wouldn't:
http://maven.apache.org/guides/mini/guide-central-repository-upload.html
--
You received this message because you are subscribed to the Google
Groups "Clojure" gro
"Armando Blancas" wrote:
>> Personally, I trust the inventors of the convention more than people
>> running a single project. But that begs two questions: how do they
>> define "ownership" of a domain,
>
>Sounds like common usage; e.g. as the owner of mired.org you get to
>use it as groupId.
So
> Personally, I trust the inventors of the convention more than people
> running a single project. But that begs two questions: how do they
> define "ownership" of a domain,
Sounds like common usage; e.g. as the owner of mired.org you get to
use it as groupId.
and (the question that launched the
2010/7/9 Lee Spector
>
> How is the Clojure version set in Eclipse/Counterclockwise projects? I'm
> still wanting to work in 1.1.0, and while my older projects are using 1.1.0
> my newer ones -- I guess maybe this changed after upgrading to
> Counterclockwise 0.0.59.RC2 -- are running with 1.2.0-
Consider using FnParse (http://github.com/joshua-choi/fnparse/tree/
develop). It's a pure Clojure parser combiner that is flexible in what
tokens it accepts. You can use it to parse the symbol/list/etc.
structures given to your macros into other forms.
FnParse 3, the latest version, is currently a
How is the Clojure version set in Eclipse/Counterclockwise projects? I'm still
wanting to work in 1.1.0, and while my older projects are using 1.1.0 my newer
ones -- I guess maybe this changed after upgrading to Counterclockwise
0.0.59.RC2 -- are running with 1.2.0-master-SNAPSHOT. I don't see
Hi Dave,
Yes, merge-reduce is the name I like too.
Stu
> Hi Michal,
> I needed to change your containsKey implementation to always return
> true in order to support the merge-with use case.
>
> Hi Stu,
> merge-with* seems like a useful addition, though its semantics differ
> slightly from merge
Whoops. s/Raoul/Peter Schuller/.
On Jul 8, 2010, at 7:03 PM, Greg wrote:
> I hope it didn't sound like I was saying threads are *always* bad, as I
> definitely don't think that. :-p
>
> Your link to the epoll + threads document is probably the best way to go
> (that I'm aware of), to address
I hope it didn't sound like I was saying threads are *always* bad, as I
definitely don't think that. :-p
Your link to the epoll + threads document is probably the best way to go (that
I'm aware of), to address any of the issues that Raoul brought up w.r.t. long
operations in between the events
Interesting link!
Unfortunately the link to the PDF was broken, here's one that works:
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.101.7987&rep=rep1&type=pdf
On Jul 8, 2010, at 6:48 PM, Raoul Duke wrote:
> can't we all just get along?
>
> http://lambda-the-ultimate.org/node/1435
>
On Thu, Jul 8, 2010 at 2:36 PM, Greg wrote:
> A fundamental understanding of the difference between threads and
> kqueue/epoll (which power NIO) should clear up anyone's misgivings about
> evented servers. They are clearly more scalable, it is no contest.
oh Erlang, were art thou?
--
You rece
Great response Antoni.
A fundamental understanding of the difference between threads and kqueue/epoll
(which power NIO) should clear up anyone's misgivings about evented servers.
They are clearly more scalable, it is no contest.
- Greg
On Jul 8, 2010, at 5:26 PM, Antoni Batchelli wrote:
> On
On Thu, Jul 8, 2010 at 1:34 PM, Nicolas Oury wrote:
> Sorry, that's why I had quote around my parse.
> I meant, use clojure reader to take a sequence in a macro and then "parse"
> it for my own DSL.
> So I shouldn't need any help from the reader (even if having some metas with
> line and character
Hello all,
New version ClojureTab-1.2 published on:
http://protegewiki.stanford.edu/wiki/ClojureTab
Change log:
1. Added slot plug-in "ClojureActionButton" that can be used to create
GUI Clojure applications using Protege forms.
2. Added API for using Clojure without configuring ClojureTab on a
can't we all just get along?
http://lambda-the-ultimate.org/node/1435
--
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 wit
> Under heavy load, this can be quite costly, especially if each request
> requires non-trivial processing (ie, enough to make time-slicing kick
> in).
This doesn't really jive with reality as far as I can tell; if
anything it is the exact opposite of reality. If you're doing
significant work in b
On Jul 7, 2010, at 8:47 PM, gary b wrote:
> This blog post presents data showing that threading is faster than
> NIO:
> http://mailinator.blogspot.com/2008/02/kill-myth-please-nio-is-not-faster-than.html
>
I would not consider this article to be the definitive answer to the
question of NIO vs th
Hi Michal,
I needed to change your containsKey implementation to always return
true in order to support the merge-with use case.
Hi Stu,
merge-with* seems like a useful addition, though its semantics differ
slightly from merge-with's. The original merge-with modifies the vals
only if there are du
On Jul 8, 2010, at 2:34 PM, Nicolas Oury wrote:
> Sorry, that's why I had quote around my parse.
>
> I meant, use clojure reader to take a sequence in a macro and then "parse" it
> for my own DSL.
> So I shouldn't need any help from the reader (even if having some metas with
> line and characte
On Thu, 8 Jul 2010 21:29:56 +0200
Meikel Brandmeyer wrote:
> Hi,
>
> Am 08.07.2010 um 18:52 schrieb Mike Meyer:
>
> > People seem to be confused by the Java namespace convention deriving
> > names from DNS. They think that the names actually have something to
> > do with the domains in question
Clojurescript is the only thing I know of like scheme2js. There are a
couple parenscript like programs, the best being
http://github.com/arohner/scriptjure
Scott
On Thu, Jul 8, 2010 at 1:17 PM, Tim Robinson wrote:
> All I got from google was Clojurescript, but I'm wondering what
> options are
Ah yes, I misread, thanks for clarifying.
One advantage to the semi-freeform approach of the Wiki is that the
writer can take liberties with the arrangement of prose and examples
-- like in a book. Right now most of the examples are "Description:
[code] [result]" but not all. An example could cons
My opinion: no need to create problems when there already are accepted
solutions.
In the java world, there are conventions for naming things. Stick with them.
-> You want to fly under the radar in your enterprise with jars full of
clojure sources ? Don't get catched because your lib risks a clash
Sorry, that's why I had quote around my parse.
I meant, use clojure reader to take a sequence in a macro and then "parse"
it for my own DSL.
So I shouldn't need any help from the reader (even if having some metas with
line and character attached to thing would help)
I do not want to go the parser
Hi,
Am 08.07.2010 um 18:52 schrieb Mike Meyer:
> People seem to be confused by the Java namespace convention deriving
> names from DNS. They think that the names actually have something to
> do with the domains in question. This isn't the case. Quoting the
> Java Language Specification "The sugg
All I got from google was Clojurescript, but I'm wondering what
options are out there.
I was looking for something like scheme2js[1] only in Clojure.
Thanks,
Tim
[1] http://www-sop.inria.fr/mimosa/scheme2js/
--
You received this message because you are subscribed to the Google
Groups "Clojur
thank you!
On Thu, Jul 8, 2010 at 3:09 PM, David Nolen wrote:
> On Thu, Jul 8, 2010 at 3:02 PM, Wilson MacGyver wrote:
>>
>> for the hello world test, you are using the helloworld from
>> front page of node.js at http://nodejs.org/
>> right?
>>
>> how did you setup the clojure one?
>>
>> was it
Hi Michał,
The underlying problem (using merge-with plus an accumulating fn) has come up
before on the list. One proposal was a variant of merge-with that always
applies the merge function [1].
I think the underlying issue needs to be solved at merge-with, not at the map
data structure. In oth
On Jul 8, 2010, at 1:52 PM, Nicolas Oury wrote:
> I am trying to write a small Domain Specific Language using macro, and I want
> the syntax of the args of the macro to be somehow "parsed" and transformed.
>
> So, I have two questions:
>
> - Does anybody else does that? (except the infix calcul
On Thu, Jul 8, 2010 at 12:55 PM, Miki wrote:
> Hello David,
>
> > while aleph (via Netty) is easily getting 600-700 rq/s
> > even if I'm writing to a database (CouchDB).
> Can you share the code for this?
>
> All the best,
> --
> Miki
>
I don't have a standalone example at the moment. I might tr
I think that the examples should be part of the function definition.
I wouldn't think it wouldn't noticeably slow down running code (as it
would be ignored at run time). Having the examples in the definition
would be the easiest way of having access at all times (say
programming on a laptop withou
On Thu, Jul 8, 2010 at 3:02 PM, Wilson MacGyver wrote:
> for the hello world test, you are using the helloworld from
> front page of node.js at http://nodejs.org/
> right?
>
> how did you setup the clojure one?
>
> was it what you posted before?
>
I wrote a blog post about it here with the code
There are more rasons to want to avoid using threads than memory.
Besides the obvious cost of creating and destroying threads (which is
reduced or removed by using thread pools), you also have the cost of
time slicing once you have more software threads than hardware
threads: there is the obvious c
for the hello world test, you are using the helloworld from
front page of node.js at http://nodejs.org/
right?
how did you setup the clojure one?
was it what you posted before?
(defn hello-world [request]
(future
(Thread/sleep 1)
(respond! request
{:status 200
On Jul 7, 2:05 pm, John Cromartie wrote:
> I've whipped up a proof-of-concept of how to implement built-in
> examples for functions and macros.
I've been poking at something similar:
http://github.com/markmfredrickson/postdoc
In my version, examples can be either strings or quoted code. If you
Dear all,
I am trying to write a small Domain Specific Language using macro, and I
want the syntax of the args of the macro to be somehow "parsed" and
transformed.
So, I have two questions:
- Does anybody else does that? (except the infix calculus) Is there a
generic method for doing it? Or even
I think Chas Emerick is suggesting something like the following:
http://gist.github.com/468401
It is hard to implement on the server-side, as you store the raw
markdown-text in the datastore. However, in this form, it's not really
useful for ide developers, as they have to parse the html their se
It seems to be a problem with 1.2.
I have 28ms in 1.1 and 4000ms in 1.2.
On Thu, Jul 8, 2010 at 5:12 PM, Rubén Béjar wrote:
> Hi all,
>
> I have found again some time for Clojure, so I am back trying
> to solve my problems with the perfomance of my toy cellular
> automata. I have been trying t
On Wednesday, July 7, 2010, Mike Meyer
wrote:
> Given that Sun is using javax, something like
> "clojure.(author).(project)" would seem to be appropriate. That should
> be safe from the DNS namespace (unless it means something when
> transliterated into a foreign language) nor is a project in a la
Hi Group,
I've just written an implementation of a persistent map which provides
a default value -- fixed at creation time the way it's currently
implemented -- and claims that it .containsKey every key thrown at it.
The code is here:
http://gist.github.com/468332
As mentioned in a comment, the
Oh: it probably would have helped if I had said the API returns JSON,
not straight text/HTML.
Justin
On Jul 8, 1:44 pm, Justin Kramer wrote:
> They are separated: in the HTML version ("html-content" JSON
> property), code is wrapped in , results in class="output">, and verbiage in . For the Mar
They are separated: in the HTML version ("html-content" JSON
property), code is wrapped in , results in , and verbiage in . For the Markdown version ("raw-
content"), there are plain-text delineations.
I will change the mime-type, though...
Justin
On Jul 8, 1:31 pm, Chas Emerick wrote:
> That's
That's nifty. Suggestion though: if you really want to have tools
pull those examples so that they could be used systematically, the
json should really be structured to clearly separate code, expected
results, and verbiage -- linebreaks aren't enough, as I could imagine
many functions havi
Scratch my earlier response! You are right, and this is a known bug. It is
fixed in 1.2.
Stu
> Macintosh:clojurefun wojtek$ ./runfile.sh
> Clojure 1.1.0
> user=> (use 'clojure.contrib.json.write)
> nil
> user=> (json-str (for [a [1 2 3]] (do (print "a") "b")))
> "[aaa\"b\",\"b\",\"b\"]"
>
>
>
One use case I was thinking of for the Wiki is that IDEs could make
API requests for individual functions on-the-fly, or do a mass export
periodically. A basic version of the former exists now:
http://clojure-examples.appspot.com/clojure.core/conj?format=json
The result could be displayed plain t
json-str isn't capturing the printed 'a's. The 'a's just got printed
after the '[' got, and before the rest of the string got printed.
On Thu, Jul 8, 2010 at 5:35 PM, vibrant wrote:
> Macintosh:clojurefun wojtek$ ./runfile.sh
> Clojure 1.1.0
> user=> (use 'clojure.contrib.json.write)
> nil
> user
You can use the doc function to find out what json-str does:
(doc json-str)
-
clojure.contrib.json.write/json-str
([x])
Converts x to a JSON-formatted string.
nil
json-str is a function of its arguments, and it does not do anthing
side-effecty like capturing stdout.
Pu
Hello David,
> while aleph (via Netty) is easily getting 600-700 rq/s
> even if I'm writing to a database (CouchDB).
Can you share the code for this?
All the best,
--
Miki
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send e
On Thu, 8 Jul 2010 09:22:01 -0700
Phil Hagelberg wrote:
> On Thu, Jul 8, 2010 at 7:15 AM, Meikel Brandmeyer wrote:
> >> So maybe it's best to use the Java convention after all?
> >> It has been proven to scale, is widely used and plays well with
> >> whatever else is running on the JVM, which ar
I'll do the simple thing when I can, so in those cases I use foo.
On Jul 7, 9:13 am, James Reeves wrote:
> I've kinda asked this question before, but I framed in the context of
> a suggestion, and the discussion got bogged down with no real answer.
>
> So this time, let me keep it simple: if I ha
On Thu, Jul 8, 2010 at 7:15 AM, Meikel Brandmeyer wrote:
>> So maybe it's best to use the Java convention after all?
>> It has been proven to scale, is widely used and plays well with
>> whatever else is running on the JVM, which are strong points in its
>> favor.
>
> I still don't buy it. The com
Macintosh:clojurefun wojtek$ ./runfile.sh
Clojure 1.1.0
user=> (use 'clojure.contrib.json.write)
nil
user=> (json-str (for [a [1 2 3]] (do (print "a") "b")))
"[aaa\"b\",\"b\",\"b\"]"
I think json-str shouldn't capture the printed a's, should it?
--
You received this message because you are subs
On Thu, Jul 8, 2010 at 2:25 AM, j-g-faustus wrote:
> On Jul 8, 5:21 am, Mike Meyer 620...@mired.org> wrote:
>
> So maybe it's best to use the Java convention after all?
> It has been proven to scale, is widely used and plays well with
> whatever else is running on the JVM, which are strong points
Hi all,
I have found again some time for Clojure, so I am back trying
to solve my problems with the perfomance of my toy cellular
automata. I have been trying to use Java arrays and type hints,
with a small success, but I have found that
amap for arrays seems terribly slower than map for vectors,
On Jul 8, 2010, at 10:15 AM, Meikel Brandmeyer wrote:
What happens with the prefix-with-your-domain prefix can be seen on
clojars at the moment. People upload stuff under names they don't own.
There are several vimclojure packages. Not a single of these are
projects on their own right. Just var
I think there's a lot of value to having good documentation and
examples available directly in your development environment. I'm not
sure what a reasonable alternative would be for that context other
than having the examples and docs included (or at least, adjacent, as
set-examples! allows
On Thu, 8 Jul 2010 07:15:45 -0700 (PDT)
Meikel Brandmeyer wrote:
> Hi,
>
> On Jul 8, 7:25 am, j-g-faustus wrote:
>
> > So maybe it's best to use the Java convention after all?
> > It has been proven to scale, is widely used and plays well with
> > whatever else is running on the JVM, which are
Rich has said that there isn't a speed advantage to making sorted
versions of transients, so that's why they don't exist. Your example
wasn't instantly converted because sorting is a key property of tree
maps, and blindly converting might lose real information. I'd
recommending building a transie
2010/7/8 Lee Spector
>
> On Jul 8, 2010, at 10:31 AM, Laurent PETIT wrote:
> > What you first describe is odd. Is this a Mac particularity ?
> > On Windows/Linux, Hitting Ctrl+Space_bar results in showing a popup with
> all the possible completions.
> > If there is only one completion that ccw is
On Jul 8, 2010, at 10:31 AM, Laurent PETIT wrote:
> What you first describe is odd. Is this a Mac particularity ?
> On Windows/Linux, Hitting Ctrl+Space_bar results in showing a popup with all
> the possible completions.
> If there is only one completion that ccw is aware of, then no popup is
>
Hi,
On Jul 8, 4:53 pm, Brian Hurt wrote:
> A better API for this particular use suggested itself to me: simply allow
> the state to be nil, and require the functions that are sent initialize the
> state if necessary. Code like:
>
> (defn my_f [ state ]
> (let [ state (or state (init-functio
A better API for this particular use suggested itself to me: simply allow
the state to be nil, and require the functions that are sent initialize the
state if necessary. Code like:
(defn my_f [ state ]
(let [ state (or state (init-function)) ]
...
In this case, it doesn't matter whic
2010/7/8 Brian Hurt
>
>
> On Wed, Jul 7, 2010 at 5:46 PM, Ryan Waters wrote:
>
>> On Wed, Jul 7, 2010 at 4:32 PM, Meikel Brandmeyer wrote:
>> > Hi,
>> >
>> > Am 07.07.2010 um 23:11 schrieb Ryan Waters:
>> >
>> >>> (send a init-function)
>> >>> (send a f))
>> >>
>
On Wed, Jul 7, 2010 at 5:46 PM, Ryan Waters wrote:
> On Wed, Jul 7, 2010 at 4:32 PM, Meikel Brandmeyer wrote:
> > Hi,
> >
> > Am 07.07.2010 um 23:11 schrieb Ryan Waters:
> >
> >>> (send a init-function)
> >>> (send a f))
> >>
> >> It's not guaranteed the init-func
2010/7/8 Lee Spector
>
> Laurent,
>
> Thanks for all of the helpful replies. Just one clarification:
>
> On Jul 8, 2010, at 3:37 AM, Laurent PETIT wrote:
> >> BTW, is there a way to get a popup menu of the options, or some other
> listing of them without going through them one by one?
> >
> > The
Laurent,
Thanks for all of the helpful replies. Just one clarification:
On Jul 8, 2010, at 3:37 AM, Laurent PETIT wrote:
>> BTW, is there a way to get a popup menu of the options, or some other
>> listing of them without going through them one by one?
>
> There is already a "Clojure" menu and
Hi,
On Jul 8, 7:25 am, j-g-faustus wrote:
> So maybe it's best to use the Java convention after all?
> It has been proven to scale, is widely used and plays well with
> whatever else is running on the JVM, which are strong points in its
> favor.
I still don't buy it. The company I work for chan
On Jul 8, 5:21 am, Mike Meyer wrote:
> You're overlooking that one of the major benefits of Clojure is that
> it interoperates with other JVM languages. So any idiom it uses needs
> to have some assurance that it won't clash with an idiom used by those
> other languages.
It's a good point.
> Tha
re: memory use
If the number of concurrent requests is small, then the memory used by
thread per request is usually not an issue.
When implementing long polling, the number of concurrent requests can
be very large. Sharing threads between requests in a long polling
server can result in significa
Hi,
On Jul 8, 1:52 pm, Moritz Ulrich wrote:
> No offense, but I don't really like the way the project
> athttp://getclojure.org:8080/examples/does it. The examples doesn't
> help, as they are no explanations, the results aren't shown and many
> of them are overly complicated.
Yes. They show th
No offense, but I don't really like the way the project at
http://getclojure.org:8080/examples/ does it. The examples doesn't
help, as they are no explanations, the results aren't shown and many
of them are overly complicated.
On Thu, Jul 8, 2010 at 7:18 AM, Heinz N. Gies wrote:
>
> On Jul 7, 201
Why does (transient #{}) works, but transient (sorted-set []) fails
with an exception:
clojure.lang.PersistentTreeSet cannot be cast to
clojure.lang.IEditableCollection
[Thrown class java.lang.ClassCastException]
--
Moritz Ulrich
Programmer, Student, Almost normal Guy
http://www.google.com/pr
Hi Lee,
Again, thanks for a thourough and constructive feedback !
2010/7/8 Lee Spector
>
> I spent a bunch of time today in CCW 0.0.59.RC2, in "default" mode, and
> thought I'd report my experience:
>
> - Lots of very nice features and I really appreciate having this -- please
> don't take my c
On 8 July 2010 07:47, Laurent PETIT wrote:
>
>
> 2010/7/8 Pedro Teixeira
>>
>> What's the idiomatic way to handle cases where one has a macro rather
>> than a function?
>>
>> For example:
>>
>> intent is as follows but does not work:
>> (def args [false true false])
>> (apply or args)
>>
>>
>> al
82 matches
Mail list logo