It's been a long time since I looked at this, but as of a few years ago,
the biggest noticeable performance detriment of comp or partial was likely
to come if you pass enough args to hit a "& args" overload, which requires
creating a fresh object array at each call, when the underlying function
On Mon, May 12, 2014 at 12:53 PM, Alex Miller a...@puredanger.com wrote:
My recommendation in Java would be the same - using mutable objects as
keys in a map (where mutability changes the hashcode) is a bug waiting to
happen.
Although I used java.util.ArrayList in the sample REPL session
Is this behavioral change in Clojure 1.6.0 expected? Under 1.6.0, a set and
a map seem to treat a java.util.ArrayList differently with respect to its
equivalence to a vector.
https://gist.github.com/duelinmarkers/7c9f84cfc238e5d37a09
user= (- {} (assoc [1 2] vec) (assoc (java.util.ArrayList. [1
I sometimes find that after mutating an atom, I want to create some
side-effect that depends on the old and new state as well as the context in
which the change was made. Because of the dependence on context, a watch
doesn't work (unless there's something I'm not thinking of). So I add
things to
On Sat, Feb 15, 2014 at 6:04 PM, t x txrev...@gmail.com wrote:
(defn what-I-want []
(with-atom some-atom
assoc-in ...
assoc-in ...
update-in ...))
I often do something like this and don't find it too ugly:
(swap! my-atom #(- %
(assoc-in [:k] v)
On Feb 11, 2014 4:41 AM, Phillip Lord phillip.l...@newcastle.ac.uk
wrote:
Is the only place this is written down is by working reading the
implementing classes?
I believe so. Other than the new (and quite minimal) Java API for calling
Clojure code[1], the details of Clojure's underlying Java
On Tue, Feb 11, 2014 at 7:32 AM, Phillip Lord
phillip.l...@newcastle.ac.ukwrote:
John D. Hume duelin.mark...@gmail.com writes:
Other than the new (and quite minimal) Java API for calling
Clojure code[1], the details of Clojure's underlying Java classes are
considered implementation details
It includes this update, which I'd say brings it up to date.
*update (4/18/2012):** As of the 1.4.0 release, there's no longer a good
reason to use use. Use require :refer instead. From the Clojure 1.4.0 *
*changelog**: require can now take a :refer option. :refer takes a list of
symbols to
I haven't attempted any code manipulation, just analysis and indexing, but
I embarked on a similar idea here:
https://github.com/duelinmarkers/insfactor and here:
http://github.com/duelinmarkers/insfactor.el. (Nothing Vim-related there,
the similar part is trying to put as much as possible of the
On Fri, Feb 7, 2014 at 9:41 PM, Andy C andy.coolw...@gmail.com wrote:
I do perceive sets, lists, vector as atoms which are indivisible (well,
this is not true but this is popular meaning) from semantics standpoint.
Therefore map is just a function which processes them as whole, again from
On Wednesday, February 5, 2014, Sean Corfield wrote:
It's one of the things that has me really
hooked on LightTable. I have my source and test namespaces both open.
I have them both connected to a REPL. I can evaluate any code, in
place, in either file. If I grow some code in the source
On Wed, Feb 5, 2014 at 1:27 PM, Sean Corfield s...@corfield.org wrote:
On Feb 5, 2014, at 5:39 AM, John D. Hume duelin.mark...@gmail.com wrote:
Could you clarify the difference between LightTable's M-) and using
C-M-x* in Emacs jacked into an nrepl session with Cider?
M-) is paredit-forward
On Tue, Jan 21, 2014 at 1:50 PM, Yves Parès limestr...@gmail.com wrote:
2) All my methods listed in the profiler are suffixed by .invoke. Is it
normal or is pathological of something (I haven't aot-compiled anything, I
don't know if it may have an impact here), like unnecessary reflection
On Tue, Dec 10, 2013 at 4:25 AM, Phillip Lord
phillip.l...@newcastle.ac.ukwrote:
(defn ^IRI iri
[name]
(cond
(instance? String name)
(IRI/create ^String name)
(instance? java.net.URL name)
(IRI/create ^java.net.URL name)
(instance? java.io.File name)
(IRI/create
Are you aware of `lein check`? We have our some of our CI builds wired to
fail if that finds anything.
On Dec 9, 2013 4:12 AM, Phillip Lord phillip.l...@newcastle.ac.uk wrote:
I know about *warn-on-reflection* but is there anyway that I can get an
error-on-reflection instead?
I've been type
If I recall, properties are just syntactic sugar for awkwardly named
methods. Have you tried the compiler-generated get and set method-names?
On Dec 9, 2013 9:50 AM, Frank Hale frankh...@gmail.com wrote:
I'm trying to implement an interface that has properties but can't quite
seem to get it to
You won't find the results as easy to read as what you're asking for, but
clojure.tools.analyzer will show you calls that have been inlined by the
compiler.
On Nov 25, 2013 2:24 PM, Andy Smith the4thamig...@googlemail.com wrote:
In your example a full expansion might be : (. clojure.lang.Numbers
On Nov 22, 2013 4:09 PM, Sean Corfield seancorfi...@gmail.com wrote:
Perhaps a solution here is for me to
put it in a library, on Clojars, under a different name and let folks
migrate to that as an interim solution (i.e., identical API so folks
would just update project.clj and update some ns
! withdraw!. I don't see how else this can be done since
they are refs. I would appreciate feedback for this (hopefully) last
version...
many thanks in advance :)
Jim
On 21/11/13 13:19, John D. Hume wrote:
If you want to demonstrate STM with the deposit-withdraw-transfer example,
you definitely
If you want to demonstrate STM with the deposit-withdraw-transfer example,
you definitely need a ref for each account.
I'd suggest an atom for the account-num-balance-ref map (the bank) and
an atom for the account-num-generator, but you say coordination is
necessary for opening and closing
On Nov 21, 2013 3:32 AM, Zhemin Lin lin.zhe...@gmail.com wrote:
What if :cf, :cq are not fixed, and I don't really care about the keys,
but only the value of the value of the value ...?
Maps seem an awkward choice of data-structure for a scenario where you
don't know or care about the keys.
--
After some experience with excessively meta-programmed Ruby apps, I
generally try to design an API that is as clean (or almost) as what I'm
tempted to generate and avoid the metaprogramming. For example
(api/get-user-by-id 123) is only slightly nicer than (api/get-by-id :user
123), so if the
Rather than having hidden mutable state for wiring events to handlers,
would it be clearer if the main namespace just passed an :event-[handlers]
map to the event processor?
If that would create a huge, frequently changing data structure, each
namespace with handlers could expose an
One piece of feedback: the name datasource is confusing, given
javax.sql.DataSource, as seen, for example, at
http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html#
setting-up-a-data-source
On Thu, Nov 14, 2013 at 10:09 AM, Andrey Antukh n...@niwi.be wrote:
The last (non-authoritative) word on cider on this mailing list[1] was that
it is unstable. Is that really the case? Is it just a matter of many
packages that depend on it not being updated?
I tried checking the official mailing list[2] and was surprised to find
that it's private.
I'm trying to
For me, the one feature that can justify an internal DSL for generating SQL
is the ability to compose queries. I assume that's not on the Yesql
roadmap.
On Nov 11, 2013 5:10 AM, Kris Jenkins krisajenk...@gmail.com wrote:
https://github.com/krisajenkins/yesql
Yesql is a simple library for
What kind of optimal do you compulsively rearrange for? Performance?
Readability? Amusing terseness?
On Oct 18, 2013 6:20 PM, Kendall Shaw ks...@kendallshaw.com wrote:
With clojure in particular, I am having trouble not rearranging my code to
be what I think is more optimal in ways that seem
If you have some idea where to look in your code, or if there isn't much
code, I'd take a look at clojure.tools.analyzer/analyze-ns[1]. The output
is a little overwhelming, but it's pretty easy to navigate in
clojure.inspector. One issue may be finding the call (e.g. to some
clojure.core fn) that
I believe :dependencies and :resource-paths will be used for the classpath
at both build and run time. Does that meet your needs?
On Fri, Oct 11, 2013 at 8:00 AM, Gaofeng Zeng ndtm.i...@gmail.com wrote:
How use lein compile a Java project?
I know the java-source-paths can specify the src
On Wed, Oct 9, 2013 at 2:32 AM, Zack Maril thewitzb...@gmail.com wrote:
How does this vary from flatland/drip?
-Zack
Grenchman connects to a JVM-with-nrepl you previously launched. Repeated
invocations from the command line will hit that same JVM, potentially
building up state over time, and
On Oct 8, 2013 5:35 AM, Phillip Lord
However… I find that I am writing a lot of statements like this:
(cond (hash-map? v)
……
(vector? v)
……
(list? v)
…..
:else …..)
zcaudate, in what context(s) do you
On Oct 7, 2013 3:29 AM, Phillip Lord phillip.l...@newcastle.ac.uk wrote:
Tend to agree with this also. As nice as leiningen is, Clojure seems to
inherit from Java bulky projects. Compare these two hello worlds:
(println hello world)
to
#!/usr/bin/python
print( hello world )
Both
WebDriver's HtmlUnitDriver is only one of many supported drivers. Most
Selenium-using teams I've been on have driven real browsers using another
driver (which among other benefits allows one to generate realistic screen
shots).
The one team I was on that used HtmlUnit (a couple years ago) blamed
This seems intentional, not a case of docs lagging behind. If you look at
the source of let you can see that it has :special-form true in its
metadata so that it will remain documented as special even though it's just
a macro.
I assume the thinking is that it's more useful to continue to document
else is fair-game, with java bits being a
clear delineation of host-specific functionality.
On Fri, Oct 4, 2013 at 4:20 PM, John D. Hume duelin.mark...@gmail.comwrote:
This seems intentional, not a case of docs lagging behind. If you look at
the source of let you can see that it has :special
I believe it was on the clojure-docs page (linked from the
clojure.java.jdbc readme) where they talk about managing your own
connection.
The more idiomatic way may be to wrap the whole thing in some transaction
fn or macro. Sorry I'm not familiar with the API. A lot of vars are
deprecated, but
I don't use clojure.java.jdbc, so this may be non-idiomatic or just wrong,
but have you tried something like
(with-open [connection (jdbc/db-connection *db*)]
(json/write-str
(jdbc/query {:connection connection}
[SELECT * FROM...])))
On Tue, Oct 1, 2013 at 8:13 PM, Christian Jauvin
On Sep 28, 2013 1:47 PM, splondike splond...@gmail.com wrote:
Can anyone else think of a reason why we should not add type hints to the
functions, or why coercing the arguments to sets is better (or something
else I haven't thought of)?
IIRC, type hints are only used by the compiler to generate
I haven't tried this, so apologies if it couldn't even work, but have you
considered providing a fn in your library intended to be used inside the ns
macro? The refer-clojure :exclude boilerplate could be replaced with
something like this.
(ns my-thing
(:require core.matrix.ns)
On Fri, Aug 30, 2013 at 2:16 PM, JvJ kfjwhee...@gmail.com wrote:
Would it be possible (or even useful) to create some kind of generic IMeta
structure that can wrap other Java objects and have them act like normal,
except for the added metadata (or even other Clojure-esque features)?
Are you
On Aug 22, 2013 6:25 AM, Jim jimpil1...@gmail.com wrote:
this is funny! I thought about this approach but I originally considered
it to be a clever hack rather than the official way to do this...
If you need some data persisted or sent over the wire, then it should
probably be considered part of
On Aug 22, 2013 2:19 PM, Softaddicts lprefonta...@softaddicts.ca wrote:
Jim,
This is indeed a hack and not a best practice, maybe you're not using
the right tool for your problem...
- If you want to exchange data (think values), you should not be in
need of keeping types and meta
On Aug 19, 2013 5:53 AM, Phillip Lord phillip.l...@newcastle.ac.uk
wrote:
That would be true, if I knew what my code was going to do when I
started. But most of my code is used to investigate things that I don't
understand; so it evolves slowly over time. I don't know when I start
what
Though in some cases the performance impact could be significant, my
concern is readability. My understanding of the concept of partial function
application is that it's about supplying some but not all of the arguments.
So when I see `partial` in code, I expect more arguments to be supplied
Great demonstration. I'd love to have the camera video side-by-side w/
screencast video (and large enough to read your code as you play).
On Thu, Aug 8, 2013 at 9:16 AM, Sam Aaron samaa...@gmail.com wrote:
Hey everyone,
I just thought I'd give you a heads up of what I'm currently doing with
On Mon, Aug 5, 2013 at 8:37 PM, kovas boguta kovas.bog...@gmail.com wrote:
https://github.com/kovasb/paredit-widget
The bigger idea is that code editing should be available a la carte.
Tying something as fundamental as code editing together with IDE concerns
(file project management,
I think I'd rather see separate functions or macros for consuming from a
channel with the maybe throw behavior rather than having the standard
consume form(s) come with that feature (or threat, depending on whether you
want it). At that point you're back to the earlier advice to wrap
core.async to
It's probably worth distinguishing between the spec as documented on
clojure.org (or https://github.com/edn-format/edn if you prefer) and what
the reader permits. Symbols are documented to begin with a non-numeric
character (with a special note in the EDN spec about the names of
namespaced symbols
I've never tried it, but I like the idea of test fns returning their
results.
On Jul 24, 2013 8:30 AM, Steven Degutis sbdegu...@gmail.com wrote:
Also, I've been considering having a non-side-effecty way of returning
test results. What do people think? It would get rid of the last bit of
magic
I believe the intended idiom for as- (and the reason it doesn't take a
binding vector, like other forms that create locals) is
(- {}
(assoc :a a)
(as- ctx
(assoc ctx :b (some-fn ctx
On Jul 2, 2013 1:12 AM, Meikel Brandmeyer (kotarak) m...@kotka.de wrote:
Hi,
since 1.5 there is
Note that `merge` is basically just `conj` plus nil-checking, so there's a
good chance `conj!` already does what you need.
On Jul 2, 2013 5:33 AM, Amir Wasim amir.wa...@gmail.com wrote:
Is there reset! and merge a possibility for (transient {})
sometimes we have a doseq and it might be
It's worth knowing that the moment is implemented via a compare-and-set,
and if the value has been changed (by another thread), the fn you passed to
swap! will be called again with the atom's new value.
On Jun 28, 2013 11:57 PM, Greg g...@kinostudios.com wrote:
OK, I've found something that
On Jun 23, 2013 1:43 AM, kovas boguta kovas.bog...@gmail.com wrote:
what about the other cases? Random java objects and whatnot.
Those should be output in an EDN way, though its unclear what they would
mean when read. Would there be any attempt to convey their contents or
characteristics?
If you use for, which is lazy, wrap it in a doall to force it to do its
work before with-open closes your reader.
On Jun 21, 2013 6:52 AM, Jim jimpil1...@gmail.com wrote:
Only use 'doseq' when you don't care about the reuturn value. In other
words only for side-effect-y code. Use 'for'
On Jun 20, 2013 3:11 PM, Jason Gilman jason.gil...@gmail.com wrote:
(defn bar [my-list n]
(if (= n 0)
(peek my-list)
(bar (rest my-list) (dec n
(bar [1 2 3] 1)
It seems likely you want either first and rest* (to work from the front of
any seqable) or peek and pop (to work
Offhand it looks like the only RestFn you call from filter-link is
clojure.core/format. Have you tried replacing that with something like this?
(String/format (.get link 1) (doto (make-array String 1) (aset 0 (.get link
2)))
I'm not suggesting that's idiomatic, but if it addresses the issue then
On Jun 11, 2013 8:25 AM, Meikel Brandmeyer (kotarak) m...@kotka.de wrote:
Or another one:
(defn filter-lines
[rdr]
(- (line-seq rdr)
(mapcat #(str/split % #\s+))
(filter #(= 4 (count %) 9))
(into #{})))
(defn filter-file
[filename]
(with-open [rdr (io/reader
One neat hidden Github feature is that if you add the query string
parameter w=1 to any diff view, it will ignore whitespace-only changes
(like passing -w to git diff).
That doesn't help with those final lines with added or removed close
parens, but it still improves readability of many diffs.
On May 30, 2013 4:12 AM, Colin Yates colin.ya...@gmail.com wrote:
; the following would need to reify itself to be a Runnable, not got that
far yet :)
(defn execute [job result-queue] (let [result (job)] (.put result-queue
result)))
A no-args fn is both a perfectly good Callable and a
On May 26, 2013 8:53 PM, Mark Engelberg mark.engelb...@gmail.com wrote:
Another possible design choice is to store a domain-testing predicate in
the function's metadata.
Using metadata would be a much more idiomatic choice than using arity.
Multiple arities are idiomatically used (like method
purely for
macroexpansion and
there is no metadata available on the precondition post-macroexpansion.
Thanks,
Ambrose
On Mon, May 27, 2013 at 9:00 PM, John D. Hume duelin.mark...@gmail.comwrote:
On May 26, 2013 8:53 PM, Mark Engelberg mark.engelb...@gmail.com
wrote:
Another possible
On Fri, May 24, 2013 at 1:25 PM, atkaaz atk...@gmail.com wrote:
It kinda makes sense except I wouldn't have expected that on the map it
would return a vector (but then how else could it return both key and value
right? ) so everyone expects the input to the pred would be a vector
when passed
On Thu, May 23, 2013 at 11:30 AM, atkaaz atk...@gmail.com wrote:
So all I was saying above is that it should throw when [] is empty just as
it does when [] is not empty, but it doesn't throw when empty because it's
never called (by it i mean false not false?)
This sort of behavior is handy
On May 22, 2013 5:35 AM, atkaaz atk...@gmail.com wrote:
I find the wording of this confusing otherwise it returns the value of
the last expr. (and) returns true.
I mean, I know it returns the last true value, but that's because I've
tested it not because the doc is trying(failing) to tell me so
In the xalan.ext :gen-class the static methods are named foo and bar
but your xslt template is using the (prefixed) names of the clojure impl
fns. Did you try just foo and bar instead?
To be sure the class and methods are available in your test, rather than
calling the clojure fns, call the
I agree with the advice you've gotten, but since no one has mentioned it, I
wanted to point out that you can have encapsulation w/o protocols with
something like this.
Assume a queue is your only state and `add` and `clear` are your private
fns that take a queue as first argument.
(defn
across :).
I say that not be snarky, but to highlight how much it really does change
things. The open-closed principle now becomes much simpler to realise for
example.
Thanks again.
On 10 May 2013 12:44, John D. Hume duelin.mark...@gmail.com wrote:
I agree with the advice you've gotten
On Thu, May 9, 2013 at 7:15 PM, Dave Sann daves...@gmail.com wrote:
There are several projects that provide a bunch of base level/common
functions and extensions (similar to those here) beyond core Clojure. And I
am sure that many people have their own collection of useful utilities like
Did you try the downloads link here?
http://openrules.com/jsr331/
On May 6, 2013 12:10 AM, Caocoa p.de.bois...@gmail.com wrote:
Well, so I just tried the following commands:
user= (ns mx.clojure.contemporary.pitch-centricity-and-symmetry
#_= (:import [jm.music.data
#_=
On May 2, 2013 2:04 AM, David Toomey dbtoo...@gmail.com wrote:
Is there anything
I could show that could reveal the problem?
Yes, you should have shown the stack trace of the exception (or at least
the part from the top of the text down to your code).
But even without that, you have an error
On Thu, May 2, 2013 at 8:33 AM, Phillip Lord
phillip.l...@newcastle.ac.ukwrote:
Well, I guess I will code up a simple macro; in my current case, I can
infer the arglists anyway.
Once you do, be sure to weigh the complexity against:
(defn my-partial-function [y] (my-function 10 y))
--
--
I've never used noir and have barely used 4clojure, but both of them
apparently do hidden global things that make it hard to know the context in
which your code is running. Your app needs to be wrapped in noir's
`wrap-noir-session` middleware in much the same way this blog post shows
Ring's
As a user of Codeq with Navgeet's proposed additions, I would definitely
want to see macro usages along with runtime var references. So you're right
that you'd want the result of analyzing the subject code with all macros
expanded, but it would also be valuable to see the macros that got expanded
On Apr 29, 2013 1:07 PM, Jonathan Fischer Friberg odysso...@gmail.com
wrote:
If you don't want to set the initial value to nil, set it to ::unbound or
similar. Should be very
hard to accidentally bind the same value.
Please take Jonathan's advice if nil is a valid value for a user to bind;
use
On Sun, Apr 28, 2013 at 5:46 AM, AtKaaZ atk...@gmail.com wrote:
= (defn abc [] 3)
#'ants/abc
= (loop [a 1]
(when (= 1 a) (recur (abc
NO_SOURCE_FILE:2 recur arg for primitive local: a is not matching
primitive, had: Object, needed: long
Auto-boxing loop arg: a
nil
The compiler
On Fri, Apr 26, 2013 at 11:58 AM, Steven Degutis sbdegu...@gmail.comwrote:
I found that I want to have multiple multi-methods, but grouped
together, much like an interface.
There's no syntax for grouping multimethods, but wouldn't it be good enough
to put the defmulti forms near one another?
Both `for` and `doseq` support the same vector form preceding a body. `for`
returns a lazy sequence and is often appropriate for a purely functional
body. `doseq` is not lazy and returns nil, so it is only appropriate when
you want to run the body for side effects.
Take a look at
You can use a map destructuring form on a vector like so:
(let [{x 0 y 1 :or {x 0 y 0}} [7]] [x y])
returns [7 0]
On Fri, Apr 12, 2013 at 5:00 PM, henry clifford h.a.cliff...@gmail.com wrote:
I'm trying to use the :or destructuring syntax as seen here applied to a map
(def point {:y 7})
This seems like a good fit for http://clojure-doc.org/
--
--
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
On Apr 4, 2013 6:54 AM, Jim - FooBar(); jimpil1...@gmail.com wrote:
Thanks John,
I came up with this, which uses destructuring quite heavily and might
slow things down...
(reduce (fn [s [t1 t2 w3 v]] (assoc-in s [t1 t2 w3] (/ (count v) all))) {}
(for [[k1 v1] ems [k2 v2] v1 [k3 v3] v2] [k1
On Thu, Apr 4, 2013 at 8:06 AM, David Powell djpow...@djpowell.net wrote:
You could use the long-form of map destructuring:
(let [{odd true even false} (group-by odd? (range 1 10))]
(println odd)
(println even))
I do this frequently. Do be careful that if your predicate doesn't
return
Destructure the map entry.
(for [[k vs] some-map, v vs] v) or whatever.
On Wed, Apr 3, 2013 at 1:44 PM, Jim - FooBar(); jimpil1...@gmail.com wrote:
Hi all,
I 've recently come across this idiom (instead of nested reduces - from
Christophe's blog post of course!)
(reduce f init (for [x xs, y
When you want a side effect and don't care about return values, it's
idiomatic to use doseq.
(doseq [c calls-log] (log-call c))
On Mar 30, 2013 4:23 AM, Neale Swinnerton ne...@isismanor.com wrote:
;(.log js/console (pr-str calls-log
(map log-call calls-log)))
map is lazily
On Mar 27, 2013 1:56 AM, Shantanu Kumar kumar.shant...@gmail.com wrote:
Sorry, in the last illustration, the (binding [*deps* deps] ...) cannot
be useful for Compojure route handlers because dynamic vars are bound at a
thread-local level; you will probably have to `alter-var-root` it to some
var
https://github.com/emezeske/lein-cljsbuild/blob/0.3.0/doc/CROSSOVERS.md
On Mar 27, 2013 6:40 AM, Steven Obua ste...@obua.de wrote:
Hi,
I have thought long which language to use for my current project. My main
choices were Scala and Clojure, and I decided on Clojure mainly because I
need to
It looks like MimetypesFileTypeMap wants a path to a plain file. I can't
try this right now, but I think you want the constructor that takes an
InputStream. Something like
(MimetypesFileTypeMap. (io/input-stream (io/resource thefile)))
though if you just passed /thefile to io/input-stream, that
Your maybe- does almost the same thing as Clojure 1.5's some- but without
support for naked fns (like `(some- 1 inc)`). It also evaluates each
step but the last twice (once for the `if`, once when inserted after
`op`).
If you don't want to switch to some-, I'd recommend you use when-let to
avoid
On Tue, Mar 19, 2013 at 2:58 PM, Jim - FooBar(); jimpil1...@gmail.com wrote:
awsome!...the full thing actually is {{:keys [w1 w2 w3]} :weights u
:uni-probs b :bi-probs t :tri-probs}
You might also consider
{:keys [uni-probs bi-probs tri-probs]} {:keys [w1 w2 w3]} :weights}
--
--
You received
It looks like you're missing (ns ...) forms at the top of each file.
That tutorial doesn't show them, but lein would have generated them
for you when it generated the project. The key element is that your
test file should have a (:use clojure.test) in the (ns) form, which is
what allows you to use
One argument against using exceptions for commonplace occurrences (like
invalid user input) is that the structure of the code may make it difficult
to see where those things can pop up, which can lead to misunderstanding
and introduction of bugs.
Even with Java's checked exceptions, where a
On Tue, Sep 1, 2009 at 4:43 PM, Luc
Prefontainelprefonta...@softaddicts.ca wrote:
Hi John,
Clj-record will make its way into production in a couple of weeks.
It's been working flawlessly in high volume tests here.
Hi Luc,
That's great to hear. I recently set up a Google Group for
There may already have been a discussion about this in IRC, but I
would have loved to see the 'are' macro continue to support the old
syntax (maybe with deprecation warnings) as well as the new until
after 1.1 is released. This change makes it relatively expensive for
any library with a
On Thu, Jun 4, 2009 at 12:09 PM, Eric Thorsenethor...@enclojure.org wrote:
what kind of interest there might be in creating a Clojure user group
in the NY metro area to meet up in Manhattan once a month to discuss
all things Clojure.
I'd make an effort to attend monthly Clojure meetings in
On Fri, May 15, 2009 at 6:02 AM, Kees-Jochem Wehrmeijer
henc...@gmail.com wrote:
beyond my skill level. At first I tried to start a swank server from
my servlet, but that failed because GAE doesn't allow you to open
sockets. By decompiling and disabling that, I could probably work
This still
Submitted as
http://code.google.com/p/clojure/issues/detail?id=106
--~--~-~--~~~---~--~~
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
To unsubscribe from
On Sat, Apr 11, 2009 at 3:49 PM, Richard Lyman richard.ly...@gmail.com wrote:
http://www.lithinos.com/Compiling-Clojure-applications-using-Ant.html
What do you guys think?
-Rich
It's a bit simpler to use clojure.lang.Compile as a main class.
Here's the relevant bit from one of my
Rich,
Can I submit an issue and patch for this? I have a CA on file.
Thanks.
-hume.
On Sun, Apr 5, 2009 at 8:15 PM, John D. Hume duelin.mark...@gmail.com wrote:
Currently it does this:
(try
the good stuff ...
(catch Exception e
(.printStackTrace e *err*)))
(flush
On Thu, Apr 9, 2009 at 11:58 AM, samppi rbysam...@gmail.com wrote:
I've been whipping up a simple schema library for validating Clojure
data based on their tags, but I'm worried that what I'm doing might be
redundant with an already existing library. Is there something, such
as in
As predicted, Google has now released Java support for AppEngine. I
was lucky enough to get an early look, which I dedicated entirely to
Clojure.
Here's a writeup:
http://elhumidor.blogspot.com/2009/04/clojure-on-google-appengine.html
Have fun!
-hume.
--
http://elhumidor.blogspot.com/
Earlier today I was surprised to notice that some test-is unit tests I
was running from Ant failed, but it still reported BUILD SUCCESSFUL. I
figured I'd forgotten to include failonerror=true in the java task,
but it was there. So I played around and found that
$ java -cp clojure.jar
1 - 100 of 118 matches
Mail list logo