Re: IntelliJ Cursive ClojureScript IDE slowdown

2014-06-24 Thread Mike Fikes
Thanks. You're all awesome! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from thi

Re: Clojure on iOS devices - Swift as a host?

2014-06-24 Thread Mike Fikes
(Apologies to Greg for having essentially hijacked this thread, but I suspect he'd find this cool.) I have no experience with the Swift REPL yet, but I'm still finding this a little surreal: (I

Re: Clojure on iOS devices - Swift as a host?

2014-06-24 Thread Mike Fikes
Thanks David! Targeting ClojureScript to iOS just got an order of magnitude easier for me. I want to say that Colin Fleming (Cursive) has been extremely helpful in helping me sort out how to achieve this. -- You received this message because you are subscribed to the Google Groups "Clojure" gr

Re: Clojure on iOS devices - Swift as a host?

2014-06-25 Thread Mike Fikes
That's cool! What I haven't been able to figure out is if we actually get FTL with JavaScriptCore on iOS 8, or better yet, if we can somehow gain access to a JSContext from the WKWebView. More detail: I'm using ClojureScript to develop what are otherwise native iOS apps. (Meaning using UIKit,

Style-question: self-named attribute getters?

2014-06-25 Thread Mike Fikes
I'm curious about this stuff too. (I'm very new to Clojure.) I wouldn't be surprised if the general sentiment is: “Don't.” The argument goes along these lines: By encapsulating, you have introduced a tiny new little API that clients need to learn the semantics of. Additionally, that API is like

import functions from different .clj files

2014-07-12 Thread Mike Fikes
Normally, the initial elements of the namespace are used to create directories and the last element matches the filename. So, for your first example, there would be an a/b/c.clj file. Perhaps this is at the root of the issue. -- You received this message because you are subscribed to the Googl

import functions from different .clj files

2014-07-12 Thread Mike Fikes
And alternatively you could declare the first namespace as being a.b.c.fileB -- 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 patie

Re: import functions from different .clj files

2014-07-12 Thread Mike Fikes
I think the root cause is that you need to follow the directory name and filename conventions. For example clojure.java.jdbc is in a clojure/java/jdbc.clj file https://github.com/clojure/java.jdbc/blob/master/src/main/clojure/clojure/java/jdbc.clj -- You received this message because you

Re: handling only a part of a hash-map

2014-07-16 Thread Mike Fikes
select-keys makes it easy to extract a portion of a map: (select-keys {:id 1 :ts 2 :ignore 3} [:id :ts]) => {:ts 2, :id 1} -- 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 f

Re: Calculating the number of timestamps logged within a specific time period

2014-07-17 Thread Mike Fikes
As a start, you could use group-by with a function that squashes together items that fall in the same second and then count the size of each value. (reduce-kv (fn [c k v] (assoc c k (count v))) {} (group-by #(quot % 1000) epochs)) ;=> {1405060205 1, 1405060200 1, 1405060201 8, 1405060202 1} -

Re: unexpected behavior of clojure.core/empty

2014-07-18 Thread Mike Fikes
My guess: Perhaps this is a bug, or alternatively, a known issue that won't be addressed because to do so would be a breaking change. There is an old demo of Clojure given by Rich where MapEntry's were printed using some sort of un-readable notation #<:foo 5>. But clearly MapEntry's have been r

Re: Calculating the number of timestamps logged within a specific time period

2014-07-18 Thread Mike Fikes
You could use frequencies: user=> (frequencies (map #(quot % 1000) epochs)) {1405060202 1, 1405060201 8, 1405060200 1, 1405060205 1} -- 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 t

Re: unexpected behavior of clojure.core/empty

2014-07-19 Thread Mike Fikes
MapEntry is a collection: (coll? (clojure.lang.MapEntry. "a" 1)) ;=> true (ancestors (class (clojure.lang.MapEntry. "a" 1))) ;=> (a set that includes clojure.lang.IPersistentCollection) The docstring for empty implies it would return an empty MapEntry. But perhaps since MapEntry is a specia

Re: unexpected behavior of clojure.core/empty

2014-07-19 Thread Mike Fikes
I did a little “code archaeology” in an attempt to elucidate what Rich may had been thinking: In mid 2007, some of the persistent collection implementations had an EMPTY value defined. [1, 2]. (But, of course, no such EMPTY value was defined for MapEntrys.) Around a year later, MapEntrys were

Re: unexpected behavior of clojure.core/empty

2014-07-19 Thread Mike Fikes
In *Clojure Programming* (Emerick, Carper, Grand) a swap-pairs function is defined in the section describing how empty allows you to write functions against abstractions. That function operates on sequentials, and, importantly, is carefully designed (invoking empty) so that its return type is c

Re: unexpected behavior of clojure.core/empty

2014-07-19 Thread Mike Thvedt
> > Jozef > > On Saturday, July 19, 2014 9:49:21 PM UTC+2, puzzler wrote: >> >> As Mike points out, it does seem that MapEntry is considered a collection >> and is designed to emulate a vector so that you don't really have to worry >> about whether you hav

Re: Moving average from Java to Clojure

2014-07-20 Thread Mike Fikes
There actually is a queue implementation. Here is a way to use it for your problem: (defn make-moving-average-queue [n] (atom {:lengthn :current-total 0.0 :old-values(clojure.lang.PersistentQueue/EMPTY)})) (defn update-moving-average-queue [old-queue next-value]

Re: Moving average from Java to Clojure

2014-07-20 Thread Mike Fikes
Hey Cecil, In addition to using peek instead of first, as indicated by Plinio, the moving-average function above uses some poor names, in hindsight, especially the "old-queue" parameter name. I'd suggest naming it queue, as it refers to an atom. You could even consider naming the function mov

Re: Clojure XML - is there a better way?

2014-07-22 Thread Mike Fikes
My only gut reaction is that, without a root node, it doesn't seem that you have "XML". (It is certainly not a well formed document, and I would suspect lots of XML tools/libraries would have difficulty coping with the example you provided.) -- You received this message because you are subscri

ANN qarth 0.1.0, an OAuth library

2014-07-24 Thread Mike Thvedt
t for OAuth v2 and Scribe-Java. https://github.com/mthvedt/qarth Qarth is brand new, so please let me know about any issues or rough edges you encounter. --Mike mike.thv...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

Re: ANN qarth 0.1.0, an OAuth library

2014-07-25 Thread Mike Thvedt
the same thing with OAuth--log in users and get a token to make requests. However, differences between OAuth providers made code reuse difficult, despite a few attempts at fixing the situation. This is the wheel I hope doesn't have to be reinvented. Mike On Friday, July 25, 2014 8:16:44

Re: Clojure 1.7 and invokeStatic

2014-08-06 Thread Mike Thvedt
It's worth pointing out that var indirection is already cheap in Java--it is generally dominated by IO, memory access, object construction, dynamic dispatch... The JIT compiler will inline any var access if the var doesn't visibly change, and only needs to check one word of memory per var each

Re: Clojure 1.7 and invokeStatic

2014-08-06 Thread Mike Thvedt
Last sentence should be: "I've replaced vars with Java methods in some high-performance cases and found a 0% speedup." On Wednesday, August 6, 2014 5:54:32 AM UTC-5, Robin Heggelund Hansen wrote: > > Just read this blog post about Oxen ( > http://arrdem.com/2014/08/05/of_oxen,_carts_and_ordering/

Re: Clojure 1.7 and invokeStatic

2014-08-06 Thread Mike Thvedt
I don't want to question your microbenchmarks, but I'm not sure you have the correct interpretation. Read memory fences have little to no cost. In particular, read memory fences are a no-op (literally) on x86 unless the cache line is invalidated. On Wednesday, August 6, 2014 5:54:32 AM UTC-5, R

Re: Clojure 1.7 and invokeStatic

2014-08-06 Thread Mike Thvedt
I didn't want to start a flame war, I just didn't want people being misled into thinking static vars are a big perf improvement for most code. It's better do use ordinary dynamic vars unless you're sure it will be beneficial for some tight loop somewhere. The usual case is the JIT inlines the v

Newbie: adding items to a global vector in doseq

2014-08-14 Thread Mike Fikes
Read up on atoms. The results of your conj call are being discarded. For example, check out the behavior of this: (def urls2 (atom [])) (swap! urls2 conj "http://foo.bar";) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: Newbie: adding items to a global vector in doseq

2014-08-14 Thread Mike Fikes
Thomas is absolutely right, Philippe. Things also get easier if you avoid, or defer side effects, and first focus on pure functions. So, for example at the REPL, you might first try processing a literal sequence of lines, repeatedly adjusting the processing code, tweaking the regex, until you

Programming Clojure "in the large": libraries, frameworks, oh my

2014-09-19 Thread Mike Haney
Just a note - juxt/jig isn't being maintained, and has been replaced by juxt/modular. Modular is based on Stuart Sierra's component library, and mainly consists of several pre-built components and some nice helpers for wiring and configuring components. It also plays well with juxt/ceylon, whi

Re: [ANN] Onyx: Distributed data processing in Clojure

2014-09-20 Thread Mike Drogalis
Daniel: Haha, yes! Shame that I tried to be smooth in open sourcing it, and managed to botch it in the worst possible manner. Rangel: I can't speak to ZeroMQ, but I chose HornetQ because of its performance, support for transactions, and support for clustering. That being said, everything that touc

Rich Hickey's Transducers talk from Strange Loop

2014-09-21 Thread Mike Rodriguez
Thanks for putting it up so fast! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe fr

Re: core.async | compojure ... odd error ... help!!

2014-09-28 Thread Mike Fikes
ther call go for stuff that needs to be async, or to-chan on collections read directly from memory. - Mike On Saturday, September 27, 2014 5:01:36 AM UTC-4, mond wrote: > > Hi James, > > Er, nice tip on the routes - that was another thing that I didn't expect > to wor

Re: Where can one find low hanging fruit for open source contribution?

2014-09-29 Thread Mike Drogalis
Please do. :) On Mon, Sep 29, 2014 at 5:57 PM, Marcus Blankenship wrote: > Cool, thanks Michael. Do you mind if I add it to the Clojure Learning > Resources repo page? > > https://github.com/marcuscreo/clojure-learning-resources > > > On Sep 29, 2014, at 5:54 PM, Michael Drogalis > wrote: > >

Do this or that

2014-10-06 Thread Mike Fikes
Here's a style question: If you have to conditionally do one set of side effects or another set, is your preference to use when and when-not, or an if containing do blocks? Or perhaps some other construct? In terms of a concrete example: (let [boolean-value (some-predicate?)] (when boolean-va

Re: best way to edit EDN value in cljs

2014-10-10 Thread Mike Fikes
Can you use update-in or assoc-in? On Friday, October 10, 2014 2:28:26 PM UTC-4, Dustin Getz wrote: > > I have an arbitrarily nested EDN value stored in an atom in ClojureScript. > > What is the best way to make edits to an arbitrary subtree of this value? > -- You received this message because

Re: Do this or that

2014-10-11 Thread Mike Fikes
Thanks all! FWIW, the snake game in Programming Clojure has an example (where refs are conditionally updated) which is consistent with the advice given here. Two nice things I noticed in that example: 1. The first form inside do is kept on the same line (a small but nice improvement reducing

Re: Keyword comparison performance

2014-10-11 Thread Mike Rodriguez
To the point (b) it seems that this posts is saying the clj's = will not be faster for keyword than string since the runtime type checking overhead is where most time is spent. So the identity part of keyword equals doesn't show its benefit here (unless these were long strings vs long keywords I

Re: Keyword comparison performance

2014-10-11 Thread Mike Rodriguez
To the point (b) it seems that this posts is saying the clj's = will not be faster for keyword than string since the runtime type checking overhead is where most time is spent. So the identity part of keyword equals doesn't show its benefit here (unless these were long strings vs long keywords I

Re: Keyword comparison performance

2014-10-11 Thread Mike Rodriguez
To the point (b) it seems that this posts is saying the clj's = will not be faster for keyword than string since the runtime type checking overhead is where most time is spent. So the identity part of keyword equals doesn't show its benefit here (unless these were long strings vs long keywords I

Re: Keyword comparison performance

2014-10-11 Thread Mike Rodriguez
Thanks for taking the time for the (detailed) clarification. I understand what you were saying now. :) -- 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 ar

Re: Why is my function faster with eval?

2014-10-11 Thread Mike Fikes
Hey Michael, Since your eval solution essentially "cookie-cutters" out maps, each with the same keys, as fast as it can, I was playing around with what would happen if you used records, and I cobbled together something that appears to run twice as fast as the eval approach: (defn read-to-struc

Re: uniqueness of hash if computed on different jvms across different machines.

2014-10-13 Thread Mike Fikes
In addition to Andy's caveats, remember that hash code equality doesn't imply object equality. In concrete terms, a = b implies h(a) = h(b), with the useful bit being h(a) ≠ h(b) implies a ≠ b. On Monday, October 13, 2014 2:04:57 AM UTC-4, Sunil Nandihalli wrote: > > Hi, > Is the clojure

Re: Modelling in Clojure

2014-10-21 Thread Mike Haney
I can't remember if someone posted this already, and the thread is too long and I am too lazy to go back and check, so I apologize if it's already been mentioned. Anyway, I found this talk very helpful when I started learning Clojure, getting used to data-oriented thinking: http://www.infoq.co

Re: multimethod, record, type, and protocol pitfalls?

2014-10-26 Thread Mike Haney
I recently ran into the & args issue as well. I'm sure I read about when I was learning clojure, but it's easy to forget. -- 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 f

Expanding The Use Of Transducers To Atoms?

2014-10-26 Thread Mike Thompson
rs and how they can be used in the case of observables, should this atom-as-seq-with-transducer be easier? Should the IAtom interface or the add-watcher function be changed to make this process easier? Just a thought. -- Mike -- You received this message because you are subscribed to the Goo

Idiomatic way to return a single value from an async function

2014-11-10 Thread Mike Haney
Eric Normand has an interesting article on this here: http://www.lispcast.com/core-async-code-style -- 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 mod

Re: Persistent Data Structures for Objective-C/LLVM

2014-11-12 Thread Mike Fikes
I'm thinking Anton's persistent collections could be useful on iOS. Out of curiosity, I made a small iOS project that compares the performance of Anton's map to ClojureScript's, when adding lots of key-value pairs (using transients): https://github.com/mfikes/persistent-objc-cljs Interestingly,

Re: If code is data why do we use text editors?

2014-11-15 Thread Mike Haney
Colin - I'm just curious if you have any experience with Jetbrains MPS? I was into it pretty heavily before I got into Clojure, and I've thought a lot about how to add support for Clojure to it (would be pretty straightforward, actually), but haven't had the time to pursue it or the conviction

Re: Clojurescript to target JVM?

2014-11-21 Thread Mike Fikes
I too was intrigued by this and cobbled together a quick test to see if this made it possible to create command-line apps that start up more quickly [1]. It appears that this is indeed the case, but, of course you still need to pay JVM startup time. I was also interested in what Sam Beran accom

Re: Thnx for clojureconj videos !!

2014-11-24 Thread Mike Haney
Seconding the recommendation for the Clojure Gazette. If you aren't subscribed already, just do it. It's a fantastic resource, and I am very grateful for Eric Normand and the tireless effort he puts into it. On a side note, I had the pleasure of meeting Eric at the Conj, and he is one of the

"rest" arguments and desctructuring / nil vs. empty

2014-11-30 Thread Mike Fikes
For "rest" arguments, as in (defn foo [x & r] r), when the remaining arguments are rolled up into a sequence, you will get nil instead of an empty sequence. Is it fair to say that the "rest" nomenclature came about back at the beginning of Clojure, when rest really did return nil, prior to the

Re: Charting Data Format Feedback Requested

2014-12-12 Thread Mike Anderson
Lucas, Thanks for kicking off the discussion - great to see your proposal on this. I think it will be really valuable if we can converge on a standard way of representing this kind of data in Clojure/ClojureScript. Copying the Incanter and main Clojure groups as well because I think there will

Re: "Multimethod dispatch based on Java classes is simply not reliable."

2014-12-13 Thread Mike Rodriguez
I'm not 100% sure and haven't really looked deeply at this comment or link you mention, but perhaps this is related to http://dev.clojure.org/jira/browse/CLJ-979. This would only be the case for Clojure-dynamically generated Java classes though, which is those from deftype or the macros built o

Re: Has the old "invalid constant tag: -57" bug been fixed?

2014-12-16 Thread Mike Fikes
I've recently seen the same error: Loading test/cljs/classroom_checkout/test1.cljs... done CompilerException java.lang.ClassFormatError: Unknown constant tag 117 in class file classroom_checkout/utils_test$eval12853, compiling:(/private/var/folders/m0/161fm8fx069fk_fny08nrmkmgp/T/form-in

Re: Has the old "invalid constant tag: -57" bug been fixed?

2014-12-16 Thread Mike Fikes
You are absolutely right, Andy. Getting out my bantha shears in order to provide a good reduction for a bug report… -- 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

Re: Has the old "invalid constant tag: -57" bug been fixed?

2014-12-16 Thread Mike Fikes
I found that the problem I'm experiencing is, in essence, the same issue as discussed (and fixed) here , but with some new tool in my toolchain (Cursive/simple-brepl/Weasel). TL;DR: Something produces a .class file that exceeds th

Re: Has the old "invalid constant tag: -57" bug been fixed?

2014-12-17 Thread Mike Fikes
I did some digging and for those interested, this appears to be the way piggieback and tools.nrepl work for ClojureScript. Details are in the Cursive ticket: https://github.com/cursiveclojure/cursive/issues/680 -- You received this message because you are subscribed to the Google Groups "Cloju

ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-27 Thread Mike Anderson
Here is a little belated Christmas present for Clojure data aficionados: ;; setup (use 'clojure.core.matrix) (set-current-implementation :vectorz) ;; create a big sparse matrix with a trillion elements (initially zero) (def A (new-sparse-array [100 100])) ;; we are hopefully smart enough

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-28 Thread Mike Anderson
7;t yet optimised for sparse operations. So any review / patches would be appreciated! > > On Saturday, December 27, 2014 4:56:55 AM UTC-5, Mike Anderson wrote: >> >> Here is a little belated Christmas present for Clojure data aficionados: >> >> ;; setup >>

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-28 Thread Mike Anderson
2014 09:43:54 UTC+8, Matt Revelle wrote: > > > On Dec 28, 2014, at 7:28 PM, Mike Anderson > wrote: > > Interesting idea. The challenge is that I'm not sure how to add > representation specification in an implementation independent way. It's a > quirk of ve

Re: [lein] compile sass?

2014-12-28 Thread Mike Haney
Cool, I'll give your fork a try. I've been using lein-shell to just run sassc directly, but it's annoying because sassc bombs if the target folder doesn't exist. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c

Re: ANN: boltzmann 0.1.1 - a deep-learning library

2015-01-04 Thread Mike Anderson
Very cool stuff! I notice that you are specialising the RBM to a specific matrix implementation (Clatrix / JBlas) in the file "jblas.clj". Are you sure you need to do that? Part of the beauty of core.matrix is that you should be able to write your algorithms in an implementation-independent man

Re: ANN: boltzmann 0.1.1 - a deep-learning library

2015-01-05 Thread Mike Anderson
On Tuesday, 6 January 2015 04:27:55 UTC+8, Christian Weilbach wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 05.01.2015 03:34, Mike Anderson wrote: > > Very cool stuff! > > Like yours! I wish nurokit was EPLed, then I could have had a look at

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2015-01-10 Thread Mike Anderson
Thanks Matt! I've just release Vectorz 0.45.0 including your changes. A lot of sparse operations are much faster now! On Monday, 29 December 2014 21:56:30 UTC+8, Matt Revelle wrote: > > Yes, will do. > > On Dec 28, 2014, at 9:58 PM, Mike Anderson > wrote: > > Loo

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-11 Thread Mike Fikes
Alex, 1.7.0-alpha5 looks OK to me. It passed with some regression testing for an AOTd http-kit compojure / core.async REST server using Lucene, clojure/java.jdbc / MySQL, Java 1.7.0_65 on Ubuntu 10.04.1 LTS. -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Clojure for Desktop UI Design Application

2015-01-13 Thread Mike Haney
I know it seems overwhelming, and if you try to keep up with all the latest "cool" libraries, -- 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 moderate

Re: Clojure for Desktop UI Design Application

2015-01-13 Thread Mike Haney
My evolution is similar to Colin's, with more SWT than Swing. And I understand where you're coming from - did Java for 15 years and C++ before that. I didn't even really learn about functional programming until about 3 years ago, and after an aborted dive into learning Scala I switched to Clo

Re: [ANN] Clojure 1.9.0-alpha1

2016-05-25 Thread Mike Rodriguez
> > >> Is there a recommended way to introspect specs for our own purposes >>> (coercion, code generation)? An interpreter on the output of 'describe' >>> might work (although it's a little complicated for fn specs), but I wanted >>> to know if you all had any thoughts or plans for the future

Re: [ANN] Clojure 1.9.0-alpha1

2016-05-26 Thread Mike Rodriguez
Thanks for this explanation. I think that cleared up some of this for me more. I'm certainly excited about this new addition. I should have started off with that. On Wednesday, May 25, 2016 at 8:01:49 PM UTC-5, Rich Hickey wrote: > > I’d advise everyone concerned/confused about the relationsh

Qualified keys, Clojure records, Spec

2016-06-11 Thread Mike Rodriguez
I know that Spec and the changes coming to Clojure 1.9 I see that namespace qualified keys have gained some focus. I understand the motivations for this and support it.  The one barrier that is coming up for me is in the use of Clojure records (and perhaps deftype types too). We use records fai

Re: Qualified keys, Clojure records, Spec

2016-06-14 Thread Mike Rodriguez
ady associated with a record via the record class > itself. So, this is an area still potentially open for more work. > > I think deftype is not an issue as you don't generally have keyword field > access in deftype like you do with defrecord. > > > On Saturday, June

Re: [ANN] Leiningen 2.7.0

2016-08-28 Thread Mike Rodriguez
I'm excited about this :managed-dependencies feature along with it's combined usage with lein-parent. I think this is a feature I really needed from Leiningen for quite some time now. On Wednesday, August 24, 2016 at 7:03:52 PM UTC-5, Jean Niklas L'orange wrote: > > Greetings, fellow Clojuria

Re: is it always safe to read a string and converts it back to a string?

2016-11-24 Thread Mike Rodriguez
Just FYI. The code part under "Tabs are printed as \t:" has a typo and shows a new line instead of tab. Otherwise nice work. -- 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 po

Re: [ANN] 2016 State of Clojure Community Survey

2016-12-12 Thread Mike Rodriguez
Uh oh. I should have asked. I ranked my priorities in the exact opposite order since I thought 1 was lowest. -- 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 membe

Reducing non-Clojure maps may not behave as expected

2016-12-21 Thread Mike Rodriguez
I found an issue with Clojure's behavior on iterators that somewhat relates to what was discussed the comment thread of http://dev.clojure.org/jira/browse/CLJ-1738. I'm posting it here to raise awareness and to see if anyone thinks it is a legitimate concern or "behaving as expected". Fortuna

Re: Reducing non-Clojure maps may not behave as expected

2016-12-21 Thread Mike Rodriguez
On Wednesday, December 21, 2016 at 9:02:36 AM UTC-6, Alex Miller wrote: > > > > On Wednesday, December 21, 2016 at 7:24:17 AM UTC-6, Mike Rodriguez wrote: >> >> That sounds like a good idea to me. I think the major potential issue is >> that it creates ambiguity

Re: Reducing non-Clojure maps may not behave as expected

2016-12-21 Thread Mike Rodriguez
Thanks, both of you, for the extra background there. On Wednesday, December 21, 2016 at 9:44:34 AM UTC-6, Alex Miller wrote: > > From prior conversations, Rich is not in favor of the preference approach > for protocols. I'm not sure what he has in mind as an alternative though. > > On Wednesday,

maven-shade-plugin issues with Clojure core (or any clj) AOT compilation

2016-12-28 Thread Mike Rodriguez
Background: This problem is specific to building jars that contain AOT (Ahead Of Time) compiled Clojure code using Maven and the maven-shade-plugin. Clojure AOT compilation depends on timestamps of .class files vs .clj files being accurate. When both .class files and their associated .clj file

Re: maven-shade-plugin issues with Clojure core (or any clj) AOT compilation

2016-12-28 Thread Mike Rodriguez
s to > resolve further classloader issues. > > On Wed, Dec 28, 2016 at 8:06 AM Mike Rodriguez > wrote: > >> Background: >> >> This problem is specific to building jars that contain AOT (Ahead Of >> Time) compiled Clojure code using Maven and the maven-shad

Re: maven-shade-plugin issues with Clojure core (or any clj) AOT compilation

2016-12-28 Thread Mike Rodriguez
at clojure.lang.Var.invoke(Var.java:375) at shade.ShadeJava.main(ShadeJava.java:14) On Wednesday, December 28, 2016 at 7:06:11 AM UTC-6, Mike Rodriguez wrote: > > Background: > > This problem is specific to building jars that contain AOT (Ahead Of Time) > compiled Clojure c

Order preservation and duplicate removal policy in `distinct`

2016-12-28 Thread Mike Rodriguez
The doc for `distinct` is: "Returns a lazy sequence of the elements of coll with duplicates removed. Returns a stateful transducer when no collection is provided." (1) In the lazy sequence case, I've thought that maybe it is assuemd there is a guarantee that the order of the input seq is preser

Re: Order preservation and duplicate removal policy in `distinct`

2016-12-29 Thread Mike Rodriguez
28, 2016 at 9:55 AM, Michael Blume > wrote: > >> Also, I'm assuming distinct uses .equals semantics which might be worth >> calling out in the doc >> >> On Wed, Dec 28, 2016, 11:22 AM Mike Rodriguez > > wrote: >> >>> The doc for `distin

Re: Order preservation and duplicate removal policy in `distinct`

2016-12-29 Thread Mike Rodriguez
Yeah. It is so hard to come up with a real use case here after I think about it that it is best to just let it be. It would only matter if identity mattered for something, but still hard to even contrive a scenario. So part (2) solved. -- You received this message because you are subscribed

Re: Order preservation and duplicate removal policy in `distinct`

2016-12-29 Thread Mike Rodriguez
> f 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. I under

Re: Order preservation and duplicate removal policy in `distinct`

2016-12-30 Thread Mike Rodriguez
On Thursday, December 29, 2016 at 5:47:14 PM UTC-6, Erik Assum wrote: > > Wouldn't the order be different depending on wether you keep the first or > the last? > > (distinct [1 2 1]) > => [1 2] > vs > (distinct [1 2 1]) > => [2 1] > > Erik. > -- > i farta > > I should have thought about this sce

Re: Order preservation and duplicate removal policy in `distinct`

2016-12-30 Thread Mike Rodriguez
Yeah, I was thinking about logging the ticket for it. I just figured I'd discuss it on the google groups first to see if anyone else thought it was a useful concern. It seems that some people have opinions on in it in both directions perhaps, i.e. docs are sufficient vs docs are not sufficient.

Re: Order preservation and duplicate removal policy in `distinct`

2017-01-03 Thread Mike Rodriguez
ava objects (which fall back to .equals behavior). > > If you wanted to file a jira on anything here, a jira to add a line to the > doc string stating that the first duplicate is kept would be the only thing > possibly worth doing. > > Alex > > > On Wednesday, December

Re: maven-shade-plugin issues with Clojure core (or any clj) AOT compilation

2017-01-03 Thread Mike Rodriguez
plugin not > preserving information that it should, so it seems like it should be fixed > there. > > On Wednesday, December 28, 2016 at 7:06:11 AM UTC-6, Mike Rodriguez wrote: >> >> Background: >> >> This problem is specific to building jars that contain AOT (Ahea

Re: Apparently nondeterministic compilation failure

2017-01-24 Thread Mike Rodriguez
I believe it is generally true that the Clojure-maven-plugin has non-deterministic ordering of namespaces it auto "discovers" for its various goals that involve namespace discovery. This has been a source of frustration for me in the past as far as trying to get determinism with test behaviors

Re: ANN: ClojureScript 1.9.456, Externs Inference & Comprehensive JS Modules Support

2017-03-08 Thread Mike Rodriguez
Guava is often a dependency conflict when trying to put libs together that use it. I'm surprised cljs has dependencies like this. I'd think a language would try to avoid having any deps at all or repackage them or something. For example, Clojure only has ASM. -- You received this message beca

Re: Leiningen, AOT compilation, and classloaders

2017-03-10 Thread Mike Rodriguez
I haven't been able to get to the bottom of this as of yet. Primarily the problem is I need to investigate how `lein trampoline` works compared to without it, from an implementation perspective. I'll note that `lein test` does do a :reload option to `require` when running tests. Typically for

Re: [ANN] Virgil 0.1.6

2017-03-17 Thread Mike Rodriguez
I've have used this as a lein plugin and I think it is a really great tool to have available. It makes working on Java or a hybrid Java/Clojure project more tolerable. On Thursday, March 16, 2017 at 2:13:35 PM UTC-4, Zach Tellman wrote: > > I figured it was worth reminding everyone that this li

Clojure android activity?

2017-06-23 Thread Mike Meyer
Is there still any activity in the clojure-android space? The clojure-android mail list is largely inactive, seems like the developers of lein-droid haven't done anything in months (1.7.0-r4 is still used in the templates), and the numerous references If ind for an android-clojure web site are

Re: Releasing scope-capture, a library for easing REPL-based debugging

2017-10-14 Thread Mike Rodriguez
I really like this library already. I only had to give it about 5 minutes of time to immediately see how it simplified quick REPL-driven debugging workflows for me. The only outstanding issue that is an annoyance for me is the CLJS support, which is discussed at https://github.com/alvalval

Re: Releasing scope-capture, a library for easing REPL-based debugging

2017-10-19 Thread Mike Rodriguez
Waeselynck wrote: > > @Mike Rodriguez the 0.1.3 release improves ClojureScript support and > should solve the mentioned issue, along with much better documentation > <https://github.com/alvalval/scope-capture/wiki/Pitfalls-with-(browser-connected)-ClojureScript-REPLs> > >

Re: Noob: Getting (re)started with Clojure on OS X

2019-03-13 Thread Mike Rodriguez
[cider/cider-nrepl "0.8.2"] is quite old. It looks like lein 2.9.1 (as of 2.8.2) uses a newer version of nrepl that requires cider-nrepl 0.18+ or something along those lines. In newer versions of cider, you may not need to include this plugin at all. I know that the "jack-in" commands of cider

Re: [ANN] MrAnderson 0.5.0 released

2019-03-25 Thread Mike Rodriguez
It's good to see this lib getting attention. It can be very useful. On Monday, March 25, 2019 at 12:04:55 PM UTC-4, benedek fazekas wrote: > > hi everyone, > > happy to announce a new version of MrAnderson < > https://github.com/benedekfazekas/mranderson>, a dependency inlining and > shadowing to

Re: [ANN] proxy-plus: Faster and more usable replacement for "proxy"

2020-01-15 Thread Mike Rodriguez
Do you have any idea about the reason that the Clojure implementation was done this way - when it obviously seems a bit limited and also slower than necessary? Just curious if there's some historical context. On Tuesday, January 14, 2020 at 11:58:17 AM UTC-5, Nathan Marz wrote: > > The speedup c

Re: [ANN] proxy-plus: Faster and more usable replacement for "proxy"

2020-01-15 Thread Mike Rodriguez
tage. > > On Wednesday, January 15, 2020 at 10:46:36 AM UTC-6, Mike Rodriguez wrote: >> >> Do you have any idea about the reason that the Clojure implementation was >> done this way - when it obviously seems a bit limited and also slower than >> necessary? Just curious

[ANN] Planck 1.0 - Bootstrapped ClojureScript OS X REPL

2015-07-31 Thread Mike Fikes
Happy to announce that Planck 1.0 is available: http://planck.fikesfarm.com -- 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 memb

[ANN] Planck OS X REPL

2015-08-04 Thread Mike Fikes
ur-a-pint-of-planck.html> - Mike -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To

<    1   2   3   4   5   6   7   8   9   >