My apologies (sincerely). Won't use that again.
--
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 post.
To
Hi,
I fear that I have to excuse me for triggering a debate about principles of
behavior patterns on this list. Of course, I tried to answer my question
myself using Google. Perhaps I made a mistake on the selection of the right
search pattern so I didn't find satisfactory results. The lmgtfy
That was meant as a response to the other thread.
On Fri, Jun 26, 2015 at 10:35 AM, Ambrose Bonnaire-Sergeant <
abonnaireserge...@gmail.com> wrote:
> They apparently differ in the return type. I don't think
> clojure.lang.Reflector considers the return type hint
> when resolving methods.
>
> Than
They apparently differ in the return type. I don't think
clojure.lang.Reflector considers the return type hint
when resolving methods.
Thanks,
Ambrose
On Fri, Jun 26, 2015 at 4:16 AM, Stephen Wakely
wrote:
> javap gives :
>
> public com.cra.figaro.language.AtomicDist
> apply(scala.collection.
I ported Allison Parrish's Pronouncing python library, an interface to the
CMU Pronouncing Dictionary, to clojure:
https://github.com/wiseman/clj-pronouncing
You can use it to count syllables, find rhymes, etc.:
user> (require '[com.lemonodor.pronouncing :as pro])
user> (->> "literally"
Yeah, looks interesting, but unfortunately still in alpha, so I can't
profit from it at this stage. But will check later!
Thank you all for your responses! It's been really great source of new
ideas and thoughts about API benchmarking and blocking/non-blocking
approaches :)
On Thursday, 25 Ju
javap gives :
public com.cra.figaro.language.AtomicDist
apply(scala.collection.Seq>>, com.cra.figaro.language.Name,
com.cra.figaro.language.ElementCollection);
public com.cra.figaro.language.CompoundDist
apply(scala.collection.Seq,
com.cra.figaro.language.Element>>, com.cra.figaro.language.N
So using reflection on the objects gives the following signatures - they
have identical signatures :
{:name apply,
:return-type com.cra.figaro.language.CompoundDist,
:declaring-class com.cra.figaro.language.Dist$,
:parameter-types
[scala.collection.Seq
com.cra.figaro.language.
I am sadly quite clueless when it comes to Java.
De-compiling the Scala class file to Java gives me the following:
public AtomicDist apply(Seq>> clauses,
Name name, ElementCollection collection) {
return new AtomicDist(name, clauses.toList(), collection);
}
public Compou
Scala has to compile down to JVM bytecode just like Clojure, but it may
change method signatures along the way.
You could try running `javap` to disassemble the compiled Scala bytecode
and figure out what the method signatures actually are. Or use Java
reflection to examine the objects you have
Hi Sam,
Transducers are a new feature, and best practices are still emerging.
Transducing/reducing is always non-lazy, so it's *less* risky to have side
effects in a reduce compared with side effects in a lazy sequence.
Still, I would offer the same advice I give for lazy sequences. Keep your
This seems bad, is this bad:
(defn to-db
[conn]
(fn
([val] (upload-to-my-db conn val))
([_ val] (upload-to-my-db conn val)))
(defn -main []
(transduce my-preprocessing-xf (to-db (get-db-conn)) seq-of-things-to-
preprocess-and-upload))
I ask only because
1) Plugging the side-effec
The sidebar on reddit is actually pretty decent:
http://www.reddit.com/r/clojure
My #1 resource for looking up docs is nowadays clojuredocs.org since it
gives examples/comments for most of the functions.
HTH
On Thursday, June 25, 2015 at 4:59:12 AM UTC-4, Baskar Kalyanasamy wrote:
>
> hi every
There was just this question the other day:
http://stackoverflow.com/questions/30922413/why-does-metadata-symbol-not-work
There is also a few threads a few weeks ago here on google groups about it:
https://groups.google.com/d/msg/clojure/_e7vBom2acw/0AAKTiGuzv4J
HTH
On Thursday, June 25, 2015
Suppose we have a structure like this:
[ :a [:a :b :c][:a [:b1 :b2] :c ] ]
That is a *required* list. It consists of keywords and *paths* (nested
vector like [:a :b :c] above). A path consists of keywords and
*alternates* (a twice-nested vector like [:b1 :b2]) above.
It's easy
to get the meta-data of a var (I'm guessing symbol n refers to a var...)
you should call it on the var iself, not its value or symbol:
user=> (def ^{:some-meta 123} n 0)
#'user/n
user=> (meta n)
nil
user=> (meta 'n)
nil
user=> (meta #'n)
{:some-meta 123, :ns #, :name n, :file "NO_SOURCE_PATH",
I had to query it myself not knowing what this site was all about,
nice tutorial, I think I understood it :)
Luc P.
> raould,
>
> I find lmgtfy links to be a condescending way to answer a question and I
> would prefer that we not use them on this list. If you have an answer or a
> link to one
Have you looked at yada http://yada.juxt.pro/user-guide.html ?
It's an aleph compatible alternative to liberator that is swagger
compatible with swagger out of the box.
On Tuesday, June 23, 2015 at 5:33:50 AM UTC-4, Mike Grabowski wrote:
>
> Hey guys,
>
> I am so excited to join Clojure bandwago
Why doesn't this work?
user=> (meta ^{:some-meta 123} 'n)
nil
While this works:
user=> (meta ^{:some-meta 123} (fn [n] n))
{:some-meta 123}
And this works too:
user=> (meta (with-meta 'n {:some-meta 123}))
{:some-meta 123}
Is this intended behavior? If so, what's the reasoning?
Thanks,
Sarki
raould,
I find lmgtfy links to be a condescending way to answer a question and I
would prefer that we not use them on this list. If you have an answer or a
link to one, then respond with this, otherwise I do not see a reason to
post this.
Thanks,
Alex
On Thursday, June 18, 2015 at 3:35:53 P
Alex,
I just realised my mistake. My apologies to the poster.
Regards,
BG
On Thu, Jun 25, 2015 at 6:49 PM, Alex Miller wrote:
> Hey BG,
>
> Perhaps the OP did Google already but saw too many choices and was looking
> for an informed decision about where to go first.
>
> Using a lmgtfy link is a
Hey BG,
Perhaps the OP did Google already but saw too many choices and was looking
for an informed decision about where to go first.
Using a lmgtfy link is a condescending way to answer a question and I don't
want this list or this community to be that kind of place. I would prefer
people to
Do you know how to call this method from Java 1.4? That will probably give
enough context to use in Clojure type hints.
Thanks,
Ambrose
On Thu, Jun 25, 2015 at 9:03 PM, Stephen Wakely
wrote:
> Interesting. That could be a good last resort.
>
> On Thu, Jun 25, 2015 at 1:27 PM Andy Fingerhut
> w
Interesting. That could be a good last resort.
On Thu, Jun 25, 2015 at 1:27 PM Andy Fingerhut
wrote:
> Sorry, I do not know whether Clojure can or cannot determine the correct
> overload in this situation.
>
> All I have is a weak suggestion that work well enough: have you considered
> creating
Sorry, I do not know whether Clojure can or cannot determine the correct
overload in this situation.
All I have is a weak suggestion that work well enough: have you considered
creating wrapper functions, e.g. in Scala or Java, that have different
enough function signatures that Clojure can easily
Living Clojure & Do ~20 project euler problems (there are few open source
repos in Clojure you can compare your algorithms with).
On Thursday, 25 June 2015 10:59:12 UTC+2, Baskar Kalyanasamy wrote:
>
> hi everyone,
> can somebody send me materials for clojure. i am a
> beginner
Have you tried the most obvious place ?
http://clojure.org/getting_started
Kind regards
On Thursday, June 25, 2015 at 10:59:12 AM UTC+2, Baskar Kalyanasamy wrote:
>
> hi everyone,
> can somebody send me materials for clojure. i am a
> beginner and i also want to in which tool o
http://www.braveclojure.com/
On Thu, Jun 25, 2015 at 12:10 PM, Baishampayan Ghose
wrote:
> http://lmgtfy.com/?q=clojure+tutorial
>
> Hope this helps.
>
> ~BG
>
> On Thu, Jun 25, 2015 at 7:21 AM, Baskar Kalyanasamy
> wrote:
> > hi everyone,
> > can somebody send me materials for
http://lmgtfy.com/?q=clojure+tutorial
Hope this helps.
~BG
On Thu, Jun 25, 2015 at 7:21 AM, Baskar Kalyanasamy wrote:
> hi everyone,
> can somebody send me materials for clojure. i am a beginner
> and i also want to in which tool or software i should practice in.
> thanks in adv
hi everyone,
can somebody send me materials for clojure. i am a beginner
and i also want to in which tool or software i should practice in.
thanks in advance
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send
I am trying to call into some Scala that has the following overloaded
methods :
def apply[T](clauses: (Double, Element[T])*)(implicit name: Name[T],
collection: ElementCollection) =
new AtomicDist(name, clauses.toList, collection)
def apply[T](clauses: (Element[Double], Element[T])*)(impl
Seems like the next step for this would be for me to put together a blog
with an example Component system, and its equivalent Yoyo system?! :)
Should have time for that over the weekend.
James
On Thursday, 25 June 2015 09:05:39 UTC+1, James Henderson wrote:
>
>
>
> On Wednesday, 24 June 2015 11
On Wednesday, 24 June 2015 11:17:41 UTC+1, Atamert Ölçgen wrote:
>
>
>
> On Tue, Jun 23, 2015 at 11:47 PM, James Henderson > wrote:
>
>> Hi Atamert - thanks :)
>>
>> I thought it might be preferable to keep the call to (latch)explicit -
>> it means that ylet can be used in nested calls, too - f
33 matches
Mail list logo