In a private chat (I will not expose their names, but they may feel free to
identify themselves in this thread) someone posed a question:
Anyone know why the multi-arity version of `defn` takes an extra optional
`attr-map?` argument?
Robert Levy wrote:
> Hi Alan,
>
> Just as a thought. If it's minimal work on your end (eg. if the folks
> from Roam research who chimed in above pick it up) why not clear the
> password hashes and let the new maintainer handle the communication that
> passwords need to be reset?
Hi Alan,
Just as a thought. If it's minimal work on your end (eg. if the folks from
Roam research who chimed in above pick it up) why not clear the password
hashes and let the new maintainer handle the communication that passwords
need to be reset?
Rob
On Sun, Jul 4, 2021 at 1:26 PM Alan
Great post on the technical choices made in developing this platform. Do
you plan on writing a post that describes in detail the system architecture
that is the bread and butter of the product/platform itself?
The website intriguingly states, "Red Planet Labs is pioneering a radically
new kind
I thought I'd share this project I came across, as it's exciting to me for
some of the same reasons I continue to be excited about Clojure.
> Radicle is a peer-to-peer stack for creating open source software
together.
Notes on the language aspect of the system (the language is for
expressively
t; :append true)))
>>
>> Generates this in /tmp/clinic.clj
>>
>> (onto/defconcept hospice-enc "hospice enc" "HOSPICE_ENC")
>> (onto/defconcept hospice-env "hospice env" "HOSPICE_ENV")
>>
>>
>>
>> O
"HOSPICE_ENV")
On Thu, Sep 27, 2018 at 11:43 AM venkata sai wrote:
> Yes thank you I will try with this approach..but how do I take parameters
> in macros
>
> On 28 Sep 2018 00:06, "Robert Levy" wrote:
>
>> Actually, if you are trying to write out
Oh I didn't see you sent the example again. Where is onto/defconcept
defined?
On Thu, Sep 27, 2018 at 10:53 AM venkata sai wrote:
> thanks for your helping nature. my question is as simple as that by using
> macros i need to autogenerate code in the clinic.clj file with csv file as
> input
>
In your other thread you pasted
https://github.cerner.com/Synapse/event-rules/blob/master/src/main/clojure/hi/kern/qip/kern_qip_flow.clj#L454-L551
That is not accessible to the outside world. To optimize your chances of
get useful help with this, it would be best to provide a clear and minimal
I'm sure you've seen this, but you should check out
https://github.com/clojure/data.csv
On Thu, Sep 27, 2018 at 7:52 AM venkata sai wrote:
> yes exactly but i donot know how to do it in my case
>
>
> On Thursday, September 27, 2018 at 8:04:56 PM UTC+5:30, Robert P. Levy
> wrote:
>>
>> See
a
limit on how big the code you expand to can be.) In my example I wrote
data to a file (it perhaps should have been a .edn file actually) but more
often what you'll want to do is simply load in data from csv, generate
clojure data, and use the data.
On Thu, Sep 27, 2018 at 7:34 AM Robert Levy wrote
See https://gist.github.com/rplevy/e94555217dac18f0239a68a3c5bdeb5d as an
example that might help you. I recently prepared this gist (pulled out of
a codebase that was retired when a company was acquired) to show someone
how to get data from Google Sheets, but the aspect relevant to your
question
Luminus is great. Something people might not know about Luminus is that
it's more of a project template than a framework per se. It solves the
choice paralysis of what libraries to use when starting off. It generates
a project, and you can take or leave the decisions it makes because after
I wouldn't consider this a bug or even an unfortunate behavior necessarily,
but potentially surprising and worth mentioning. The comment reader macro
#_ works just fine as long as nothing breaks the reader. The surprise
happens when you don't consider that for namespaced keywords using ns
The bouncer said, "I'm sorry sir, the bar is closed for a private function".
After a brief huddle of whispering to one another off to side, one of the
Clojure developers again approached the bouncer and said "we'd like to
speak directly to your Var"
On Fri, Aug 3, 2018 at 9:59 AM Raoul Duke
You can also tell them also that since in practice it can be slippery to
keep track of what type of collection you're dealing with, it's common to
defensively coerce, eg. (conj (vec foo) 1 2) instead of just (conj foo 1 2).
On Sun, Jul 22, 2018 at 2:22 PM Christian Seberino
wrote:
> - conj adds
> Of course you have to "evaluate" to know that, but you also have to
evaluate "2" in the same way to know what it means.
I think you're missing the point. 2 is literal because you read it, eval
it, print it, and 2 (the result of evaluation) as printed is the same as
the original input. A
, Jul 18, 2018 at 9:59 AM Robert Levy wrote:
> Ironically, concat is one of the few operations in Clojure that actually
> very likely to cause you performance headaches that actually will matter.
> Concatting is extremely slow. I think there's a Bagwell functional data
> st
Ironically, concat is one of the few operations in Clojure that actually
very likely to cause you performance headaches that actually will matter.
Concatting is extremely slow. I think there's a Bagwell functional data
structure (RRB ?) that addresses the performance issues with concat, but to
my
I don't entirely buy the official story on this feature, but it is what it
is. In my experience, people do a lot of defensive typecasting, much more
than we reason about performance. Because the performance just doesn't
really matter in the vast majority of cases, and we're more concerned with
at
the drama in the Python community.
On Tue, Jul 17, 2018 at 1:39 PM Christian Seberino
wrote:
>
> On Tue, Jul 17, 2018 at 3:13 PM, Robert Levy wrote:
>
>> If you want to you can use the prepend and append found in tupelo lib, or
>> you can write your own training wheels lib for you
If you want to you can use the prepend and append found in tupelo lib, or
you can write your own training wheels lib for your students. You have
total creative control over your course design. Shaping your use of the
language's raw materials to build up to your domain/application is very
much a
While we're pointing out typos/errata, the README for
https://github.com/clojure/core.specs.alpha says
"Clojure 1.9 (still in alpha releases) depends on this"
however 1.9 is no longer in alpha releases.
On Wed, Jun 27, 2018 at 9:01 AM Alex Miller wrote:
> Fixed, thanks! Copy pasta...
>
> On
A while ago David Kay wrote about clojure-clr + xamarin. Does anyone have
any success/horror stories going down that path? (It seems like Unity in
Clojure is much more well-trodden, though not open source.) CLR approaches
may be a better option than React Native and the like, especially for
>
>
> Then there's the possibility of stealing flutter's thunder and writing
> clj->native compilers. Everybody wants that.
>
>
That would be awesome!
> Gregg
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email
y be a lot of work.
>
> On Thursday, April 26, 2018 at 8:09:13 AM UTC-7, Gregg Reynolds wrote:
>>
>>
>>
>> On Wed, Apr 25, 2018 at 5:01 PM, Robert Levy <r.p@gmail.com> wrote:
>>
>>> What would you say is the advantage of using Flutter inste
>
> Oh yeah, I forgot to mention: hot reloading! Have you heard of it? It's
> revolutionary! ;)
>
>>
>> Gregg
>>
> Yeah I've seen that somewhere before, I forget where... ;)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send
What would you say is the advantage of using Flutter instead of React
Native? Assuming you're not interested in Dart, what is the selling point?
On Wed, Apr 25, 2018 at 2:42 PM, Gregg Reynolds wrote:
> Flutter is looking pretty good to me. Sure would be nice to have a
>
Oh, I misunderstood what jeremykross/recurrent was at first. I thought it
was a cyclejs wrapper, like the various clojurescript wrappers for
reactjs. It turns out it's a ClojureScript implementation of the approach
that cyclejs implements.
On Wed, Apr 4, 2018 at 8:18 AM, Robert Levy <r.
Hi Jeremy,
These look great! This might be the wrong forum for it (or maybe it's the
best forum for it), but I'd be curious to get your take on why one might
choose Cycle over React with something like Reagent+Re-frame to do
event-driven dataflow programming in the browser. Surely Cycle is a
Just out of curiosity, are there any plans to provide similar tooling
consistent with this for ClojureScript unit tests via Clojure Deps?
On Tue, Feb 20, 2018 at 9:10 AM, Luke VanderHart
wrote:
> You're very likely correct about shutdown-agents, I don't think I
Spec'd also seems to be the most conventional past tense form of spec as a
verb beyond the narrow context of clojure.spec as well.
http://www.dictionary.com/browse/spec-d
On Mon, Nov 13, 2017 at 2:23 PM, Shawn Rasheed wrote:
> spec'ed appears to be the term used in the
That would be very interesting, especially at an aggregate level, to
visualize clusters of Clojure sub-idioms (?) based on code people have
publicly shared with their name attached. One way to get going with that
quickly would be write some Clojure code to collect, index, and analyze the
data in
An IOT company called Sensity based in the south bay was heavily recruiting
for their Clojure and Erlang stack last year.
On Apr 10, 2016 2:12 AM, "Mimmo Cosenza" wrote:
> Hi Gregg,
> my team is working for a customer which is making a very intersting IoT
> device (named
Reagent-template may have improved recently, but the last time I checked,
about 5-6 months ago, I found it to be seriously misleading and outdated in
a number of ways in its opinions on the state of the art for clojurescript
tooling. The template I found to be the best was the figwheel template.
Looks like there's some overlap with the debugging utils in
https://github.com/AlexBaranosky/print-foo
On Wed, Feb 24, 2016 at 4:57 PM, Philos Kim wrote:
> Debux is a simple but useful library for debugging Clojure and
> ClojureScript. I wrote this library to debug my own
Many use s3-wagon or a hosted maven. Or you could install dependencies
locally, but that's a pain. On the other hand putting AWS credentials in CI
for example to use s3-wagon can be annoying too.
What about depending on a specific git remote / commit? This library might
be worth giving a shot:
That sounds interesting! So far I get a 404. Maybe the repo needs to be
set public?
On Fri, Aug 14, 2015 at 11:19 AM, Divyansh Prakash
divyanshprakas...@gmail.com wrote:
Hey!
Nyarlathotep https://github.com/divs1210/nyarlathotep is a tiny
mathematical function generator that can be used as
Some people don't like the native approach to private vars since anyone who
wants to override it can do so anyway, so they go with a purely
conventional and unenforced approach: delineate the boundaries of API vs
internal using :internal or :impl and/or put the internal bits in an impl
namespace.
I tend to agree with this Gregg. Either it's a solution in search of a
need, or it's a legitimate need but no one has produced something
compelling enough that a critical mass (or even a small contingent) has
picked up on and said yes, this feels like a significant improvement over à
la carte
from https://github.com/rplevy/mostly-useful (not updated in a while)
(defn flip
given a function, create a flipped 2-argument function
[f]
(fn [a b] (f b a)))
(defmacro flop
create a version of a function with a modified arity as specified by a
vector of zero-indexed positions, e.g.
Henrik,
The reason for was that when at Akamai we had the idea to create a macro
of this kind, we were aware of already established strong opinions for and
against the idea of a threading macro with a specifiable position, by some
in the Clojure community. Stephen Compall had been reading
I like cyclefn too. I thought of something like that too, but my reason
for preferring
https://github.com/rplevy/funcycle/blob/master/src/fun/cycle.clj over it
was only that if you aren't careful and you hang onto the produced
function, you might get some unwanted non-determinism.
On Mon, Nov
(defmacro altsum [n] `(- 0 ~@(map list (cycle [+ -]) (range 1 n
On Thu, Nov 13, 2014 at 9:02 PM, Andy L core.as...@gmail.com wrote:
(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
You don't need this for numbers over 900 right?
On Thu, Nov 13, 2014 at 9:19 PM, Robert Levy r.p.l...@gmail.com wrote:
(defmacro altsum [n] `(- 0 ~@(map list (cycle [+ -]) (range 1 n
On Thu, Nov 13, 2014 at 9:02 PM, Andy L core.as...@gmail.com wrote:
(reduce + (map * (mapcat (fn[_] [1
Is that any more elegant than Dave's (reduce + (map * (cycle [1 -1]) (range
1 n))) though? I would say that's the best actually sensible answer
proposed in this thread.
On Thu, Nov 13, 2014 at 9:54 PM, Andy L core.as...@gmail.com wrote:
On Thu, Nov 13, 2014 at 7:23 PM, Robert Levy r.p.l
But for applyv you could do this:
(*reduce + *(*map *(*comp eval list*) (*cycle *[*+ -*]) (*range 1 10*)))
On Thu, Nov 13, 2014 at 10:06 PM, Robert Levy r.p.l...@gmail.com wrote:
Is that any more elegant than Dave's (reduce + (map * (cycle [1 -1])
(range 1 n))) though? I would say that's
(let [op (atom +)]
(defn alt-op [a b]
((swap! op #(if (= % +) - +)) a b)))
(map alt-op (range 1 10))
On Thu, Nov 13, 2014 at 10:09 PM, Robert Levy r.p.l...@gmail.com wrote:
But for applyv you could do this:
(*reduce + *(*map *(*comp eval list*) (*cycle *[*+ -*]) (*range 1 10
sorry, make that
(*reduce alt-op *(*range 1 10)*)
On Thu, Nov 13, 2014 at 10:28 PM, Robert Levy r.p.l...@gmail.com wrote:
(let [op (atom +)]
(defn alt-op [a b]
((swap! op #(if (= % +) - +)) a b)))
(map alt-op (range 1 10))
On Thu, Nov 13, 2014 at 10:09 PM, Robert Levy r.p.l
)
(apply (first @fns-atom) args))]
(reduce alt-op init coll)))
(reducycle [- +] 0 (range 1 10))
On Thu, Nov 13, 2014 at 10:30 PM, Robert Levy r.p.l...@gmail.com wrote:
sorry, make that
(*reduce alt-op *(*range 1 10)*)
On Thu, Nov 13, 2014 at 10:28 PM, Robert Levy r.p.l
of what you want which is a rotating sequence of functions in your map or
reduce. I'm guessing something this has come up before on this list.
https://github.com/rplevy/reducycle/blob/master/src/red/ucycle.clj
On Thu, Nov 13, 2014 at 11:10 PM, Robert Levy r.p.l...@gmail.com wrote:
I was just
Changed name:
https://github.com/rplevy/funcycle/blob/master/src/fun/cycle.clj
On Fri, Nov 14, 2014 at 12:49 AM, Robert Levy r.p.l...@gmail.com wrote:
This is pretty trivial, but it is maybe sometimes more natural to express
something as a cycling pattern of function applications over some
Mark,
Your comment Clojure's namespaces are quite limited in ways that
frequently cause me pain brings to mind Daniel Spiewak's talk on
modularity in functional languages: http://2013.flatmap.no/spiewak.html. It
might be interesting to Massimiliano as well.
Spiewak is actually criticizing
Since it's just temporary, maybe create a temporary namespace hierarchy
with the old version of the compiler. This would be a terrible sin if you
intended for that code to stick around but if you promise you will throw
away the older version once you don't need it anymore...
On Mon, Dec 23, 2013
Yes Alan, Jenn Hillner is Rich Hickey's sister. I've worked with her on
finding a job before, and highly recommend.
-Rob
On Mon, Dec 2, 2013 at 2:18 PM, Alan Shaw noden...@gmail.com wrote:
Can I get a quick reality check on this?
Thanks!
-A
--
--
You received this message because you
No, Asim is right, and the majority of LOC is macro code (which expands to
a deftype expression).
On Mon, Aug 26, 2013 at 11:51 AM, Jim - FooBar(); jimpil1...@gmail.comwrote:
I had a quick look at clj-tuple and I don't remember seeing any macros...
Jim
On 26/08/13 19:02, Asim Jalis
But isn't that the whole point of protocols, polymorphic dispatch that is
fast?
On Sat, Aug 3, 2013 at 11:45 PM, Răzvan Rotaru razvan.rot...@gmail.comwrote:
The keyword here is speed. Multimethods are not fast. They don't use the
JVM for dispatch (as far as I know). Protocols are fast. That's
Multiple vs single dispatch, hmm. You can always use a case statement too.
On Sat, Aug 3, 2013 at 11:56 PM, Mark Engelberg mark.engelb...@gmail.comwrote:
The word fast is relative, of course. I've been happily using Clojure's
multimethods for a long time. They are certainly fast enough for
Sounds like he wants predicate dispatch? That was an early motivation for
core.logic and as far as I know it's in the works.
On Sat, Aug 3, 2013 at 4:22 AM, Răzvan Rotaru razvan.rot...@gmail.comwrote:
Hi,
I'm looking for fast lisp style generic functions in clojure. In other
words:
Oh wait nm, misread completely. The solution exists and it's called
protocols.
On Sat, Aug 3, 2013 at 11:37 AM, Robert Levy r.p.l...@gmail.com wrote:
Sounds like he wants predicate dispatch? That was an early motivation for
core.logic and as far as I know it's in the works.
On Sat, Aug 3
+Counter-clockwise is especially popular there.
On 17 June 2013 02:03, Robert Levy r.p.l...@gmail.com wrote:
There's the State of Clojure Survey:
http://cemerick.com/2012/08/06/results-of-the-2012-state-of-clojure-survey/.
I think Chas usually asks for ideas on what the questions should be, so
Hi Plinio,
We use Clojure for nearly everything we do at Runa (we also have a little
bit of Ruby and JS in our stack). For more info, see
http://www.workatruna.com/clojure.html.
Rob
On Mon, Jun 17, 2013 at 6:49 AM, Giacomo Cosenza mimmo.cose...@gmail.comwrote:
Hi Plinio,
we released today
Last year I released milieu which I developed at Draker, Inc. I have a few
improvements (more features, some of them inspired by caricajure) slated
for a release soon.
On Jun 17, 2013 12:17 PM, Dick Davies rasput...@hellooperator.net wrote:
I glanced at this a while back - does carica support
There's the State of Clojure Survey:
http://cemerick.com/2012/08/06/results-of-the-2012-state-of-clojure-survey/.
I think Chas usually asks for ideas on what the questions should be, so
that might be a good question to suggest next time around.
The Leiningen survey asks that question and finds
definitionshttps://github.com/drakerlabs/ojo/tree/master/example/features/step_definitions
for
the example/ project included in this repo. Run lein cucumber to test these
example scenarios.
https://github.com/drakerlabs/ojo#licenseLicense
Author: Robert Levy / @rplevy-draker
Copyright © 2013 Draker
If a version of some dependency is already on the classpath (either has
been there from the start, or was previously added via pomegranate),
results are undefined if a different version of the same dependency is
later added via pomegranate. Sometimes you get lucky and nothing bad
happens;
John Aspden posted an interesting question on Stack Overflow about adding
all of the latest versions of contrib libraries as dependencies in a REPL
session. The question and my response can be found here:
file out
of a credentials.clj file of the following form:
{s3p://mybucket/releases/ {:username usernamegoeshere
:passphrase passphrasegoeshere}}
https://github.com/drakerlabs/lein-deploy-app#licenseLicense
Author: Robert Levy / @rplevy-draker
Copyright © 2012 Draker
Just curious, what is the status of this? Are there plans to implement
this change in Clojure?
Also curious if there's an existing lib that can be used now (I didn't come
across one for Clojure but there is a Scala lib from the authors of the
paper)...
Rob
On Fri, Nov 18, 2011 at 2:35 PM,
I haven't tried VTK, but you might find my clojure-python lib useful. It's
something I spent a little bit of time on a couple years ago, and have been
meaning to get back to it to improve it and turn it into a robust and
respectable library ;), but I haven't had a need for Jython interop in
, thanks for sharing the library. A philosophical
question, why YAML and not JSON or raw clj?
Cheers, Jay
On Jun 22, 2012, at 7:30 PM, Robert Levy wrote:
It is my pleasure to announce the 0.5.0 release of milieu, a library
for
environment-based application configuration that I have
I actually hadn't thought of this use case, but I was asked if this was
possible. In version 0.6.0 which I just pushed (clj-yaml emits seqs when it
gets yaml vectors, which the change corrects for), you can access values in
config like this:
dev:
fou:
- barre:
- mary: 8-)
This announcement is more of a call for suggestions (even pull requests if
you are moved to do so) as there's not much to it yet, just enough to to
demonstrate the concept for simpler transformations. I'm thinking of how
best to go about supporting a wider range of sequence transformations.
Thank you for finding these anomolies!
user= (- 0 [1 ])
[1 0]
This case is undefined behavior because only one point is allowed.
user= (- 0 {1 2 })
IllegalArgumentException No value supplied for key: 2
clojure.lang.PersistentHashMap.createWithCheck (PersistentHashMap.java:89)
:
in this context, compiling:(NO_SOURCE_PATH:24)
;; I guess this one is expected, although it would be nice if it worked.
user= (- 0 '(1 (1 )))
(1 (1 ) 0)
Roman Perepelitsa.
2012/4/2 Robert Levy r.p.l...@gmail.com
Swiss arrows is a library I wrote today, providing a number of useful
arrow macros
Swiss arrows is a library I wrote today, providing a number of useful arrow
macros.
- The Diamond Wand: a generalized arrow macro for threading into any
position.
- The Back Arrow: - with its arguments reversed, convenient in some
cases.
- The Furcula / Parallel Furcula: branch the
Furcula, Parallel Trystero Furcula
- , -:p The Diamond Fishing Rod, Parallel Diamond Fishing Rod
On Mon, Apr 2, 2012 at 1:33 AM, Robert Levy r.p.l...@gmail.com wrote:
Swiss arrows is a library I wrote today, providing a number of useful
arrow macros.
- The Diamond Wand: a generalized arrow
On Mon, Jan 23, 2012 at 10:09 AM, Marko Kocić marko.ko...@gmail.com wrote:
Nice.
All we need now is clojurescriptone release and lein plugin.
Earlier today I updated lein-clojurescript and submitted a pull
request, so that should be available to use soon.
Rob
--
You received this message
I have come across a few libraries here and there that are still on
1.2(.1). I have upgraded some of them as needed. Are there any libraries
you use that you would like to see moved? I ask because I have upgraded a
good amount of code from 1.2 to 1.3 (mostly proprietary, but a few free
libraries
I was wondering the same thing and I came across your un-answered question
here. The short answer appears to be
http://devcenter.heroku.com/articles/local-maven-dependencies
I was looking into writing a Clojure web app that I would license to an
acquaintance who is starting a business, and I
I have been thinking about the discussion of queryable programs from
Rich's keynote at Clojure Conj. This meaning of this idea is probably more
well-defined for other people than it is in my present understanding, but
my sense from the talk is that the analysis phase of compilation will
leverage
This reminds me of the discussions on the C++ Standards Committee
about compatibility with C wherein Andrew Koenig coined the phrase As
close as possible to C - but no closer... perhaps Rich feels Clojure
is as close as possible to simple - but no closer? :)
In that case we've come full
me too! :)
On Tue, Oct 25, 2011 at 11:38 PM, Sean Corfield seancorfi...@gmail.comwrote:
On Tue, Oct 25, 2011 at 8:26 PM, Luc Prefontaine
lprefonta...@softaddicts.ca wrote:
Please add me to Clojure and the web,
Me too please. I already added myself to Clojure Tooling before the
document
Hmm, I don't know if people will ever see Lisp as an AI Language though
(kidding). My personal experience was that I learned Common Lisp in the
context of an AI course in college. I was pretty excited about learning the
language, so I read The Little Lisper the summer before taking the course.
unfamiliar with my resume (nobody at Google knew what was on it
even though they had a copy at the interview). The whole idea of
such approaches shows (a) a lack of respect for the individual and
(b) an arrogant attitude of you should feel LUCKY that we even
CONSIDERED talking to you...Google
85 matches
Mail list logo