Hi,
All I was able to come up with was this
(defn altsum[n] (reduce + (map * (range 1 (inc n)) (interpose -1 (repeat
1)
... works quite well, however I was wondering if there is more idiomatic
way to write that.
Thanks,
Andy
--
You received this message because you are subscribed to the
On Thu, Nov 13, 2014 at 6:36 PM, Dave Ray wrote:
> How about:
>
> (->> (map * (cycle [1 -1]) (range 1 n))
> (reduce +))
>
>
Thx - I did not know cycle before. I think this is it, although I prefer
nesting over threading. This is another I was thinking about:
--
You received this message b
(reduce + (map * (mapcat (fn[_] [1 -1]) (repeat nil)) (range 1 n)))
not the best pattern for this case, but possibly useful to generate
alternated values ...
A.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo
On Thu, Nov 13, 2014 at 7:23 PM, Robert Levy wrote:
> You don't need this for numbers over 900 right?
>
>
I see what you mean. But no, I just practice and try to capture patterns.
So, going after your example I got following:
(reduce + (map applyv (cycle [+ -]) (range 1 10)))
where something li
ers that use or require/refer it).
Andy
On Sat, Nov 15, 2014 at 8:31 AM, Udayakumar Rayala
wrote:
> twice>
>
> Hi,
>
> Is it idiomatic to have defn inside defn? eastwood throws def-in-def
> warning when I have the following code:
>
> (defn double-sq
Your description doesn't raise any particular issues in my mind, other than
a suggestion to try a JVM profiler to see if it helps you find anything,
e.g. free trial of YourKit.
Andy
On Mon, Nov 17, 2014 at 2:28 AM, Alexander L.
wrote:
> Hi all,
>
> I understand that the following
Thanks for all the ideas. I like cyclefn the most, a bit of investment
resulting in super clean output.
Andy
On Sat, Nov 15, 2014 at 9:35 AM, Ben Wolfson wrote:
> or
>
> (defn enumerate [xs] (map vector (range) xs))
>
> (defn altsum [n] (reduce (fn [acc [i f]
)
user=> (map (colfn {:is-dir fs/directory?, :dir identity}) (filter
fs/directory?(set (fs/list-dir "."
({:is-dir true, :dir "src"} {:is-dir true, :dir "target"} {:is-dir true,
:dir ".git"})
My question is, if something like colfn already exists? The idea
a let binds values to symbols,
but those symbols are never used. Disabled by default.
Go squash some bugs!
Jonas Enlund, Nicola Mometto, and Andy Fingerhut
[1] https://github.com/jonase/eastwood#editor-support
[2] https://github.com/jonase/eastwood#whats-there
--
You received this message bec
from. It doesn't have any listings at all for the seque function that I
can see:
http://crossclj.info/fun/clojure.core/seque.html
Andy
On Tue, Nov 18, 2014 at 9:55 AM, Brian Craft wrote:
> Anyone have examples of when & how to use seque?
>
> --
> You received this me
I don't have any speculation to give, but wanted to link to this recent
thread that has a few coments:
https://groups.google.com/forum/#!topic/clojure/cFT_sjb4Zx8
On Wed, Nov 19, 2014 at 5:36 PM, Jacob Goodson
wrote:
>
> http://opensource.com/business/14/11/microsoft-dot-net-empower-open-source-
of people who use Clojure
do so on Android.
Andy
On Sun, Nov 23, 2014 at 2:39 PM, Lorentzz00 wrote:
> Hello to all;
>
> So, the Clojure REPL for Lollipop doesn't
> Work. Why? Why won't it install? When will you migrate to 1.6 or 1.7?
>
> Hope to hear something soon.
I've recently been serialising some data using Edn, and to date this has
caused no problems. During some tests today, I serialised a string
representing a file path that originated on a windows machine "\My
Documents\somedoc.txt". Edn throws a runtime exception when reading this
back claiming:
Thanks for both suggestions guys, and yes - I'm using prn-str - apparently
the wrong one. It's a trivial change so I will start there.
Thanks again, appreciate it.
Andy
On Tuesday, November 25, 2014 2:00:44 PM UTC, James Reeves wrote:
>
> On 25 November 2014 at 12:23, Andy
he storage. *grumble* On the
positive side, I'm now in a position to add a useful example to the
grimoire.
-A
On Wednesday, November 26, 2014 7:41:46 AM UTC, Andy Dwelly wrote:
>
>
> Thanks for both suggestions guys, and yes - I'm using prn-str - apparently
> the wrong one.
h "locking", which is not
necessarily a nice thing to do. I also tried to use refs here, however they
do not fit well here either and the solution is not as nice as it could be.
After that long introduction, I would like ask for some insight Thanks
in advance ...
Best,
Andy
--
e 1.8 features of interest list, if my
understanding is correct in the previous paragraph:
http://dev.clojure.org/display/design/Release.Next+Planning
Andy
On Sat, Dec 6, 2014 at 2:44 PM, Ken Restivo wrote:
> Update: I'm already aware of
> http://dev.clojure.org/display/design/%2
.cache memoize is based of, is not thread safe.
It uses ConcurrentHashMap's "put" under the hood, instead of atomic
"putIfAbsent". I might be completely wrong here though.
Cheers,
Andy
--
You received this message because you are subscribed to the Google
Groups &q
(locking ~a
(when (not (contains? @~a ~k))
(swap! ~a assoc ~k nil)
(future (swap! ~a assoc ~k (~f ~k)))
)
)
)
Which seems to do what I need:
user=> (defn f[k] (Thread/sleep 3000) k)
#'user/f
user=> (when-map-future-swap! a "arg" f)
#
user=>
or even better (using future themselves as a "marker" in the atom):
(defmacro map-future-swap! [a k f]
`(locking ~a
(when (not (contains? @~a ~k))
(swap! ~a assoc ~k (future (swap! ~a assoc ~k (~f ~k
)
)
)
--
You received this message because you are subscribed t
va interop, and in many (but not
all) cases, file I/O requires it.
Andy
On Sun, Dec 7, 2014 at 8:27 PM, Fluid Dynamics wrote:
> => (with-open [in (io/reader (io/resource "foo"))] (edn/read in))
> ClassCastException java.io.BufferedReader cannot be cast to
> java.io.Pushbac
locking at all. However I still fail to see, how in a
multithreaded context memoize/cache prevents executing a given function
more than once (which I want to avoid at any cost here) since cache lookup
and swap! does not seem to be atomic :
https://github.com/clojure/core.cache/blob/master/src/main/clo
are existing Clojure libraries that smooth some of this over
for the developer?"
Thanks,
Andy Fingerhut
On Mon, Dec 8, 2014 at 1:13 PM, Fluid Dynamics wrote:
> On Monday, December 8, 2014 4:01:28 PM UTC-5, Michał Marczyk wrote:
>>
>> On 8 December 2014 at 21:17, Fluid Dynamics wrot
eases for x > 0.
My guess is that starting with 1.4.0, the Clojure team decided not to
bother creating a 1.n.x branch unless they actually wanted to make a 1.n.1
release, and they never did.
Andy
On Mon, Dec 8, 2014 at 6:48 PM, GlassGhost wrote:
> I see there is latest branches f
latest stable release. It will need to change
over time, but not very often (maybe once or twice a year, if the past few
years is an accurate predictor).
Andy
On Mon, Dec 8, 2014 at 7:00 PM, Andy Fingerhut
wrote:
> I can't state authoritatively why, but here is some evidence:
>
>
Looking through my recent work I see that a number of atoms, swap! and
reset! calls have snuck into my work, usually when there's an expensive
operation like reading and parsing a large file or connecting to a
database. I find I'm doing things like
(def conf (atom nil))
(defn config []
(if (
pointer pointers
> and wanted to break up the notation. :P)
>
> On Tue, Dec 9, 2014 at 11:18 PM, Fluid Dynamics > wrote:
> >
> >
> > On Tuesday, December 9, 2014 7:19:27 PM UTC-5, Steven Yi wrote:
> >>
> >> Hi Andy,
> >>
> >>
ay) executing the operation strictly once
> but also (atom) allow for changing the underlying value (i.e. clear the
> cache).
>
> On Wednesday, 10 December 2014, Andy Dwelly > wrote:
>
>> Thanks to everyone for the responses. I was completely unaware of
>> core.memoize a
I'm somewhat late to the party, but what the hey - it's a quiet Sunday
afternoon, and for my own amusement I came up with:
(defn spaces [n] (apply str (take n (repeat "."
(defn n->a [n] (char (+ n (int \A
(defn a->n [a] (- (int a) (int \A)))
(defn gap [n] (spaces (dec (* 2 n
(defn
jureScript. I will first verify that this option is ignored by
Clojure/Java before eliminating such warnings.
Andy
[1] https://github.com/jonase/eastwood
[2]
https://github.com/jonase/eastwood/blob/master/README.next.md#wrong-ns-form
[3] https://github.com/jonase/eastwood#for-eastwood-developer
Also, perhaps
occurrences of the problem could be eliminated by cleaning any existing
.class files and recompiling from scratch.
Andy
On Sun, Dec 14, 2014 at 11:18 AM, Alex Miller wrote:
>
> If you could refer to a ticket, an example, or really any other
> information, that might be a que
It looks very similar to the pattern I was trying to avoid in the first
place. I've also got the problem of multiple threads (and its been pointed
out that my original solution was not thread safe). In my experience bugs
of an 'extremely rare but could conceivably happen' nature are the sort of
difference between determining the cause of such problems, vs. them
remaining a mystery.
Thanks,
Andy
On Tue, Dec 16, 2014 at 1:48 PM, Mike Fikes wrote:
>
> I've recently seen the same error:
>
> Loading test/cljs/classroom_checkout/test1.cljs... done
> CompilerException java.l
:-)
...
Ideally, I wish that `clojure-mode` adapts to the style of given project
and helps to format my changes accordingly. Again, probably not so easy to
do either.
Best regards,
Andy
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To po
my custom hybrid of a queued future-s. I have also
a version done in core.async - I will try to write it up in a separate
piece at some point ..
Best regards,
Andy
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, sen
, Laurent Petit, and other
contributors. See [2].
Below are some of the changes since version 0.2.0. A complete list is
at [3].
Go squash some bugs!
Jonas Enlund, Nicola Mometto, and Andy Fingerhut
[1] https://github.com/jonase/eastwood
[2] https://github.com/jonase/eastwood#editor-support
[3
or this commonly used construct is much worse in this release
than in previous ones". Also useful is "we tried the latest Clojure
release on Clojure code base X, and everything is working as expected."
Andy
On Tue, Dec 30, 2014 at 2:01 PM, David James wrote:
> I
Possibly the most relevant Clojure ticket in JIRA related to your question
is: http://dev.clojure.org/jira/browse/CLJ-394
If you click the "All" tab at the top of the comments, you can see a more
full history of the changes made to the ticket's description over time.
When it was originally created
I have not used it, but from the docs it appears there is at least some
overlap with this library:
https://github.com/qerub/camel-snake-kebab
It mentions in its docs that it avoids using regex's.
Andy
On Tue, Jan 6, 2015 at 11:25 AM, Noam Ben-Ari wrote:
> Hi,
>
> I'
Hi,
Is it possible to change default value of
clojure.pprint/*print-right-margin* var and alikes in one place. I use
pprint in many places and would like to avoid wrapping it with "binding" in
every case.
Thanks,
Andy
--
You received this message because you are subscribed to the Goo
mit for CLJ-979 that introduced the change in
behavior. I can even take the CLJ-979 patch and patch it into Clojure
1.7.0-alpha4, and I get the same exception. Details of the exception and
stack trace I get below.
Andy
I created a project directory to run the command below in. It simply has a
dep
This document goes into fairly deep dive on other ways to do it, including
a gotcha on edge cases of using something like (comp - compare) that will
rarely if ever bite you, but some people may want to know about them to
avoid them.
https://clojure.org/guides/comparators
Andy
On Wed, Oct 14
not be
interested in making them 100% equivalent in all ways. (This is only my
personal guess. Realize that making specifications and implementations
match can be an exhausting and unrewarding process.)
Andy
On Sat, Oct 31, 2020 at 5:38 AM 'EuAndreh' via Clojure <
clojure@googleg
oject, or utility library, etc.
https://github.com/joyofclojure/book-source/blob/master/first-edition/src/joy/breakpoint.clj
The source for the macro named `contextual-eval` is here:
https://github.com/joyofclojure/book-source/blob/master/first-edition/src/joy/macros.clj
Andy
On Mon, Feb 1,
ile.
*International Conference on Functional Programming*
The Scheme Workshop 2022 is being held as part of this year's International
Conference on Functional Programming. Here is the ICFP site
<https://icfp22.sigplan.org/home/scheme-2022> for the workshop.
Sincerely,
Andy Keep, General C
al Conference on Functional Programming*
The Scheme Workshop 2022 is being held as part of this year's International
Conference on Functional Programming. Here is the ICFP site
<https://icfp22.sigplan.org/home/scheme-2022> for the workshop.
Sincerely,
Andy Keep, General Co-chair
Arthur
a PDF file.
*International Conference on Functional Programming*
The Scheme Workshop 2022 is being held as part of this year's International
Conference on Functional Programming. Here is the ICFP site
<https://icfp22.sigplan.org/home/scheme-2022> for the workshop.
Sincerely,
Andy Kee
ising too many elements of the lazy
sequence.
Any insight?
Thanks,
Andy
--
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
quot;lazy" sequence of a
size determined by specified in the content and the entire thing read of
I/O without a way of telling that I/O is closed. "read" function hangs and
blocks the code if performed too many times.
I redesigned my code to avoid that combination.
Best,
Andy
--
crossclj.info lists 63 projects with core.incubator as a dependency. Not
sure how widely used those projects are themselves:
https://crossclj.info/ns/org.clojure/core.incubator/0.1.3/project.clj.html
Andy
On Tue, Jun 7, 2016 at 12:01 PM, Alex Miller wrote:
> I'm not opposed to it b
it in
cases where such Clojure data may be present.
http://clojuredocs.org/clojure.core/pr
http://clojuredocs.org/clojure.edn/read
Andy
On Fri, Aug 5, 2016 at 6:42 PM, Blake Miller wrote:
> I agree with Herwig in principal ... even though EDN is not meant to cover
> the whole set of po
or Vetted.
As far as expectations go, there are enough other things being worked on
for Clojure 1.9 that I would not bet any money this ticket will make it in
to that version. Disclaimer: I am only an observer in this, not a
decision-maker.
Andy
On Sat, Aug 13, 2016 at 4:18 AM, Łuk
Of course you can copy the newer definition of assoc-in into your own projects
and use it if you like, but that probably doesn't prevent your little bit of
sadness.
Andy
Sent from my iPhone
> On Aug 14, 2016, at 5:27 AM, Łukasz Kożuchowski
> wrote:
>
> I am a little sa
e lists of top-voted tickets every week or so, available here:
http://jafingerhut.github.io/clj-ticket-status/clojure-ticket-info.html
Andy
On Thu, Aug 18, 2016 at 12:20 PM, Paulus Esterhazy
wrote:
> Just this week I have wished for an extended version of `assoc-in`
> more than once. The rea
ord cannot have metadata, but symbols,
lists, vectors, and maps can.
Andy
On Mon, Aug 22, 2016 at 6:27 PM, Alex Miller wrote:
> Sorry, I missed this one in the thread somehow. This happens to be a case
> where you have *both* defn and destructuring specs in play, so it has even
&g
to figure out which part spec is complaining about.
Andy
On Wed, Aug 24, 2016 at 6:39 AM, Stuart Halloway
wrote:
> Brian originally raised 5 points that were concrete & specific, and
> therefore potentially actionable. That is usefully-shaped feedback, thanks
> Brian! My take on
redefined twice, ending
by being a function that takes 3 arguments only. If you want a function
that takes multiple different arities, you must use either the latter way
of defining it, or if you want 'n or more arguments', the syntax (defn
himom [required-arg1 required-arg2 & opti
Anyone with a free account can create issues in Clojure's JIRA tracker.
Just go to the link below, and if you see a "Log In" link near the top
right of the page, click it and create an account on the next page that
appears.
http://dev.clojure.org/jira/browse/CLJ
Andy
On We
hose explicitly endorsed in the documentation
might be useful. I also suspect a lot of people would want it off by
default, given that it might be fairly noisy for some projects.
Andy
On Tue, Nov 8, 2016 at 8:17 AM, Steven Yi wrote:
> Hi Alex,
>
> Thanks for the reply, that was how I und
version of the code using
records and Java HashSet's competitive with your fastest code or not, but
you may wish to try it.
Andy
On Mon, Nov 21, 2016 at 12:05 PM, Didier wrote:
> I experimented with this a lot, and took everyone's advice, and this is
> the fastest I got, eve
More likely, records being just as slow with Clojure 1.9.0-alpha14 probably
mean that recalculating of record hashes was not a significant amount of
the time your program was taking. Thanks for trying it out.
Andy
On Mon, Nov 21, 2016 at 5:03 PM, Didier wrote:
> I tried it with the s
al calls to seq for every
iteration through the loop.
Andy
On Tue, Nov 29, 2016 at 7:42 PM, larry google groups <
lawrencecloj...@gmail.com> wrote:
> I apologize for this question, because I think it has been asked before,
> and yet I can not find the answer.
>
> In the definiti
If it helps anyone sleep better at night, were the behavior of distinct
ever to change in a way that breaks one's application, the original one is
right there in the git history, available for everyone's copying and use,
with whatever promises in the doc string you choose to add.
An
aybe), but something
to watch out for at least with their current implementations.
Andy
On Wed, Jan 11, 2017 at 11:03 AM, Didier wrote:
> Maybe you're right in not recommending this, but I find it at first glance
> to be quite nice. Now, I wouldn't keep switching namespace back
? nil)=true is
falsey")
"(nil? nil)=true is truthy"
user=> (number? nil)
false
user=> (if (number? nil) "(number? nil)=false is truthy" "(number?
nil)=false is falsey")
"(number? nil)=false is falsey"
Andy
On Mon, Jan 30, 2017 at 12:09 AM, Sayth R
/clojure.git
Andy
On Sat, Mar 4, 2017 at 9:59 AM, Steve Murphy wrote:
> Hello--
>
> Heard interesting things about clojure, thought I'd play with it, so I
> downloaded the clojure-1.8.0 zip file,
> exploded it, and tried to build it with ant... all this on my ubuntu 16.04
itself, so the
priority queue would be unnecessary then.
These suggestions are off the cuff, and intended to maximize reuse of
existing code with least amount of new code required. It wouldn't
necessarily minimize the memory required.
Andy
On Fri, Apr 7, 2017 at 8:49 PM, Brian Beckman wrote:
And I would hasten to add David Cook to the list of developers. He has
done the coding, testing, and release steps except deploying to Clojars.
Thank you, David!
Andy
On Sun, May 21, 2017 at 5:46 PM, David Cook wrote:
> Eastwood, the Clojure lint tool, version 0.2.4 has been released.
Eastwood analyzes your code to look for constructs that might be errors.
Kibit analyzes code to look for places where you could use Clojure macros
or functions that may make your code shorter, or more idiomatic.
Andy
On Tue, May 23, 2017 at 9:16 AM, Travis Daudelin
wrote:
> Hi, thanks
#x27;ll know when
it has happened by the rumor mill on Slack, IRC, and/or this email group.
Andy
On Tue, May 23, 2017 at 2:04 PM, Colin Fleming
wrote:
> On 24 May 2017 at 00:13, Herwig Hochleitner
> wrote:
>
>> I doubt the whole community would want to move anywhere from Slac
Yep, useful things, those.
"The weird and wonderful characters of Clojure" article is also linked from
the Clojure Cheat Sheet, in the Special Characters section, the link called
"tutorial":
https://clojure.org/api/cheatsheet
http://jafingerhut.github.io
Andy
On Thu, May
illing to accept
a change to clojure.spec that would check for such erroneous inputs to
get. If you are interested, you could try creating a JIRA ticket for a
change like that. You could mention in the ticket that a change to
clojure.core/get might be interesting, if someone can think of a way tha
doesn't cover any
but a tiny handful of functions outside of Clojure core functionality). In
particular for your question, the section titled "IO" (i.e. Input/Output),
subsection "to string" would have helped:
https://clojure.org/api/cheatsheet
Andy
On Tue, May 3
Sounds like a limitation/bug in the current Eastwood implementation that it
doesn't handle this. You are welcome to file an issue on Github:
https://github.com/jonase/eastwood/issues
Sorry, no promises on when it might be addressed.
Andy
On Wed, May 31, 2017 at 5:39 AM, Peter Hull
roject that might be better suited for
others.
Andy
On Thu, Jun 1, 2017 at 8:19 AM, Peter Hull wrote:
> I had a quick look at this. As I understand it, the clojure.core reader
> processes data_readers.clj, but Eastwood uses tools.reader (or a version of
> it, copied into the Eastwood pr
l to the compiler than the parameter name 'a'. There is
no requirement in the Clojure compiler that parameter names are unique.
Andy
On Sat, Jun 17, 2017 at 12:16 PM, Gregg Reynolds wrote:
>
>
> On Jun 17, 2017 1:55 PM, "Timothy Baldridge" wrote:
>
> Anonymous
that foo works, because '_' is
just another parameter name, no more or less special to the compiler than
the parameter name 'arg1' or 'f'.
Andy
On Sat, Jun 17, 2017 at 2:01 PM, Gregg Reynolds wrote:
>
>
> On Jun 17, 2017 3:36 PM, "Andy Fingerhut"
I think part of it is that examples are easy to edit, so if there are small
easily fixed mistakes, often someone will.
Unlike politically contentious issues on Wikipedia, there isn't much to be
gained from putting misleading information in ClojureDocs.
Andy
On Sun, Jun 18, 2017 at 7:53 PM,
Contribs are on github, but none of them accept pull requests. All of them
use JIRA for tickets, listed here:
https://dev.clojure.org/jira/secure/BrowseProjects.jspa#all
Some background on the contribution process:
https://dev.clojure.org/display/community/Contributing+FAQ
Andy
On Tue, Jul 18
inspectable was recently announced in this group as well. Do you know what
the similarities and differences are between these projects?
Andy
On Tue, Jul 25, 2017 at 4:16 PM, Ben Brinckerhoff
wrote:
> Expound formats clojure.spec errors in a way that is optimized for humans
> to read. E
tion type.
user=> (boolean? true)
true
user=> (boolean? false)
true
user=> (boolean? identity)
false
user=> (fn? true)
false
user=> (fn? false)
false
user=> (fn? identity)
true
Andy
On Fri, Sep 1, 2017 at 9:06 PM, Rostislav Svoboda <
rostislav.svob...@gmail.com> wrote:
&
ned debug print statements or logging, to print out the contents
of intermediate values like from your expression (get-in (json-body-request
request {:keywords? true :bigdecimals true}) [:body :result])
:resolvedQuerry), can help debug these kinds of things.
Andy
On Wed, Sep 6, 2017 at 3:42 AM, dinesh
You can probably also avoid the 60- to 80-second wait if you call
(shutdown-agents) at the end of your program.
https://clojuredocs.org/clojure.core/future
Andy
On Thu, Sep 7, 2017 at 2:27 AM, Max Muranov wrote:
> it takes about a minute for the pool to decide to shutdown the thre
Clojure contribution and development:
https://dev.clojure.org/display/community/Contributing
Andy Fingerhut
On Sun, Sep 24, 2017 at 8:50 AM, Alex Miller wrote:
> File a jira
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure&
.
Go squash some bugs!
Jonas Enlund, Nicola Mometto, and Andy Fingerhut
[1] https://github.com/jonase/eastwood
[2]
https://github.com/jonase/eastwood/blob/master/changes.md#changes-from-version-024-to-025
The main changes with version 0.2.5 are for improving how Eastwood works
with Clojure
using AOT compilation. Many would advocate against using AOT compilation,
unless you are in a particular situation that requires it.
Andy
On Fri, Oct 13, 2017 at 10:13 AM, Damien Mattei
wrote:
> i did not have , i just follow the tutorial:
> https://clojure.org/reference/compilation
>
e
packaged in the WAR file? Is that something that works?
Andy
On Fri, Oct 13, 2017 at 11:05 AM, Damien Mattei
wrote:
> but i am in this situation, i wrote application in Scheme (Kawa,Bigloo)
> ,LisP that ran on an apache tomcat server, the application is deplyed in
> war files , t
It seems like everytime I watch another Clojure/Conj video or finish
another 4Clojure problem, I learn about another piece of the Clojure core
set of functions that I was unfamiliar with... which prompted the question:
*What subset of the Clojure core API do I use? Which functions are my
favou
Alan, I get similar messages when starting 'lein repl' with this
combination of versions:
+ Leiningen version 2.8.0, Clojure 1.8.0, Java 9.0.1 (note - No Clojure
1.9.0 involved)
Changing only the Leiningen to version 2.8.1 and there is no such error
message.
Andy
On Thu, Nov 2, 2017 a
I see the same behavior in Clojure 1.7.0 and 1.8.0 as you see in 1.9.0-RC1.
Andy
On Mon, Nov 13, 2017 at 9:48 PM, Shantanu Kumar
wrote:
> Sorry, I did not specify the problem completely earlier. The coercion
> fails only when *uncheked-math* is set to truthy in 1.9.0-RC1.
>
> use
for a more full discussion of the correct way to use them.
Andy
On Mon, Nov 27, 2017 at 1:16 AM, Mark Melling
wrote:
> Thanks, that is useful advice.
>
> I do think that the docstring for assoc! could be more explicit about the
> dangers of not using the return value.
>
> Given the val
the
JVM.
Andy
On Tue, Nov 28, 2017 at 1:14 PM, Alex Miller wrote:
> Presuming you're in Clojure, just use clojure.edn. clojure.edn is written
> in Java and targets the edn subset of Clojure's syntax. Presuming you're
> reading typical edn data, this is the best answer.
>
#x27;s
approach to implement a check in Eastwood for what Stuart's code already
checks for. I haven't been spending much time on Eastwood development for
the last year or so, but if someone gets the itch to want to look into it,
let me know and I may be able to give advice.
Andy
[1] http
nce is getting large with more computation,
do you?
If it is all extra startup time, that could be due to loading spec and
def'ing extra Clojure 1.9 Vars during initialization.
Andy
On Fri, Dec 8, 2017 at 5:53 PM, Rostislav Svoboda <
rostislav.svob...@gmail.com> wrote:
> Hi, first o
interface here:
https://groups.google.com/forum/#!searchin/clojure-dev/iatom%7Csort:date/clojure-dev/_ixXNiIyiuQ/p1HrCRGJDAAJ
Andy
On Sun, Dec 17, 2017 at 2:16 PM, dimitris wrote:
> Hi all,
>
> This is mainly a question for the Clojure core dev team. I'm trying really
> hard
about a 1-minute wait and
how to avoid it, where there are lots of details:
http://clojuredocs.org/clojure.core/future
Andy
On Tue, Dec 19, 2017 at 1:15 PM, Mike <145...@gmail.com> wrote:
> last line in -main should be (System/exit 0) or (shutdown-agents).
> 1 min awaiting it is docume
implement the behavior of 'require',
because require tries to avoid re-loading namespaces that have already been
loaded earlier.
Andy
On Tue, Dec 19, 2017 at 2:14 PM, Mark Melling
wrote:
> Hi,
>
> Apologies in advance for the possibly stupid question!
>
> I was having a
If you do have namespace names that do not correspond with the file name
they are placed in, in a Clojure/Java files, Eastwood can find them for you
quickly. Eastwood doesn't analyze ClojureScript files, though.
Andy
https://github.com/jonase/eastwood
On Fri, Dec 22, 2017 at 9:41 AM, S
where that erroneous ns form is can
be determined from some of the error messages you have not shown. Clojure
1.9.0 checks the syntax of ns forms more strictly, and issues error
messages about them, more strictly than previous versions of Clojure.
Andy
On Sat, Jan 13, 2018 at 1:07 PM, Andrew
Slack for yourself in order to join particular 'channels',
but hopefully the web page makes that not difficult to figure out.
Andy
On Tue, Feb 6, 2018 at 8:50 AM, Nadeen Kurz wrote:
> Thanks Simon, I am using the repl and I am sorry, I should have click
> share to make it easier,
301 - 400 of 1127 matches
Mail list logo