Quite right, thanks for the explanation!
On Mar 17, 3:50 pm, Mark Engelberg wrote:
> On Mon, Mar 16, 2009 at 9:44 PM, Timothy Pratley
>
> wrote:
>
> > Hi Keith,
>
> > I don't follow the 'lazy-init' part... It seems to me that you create
> > a delay but force it immediately which is effectively
Everything I've learned about Java, I got out of
"Beginning Java 2" by Ivor Horton.
It covers the base Java language in the first ten chapters, and the
rest are dealing with the libraries. I think it pretty much sums up
the entire Java platform, as well as a clear perspective on the "Java
way" o
On Mon, Mar 16, 2009 at 9:44 PM, Timothy Pratley
wrote:
>
> Hi Keith,
>
> I don't follow the 'lazy-init' part... It seems to me that you create
> a delay but force it immediately which is effectively just running
> create-a-text-field. That behavior seems different from the factory
> style return
Hi Keith,
I don't follow the 'lazy-init' part... It seems to me that you create
a delay but force it immediately which is effectively just running
create-a-text-field. That behavior seems different from the factory
style return if exists or create you originally started with. I don't
see the need
Larry, that you added mouse-drawing is awesome, I wanted to do that
too.
Kyle - my bad on the imports, thanks for the patch.
I will take all these and refold in when I get some time. I also have
some ideas on further speed ups. My gut tells me we could make this
run faster.
One other idea - add
OK, so I've posted a fair amount of "smack talk" about test suites and
how important they are--I figure it's time to help out.
What are some ways in which test-clojure is lacking? How can I help
improve the coverage?
-Phil
--~--~-~--~~~---~--~~
You received this
I've been using clojure in a similar way at work. I run a swank server
in a separate thread inside of a running application instance, and I
can connect to it remotely using SLIME. It works pretty well!
--~--~-~--~~~---~--~~
You received this message because you are
All -
I am a relative newcomer to Clojure, but have been really enjoying
learning and using it.
I've published an article on my blog at http://snipurl.com/dyxz7.
It's about some of my impressions of Clojure based on my studies and
porting of a Swing app to Clojure (a previous article discussed a
On Mar 16, 10:42 pm, Shawn Hoover wrote:
> On Mon, Mar 16, 2009 at 9:18 PM, Stuart Sierra
> wrote:
>
>
>
>
>
> > On Mar 16, 7:17 pm, BerlinBrown wrote:
> > > After many years (decade) of web development, here are the things that
> > > I want in a framework, mostly based in clojure:
>
> > > Wha
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-deployed code. But still: I am
On Mon, Mar 16, 2009 at 9:18 PM, Stuart Sierra
wrote:
>
> On Mar 16, 7:17 pm, BerlinBrown wrote:
> > After many years (decade) of web development, here are the things that
> > I want in a framework, mostly based in clojure:
> >
> > What do you think and what you add. This is ambitious and just a
Some numbers:
Clojure:
]% time java -server -cp clj-starcraft.jar:$HOME/src/clojure/
clojure.jar clojure.main dump.clj misc/replays/*.rep
1047
"Elapsed time: 159605.6084 msecs"
java -server -cp clj-starcraft.jar:$HOME/src/clojure/clojure.jar
clojure.main 163.84s user 1.11s system 102% cpu 2:41.
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-deployed code. But still: I am a
> professional Clojure developer now :)
> (Please don't kill my dream.)
--~--~-~--~~~---~--~--
Java 1.6.0_07 for Hardy vs Java 1.6.0_10 for Ibex.
However, with this newer package, the Java program is now more than
13x faster than my Clojure program. Looks like I got a lot of work
ahead of me.
Vincent.
On Mar 16, 9:31 pm, Jeffrey Straszheim
wrote:
> Are they both Java 6? I know it fixe
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
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
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 ReferenceQueue.remove) are not even there and the
costliest method if AtomicInteger.get.
Vincent.
--~--~-~--~~~---~--
2009/3/17 Stephen C. Gilardi
>
> On Mar 16, 2009, at 9:06 PM, Laurent PETIT wrote:
>
> The real one was : how to correctly get the thread bound value, and change
>> the thread bound value of a Var instance, from within java code ?
>>
>
> You can set the thread-bound value with "set" (defined in
On Mar 16, 7:17 pm, BerlinBrown wrote:
> After many years (decade) of web development, here are the things that
> I want in a framework, mostly based in clojure:
>
> What do you think and what you add. This is ambitious and just a
> "ideas" of what I would add. What would you want from your ide
On Mar 16, 2009, at 9:06 PM, Laurent PETIT wrote:
The real one was : how to correctly get the thread bound value, and
change the thread bound value of a Var instance, from within java
code ?
You can set the thread-bound value with "set" (defined in Var.java).
You get the thread-bound val
Hello again,
2009/3/17 Stephen C. Gilardi
>
> On Mar 16, 2009, at 8:25 PM, Laurent PETIT wrote:
>
> Hi Laurent,
>
> Your solution is indeed close to what I had in mind in terms of
>> requirements. I was currently hacking with clojure java class Compiler to
>> enhance Timothy's patch and add a v
On Mar 16, 2009, at 8:25 PM, Laurent PETIT wrote:
Hi Laurent,
Your solution is indeed close to what I had in mind in terms of
requirements. I was currently hacking with clojure java class
Compiler to enhance Timothy's patch and add a variation on what you
described.
Cool. I look forward
Oops. Here we are at the intersection of Lisp and Java. Eventually
all the projects will be assigned numbers instead of names!
On Mon, Mar 16, 2009 at 4:24 PM, Raoul Duke wrote:
>
> there are (at least) 2 Qis:
>
> one is java-aop.
>
> the other is lisp++.
>
> sincerely.
>
> On Mon, Mar 16, 200
I'm mostly a front-end UI person with crazy amounts of JS experience so most
of my input will be from that stand point.
1. I agree with Sean on this one. No need to bring in middleware that can't
be expressed in 10X-20X less code in pure Clojure.
2. The framework should allow for any backend (even
Hello,
Thanks for taking time thinking about this idea!
Your solution is indeed close to what I had in mind in terms of
requirements. I was currently hacking with clojure java class Compiler to
enhance Timothy's patch and add a variation on what you described.
My concern is that it should also w
Okay, if you have to work with something rpe-existing that makes more
sense. My main point is that if I were started from scratch, I'd do
it different.
On Mar 16, 8:12 pm, Berlin Brown wrote:
> On Mar 16, 7:52 pm, Jeffrey Straszheim
> wrote:
>
> > I'd love to see something built around very-hi
On 16 Mrz., 22:41, Phil Hagelberg wrote:
> André Thieme writes:
> > But it also protects you from typos. And this can be even more
> > important. Imagine you have a complex program and accidently
> > made a typo, and this will go unnoticed for days and days, until
> > the program actually runs y
On Mar 16, 2009, at 6:59 PM, Elena wrote:
Furthermore, if I understand Rich's opinion in that regards, this
code:
(defn myfun []
(another-fun 5))
should be rejected if definition of "another-fun" is missing (but I'd
say: only in code to be released).
I don't mind the current behavior of
On Mar 16, 7:52 pm, Jeffrey Straszheim
wrote:
> 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 Hibernat
> If the Dialyzer can do all this without having an
> optional type system in Erlang, then it should be
> obvious what would be possible, if Rich agrees and
> finds the time/resources to add one in Clojure.
maybe this is a bad/crazy idea, but could one make a pluggable
Dialyzer, which could then
On 16 Mrz., 23:36, Raoul Duke wrote:
> please, for those who aren't Erlang nerds, also see Dialyzer.
>
> http://www.it.uu.se/research/group/hipe/dialyzer
Funny, I just wanted to post exactly that link.
It is very impressive what that tool did:
"Dialyzer has been applied to large code bases,
for
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
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 making up for the
weaknesses of Java. Once you have first class functions, macros, and
multi-methods (to name a few), Spring doesn't bring much to the table
Tim,
I see in clojure a var named ALLOW_UNRESOLVED_VARS.
Could you explain me how it works compared to the new AUTO_DEF that is
introduced ?
I think there's a subtlety between resolved var / defined var that I don't
understand right now ...
Thanks,
--
Laurent
2009/3/16 Timothy Pratley
>
>
Personally, I've been noodling about what a Tapestry/Clojure hybrid
might look like.
I'd advise that you take a peek at Lift, a functional web framework
built on Scala.
I have some ideas about what a component based framework would look
like in a function world (note: this would be leaving JSPs
there are (at least) 2 Qis:
one is java-aop.
the other is lisp++.
sincerely.
On Mon, Mar 16, 2009 at 4:19 PM, Howard Lewis Ship wrote:
>
> I antended a talk on Qi at JavaZone 2008.
>
> Qi is a kind of AOP layer that knits together concerns via a bit of
> configuration and some naming conventi
I antended a talk on Qi at JavaZone 2008.
Qi is a kind of AOP layer that knits together concerns via a bit of
configuration and some naming conventions. I'm a bit fuzzy on the
details 6 months out.
A lot of the AOP solutions for Java are trying to introduce concepts
that are more native in a Li
After many years (decade) of web development, here are the things that
I want in a framework, mostly based in clojure:
What do you think and what you add. This is ambitious and just a
"ideas" of what I would add. What would you want from your ideal
framework?
1. Based on Spring Framework for m
On Mon, Mar 16, 2009 at 4:29 PM, Mark Volkmann wrote:
>
> On Mon, Mar 16, 2009 at 4:56 PM, Brian Doyle
> wrote:
> > I've been using Clojure for about 6 months now and really like it. I am
> > somewhat new to multi-threading
> > and using any of the parallel features in Clojure though. I have a
Hello Tim,
2009/3/16 Timothy Pratley
>
> Just FYI,
>
> The actual patch is in the files section:
> http://groups.google.com/group/clojure/web/auto-def.patch
> With an example:
> http://groups.google.com/group/clojure/web/lit-wc.clj
> From a longer thread about 'snake' which talked about literate
On Mon, Mar 16, 2009 at 3:54 PM, Frantisek Sodomka wrote:
> (empty (seq [1 2])) => nil
Now that there is the concept of empty sequences, maybe this should
actually return an empty sequence, such as ().
--~--~-~--~~~---~--~~
You received this message because you a
Yea, that would work. I don't think the (fn) should be defined anonymously
though, because I could see it being useful on its own. Give it a name!
Thanks,
Stu
On Mon, Mar 16, 2009 at 6:53 PM, Brian Doyle wrote:
>
>
> On Mon, Mar 16, 2009 at 4:21 PM, Stu Hood wrote:
>
>> If you write your CSV -
Hi,
Am 16.03.2009 um 23:39 schrieb Elena:
- the REPL could allow for an option to just warn about missing
definitions;
- when loading/compiling a file, Clojure could parse all definitions
before complaining about missing ones.
It seems that such a solution would offer both maximum flexibility
On 16 Mar, 23:47, Elena wrote:
> On 16 Mar, 23:26, Timothy Pratley wrote:
> > what should happen
> > with this code:
>
> > (defn myfun []
> > (another-fun 5))
> > (myfun)
> > (defn another-fun [x]
> > (inc x))
>
> > In a compiled language that would be valid, but in a dynamic language
> > i
Laurent PETIT writes:
> 2009/3/16 Phil Hagelberg
>
> Laurent PETIT writes:
>
> > But please, think about it twice before saying people are
> > irresponsible. Unit tests are not the only answer to bug-free and
> > quality programs.
>
> Sure, I don't mean that this re
Hello Rich & all!
I am digging into behavior of function 'empty':
user=> (doc empty)
-
clojure.core/empty
([coll])
Returns an empty collection of the same category as coll, or nil
(empty [1 2]) => []
(empty (seq [1 2])) => nil
(empty '(1 2)) => ()
(empty (seq '(1 2)))
On Mon, Mar 16, 2009 at 4:21 PM, Stu Hood wrote:
> If you write your CSV -> XML processing as a function, you could pmap (
> http://clojure.org/api#pmap) that function across the list of input
> files. pmap will transparently create the threads as needed, and it will
> probably be enough to satu
On 16 Mar, 23:26, Timothy Pratley wrote:
> For fully compiled code the
> 'checkpoint' is clear - but Clojure is dynamic... what should happen
> with this code:
>
> (defn myfun []
> (another-fun 5))
> (myfun)
> (defn another-fun [x]
> (inc x))
>
> In a compiled language that would be valid, bu
2009/3/16 Phil Hagelberg
>
> Laurent PETIT writes:
>
> > But please, think about it twice before saying people are
> > irresponsible. Unit tests are not the only answer to bug-free and
> > quality programs.
>
> Sure, I don't mean that this reflects on peoples' character. I only wish
> to judge t
On 16 Mar, 22:55, Meikel Brandmeyer wrote:
> My remark was pointed at the fact, that before it was
> claimed, that the one way doesn't work in Clojure and
> one has to go the other. And then the same person
> goes on to contradict him(or her?)self. But be it...
>
> To say something more construct
Laurent PETIT writes:
> OK, so now is time for another ugly english translation of a french
> proverb "before saying something, roll your tongue 8 times in your
> mouth before speaking". I guess this could also be applied for e-mail
Agreed, it could have been worded better.
But keep in mind th
please, for those who aren't Erlang nerds, also see Dialyzer.
http://www.it.uu.se/research/group/hipe/dialyzer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to cl
On 16 Mrz., 19:43, Meikel Brandmeyer wrote:
> Am 16.03.2009 um 12:26 schrieb Robert Pfeiffer:
>
> > Did you mean this:
>
> >http://wiki.jvmlangsummit.com/pdf/28_Siek_gradual.pdf
>
> > It was presented at the JVM Summit, so Rich may already have given a
> > thought to this.
>
> Argh.. "Gradual Ty
On Mon, Mar 16, 2009 at 4:56 PM, Brian Doyle wrote:
> I've been using Clojure for about 6 months now and really like it. I am
> somewhat new to multi-threading
> and using any of the parallel features in Clojure though. I have a
> situation where I need to convert
> 7 files from CSV to XML. E
Just FYI,
The actual patch is in the files section:
http://groups.google.com/group/clojure/web/auto-def.patch
With an example:
http://groups.google.com/group/clojure/web/lit-wc.clj
>From a longer thread about 'snake' which talked about literate
programming:
http://groups.google.com/group/clojure/
If you write your CSV -> XML processing as a function, you could pmap (
http://clojure.org/api#pmap) that function across the list of input files.
pmap will transparently create the threads as needed, and it will probably
be enough to saturate your disk.
Thanks,
Stu
On Mon, Mar 16, 2009 at 5:56
On 16 Mrz., 20:45, David Nolen wrote:
> Should the REPL have an "interactive" mode where it won't fire an exception
> on undefined symbols and instead issue compiler warnings? If compiler
> warnings were issued this would be a nice hook for Emacs and other IDEs.
Yes, I was thinking about this a
On 16 Mar, 22:31, André Thieme wrote:
> The behaviour of Clojure can be seen as a disadvantage, yes, because
> you either need these forward declarations, or you need to arrange
> functions different.
> But it also protects you from typos. And this can be even more
> important. Imagine you have a
2009/3/16 Phil Hagelberg
>
> André Thieme writes:
>
> > But it also protects you from typos. And this can be even more
> > important. Imagine you have a complex program and accidently
> > made a typo, and this will go unnoticed for days and days, until
> > the program actually runs your code...
I've been using Clojure for about 6 months now and really like it. I am
somewhat new to multi-threading
and using any of the parallel features in Clojure though. I have a
situation where I need to convert
7 files from CSV to XML. Each one of these files is about 180MB apiece in
size. I have d
Hi,
Am 16.03.2009 um 22:44 schrieb Laurent PETIT:
In french, we have a sentence for that, that would translate
literally into "eat the banana by both ends at the same time".
I don't think top-down and bottom-up programming are antogonists. I
often do both at the same time myself.
Accordi
2009/3/16 Meikel Brandmeyer
> Hi,
>
> Am 16.03.2009 um 22:19 schrieb Elena:
>
> On 16 Mar, 21:57, Laurent PETIT wrote:
>>
>>>
>>> I agree that it's not difficult. But, at least in my own experience, it's
>>> not the second step to cleaning up my programs.
>>>
>>> I generally try to get code tha
> If you go days and days without actually running your code, then you
> deserve what you get. A test suite would catch this for you every time;
> developing without one is irresponsible.
geeze people, i'm tired of the "tests are the answer to everything."
give it a break. not every test suite wi
André Thieme writes:
> But it also protects you from typos. And this can be even more
> important. Imagine you have a complex program and accidently
> made a typo, and this will go unnoticed for days and days, until
> the program actually runs your code...
If you go days and days without actual
2009/3/16 André Thieme
>
> On 16 Mrz., 11:49, Elena wrote:
> > On Mar 16, 10:40 am, Christophe Grand wrote:
> >
> >
> >
> > > Yes, it prevents typos to go unnoticed. You can write a forward
> > > declaration :
> >
> > > (declare check-services); equivalent to (def check-services)
> >
> > > (def
Hi,
Am 16.03.2009 um 22:19 schrieb Elena:
On 16 Mar, 21:57, Laurent PETIT wrote:
I agree that it's not difficult. But, at least in my own
experience, it's
not the second step to cleaning up my programs.
I generally try to get code that works, even if in a not really
good looking
shape.
On 16 Mrz., 11:49, Elena wrote:
> On Mar 16, 10:40 am, Christophe Grand wrote:
>
>
>
> > Yes, it prevents typos to go unnoticed. You can write a forward
> > declaration :
>
> > (declare check-services); equivalent to (def check-services)
>
> > (defn main []
> > (check-services))
>
> > (d
2009/3/16 Elena
>
>
>
> On 16 Mar, 21:57, Laurent PETIT wrote:
> >
> > I agree that it's not difficult. But, at least in my own experience, it's
> > not the second step to cleaning up my programs.
> >
> > I generally try to get code that works, even if in a not really good
> looking
> > shape. T
On 16 Mar, 21:57, Laurent PETIT wrote:
>
> I agree that it's not difficult. But, at least in my own experience, it's
> not the second step to cleaning up my programs.
>
> I generally try to get code that works, even if in a not really good looking
> shape. Then I refactor if it is really ugly-l
On Mon, Mar 16, 2009 at 1:08 PM, Kyle R. Burton wrote:
>
> Clojure Box works well, I'd like to make a feature request: can you
> add paredit [1]? Including it in the distribution (perhaps with it
> disabled) would be great.
>
Good idea. It used to be packaged with clojure-mode automatically, bu
Hello Christian,
2009/3/16 Christian Vest Hansen
>
> On Mon, Mar 16, 2009 at 9:26 PM, Elena wrote:
> >
> > On 16 Mar, 20:58, Laurent PETIT wrote:
> >
> >> For files, that would be "wait until the end of the file before
> complaining
> >> for undefined symbols, and let me arrange the defs in an
Here's the post by Timothy talking about patching the compiler:
http://groups.google.com/group/clojure/msg/ef5bae605f4a0730
On Mon, Mar 16, 2009 at 4:36 PM, Paul Stadig wrote:
> On Mon, Mar 16, 2009 at 4:18 PM, David Nolen wrote:
>
>> On Mon, Mar 16, 2009 at 4:08 PM, Paul Stadig wrote:
>>
>>>
Shawn Hoover writes:
> Hmm, that is a new one to me. The only other things I can think of:
>
>1. Inspect the value of slime-lisp-implementations (C-h v) and make
>sure the java command line options look like you expect, including
>the classpath directories you added and the path sepa
On Mon, Mar 16, 2009 at 9:26 PM, Elena wrote:
>
> On 16 Mar, 20:58, Laurent PETIT wrote:
>
>> For files, that would be "wait until the end of the file before complaining
>> for undefined symbols, and let me arrange the defs in any order I feel most
>> readable without having to think about placi
On Mon, Mar 16, 2009 at 4:18 PM, David Nolen wrote:
> On Mon, Mar 16, 2009 at 4:08 PM, Paul Stadig wrote:
>
>> I may be missing something, but how does having to (declare) vars fix
>> typos? I don't think anyone is suggesting *creating* a var that is
>> referenced before it is defined. What peop
Of course, with respect to Clojure, probably the most important thing
is to learn the Java *libraries*. What are good books about that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to thi
On 16 Mar, 20:58, Laurent PETIT wrote:
> For files, that would be "wait until the end of the file before complaining
> for undefined symbols, and let me arrange the defs in any order I feel most
> readable without having to think about placing those (declare) calls".
I second your proposal.
--~
On 16 Mar, 20:45, David Nolen wrote:
> This has come up before. You can actually work around this (search the
> mailing list for declare)
I've searched the mailing list and I've found also an explanation by
Rich Hickey (I apologize for not having done it in the first instance)
for such a design
On Mon, Mar 16, 2009 at 4:08 PM, Paul Stadig wrote:
> I may be missing something, but how does having to (declare) vars fix
> typos? I don't think anyone is suggesting *creating* a var that is
> referenced before it is defined. What people are asking for is that the
> compiler looks-ahead to veri
On Mar 12, 1:32 pm, Ron Lusk wrote:
> Works for me: I just overwrote my copy of resultset-seq with one that
> uses getColumnLabel, and I am now getting the results I expected from
> complex queries (in Interbase, at least).
>
> On Feb 23, 9:33 am, Rich Hickey wrote:
>
> > Sounds good to me - a
On Mar 13, 3:35 pm, "Stephen C. Gilardi" wrote:
> On Mar 13, 2009, at 4:10 PM, Stuart Sierra wrote:
>
> > Hi Allen,
> > Sorry I haven't kept up with this. I think, though, that it's best to
> > have it as a standalone library in clojure-contrib, so that people can
> > use it with other testing
I may be missing something, but how does having to (declare) vars fix typos?
I don't think anyone is suggesting *creating* a var that is referenced
before it is defined. What people are asking for is that the compiler
looks-ahead to verify that the var will eventually be defined, and then go
on its
On Mon, Mar 16, 2009 at 2:39 PM, Tassilo Horn wrote:
> Yes, for me having directories in `swank-clojure-extra-classpaths'
> doesn't work at all. Everything except jar files are discarded. So
> that's the general problem for me, the examples are one specific case
> which bites me.
>
> Bye,
> Tass
On Mon, Mar 16, 2009 at 8:38 PM, Stuart Sierra
wrote:
>
> On Mar 16, 8:14 am, Rich Hickey wrote:
>> Sorry to jump in late, but one problem with seek is that it is a
>> homophone of seq.
>>
>> Did anyone consider ffilter or find-first?
>
> I thought "find-first" was too long, since it's almost as
I also agree that I keep going first to the end of the file, searching the
real function to launch or to reuse when reading new clojure code ...
What I would be happy with is a way to have clojure not complain before the
end of a "unit of compiled code".
For the REPL, that would be somewhat simil
I was trying to make an application go faster today when I found out
that a Java program that does pretty much the same task was 8 times
faster. I used the -Xrunhprof:cpu=times profiling flag to know where
I should look, and the results are a little puzzling:
CPU TIME (ms) BEGIN (total = 3334005
On 16 Mrz., 20:38, Stuart Sierra wrote:
> On Mar 16, 8:14 am, Rich Hickey wrote:
>
> > Sorry to jump in late, but one problem with seek is that it is a
> > homophone of seq.
>
> > Did anyone consider ffilter or find-first?
>
> I thought "find-first" was too long, since it's almost as long as
> (
Hi all,
now I've solved my "swank-clojure doesn't use my extra classpath and
init files" problems. This didn't work, cause I had something like this
in my .emacs:
--8<---cut here---start->8---
(add-to-list 'load-path "~/repos/el/swank-clojure")
(setq swank-cl
This has come up before. You can actually work around this (search the
mailing list for declare)
I think that when not hacking against the REPL that the default behavior is
a good one. Having to use declare bugged me a little at first, but I now
consider it a very minor annoyance compared to the ad
On Mar 16, 8:14 am, Rich Hickey wrote:
> Sorry to jump in late, but one problem with seek is that it is a
> homophone of seq.
>
> Did anyone consider ffilter or find-first?
I thought "find-first" was too long, since it's almost as long as
(first (filter ...)
"ffilter" looks funny, especially in
On 16 Mar, 20:14, Jeffrey Straszheim
wrote:
> It does effect humans reading the code, however. Often when looking at
> unfamiliar Clojure code, I find myself scrolling to the bottom first.
That's exactly my point: why should I scroll to the bottom? That's not
the way I read a written page or r
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
Hi,
Am 16.03.2009 um 18:36 schrieb Elena:
IMHO, this is a no-no for interactive development. I understand that
it helps avoiding undefined symbols, but such code integrity checks
could be delayed to a final compilation stage. Having them earlier
forces you to develop code in a bottom-up way.
Hi,
Am 16.03.2009 um 12:26 schrieb Robert Pfeiffer:
Did you mean this:
http://wiki.jvmlangsummit.com/pdf/28_Siek_gradual.pdf
It was presented at the JVM Summit, so Rich may already have given a
thought to this.
Argh.. "Gradual Typing" that was term I was missing.
Here some more information
Shawn Hoover writes:
Hi Shawn,
>> user> (require 'examples.introduction)
>>
>> I get this exception:
>>
>> ,
>> | java.io.FileNotFoundException: Could not locate \
>> | examples/introduction__init.class or \
>> | examples/introduction.clj on classpath: (NO_SOURCE_FILE:0)
>> |
On Mon, Mar 16, 2009 at 1:38 PM, Daniel Renfer wrote:
>
> One of the nice things about overloading first is you could always
> just tell people that the one argument version of first is like
> saying: (first identity coll) even though the actual implementation
> wouldn't need to bother with it.
One of the nice things about overloading first is you could always
just tell people that the one argument version of first is like
saying: (first identity coll) even though the actual implementation
wouldn't need to bother with it.
The problem comes when you consider if we have a predicate-first,
On Mar 16, 10:43 am, Konrad Hinsen wrote:
> Yes. Clojure checks that symbols are defined before they are used.
> You can put
>
> (declare check-services)
>
> before your definition of main to define the symbol and make it clear
> to the (human) reader that you indeed to give the real definit
Anyone for "detect"?
(detect odd? primes) --> 3
(detect even? primes) --> 2
(detect even? (rest primes)) --> runs forever
(detect even? (rest one-million-primes)) --> nil
On Mar 16, 10:51 am, Laurent PETIT wrote:
> Just to make me more enemies ;-), I would prefer, on the other hand,
> find-firs
On Tue, Mar 10, 2009 at 7:21 AM, Tassilo Horn wrote:
> user> (require 'examples.introduction)
>
> I get this exception:
>
> ,
> | java.io.FileNotFoundException: Could not locate \
> | examples/introduction__init.class or \
> | examples/introduction.clj on classpath: (NO_SOURCE_FIL
1 - 100 of 128 matches
Mail list logo