On Sat, Apr 3, 2021 at 08:50 zen...@gmail.com wrote:
> I'm reading https://clojure.org/guides/weird_characters#_discard and run
> into this error:
>
> *user> #_({1:2})*
>
> *Syntax error reading source at (REPL:247:14).*
> *Invalid number: 1:2*
>
#_ is a reader macro—so what’s inside still has
Hi,
I did a talk on this and conveniently my library caesium wraps the library
you're referencing :)
https://www.youtube.com/watch?v=Lf-M1ZH6KME
https://github.com/lvh/caesium/
I still think that approach is great particularly for libraries like
libsodium where some care was taken to make them
Hey Farzad,
Sorry for the late reply. I'm the person maintaining Cloverage, so I
figured I'd share how I'd proceed.
Is it actually necessary for you to run Clojure tests via Junit? Cloverage
works by instrumenting forms, so it has Opinions(TM) on how it wants to be
run. However, most coverage
Have you tried checking up to what extent it goes?
>
>
>
> On Thu, Oct 31, 2019 at 9:44 PM Laurens Van Houtven <_...@lvh.io> wrote:
>
>> I always need all of them. Figuring out how many that are combinatorially
>> is surprisingly tricky!
>>
>> On Thu, Oct 3
N. so it will
> throw output according to run of a loop.
>
> On Thu, 31 Oct 2019 at 4:28 PM, Laurens Van Houtven <_...@lvh.io> wrote:
>
>> Satyam: you're suggesting limiting the answers asked from run, or
>> something else?
>>
>> On Thu, Oct 31, 2019 at 11:
jure.core/if
>
> On Tuesday, October 29, 2019 at 11:06:54 PM UTC, Laurens Van Houtven wrote:
>>
>> Hi,
>>
>> I'm trying to divide a list into 3 lists such that (= my-list (concat a b
>> c)). I guess you could say I'm writing concato :-)
>>
>> (l/run n
&
Hi,
I'm trying to divide a list into 3 lists such that (= my-list (concat a b
c)). I guess you could say I'm writing concato :-)
(l/run n
[a b c]
(l/fresh [A B] ;; uppercase are internal accumulators
(l/appendo a b A)
(l/appendo A c B)
(l/== B '(p q r s
... running this
Hi,
I just released cloverage 1.1.2 to clojars (https://clojars.org/cloverage).
Lots of little quality of life improvements. Thanks to all the contributors
for this release!
- Improvements
- Support for deftype forms (#254)
- Custom data readers are now installed before instrumentation
Cloverage is a line coverage tool for Clojure.
I just released cloverage and lein-cloverage 1.1.1. They have a few cool
new features and upgrades since the last time you probably looked at it,
including significantly improved performance (due to a change in a core
data structure enabling improved
Hi Brian,
It's not quite what you asked but https://github.com/aphyr/tesser will make
a locally and remotely running parallel TF/IDF easy and fun :)
lvh
On Fri, Jan 25, 2019 at 4:19 PM Brian Craft wrote:
> Are there any docs on transducer parallelism? I had the impression, from
> various
Uh, crud. Yes, that does make a lot of sense :-) Never mind then!
thanks,
lvh
On Thu, Dec 27, 2018 at 5:43 PM Alex Miller wrote:
> Isn’t the whole point of static interface methods hat you don’t need to
> implement them?
>
> --
> You received this message because you are subscribed to the
Hi,
I'm porting some JDK 8 code to JDK 9 and hit a snag that boils down to "an
interface, of which I tried to implement all the methods, suddenly grew a
few static methods and deftype doesn't know how to do that". I tried
^:static and ^{:static true}.
You can try this as follows: java.util.Map
Hi,
I'm trying to get in to thi-ng/geom since my dog ate my woodworking
notebook. It involved a lot of sketches, geometry and algebra: things I'm
hoping Clojure is good at too.
One of the first things I'm trying to do with thi.ng/geom is "create a
line, then create another line constrained by a
Hi,
On Mon, Dec 17, 2018 at 3:46 PM wrote:
> Laurens Van Houtven, good ideas, but then I'd also have to write some code
> to catch documents that got lost when a process died while trying to fetch
> a document from S3. If I simply check every 15 minutes, and grab everything
&
Honestly I'd use CloudWatch Timed Events to kick off a Lambda or ECS
Fargate job (which of course you can write in Clojure) assuming you're
using AWS yourself anyway. If you don't care about batching maybe even just
attach a Lambda to the write-to-S3 bucket itself instead of checking every
15m?
e catch clause is enclosed in a new function by
>> the Clojure compiler, if not the main body of the try.
>>
>> https://github.com/jafingerhut/nestedrepro
>>
>> Andy
>>
>>
>>> On Sun, Oct 7, 2018 at 8:36 AM Laurens Van Houtven <_...@lvh.io> wrote
FWIW: I tried to reproduce it here: https://github.com/lvh/nestedrepro
but I was unable to cause these sorts of errors using try/catch and do.
On Sat, Oct 6, 2018 at 6:17 PM Laurens Van Houtven <_...@lvh.io> wrote:
> I'm hitting CLJ-1852 [0] (Clojure-generated class names length exce
I'm hitting CLJ-1852 [0] (Clojure-generated class names length exceed
file-system limit) with a large core.match expression. I have verified that
it is the number of clauses in core.match: compilation works as soon as I
reduce it, and looking at `target/` it is actually producing very long
I expect you're asking generally and James already gave the correct answer
for that, but index-of specifically is defined in clojure.string :)
On Thu, Jul 19, 2018 at 12:45 PM, James Reeves
wrote:
> You'd need to wrap it in a function, like:
>
> (defn index-of [^String haystack ^String needle]
Hi Renada,
The magic function you're looking for is called "frequencies":
https://clojuredocs.org/clojure.core/frequencies
You could look at its implementation if you want to know how to implement
this :)
lvh
On Wed, May 16, 2018 at 12:08 PM, Renata Soares
wrote:
>
Hi,
In order to use functions from another namespace, that namespace must be
available on the Java Classpath. If you & your coworker are working on the
same project, this problem usually resolved via version control. If you're
working on separate projects, that's usually fixed by having the
This is great! Thanks Ning! Do you have any experience/pointers/projects
around reducing deployable size on the code side (as opposed to runtime)?
They seem like very related concerns. I've messed with proguard but it
mostly seems to be great at producing jars that are 10% of the size and
don't
This is awesome! Thanks Alexander!
On Mon, Jan 29, 2018 at 8:58 AM, Alexander Yakushev
wrote:
> I'm happy to release clj-java-decompiler[1] today, a wrapper around
> Procyon[2] Java decompiler. With it, you can cut the feedback loop of
> writing a file, AOT-compiling it,
Whoa; this looks awesome. Thanks for publishing this.
On Sat, Dec 30, 2017 at 2:24 PM, Christian Weilbach <
whitesp...@polyc0l0r.net> wrote:
> Hi,
>
> performance is now a lot better, ~3-5x slower than datascript for
> queries on the fractal index trees on my machine. This still needs
> tuning
> On Nov 5, 2017, at 17:25, ajlotr...@gmail.com wrote:
>
> Sorry - very basic... I am trying the Clojurescript quickstart guide, and
> have followed the instruction in detail. When trying to view the index.html
> in Chrome, I get this error in the console:
>
> "[Violation] Parser was blocked
Hi,
Instaparse is a great parser generator, especially if you already have a BNF.
Sent from my iPhone
> On Aug 15, 2017, at 08:44, sventrax...@gmail.com wrote:
>
> Thanks for your input. LFE is quite an unexpected "thing".
>
> What I'm trying to do, is just a "lunch time project"; something
I have a project with several components. Parts are a pretty standard Clojure
programs with logically separate but related functionality, parts are
ClojureScript intended for web browsers, and in the future parts might be React
Native ClojureScript. There are good code-sharing reasons for
Not to speak for Nathan, but I asked in #specter and he indicated it's unlikely
to help, which I imagine is primarily for the reason Tim mentioned :)
(It bears repeating though: I was wrong about specter. It's awesome and Nathan
is incredibly helpful.)
lvh
Sent from my iPhone
> On Apr 22,
Happy to help, and thank you for your continued hard work :)
lvh
--
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
Huge fan of the redesign! Unfortunately HTTPS is still broken, serving with a
CloudFront cert.
> On Jan 14, 2016, at 11:44 AM, Sean Corfield wrote:
>
> Very nice!
>
> Also good to see a number of Pull Requests already and some discussion in
> Issues as well!
>
> Sean
whatever they want, which is my main concern.
I don’t know if this is an option for you, but CloudFlare will give you a
fairly hassle-free (and money-free) TLS termination option.
lvh
> On Thu, Jan 14, 2016 at 11:55 AM, Laurens Van Houtven <_...@lvh.cc
> <mailto:_...@lvh.cc>>
Hi Ritchie
You appear to be using the transient as a mutable object, which is not correct
in the general case. You should only use the return value of assoc!/dissoc!/et
cetera.
lvh
> On Nov 10, 2015, at 1:03 PM, Ritchie Cai wrote:
>
> btw, I'm using Java
(when-let [[h t] (seq coll)]
(let [[run remains] (split-with (complement pred) t)]
(cons (cons h run) (partition-when pred remains))
Do you like that any better?
P.S: Say Hi to Chris for me!
Take care,
Moe
On Thu, Aug 20, 2015 at 1:34 AM, Laurens Van Houtven
Hi,
I needed a function that partitions (coll a) = (coll (coll a)), starting a new
subcoll whenever a given pred is true. Use case: I have a sequence of rows;
these rows form groups; I want to group them. A group is started by a header;
so I want a new coll whenever my is-header? pred returns
for scale would be for limiting sizes (e.g.,
(gen/scale #(max % 20) gen/string)).
Gary
On Saturday, August 15, 2015 at 8:57:02 PM UTC-5, Laurens Van Houtven wrote:
Hi Gary
Thanks a lot for your hard work; I'm a big fan of test.check and have been
tracking the RCs :)
Could you help me
Hi Gary
Thanks a lot for your hard work; I'm a big fan of test.check and have been
tracking the RCs :)
Could you help me understand the difference between scale and fmap?
thanks
lvh
Sent from my iPhone
On Aug 15, 2015, at 13:08, Gary Fredericks fredericksg...@gmail.com wrote:
I'm
Hi everyone,
In a recent talk, David Nolen talks about a great idea for Om Next, where
components declaratively describe what data they’re interested in. [omnext] I’d
like to explore the optional server-side router part. The idea is that you
write your code on the front-end as if you have
Hi Dru,
I think you're looking for: http://clojure.org/reader
hth
lvh
On Fri, Jun 5, 2015 at 3:05 PM, Dru Sellers d...@drusellers.com wrote:
Trying to google what #' means is tricky to say the least.
Is there a good name for these that I can google to read up on them?
Thank you.
-d
Hi Pierre,
On May 20, 2015, at 3:35 PM, Pierre Thibault pierre.thibau...@gmail.com
wrote:
Is possible to use the operator '@' alone? In the Joy Of Clojure book it is
presented as '~@'. I would like an example.
There are multiple contexts in which @ could be used. One is syntactic sugar
Hi Pierre,
On May 20, 2015, at 3:38 PM, Pierre Thibault pierre.thibau...@gmail.com
wrote:
I can do Math/PI put how can I access PI if Math is in a expression like
'(Math) for example?
Can you provide a more specific example? Math/PI is always Math/PI, it doesn’t
change if you put it in
Hi,
On Feb 11, 2015, at 5:42 PM, gvim gvi...@gmail.com wrote:
Why is this possible in a language based on immutability:
(let [x 1
x (inc x)
x (inc x)
x (inc x)]
x)
;;= 4
Maybe under the hood (ie. memory registers/pointers etc.) this isn't strictly
Looks awesome! I’m currently using prismatic/schema for what seems like exactly
the same thing; could you enlighten me how the two libraries are different?
thanks
lvh
On Jan 23, 2015, at 3:39 AM, Leonardo Borges leonardoborges...@gmail.com
wrote:
bouncer is a validation library for
On 05 Nov 2014, at 04:22, Fluid Dynamics a2093...@trbvm.com wrote:
Terminal emulation? In this day and age?
Yes. Many people write and play explicitly retro games :-)
hth
lvh
signature.asc
Description: Message signed with OpenPGP using GPGMail
Hi Isaac,
On 01 Nov 2014, at 05:19, Isaac Karth isaacka...@gmail.com wrote:
Laurens, Using a PRF actually sounds very close to ideal for what I was
looking for. If I can convert a map (or record) to a reproducible seed, and
have that be independant from other random checks, that's pretty
Hi,
I too, am super interested in games in Clojure. My other background is
cryptography, so I break out the crypto. I would say that you don’t really want
a PRG, but you might want a PRF instead. (If that doesn’t mean anything to you,
don’t worry, read on.)
My favorite cryptographic hash
Hi Sam,
I’m not sure I understand. If not for sequences, then what for? `(if (pred x)
x)` looks like it’s missing an else-clause; so I don’t know what happens when
(not (pred x)).
From the rest of your e-mail it sounds a little bit like you might want (get m
x x)? (i.e. get me x if x isn’t
Hi Roelof,
On 24 Oct 2014, at 14:16, Roelof Wobben rwob...@hotmail.com wrote:
oke, and second could be the helper function.
`second` is part of Clojure. You do not have to write it.
I know what schould be done map has to pick up the items and on that item I
have to be doing the get.
Yes.
Hi Roelof,
I had no idea iloveponies was a Clojure introduction.
https://iloveponies.github.io/120-hour-epic-sax-marathon/structured-data.html
What exercise are you attempting, exactly?
cheers
lvh
signature.asc
Description: Message signed with OpenPGP using GPGMail
Hi Roelof,
OK, so, what you want to do is look at the example right before it, (defn
mungefy …).
You want to do something very similar: except instead of munge you’ll have a
different (fn [x] …) that uses get on x. Make sense?
hth
lvh
signature.asc
Description: Message signed with
Hi Roelof,
On 24 Oct 2014, at 15:00, Roelof Wobben rwob...@hotmail.com wrote:
(defn second-elements [collection]
(let [second-item (fn [x] (get x 1))]
(map second-item collection)))
one thing I m not sure I understand complete. x is the output of the map
command, if so, how does
On 24 Oct 2014, at 15:05, Sam Raker sam.ra...@gmail.com wrote:
I think the point is to get nil if x does not satisfy some predicate. --
exactly.
… and shorter than (when (p x) x)? If you can come up for a good name for that,
I guess you could macro it? :-)
hth
lvh
signature.asc
Hi Roelof,
On 24 Oct 2014, at 15:12, Roelof Wobben rwob...@hotmail.com wrote:
I understand that part but when I look at the map part there is no x. When I
look at the function no x.
I’m assuming you mean that when you look at the function, you do see the x —
it’s right there, both in the
Hi Ashish,
At first sight, this looks like a numerical precision problem. 1e80 is a
floating point type, not an integer type. You may want to try with e.g.
1000N (note the N; that makes it a bigint). I don’t know of any
nice syntax for describing extremely large bigints; e.g
Hi Nico,
Just to rule out the obvious: you’re not recompiling that namespace ever time,
right? Because if you call (thread …) a bunch of times, you’re gonna get a
bunch of threads :-)
cheers
lvh
On 13 Oct 2014, at 14:21, Nico Swart jns1...@gmail.com wrote:
I am experimenting with
Hi xfeep,
Thanks for the work! Looks awesome. Unfortunately the github website appears to
be broken in FF32 (displays fine in Chrome).
cheers
lvh
On 10 Oct 2014, at 16:03, Xfeep xfe...@gmail.com wrote:
0.2.6 (2014-10-10)
• Fix Bug: rewrite handler does not handle write event
I am writing some software that is essentially an interpreter for
structures called plans, which are either:
- steps, maps that have a specific way of handling them based on their
:type. Examples include e.g. make a http request, which would look like
{:type :http :url http://whatever; :method
Hi Alex,
On 20 Sep 2014, at 20:20, Alex Miller a...@puredanger.com wrote:
Clojure.org is hosted on wikispaces. For what purpose would you access it by
https?
It’s not a (purposeful) choice; my browser is configured to access any site
that supports it over HTTPS.
Since this is intentional,
On 22 Sep 2014, at 17:30, Alex Miller a...@puredanger.com wrote:
It is likely that at some point in the future, clojure.org will be hosted
elsewhere. For now, this doesn't seem to be a high priority to address so I
don't plan to do anything about it (presumably it would be difficult to do
Hi!
clojure.org presents a bogus certificate when you attempt to reach it over
HTTPS. The cert it provides has *.wikispaces.com as a CN, but is otherwise
fine.
My apologies if there's a better place to report this; I couldn't find it.
hth
lvh
--
You received this message because you are
Hi James,
Thanks for your response! Replies inline.
On 02 Sep 2014, at 18:53, James Reeves ja...@booleanknot.com wrote:
Ring uses blocking I/O by default, because that's often sufficient for most
web servers, and is generally easier to reason about. HTTP works best when
the response is
Hi,
I'm writing a pretty simple HTTPS API that, when you make a request to it,
it makes a bunch of requests on your behalf, and eventually reports success
or failure. Because it makes many requests with a bunch of interaction
between them, I'd really like to use core.async. Internally (that
Hi Nahuel,
On Saturday, August 23, 2014 7:23:42 PM UTC+2, nahuel wrote:
what about:
(defmulti step-handler :type)
(defmulti get-schema :type) ;; returns the schema
And make your users implement both? Remember schemas are first-class
values.
The difficulty I'm having is figuring out
Hi Nahuel,
Thanks for your suggestion :)
On 22 Aug 2014, at 19:31, Nahuel Greco ngr...@gmail.com wrote:
why not multi methods?
Multimethods definitely solve the registering a handler problem (because what I
really want there is arbitrary dispatch), but don’t solve the “there must be
two of
Hi Clojurers,
I'm writing a capability system with Clojure. Make a request to a URL, it
grabs the plan for what it should do from the database. A plan consists
(eventually) of atomic steps. Typical example of a step would be make an
HTTP request, represented by a map like {:type :http :url
Hi,
On Tuesday, March 18, 2014 3:02:01 PM UTC+1, Paul deGrandis wrote:
I've written general versions of Blossom and Blossom V in the past, and
every so often a similar question comes up on this mailing list.
I'm guessing that wasn't in clojure? :-(
Do you happen to know what happens when
Hi!
I'm trying to find a maximum weighted graph matching for a given graph.
Searching for this has proven difficult; search engines like to give me
results that involve a lot of pattern matching and not a lot of graph
matching.
I know algorithms for this exist; specifically variants of
Hi Malcolm,
Love the code, excited about the talk as well. Will it eventually end up on
infoq.com/Clojure?
thanks in advance
lvh
--
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
On Fri, Mar 7, 2014 at 3:50 AM, Mark Engelberg mark.engelb...@gmail.comwrote:
On Thu, Mar 6, 2014 at 4:56 AM, Laurens Van Houtven _...@lvh.cc wrote:
Hm. I realize we're unlikely to change the nature of the problem, but
would it help if we limit the search space? For example, if we only care
Hi everyone,
On Thursday, March 6, 2014 12:54:22 AM UTC+1, puzzler wrote:
The potential problem with modeling it as a knapsack problem is that it
assumes that grant-giving is an all-or-nothing affair.
Yes, exactly this. I realized I omitted this when I woke up in the middle
of the night...
On Thursday, March 6, 2014 12:19:25 PM UTC+1, puzzler wrote:
Even though loco works on this small example, it doesn't scale well for
this kind of problem. I did a test on some randomly generated 3000 people,
and it's slow. (You can set the budget constraint to definitely spend the
whole
Hi!
I've been experimenting solving some real-world problems related to
organizing a sizable (2000-3000 people) programming conference with a
strong open source flavor.
My next problem is a bit more daunting.
This conference has a financial aid program. People who can not afford
to come to the
Hi David and Alex,
Thanks for your replies! I'm having trouble communicating it, and the
underspecifiedness doesn't help. Perhaps that just means I don't
really understand the problem. Please let me know if any particular
parts are hazy.
What we *really* care about is getting people to the
72 matches
Mail list logo