Extra optional attr-map argument on defn... why?

2021-08-08 Thread Robert Levy
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?

Re: [ANN] Discontinuing 4clojure.com

2021-07-06 Thread Robert Levy
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?

Re: [ANN] Discontinuing 4clojure.com

2021-07-06 Thread Robert Levy
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

Re: Tour of our 250k line Clojure codebase

2021-06-03 Thread Robert Levy
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

Radicle

2018-10-17 Thread Robert Levy
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

Re: clojure code routine

2018-09-27 Thread Robert Levy
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

Re: clojure code routine

2018-09-27 Thread Robert Levy
"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

Re: clojure code routine

2018-09-27 Thread Robert Levy
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 >

Re: clojure code routine

2018-09-27 Thread Robert Levy
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

Re: clojure code routine

2018-09-27 Thread Robert Levy
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

Re: clojure code routine

2018-09-27 Thread Robert Levy
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

Re: clojure code routine

2018-09-27 Thread Robert Levy
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

Re: Clojure(Script) web apps in 2018

2018-09-21 Thread Robert Levy
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

Unresolvable ns alias in keyword breaks reader before #_ reader macro applies

2018-08-22 Thread Robert Levy
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

Re: Two Senior Clojure developers based in Moscow looking for the interesting challenges and possibility for remote work

2018-08-03 Thread Robert Levy
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

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-23 Thread Robert Levy
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

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-18 Thread Robert Levy
> 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

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-18 Thread Robert Levy
, 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

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-18 Thread Robert Levy
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

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-17 Thread Robert Levy
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

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-17 Thread Robert Levy
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

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-17 Thread Robert Levy
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

Re: [ANN] spec.alpha 0.2.168 and core.specs.alpha 0.2.36

2018-06-27 Thread Robert Levy
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

Re: Clojure/flutter

2018-05-29 Thread Robert Levy
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

Re: Clojure/flutter

2018-04-27 Thread Robert Levy
> > > 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

Re: Clojure/flutter

2018-04-27 Thread Robert Levy
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

Re: Clojure/flutter

2018-04-27 Thread Robert Levy
> > 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

Re: Clojure/flutter

2018-04-25 Thread Robert Levy
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 >

Re: [ANN] A couple of libraries for functional reactive web programming - Ulmus & Recurrent

2018-04-05 Thread Robert Levy
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.

Re: [ANN] A couple of libraries for functional reactive web programming - Ulmus & Recurrent

2018-04-04 Thread Robert Levy
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

Re: [ANN] test-runner, a test runner for projects using Clojure Deps

2018-02-20 Thread Robert Levy
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

Re: Something that has a spec is said to be ???

2017-11-13 Thread Robert Levy
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

Re: Q: How to find out how much Clojure you use

2017-10-25 Thread Robert Levy
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

Re: Clojure IoT?

2016-04-10 Thread Robert Levy
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

Re: a project template containing clj, cljs cljc files

2016-03-06 Thread Robert Levy
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.

Re: [ANN] debux 0.2.0 is out

2016-02-24 Thread Robert Levy
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

Re: is there a community "best practice" for including your co-workers libraries?

2015-10-16 Thread Robert Levy
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:

Re: Show: Naive data fitting with Nyarlathotep

2015-08-14 Thread Robert Levy
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

Re: What does ^:internal mean?

2015-05-10 Thread Robert Levy
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.

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread Robert Levy
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

Re: flip in clojure

2015-04-30 Thread Robert Levy
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.

Re: thread-any macro %

2014-11-23 Thread Robert Levy
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

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-19 Thread Robert Levy
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

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-13 Thread Robert Levy
(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

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-13 Thread Robert Levy
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

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-13 Thread Robert Levy
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

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-13 Thread Robert Levy
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

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-13 Thread Robert Levy
(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

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-13 Thread Robert Levy
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

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-13 Thread Robert Levy
) (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

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-13 Thread Robert Levy
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

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-13 Thread Robert Levy
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

Re: Is Clojure right for me?

2013-12-27 Thread Robert Levy
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

Re: Library can depend on an older version of itself?

2013-12-23 Thread Robert Levy
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

Re: Recruiter claims to be Rick Hickey's sister

2013-12-02 Thread Robert Levy
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

Re: ANN: clj-tuple, efficient small collections

2013-08-26 Thread Robert Levy
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

Re: Status of Generic Functions (a la lisp)

2013-08-04 Thread Robert Levy
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

Re: Status of Generic Functions (a la lisp)

2013-08-04 Thread Robert Levy
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

Re: Status of Generic Functions (a la lisp)

2013-08-03 Thread Robert Levy
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:

Re: Status of Generic Functions (a la lisp)

2013-08-03 Thread Robert Levy
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

Re: In what OS do you code?

2013-06-17 Thread Robert Levy
+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

Re: Clojure in production

2013-06-17 Thread Robert Levy
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

Re: Any suggestions for configuration solution in Clojure or Java world?

2013-06-17 Thread Robert Levy
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

Re: In what OS do you code?

2013-06-16 Thread Robert Levy
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

[ANN] ojo

2013-01-12 Thread Robert Levy
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

Re: ANN: contrib-repl

2012-12-04 Thread Robert Levy
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;

ANN: contrib-repl

2012-12-03 Thread Robert Levy
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:

[ANN] drakerlabs/lein-deploy-app 0.2.0

2012-09-14 Thread Robert Levy
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

Re: Latest Bagwell paper for a new implementation of Clojure vectors ?

2012-07-19 Thread Robert Levy
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,

Re: How I can convert this python line to clojure?

2012-06-25 Thread Robert Levy
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

Re: [ANN] milieu - the environmentally friendly configuration tool (version 0.5.0)

2012-06-25 Thread Robert Levy
, 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

Re: [ANN] milieu - the environmentally friendly configuration tool (version 0.5.0)

2012-06-25 Thread Robert Levy
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-)

ANN: lambic v. 0.1.0

2012-06-14 Thread Robert Levy
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.

Re: ANN: Swiss Arrows

2012-04-02 Thread Robert Levy
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)

Re: ANN: Swiss Arrows

2012-04-02 Thread Robert Levy
: 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

ANN: Swiss Arrows

2012-04-01 Thread Robert Levy
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

Re: ANN: Swiss Arrows

2012-04-01 Thread Robert Levy
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

Re: ANN: ClojureScript revision 927 release

2012-01-23 Thread Robert Levy
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

Which Clojure libraries with 1.2 dependencies should we upgrade to 1.3?

2011-12-24 Thread Robert Levy
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

Re: Using Lein with Local Jars on Heroku

2011-12-06 Thread Robert Levy
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

Static contract checking for Clojure?

2011-11-20 Thread Robert Levy
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

Re: Is Clojure Simple?

2011-10-26 Thread Robert Levy
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

Re: Clojure Conj extracurricular activities spreadsheet

2011-10-25 Thread Robert Levy
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

Re: Stanford AI Class

2011-08-15 Thread Robert Levy
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.

Re: Stanford AI Class

2011-08-09 Thread Robert Levy
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