Very interesting tip! Also, like vimclojure, you can run nailgun (
http://martiansoftware.com/nailgun/background.html) locally or on your
server via ssh.
On Mon, Nov 23, 2009 at 5:07 AM, Alex Osborne a...@meshy.org wrote:
We were discussing Clojure startup time (in the context of Leiningen)
2009/11/23 Phil Hagelberg p...@hagelb.org:
I noticed an odd bug when working on the help command for leiningen. It
uses docstrings on metadata for help output, but when AOTing the
project, the docstrings (as well as all other metadata) would be
lost. Note that this doesn't happen when
Scratch this question.
I think I've figured out that the step function in some people's code is
there for aesthetic reasons only. As long as the step function contains the
same code as would otherwise go directly inside the (lazy-seq ... ) there's
no difference.
That is,
(let [step (fn [a b]
Leiningen and Clojar are
LEGEN...
wait for it...
DARY!
Anyways, just wanted to say thanks.
On Nov 19, 1:23 pm, Alex Osborne a...@meshy.org wrote:
meb wrote:
Was the name Leiningen inspired by the Esquire short story Leiningen
vs. Ants? That would be a brilliantly obscure way to
On Thu, Nov 19, 2009 at 12:39 PM, Krukow karl.kru...@gmail.com wrote:
On Nov 19, 12:01 am, samppi rbysam...@gmail.com wrote:
Question: are the general mechanisms for accessing and setting fields
their keywords and assoc respectively:
(deftype Bar [a b c d e])
(def b (Bar 1 2 3 4 5))
Hi,
has anybody tried to make rlwrap lexer more Clojure friendly? Just
adding - to the word characters would be a big gain (to enjoy
auto-completion.)
I spent some time looking through rlwrap sources but has not find a
good place to do the changes.
Regards, Sergey.
--
You received this
Probably it can be done with Rlwrap filters, I have not tried it yet.
On Sat, Nov 21, 2009 at 2:30 PM, Sergey Didenko
sergey.dide...@gmail.com wrote:
Hi,
has anybody tried to make rlwrap lexer more Clojure friendly? Just
adding - to the word characters would be a big gain (to enjoy
Hi,
Am 21.11.2009 um 05:22 schrieb Mark Engelberg:
Which reminds me, every once in a while I see people talking about
this here, and brainstorming up some alternatives to binding that
might interact better with lazy data structures. Has there been any
real progress on this, or has every
Hi,
Am 22.11.2009 um 22:32 schrieb samppi:
(defn vary [coll keys-and-fns]
(let [fn-map (apply arrray-map keys-and-fns)
keys-and-vals (mapcat #((val %) (get coll (key %))) fn-map)]
(apply assoc-args coll keys-and-vals)))
As Jon said: update-in.
(- coll
(update-in [:x] fn-x)
Hi,
On Nov 23, 9:57 am, Dmitry Ulanov dula...@gmail.com wrote:
Very interesting tip! Also, like vimclojure, you can run nailgun
(http://martiansoftware.com/nailgun/background.html) locally or on your
server via ssh.
I'd also like to mention clj-server: http://github.com/Neronus/clj-server.
Hello all
I have one question about logging library from contrib? How i can configure
it to write data into log files?
P.S. I'm not Java developer, and may be don't know many of java's logging tricks
--
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/
On Nov 20, 5:24 pm, Rich Hickey richhic...@gmail.com wrote:
Yup. The fixed field access to deftypes via keyword literal lookup is
the fastest offered by any Clojure data structure.
Rich
While we are talking performance. Is there a simple way to explain the
performance characteristics of
On Nov 18, 8:29 am, Phil Hagelberg p...@hagelb.org wrote:
I'm pleased to announce the initial release of Leiningen.
Leiningen is a build tool for Clojure designed to not set your hair on fire.
I really like it so far - particularly the combination of lein and
clojars!
I'm not sure if this
On Nov 12, 1:10 pm, Rich Hickey richhic...@gmail.com wrote:
An early version of the code for a few important new language
features, datatypes[1] and protocols[2] is now available in the 'new'
branch[3]. Note also that the build system[4] has builds of the new
branch, and that the new branch
On Sat, Nov 21, 2009 at 4:37 PM, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
Am 21.11.2009 um 05:22 schrieb Mark Engelberg:
Which reminds me, every once in a while I see people talking about
this here, and brainstorming up some alternatives to binding that
might interact better with lazy
On Sat, Nov 21, 2009 at 7:30 AM, Sergey Didenko
sergey.dide...@gmail.com wrote:
Hi,
has anybody tried to make rlwrap lexer more Clojure friendly? Just
adding - to the word characters would be a big gain (to enjoy
auto-completion.)
I spent some time looking through rlwrap sources but has not
On Nov 23, 7:36 am, samppi rbysam...@gmail.com wrote:
The following code contains an error, and I cannot figure out what it
is at all. When I run StateMeta's test once, the statement marked with
a comment above fails. When I run it again, it succeeds. This has been
causing very weird bugs in
I added the contrib lib expecting it to fail but it worked, and loaded
(in half the usual time) some code from the user.clj as well:
java -Xbootclasspath/a:clojure\clojure.jar;clojure-contrib\clojure-contrib.jar
clojure.main
Clojure 1.1.0-alpha-SNAPSHOT
user=
I had been reading in this paper:
I replaced the calls to get-in with a my-get-in macro that compiled
them to nested calls on the map or vector:
(my-get-in sle [:A 1 2]) =
(((sle :A) 1) 2)
The form (data key) seems to be about 10 to 15 times faster than the
equivalent (get-in data [key]) on my laptop.
It cut the runtime
Variable-length arguments in protocols seem to be supported, but
there's just a weird, stateful behavior. Look what happens when you
call foo first with one argument twice (it fails both times), then two
arguments (it succeeds), then one argument again (it succeeds now
too!). Is this a Clojure
Hi Paul,
This time I tested it under Linux, following the instructions exactly
and it worked.
Though when I opened the second REPL it failed with a
NullPointerException. I repeated the step and had two REPLs with the
same vars.
For some reason it failed earlier on Windows, I will try to make it
Hi,
I'm getting a cast exception on trying to create a simple structure
and wondered if there was something obvious that I'm not doing. The
transcript below shows my version of java. Running on Mac Book Pro,
Snow Leopard 5.6.1
bash-3.2$ java -version
java version 1.6.0_15
Java(TM) SE Runtime
So simple :) Thanks!
On Mon, Nov 23, 2009 at 4:47 PM, Chouser chou...@gmail.com wrote:
The shell script I use to start my Clojure REPLs includes this:
rlwrap --remember --complete-filenames \
--history-filename ~/.clojure/history \
--break-chars \\\'(){}[],^%$#@;:| \
java and its
Hi,
On Nov 23, 3:36 pm, Chouser chou...@gmail.com wrote:
http://kotka.de/blog/clojure/Taming_the_Bound_Seq.html
That's excellent Meikel, thanks. Any reson you didn't use the
with-bindings macro to make your final example a bit simpler?
Woops. The reason might be the time of day (23 o'clock
Hi,
On Nov 23, 3:32 pm, nchubrich nicholas.chubr...@gmail.com wrote:
Meikel, is get-thread-bindings only in a development version of
Clojure? I have 1.09.11 and don't see it documented or usable (or in
the online docs).
I'm not sure what 1.09.11 means, but the following commits added push-/
On Nov 23, 11:36 am, samppi rbysam...@gmail.com wrote:
Variable-length arguments in protocols seem to be supported, but
there's just a weird, stateful behavior. Look what happens when you
call foo first with one argument twice (it fails both times), then two
arguments (it succeeds), then one
Multimethods are a great abstraction in Clojure. They are great for
adapting a wide variety of inputs to a function. However, I often
need to decouple the adaptation of data from the function that
operates on the adapted data. Also, after the work is complete, I
need to adapt the data back to
I see; then that of course would be the reason. Thanks for the answer.
On Nov 23, 12:24 pm, Rich Hickey richhic...@gmail.com wrote:
On Nov 23, 11:36 am, samppi rbysam...@gmail.com wrote:
Variable-length arguments in protocols seem to be supported, but
there's just a weird, stateful
The c.c.logging library delegates to an underlying implementation,
thus for any configuration help you'll need to check the documentation
of the actual logging system, e.g., log4j.
On Nov 21, 7:21 am, Alex Ott alex...@gmail.com wrote:
Hello all
I have one question about logging library from
On 22 Nov 2009, at 22:06, samppi wrote:
Yes, I see. I'm going to guess that the parser-m that I give above has
no possible m-zero, so I think I'll have to rethink how I'm going to
approach this problem. I probably am going to just define failure in
another way. (The reason why I can't use nil
On 22 Nov 2009, at 22:10, John Harrop wrote:
Is there an explanation of monads out there that doesn't require the
reader to know Haskell to understand it? One that's generic to any
FP-capable language?
Nothing I know of; you need some syntax if only for the examples.
Moreover, there are
i have tried:
1.5
1.6
1.6 -server
the last i did both in repl-in-emacs, and in a repl-in-straightup-shell.
the numbers i get are weird. it does seem like v2 is faster than v,
but never gets stupendously fast (never faster than 500 msec on a dual
core macbook pro 2.2ghz core 2 duo 4gb ram), and v
If you have trouble viewing or submitting this form, you can fill it out
online:
http://spreadsheets.google.com/viewform?formkey=dFJSd1p4YXh0d0VxV0xjdk42MTU5RkE6MA
Clojure User Survey
This user survey will help move Clojure toward an official 1.1 release.
How do you get Clojure? *
Hi,
Andre, Danny's first approach is about syncing only on the root
object, so that every piece of data is behind one deref:
(def root (ref {:persons [ ... no other refs here... ]))
This approach is simpler to code but can lead to a lot of retried
transactions under heavy concurrent load, as I
Chris, Graham,
Am 23.11.2009 um 21:21 schrieb Graham Fawcett:
Very nice. A generalized version might be more useful to your readers:
take an input seq, and return an output seq which is evaluated
stepwise in the binding environment.
Thank you for your good comments. I updated the post with a
BTW I'm also coding the simple persistence for Clojure data
structures. Though I took Prevayler approach (http://prevayler.org),
so I journal function calls that change my root object.
This approach is better than simple snapshotting when your data grows
big, so you can't do the snapshots very
On Mon, Nov 23, 2009 at 22:46, Sergey Didenko sergey.dide...@gmail.com wrote:
BTW I'm also coding the simple persistence for Clojure data
structures. Though I took Prevayler approach (http://prevayler.org),
so I journal function calls that change my root object.
This approach is better than
On Mon, Nov 23, 2009 at 4:34 PM, Sergey Didenko sergey.dide...@gmail.comwrote:
Hi,
Andre, Danny's first approach is about syncing only on the root
object, so that every piece of data is behind one deref:
(def root (ref {:persons [ ... no other refs here... ]))
This approach is simpler to
hi,
i'd be interested to hear who has successfully used clojure in
production. i know of some, as some folks have been vocal; any other
interesting-but-so-far-silent uses people'd be willing to fess up
about?
many thanks.
--
You received this message because you are subscribed to the Google
On Mon, Nov 23, 2009 at 03:00:16PM -0800, Raoul Duke wrote:
i'd be interested to hear who has successfully used clojure in
production. i know of some, as some folks have been vocal; any other
interesting-but-so-far-silent uses people'd be willing to fess up
about?
I've thrown together a small
Krukow karl.kru...@gmail.com writes:
On Nov 18, 8:29 am, Phil Hagelberg p...@hagelb.org wrote:
I'm pleased to announce the initial release of Leiningen.
Leiningen is a build tool for Clojure designed to not set your hair on fire.
I really like it so far - particularly the combination of
Would it be possible to create an implementation of delay and lazy-seq
that didn't use fn to delay evaluation, or atleast captured dynamic
variables?
(delay (+ x 3)) reasonable semantics in current clojure (let [x x]
(delay (+ x 3)))
(delay (fn [y] (+ x y))) semantics should be the same it
On Tue, Nov 24, 2009 at 00:00, Raoul Duke rao...@gmail.com wrote:
hi,
i'd be interested to hear who has successfully used clojure in
production. i know of some, as some folks have been vocal; any other
interesting-but-so-far-silent uses people'd be willing to fess up
about?
many thanks.
I
Konrad,
Glad to see you're still around doing monads in Clojure. :)
Jim
--
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 all the newly added/being worked on defprotocol/deftype features
- I've not seen anyone mention JDK annotations being part of things,
is support for annotations being worked on as part of this? Would be
a -very- handy addition, esp. as more and more JVM libraries/tools are
looking for them.
i'd be interested to hear who has successfully used clojure in
production.
Hello,
1- We have this license server, used to control the use of a
professional software (this one written using delphi).
This was tested with thousands of simutaneous connections, and has been
working with no
Stuart, I think there's another valid option for getting clojure. I got it
by installing the unfortunately titled Emacs Starter Kit from
http://github.com/technomancy/emacs-starter-kit. I has an install clojure
option that does most of the work of installing clojure, clojure-contrib and
setting up
user= (defstruct s1 :a :b)
#'user/s1
user= (s1 1 2)
(struct s1 1 2) or (struct-map s1 :a 1 :b 2)
-- {:a 1, :b 2}
or:
(struct s1 1)
-- {:a 1, :b nil}
(struct-map s1 :b 2)
-- {:a nil, :b 2}
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post
On Mon, Nov 23, 2009 at 8:35 PM, Phlex ph...@telenet.be wrote:
i'd be interested to hear who has successfully used clojure in
production.
Hello,
1- We have this license server, used to control the use of a
professional software (this one written using delphi).
What are the ethics of
1- We have this license server, used to control the use of a
professional software (this one written using delphi).
What are the ethics of using an open source product like Clojure to
implement DRM restrictions for some other product? Seems there might
be something a bit iffy
On Nov 12, 6:10 am, Rich Hickey richhic...@gmail.com wrote:
An early version of the code for a few important new language
features, datatypes[1] and protocols[2] is now available in the 'new'
branch[3]. Note also that the build system[4] has builds of the new
branch, and that the new branch
I use an internal DSL (Domain Specific Language) in Clojure to
generate C++ and C# code.
Cheers
Morten
On Nov 24, 10:00 am, Raoul Duke rao...@gmail.com wrote:
hi,
i'd be interested to hear who has successfully used clojure in
production. i know of some, as some folks have been vocal; any
On Mon, Nov 23, 2009 at 9:47 PM, Richard Newman holyg...@gmail.com wrote:
1- We have this license server, used to control the use of a
professional software (this one written using delphi).
What are the ethics of using an open source product like Clojure to
implement DRM restrictions for
On Nov 24, 4:55 am, Allen Rohner aroh...@gmail.com wrote:
The first stumbling point I reached is that deftypes provide an
automatic implementation for IPersistentMap, but not IFn. I attempted
to write (instance key), which exploded, but (key instance) works just
fine. My existing code uses
Meikel's blog post quotes:
running into a lot of such trouble is a sign, that you misuse dynamic
variables. Use them wisely.
I'd like to see examples of what you think is a good, clean,
compelling use of dynamic variables that are properly used wisely.
My own experience is that if the code is
On Mon, Nov 23, 2009 at 09:55:46PM +, the.stuart.sie...@gmail.com wrote:
Since the form only lets me answer one answer for each, but reality is
much more complicated.
How do you get Clojure? *
Download release
Github
Maven or Ivy
I primarily use the latest development snapshot that I pull
Hi Mark,
In Clojuratica I make what I think is good, clean, compelling use of
dynamic vars. I rewrote the code to use dynamic vars after I found that
doing it the other way became unwieldy and inelegant.
To simplify a little, the API consists of just one main function, let's call
it
57 matches
Mail list logo