I've found a constellation of related bugs in primitive function support when type-hinting *return types*.

2016-08-09 Thread Fluid Dynamics
=> (defn foo [x] (doto (double-array 1) (aset 0 x))) => [(foo 3.0) (type (foo 3.0))] [[3.0] [D] ; As expected, a double array with the value passed in. ; Maybe a good idea to hint this function as always returning a double array. => (defn foo ^doubles [x] (doto (double-array 1) (aset 0 x)))

Re: lazy-cat's memoization obscuring runtime exceptions

2016-06-13 Thread Fluid Dynamics
On Monday, June 13, 2016 at 4:38:47 PM UTC-4, Gary Trakhman wrote: > > What's surprising about this? Maybe you want the promoting *' variant: > > > (def expexp (lazy-cat [2] (map #(*' % %) expexp))) > #'sandbox21201/expexp > > (take 100 expexp) > Execution Timed Out! > > Seems like it's a big

Re: [ANN] core.async 0.2.382

2016-06-13 Thread Fluid Dynamics
On Monday, June 13, 2016 at 4:14:25 PM UTC-4, Alex Miller wrote: > > core.async 0.2.382 is now available. > > Try it via: [org.clojure/core.async "0.2.382"] > > 0.2.382 includes the following changes: > > - Change default dispatch thread pool max size to 8. > - Add Java system property

Re: Bug (in Clojure 1.5): (fn [& xs] (pop xs)) throws ClassCastException clojure.lang.ArraySeq cannot be cast to clojure.lang.IPersistentStack

2016-06-12 Thread Fluid Dynamics
On Sunday, June 12, 2016 at 2:28:05 AM UTC-4, Alex Miller wrote: > > > > On Sunday, June 12, 2016 at 1:15:23 AM UTC-5, Fluid Dynamics wrote: >> >> >> All of that is very interesting, but then, by your own arguments (pop >> (seq '(1 2 3))) should *not* work.

Re: Bug (in Clojure 1.5): (fn [& xs] (pop xs)) throws ClassCastException clojure.lang.ArraySeq cannot be cast to clojure.lang.IPersistentStack

2016-06-12 Thread Fluid Dynamics
On Sunday, June 12, 2016 at 12:41:05 AM UTC-4, Alex Miller wrote: > > > > On Saturday, June 11, 2016 at 6:33:07 PM UTC-5, Fluid Dynamics wrote: >> >> On Saturday, June 11, 2016 at 6:55:03 PM UTC-4, Matching Socks wrote: >>> >>> pop isn't a sequenc

Re: Bug (in Clojure 1.5): (fn [& xs] (pop xs)) throws ClassCastException clojure.lang.ArraySeq cannot be cast to clojure.lang.IPersistentStack

2016-06-11 Thread Fluid Dynamics
On Saturday, June 11, 2016 at 6:55:03 PM UTC-4, Matching Socks wrote: > > pop isn't a sequence function. > > Check out the manual: > http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/pop > > You may use first/rest on any sequence, but pop does something more > special(ized).

Re: Bug (in Clojure 1.5): (fn [& xs] (pop xs)) throws ClassCastException clojure.lang.ArraySeq cannot be cast to clojure.lang.IPersistentStack

2016-06-11 Thread Fluid Dynamics
On Saturday, June 11, 2016 at 5:29:55 PM UTC-4, Alex Miller wrote: > > Currently only vectors and lists implement the stack interfaces, not seqs. > I do not think it makes sense for *all* seqs to implement the stack > interface. > Why not? They all support efficient first and next operations.

Bug (in Clojure 1.5): (fn [& xs] (pop xs)) throws ClassCastException clojure.lang.ArraySeq cannot be cast to clojure.lang.IPersistentStack

2016-06-11 Thread Fluid Dynamics
=> (pop '(1 2 3)) (2 3) => (pop (seq '(1 2 3))) (2 3) => ((fn [& xs] (pop xs)) '(1 2 3)) ClassCastException clojure.lang.ArraySeq cannot be cast to clojure.lang.IPersistentStack => (pop (map inc (take 5 (iterate inc 0 ClassCastException clojure.lang.LazySeq cannot be cast to

Re: clojure.spec and s/keys + s/fdef problem

2016-06-10 Thread Fluid Dynamics
On Friday, June 10, 2016 at 8:58:10 AM UTC-4, Steen Larsen wrote: > > Hi, > > I am playing around with spec, and really like it so far, but have a > problem using fdef with maps. I am obviously missing something trivial, but > the following example gives a, to me, weird error > > (defn command

Re: [ANN] Clojure 1.9.0-alpha5

2016-06-09 Thread Fluid Dynamics
On Thursday, June 9, 2016 at 9:32:51 AM UTC-4, Alex Miller wrote: > > I think it's quite likely that you have multiple copies of tools.analyzer > (and possibly other libs) on your classpath. Can you take a look at your > deps and see if that might be the case? > > A particular thing to watch for

Re: Vars named **

2016-06-06 Thread Fluid Dynamics
On Monday, June 6, 2016 at 7:28:18 AM UTC-4, Gordon Syme wrote: > > Easily verified - > https://github.com/arthuredelstein/clooj/blob/master/project.clj What the hell? That commit is over two years old. -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Vars named **

2016-06-05 Thread Fluid Dynamics
On Saturday, June 4, 2016 at 6:29:00 PM UTC-4, Alex Miller wrote: > > This was fixed in http://dev.clojure.org/jira/browse/CLJ-1233 way back in > Clojure 1.6. > That would mean that the current version of clooj (0.4.4) is still using Clojure 1.5?! Or is there a newer version of clooj that

Vars named **

2016-06-04 Thread Fluid Dynamics
"Warning: ** not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic ** or change the name." *foo* is earmuffed, but ** has nothing between the astersisks to be earmuffed. Far more likely is that someone has defined a

Re: clj-time/do-at not workin as expected

2016-05-19 Thread Fluid Dynamics
On Thursday, May 19, 2016 at 11:39:40 PM UTC-4, JvJ wrote: > > Ooooh, now I get it. Is there something equivalent do the kind of delayed > operation I'm expecting? > Well, there's always (future (Thread/sleep x) (f args)) ... -- You received this message because you are subscribed to the

Re: Handle error many lazy sequence

2016-05-19 Thread Fluid Dynamics
On Thursday, May 19, 2016 at 7:50:57 AM UTC-4, khairul isan wrote: > > Hello all, > > I have problem on handle many lazy sequence, > > (try >(for [x [1 2 3 "b"]] > (for [n [1 2 3 4]] > (+ x n))) >(catch Throwable e > (pr-str e))) > > When i handle but error not in catch.

Re: Removing duplicates from a series

2016-05-17 Thread Fluid Dynamics
On Tuesday, May 17, 2016 at 5:47:06 AM UTC-4, Simon Brooke wrote: > > I'm having trouble with writing a function > >1. in idiomatic clojure >2. which doesn't blow the stack > > The problem is I have a time series of events e.g. > > ({:idhistory 78758272, :timestamp #inst >

Re: [ANN] Release 0.34.0 of Counterclockwise

2016-05-06 Thread Fluid Dynamics
On Friday, May 6, 2016 at 11:48:29 AM UTC-4, Sean Corfield wrote: > > Well, “standalone” CCW is still Eclipse under the hood, right? What I > suspect here is that it packaged a stripped down Eclipse that is no longer > capable of updating itself past some change that the Eclipse project made. >

Re: [ANN] Release 0.34.0 of Counterclockwise

2016-05-06 Thread Fluid Dynamics
On Thursday, May 5, 2016 at 7:45:39 PM UTC-4, Luc wrote: > > I remember this problem but this is > an eclipse bug if my memory is not > failing. They had removed Marketplace > by mistake. > > Are you using the latest version of Eclipse ? > > Luc P. > It's *standalone* CCW 0.28.0 trying to update

Re: [ANN] Release 0.34.0 of Counterclockwise

2016-05-05 Thread Fluid Dynamics
On Friday, August 21, 2015 at 8:11:14 AM UTC-4, laurent.petit wrote: > > Counterclockwise, the Eclipse Clojure development tool. > > Counterclockwise 0.34.0 has been released. > > Highlights: > > - Resource hyperlinks: you can Cmd+Clik (or F3) on string literals that > represent resources, they

Re: CCW stopped working. How do I fix it?

2016-05-04 Thread Fluid Dynamics
On Wednesday, May 4, 2016 at 8:43:00 PM UTC-4, Andy Fingerhut wrote: > > > > On Wed, May 4, 2016 at 5:46 AM, Fluid Dynamics <a209...@trbvm.com > > wrote: > >> >> Also, nothing you wrote addresses the other complaint I have, which is >> that stuff sho

Re: CCW stopped working. How do I fix it?

2016-05-04 Thread Fluid Dynamics
On Wednesday, May 4, 2016 at 7:12:35 AM UTC-4, Miguel Ping wrote: > > Seems like you need to update eclipse? I'm guessing Marketplace Client is > from eclipse. > It's the standalone CCW. But I tried to update all of the components listed as inside it, including the Eclipse based ones. I'm

Re: Macro usage within Clojure community and naming functions which perform actions under certain conditions

2016-05-04 Thread Fluid Dynamics
What about: safe-cell? (as described) reveal-safe-cells (as existing) (defn reveal-safe-cells-if-safe-cell [gs] (if (safe-cell? gs) (reveal-safe-cells gs) gs)) and elsewhere (-> gs ... ... (reveal-safe-cells-if-safe-cell) ... ...) -- You received this message because you

CCW stopped working. How do I fix it?

2016-05-03 Thread Fluid Dynamics
My copy of CCW 0.28.0_STABLE001 has mysteriously grown a bug. My guess is it's an incompatibility with the Java version I have. I've kept the latter up to date, but not the former. The problem occurs trying to launch a REPL. I get a timeout error no matter what. Windows Firewall popups were

Re: Poor parallelization performance across 18 cores (but not 4)

2015-11-19 Thread Fluid Dynamics
On Thursday, November 19, 2015 at 1:36:59 AM UTC-5, David Iba wrote: > > OK, have a few updates to report: > >- Oracle vs OpenJDK did not make a difference >- Whenever I run N>1 threads calling any of these functions with >swap/vswap, there is some overhead compared to running 18

Re: A call for an idiomatic rendering of Clojure EDN in info/error messages

2015-11-13 Thread Fluid Dynamics
+1 for | -- 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 this group, send

Re: [ANN] Clojure 1.8.0-RC1 is now available

2015-11-11 Thread Fluid Dynamics
On Wednesday, November 11, 2015 at 9:23:16 AM UTC-5, Nicola Mometto wrote: > > To be honest I'm not sure this should even be a valid use of type hints. > You're telling the compiler that the result of (foo) is an int, when it is > infact a long. > > The correct way to do this should be: >

Re: Extending namespace loading

2015-10-28 Thread Fluid Dynamics
On Wednesday, October 28, 2015 at 11:49:39 AM UTC-4, Nathan Davis wrote: > > On the Clojure 1.80-beta2 release thread > , Ambrose > Bonnaire-Sergeant mentioned that he is monkey-patching clojure.core/load to > provide "an extension

Re: ArithmeticException while using unchecked-multiply

2015-10-27 Thread Fluid Dynamics
On Monday, October 26, 2015 at 2:17:40 AM UTC-4, Andy Fingerhut wrote: > > I created this ticket: http://dev.clojure.org/jira/browse/CLJ-1832 > > I don't know what will become of it, e.g. perhaps a change in behavior to > the unchecked functions, perhaps a clarification to the documentation, >

Re: ArithmeticException while using unchecked-multiply

2015-10-25 Thread Fluid Dynamics
On Saturday, October 24, 2015 at 8:01:05 PM UTC-4, Gary Fredericks wrote: > > I've always thought this is bad behavior, since it's blatantly doing the > opposite of what the name advertises. I think either the boxed versions > should return the same result as the unboxed version, or (if the

Re: ClojureCLR setup guide/examples?

2015-10-20 Thread Fluid Dynamics
On Tuesday, October 20, 2015 at 4:36:43 PM UTC-4, dmiller wrote: > > Most documentation, such as it is, is on the github wiki: > https://github.com/clojure/clojure-clr/wiki > Nothing written recently on such things as deploying web services. > If you want to deploy web services, you're probably

Re: recombining results from clojure.data/diff

2015-10-19 Thread Fluid Dynamics
On Monday, October 19, 2015 at 3:49:41 AM UTC-4, JvJ wrote: > > Merge isn't recursive on substructures. Of course, there's (fn foo [m1 m2] (if (and (map? m1) (map? m2)) (merge-with foo m1 m2) m2)) ... -- You received this message because you are subscribed to the Google Groups "Clojure"

[meta] Unwelcome changes around here.

2015-10-08 Thread Fluid Dynamics
I don't know what you guys did, but as of about 2 days ago, when browsing this site about 1 time in 20 after reading an article and then clicking "back" to go back to the topic list my main Firefox window disappears and is replaced by a small dialog with two options, "restart Firefox" and "quit

Re: Generate all possible teams

2015-10-05 Thread Fluid Dynamics
On Monday, October 5, 2015 at 2:33:50 PM UTC-4, puzzler wrote: > > You're not using the combinatorics library as efficiently as you could > be. Here's the best strategy for generating all the team combinations with > the same number of players: > Is a combinatorics library even needed for

Re: Using metadata to specify how calls to a macro should be indented

2015-09-22 Thread Fluid Dynamics
On Tuesday, September 22, 2015 at 6:31:34 AM UTC-4, Phillip Lord wrote: > > ... The interesting question then is what > percentage of the time do Clojure developers work *without* a repl > active. > Uhhh, zero? :) -- You received this message because you are subscribed to the Google Groups

Re: Using metadata to specify how calls to a macro should be indented

2015-09-13 Thread Fluid Dynamics
On Sunday, September 13, 2015 at 12:10:00 PM UTC-4, Artur Malabarba wrote: > > > This scheme won't play nicely with forms with variable numbers of > special > > arguments. > > True, but I've never seen anyone indent specially these optional > arguments. For instance, every defn I see

Re: Using metadata to specify how calls to a macro should be indented

2015-09-13 Thread Fluid Dynamics
This scheme won't play nicely with forms with *variable numbers of special arguments*. Of which one is one of the most common macros to use: (defn foo [x] (+ x 3)) (defn bar "Adds four to x." [x] (+ x 4)) -- You received this message because you are subscribed to the

Re: How do I print each test name in clojure.test?

2015-09-01 Thread Fluid Dynamics
On Tuesday, September 1, 2015 at 12:34:52 PM UTC-4, Mayank Jain wrote: > (defmethod custom-report :default [m] >> (clojure.test/report m)) >> >> (binding [clojure.test/report custom-report] >> (clojure.test/run-all-tests)) >> > Uh-oh. -- You received this message because you are

Re: Cursive and gen-class

2015-08-25 Thread Fluid Dynamics
On Tuesday, August 25, 2015 at 8:25:12 AM UTC-4, Alex Miller wrote: Fluid, I agree with Daniel that calling something junk is unnecessary, especially when the people making and using such a tool are on the list. We would like this to be a thoughtful, encouraging forum for discussion. Alex

Re: How to move an element within a vector?

2015-08-25 Thread Fluid Dynamics
On Tuesday, August 25, 2015 at 1:06:30 PM UTC-4, Hussein B. wrote: Hi, For a vector like [A B C D E], how to remove an element to a specific location? For example [A D B C E] ? How about (assoc (assoc v j (v i)) i (v j)), once you have the indices i and j of two elements you wish to swap?

Re: Cursive and gen-class

2015-08-25 Thread Fluid Dynamics
On Tuesday, August 25, 2015 at 1:05:30 PM UTC-4, Colin Fleming wrote: On 25 August 2015 at 18:22, Fluid Dynamics a209...@trbvm.com javascript: wrote: I seem to recall criticizing a piece of Clojure-relevant *technology* that had the rather remarkable property that it could be working

[Meta] Anyone else having trouble with this site recently?

2015-08-24 Thread Fluid Dynamics
I'm frequently seeing my browser get stuck at Transferring data from groups.google.com and then failing to progress further, when refreshing the topic list. This has been going on intermittently, but frequently, for several days now. Is anyone else seeing this? What is the fix? -- You

Re: Cursive and gen-class

2015-08-24 Thread Fluid Dynamics
Daniel Compton, your comment was neither nice, nor helpful, and doesn't have a place in the Clojure mailing list. Please keep your inflammatory comments to yourself. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

Re: decoding clojure generated class names

2015-08-22 Thread Fluid Dynamics
On Saturday, August 22, 2015 at 7:28:32 PM UTC-4, Alex Miller wrote: There is a demunge function in clojure.lang.Compiler. It's not foolproof as the munging is not unambiguously reversible. If the munging process loses information, isn't there a (theoretical, at least) risk of name

Re: Cursive and gen-class

2015-08-22 Thread Fluid Dynamics
On Saturday, August 22, 2015 at 8:42:42 PM UTC-4, William la Forge wrote: Loving this. I had uninstalled cursive so I could reinstall. But the download of the plugin fails and when installing from disk it says cursive-14-0.1.60 is not compatible. (I'm running with idea 14.1.4.) Deleted the

Re: Unable to write GPL software with clojure?

2015-08-21 Thread Fluid Dynamics
On Thursday, August 20, 2015 at 1:40:54 PM UTC-4, Atamert Ölçgen wrote: If it included clecs' source and the game's source it would be enough for me. I wouldn't want to dictate terms for other people's code. If another library the game depends on is also GPL, it's source should be included

Re: Durable atom

2015-08-16 Thread Fluid Dynamics
On Sunday, August 16, 2015 at 7:27:11 PM UTC-4, Andrew Chambers wrote: Datomic is basically what you want. What if he wants open source? -- 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

[meta] Can't view one unread topic here.

2015-08-04 Thread Fluid Dynamics
The front page of this group shows no unread threads to me, but shows a (1) next to Google Groups in the page title. So there's one topic with unread posts, but I can't get the interface to show it to me. I've tried refresh, shift-refresh, and navigate-away-and-back. I'm sure I haven't done

Re: Reality check: EC2 + Ubuntu + Atom (from GitHub) + Clojure?

2015-08-03 Thread Fluid Dynamics
On Monday, August 3, 2015 at 10:26:34 AM UTC-4, kirby urner wrote: (A) when a student hacks on a Python or Java project and want's mentor feedback, it's *not* a matter of the mentor remoting in to the student instance or accessing the students V: drive. Rather, we have software

Re: range no longer returns a LazySeq; how to check whether realized?

2015-08-02 Thread Fluid Dynamics
On Friday, July 31, 2015 at 9:04:45 AM UTC-4, Alex Miller wrote: We're focusing on defects right now for 1.8 but eventually we'll roll back around to enhancements too. On Fri, Jul 31, 2015 at 5:04 AM, Marc O'Morain ma...@circleci.com javascript: wrote: This caught us out at Circle when

Re: range no longer returns a LazySeq; how to check whether realized?

2015-08-02 Thread Fluid Dynamics
On Sunday, August 2, 2015 at 2:40:55 PM UTC-4, Alex Miller wrote: realized? throws when passed something that's not IPending. Lazy seqs (but not all seqs) implement IPending, thus the vast majority of realized? users already have an if check prior to making the call. Any code of that form

Re: [ANN] Release 0.32.0 of Counterclockwise

2015-07-30 Thread Fluid Dynamics
On Thursday, July 30, 2015 at 5:43:39 AM UTC-4, Laurent PETIT wrote: I have forgotten to thank Andrea Richiardi for his involvement in this release content. ^^ ^^^ Syntax error, line 1: Clauses do not agree as to grammatical gender. Typo

Re: [ANN] Release 0.32.0 of Counterclockwise

2015-07-30 Thread Fluid Dynamics
On Thursday, July 30, 2015 at 7:05:07 AM UTC-4, Laurent PETIT wrote: No, just a problem in your syntax analyzer, which does not seem to know that Andrea can also be a surname given to males in Europe. It wasn't a surname. Andrea is a feminine given name. There are masculine variants, Andrew

Re: #{:rant} Questions about contribution policy and clojure compiler source.

2015-07-18 Thread Fluid Dynamics
On Saturday, July 18, 2015 at 9:16:39 PM UTC-4, Linus Ericsson wrote: Dear Mr/Ms/Mme/PhD Dynamics, I have this epic joke I would like yo send you, please fill in your fax number in the boxes below (please write clearly and use a pen with black ink, make sure the two carbon papers are

Re: #{:rant} Questions about contribution policy and clojure compiler source.

2015-07-18 Thread Fluid Dynamics
On Saturday, July 18, 2015 at 8:22:35 PM UTC-4, Linus Ericsson wrote: In cases like these I would strongly suggest Zach, Kyle and the Clojure Core-team to strive to communicate by phone My God. First contributor agreements that have to be submitted by Pony Express, and now *phone calls*?

Re: [:ann :book] ClojureScript Unraveled

2015-07-17 Thread Fluid Dynamics
Nitpick: a collection of tag keywords, which can be presumed not to have duplicates, is probably better represented as a set or a sorted-set rather than a vector, so #{:ann :book} ClojureScript Unraveled might be preferable. ;) -- You received this message because you are subscribed to the

Re: awful performance on Windows 7 compared to anything else

2015-07-08 Thread Fluid Dynamics
On Wednesday, July 8, 2015 at 5:41:47 AM UTC-4, Niels van Klaveren wrote: Colin, be aware that running through service wrappers can introduce a lot of overhead / blocking on logging due to stdout redirects. Our application had to switch to SLF4J / Logback, since logging with JUL, Log4J or

Re: Counterclockwise's Plugin Shortcuts for OS X

2015-07-07 Thread Fluid Dynamics
On Tuesday, July 7, 2015 at 11:21:34 AM UTC-4, JPatrick Davenport wrote: Hello, I want to use the linter within Eclipse. I followed the instructions for both the plugin manager as well as the linter. Unfortunately I don't know the shortcut keys to run them with Eclipse in OS X. I can't

Re: zipmap different ordering in 1.7

2015-07-01 Thread Fluid Dynamics
On Wednesday, July 1, 2015 at 3:54:03 PM UTC-4, Jo Geraerts wrote: Hey, I when i tried to run my program with the shiny new 1.7, it broke. I have traced it down to the fact that zipmap ( https://github.com/clojure/clojure/blame/master/src/clj/clojure/core.clj#L2940) does returns the

Re: Quoting Confusion

2015-06-30 Thread Fluid Dynamics
On Tuesday, June 30, 2015 at 8:05:32 AM UTC-4, Karan Toor wrote: I was having some trouble understanding the difference syntax quoting and regular quoting. I thought syntax quoting was like regular quoting except for the unquoting, splicing, and resolving symbols in the namespace. When I

Re: Joda Time version conflict? Initializing JollyDayHoliday for SUTime

2015-06-29 Thread Fluid Dynamics
On Monday, June 29, 2015 at 6:38:40 PM UTC-4, Gary Verhaegen wrote: Assuming there is a version that works for both dependencies, you can manually fix it in your own project.clj. Your own direct dependencies will override transitive ones. Otherwise, as far as I can tell, you're stuck.

Re: Writing REST api the right way

2015-06-24 Thread Fluid Dynamics
On Wednesday, June 24, 2015 at 4:03:39 PM UTC-4, Mike Grabowski wrote: Thanks for the reference, I've seen it before and it looks interesting, especially thanks to the failover built-in. It also greatly shows how Clojure can reduce the `Java boilerplate`. Speaking on the performance note,

Re: Writing REST api the right way

2015-06-24 Thread Fluid Dynamics
On Wednesday, June 24, 2015 at 6:37:14 PM UTC-4, raould wrote: 350ms sounds fast enough for a low-frequency user interaction. In fact, once login is fast enough not to annoy your users, you don't *want* any more speed from it, as further speedup then only benefits blackhats trying to

Re: [ANN] Introducing Yagni, a Leiningen plugin for finding unused code

2015-06-24 Thread Fluid Dynamics
FMIIW, but I think they serve orthogonal purposes. Google Closure finds code (mostly library parts your program doesn't use) that your particular program doesn't need and omits it from the build to save disk and bandwidth. Yagni finds obsolete code that is no longer reached in your program or

Re: pr-str and safe serialization

2015-06-24 Thread Fluid Dynamics
On Wednesday, June 24, 2015 at 4:56:06 PM UTC-4, Ignacio Thayer wrote: I think this might be rehashing some old stuff, but I haven't seen discussion on it recently and I see this behavior is still present in 1.7 so I thought I'd ask. It's the same underlying issue as this:

Re: Basic question: what's the difference between require as and use as?

2015-06-23 Thread Fluid Dynamics
On Tuesday, June 23, 2015 at 10:40:25 AM UTC-4, Ritchie Cai wrote: I always have (:use clojure.core) in a new namespace. Is that necessary or is clojure.core is automatically interned when a new namespace is created? It depends. Yes if you use (ns foo) ..., but not apparently if you use

Re: [ANN] superstring - A string manipulation library

2015-06-21 Thread Fluid Dynamics
The troubling thing isn't the use of Normalizer to remove accents, but the use of .toUpper, .toLower, and .equalsIgnoreCase instead of Normalizer, which may run into problems. For example you probably want weiß and WEISS to compare equal when ignoring case. For a case-insensitive comparison I

Re: ring - setting no-cache for everything?

2015-06-20 Thread Fluid Dynamics
On Friday, June 19, 2015 at 12:14:10 PM UTC-4, Thomas Heller wrote: Cache-control is evil. Users concerned with seeing the most up-to-date information know to hit reload (and probably do anyway, just to be sure), and there's also the option of AJAX polling for that (or whatever precisely

Re: ring - setting no-cache for everything?

2015-06-19 Thread Fluid Dynamics
On Friday, June 19, 2015 at 5:54:03 AM UTC-4, James Reeves wrote: Ring doesn't set any caching headers unless you add in middleware to do so. The most common middleware is wrap-not-modified, which returns a 304 response if the etag or last-modified dates indicate the resource hasn't been

Re: let vs. let*

2015-06-18 Thread Fluid Dynamics
On Thursday, June 18, 2015 at 4:29:55 PM UTC-4, Johannes wrote: Hi! I cannot figure out, what the difference between let and let* is. Can anyone enlighten me? Let is a macro that wraps let* and adds destructuring. There's a similar relationship between fn and fn*, letfn and letfn*, and

Re: Weird behaviour in re-matches ?

2015-06-17 Thread Fluid Dynamics
On Tuesday, June 16, 2015 at 7:40:24 AM UTC-4, Jeroen van Dijk wrote: Ah thanks James, I missed the pending nil. The actual value is still nil indeed: user= (def m (re-matches #.*(foo\.gif).* foo.gif\n)) foo.gif\n#'user/m user= m nil Not sure what would be the cause here then, but the

Re: [ANN] CIDER 0.9

2015-06-17 Thread Fluid Dynamics
I upgraded to version 0.9 I get the following error when starting cider in emacs: Starting nREPL server via lein repl :headless... nREPL server started on 55266 nREPL: Establishing direct connection to localhost:55266 ... nREPL: Direct connection established error in process filter:

Re: Making Java serializables transparently printable and readable

2015-06-17 Thread Fluid Dynamics
On Wednesday, June 17, 2015 at 4:52:00 AM UTC-4, Thomas Heller wrote: Hey, the issue is not in clojure.core. It is with ring in this case, it uses clojure.tools.reader.edn/read-string which supports an optional {:readers {...}} argument but there is no way to specify those in ring. Should

Re: [ANN] CIDER 0.9

2015-06-17 Thread Fluid Dynamics
On Wednesday, June 17, 2015 at 9:06:58 AM UTC-4, Leon Grapenthin wrote: Nevermind, I found the solution. (require 'cl) manually before compiling cider. On Wednesday, June 17, 2015 at 3:01:47 PM UTC+2, Leon Grapenthin wrote: I think I managed to get almost everything to work. The only

Re: defrecord, equality, hashing, and performance

2015-06-12 Thread Fluid Dynamics
On Friday, June 12, 2015 at 11:46:17 AM UTC-4, Mars0i wrote: Oh, yes, and that's an interesting idea to wrap a record in an atom or delay. For my present uses that would be more trouble than it's worth, but it's something worth keeping in mind for other situations. Putting a unique

Re: `rational?` `decimal?` Am I misunderstanding these? (also `float?`)

2015-06-11 Thread Fluid Dynamics
On Friday, June 12, 2015 at 12:12:01 AM UTC-4, Andy Fingerhut wrote: Some related facts, but not sure if they offer a perfect justification for _why_ rational? and decimal? return what they do. (source rational?) reveals that it returns true for integers, ratios, and decimal?, where

Re: Single-atom update ordering guarantees

2015-06-09 Thread Fluid Dynamics
On Tuesday, June 9, 2015 at 4:24:16 PM UTC-4, Michael Gardner wrote: Thanks. That does appear to provide the guarantee I was looking for. On Jun 9, 2015, at 12:14 PM, Andy Fingerhut andy.fi...@gmail.com javascript: wrote: swap! is implemented using Java's AtomicReference class and

Re: Where should 'if-let-all' macro go?

2015-06-09 Thread Fluid Dynamics
There's a variant of this in one of my projects as well. If this is in several utility libraries *and* half the world keeps Greenspunning versions of it in their own projects, then it might be something that belongs in core ... -- You received this message because you are subscribed to the

Re: [ANN] Time-Bombed Open License - thoughts?

2015-06-06 Thread Fluid Dynamics
On Saturday, June 6, 2015 at 5:05:59 AM UTC-4, Colin Fleming wrote: Thanks for the kind words Fergal, and as I said in my other mail, I'm very pleased to see more people thinking about this problem. It's a hard one, for sure - I'd love to be able to open source Cursive but I haven't seen

Re: I created a new macro if-let-all

2015-06-05 Thread Fluid Dynamics
On Friday, June 5, 2015 at 1:53:07 AM UTC-4, crocket wrote: Ouch, I didn't write. Gary Fredericks wrote it. I simply modified his if-let-all macro a little bit. On Friday, June 5, 2015 at 2:44:22 PM UTC+9, crocket wrote: The macro below is called if-let-all. (defmacro if-let-all

Re: Help with data structure transformation

2015-06-05 Thread Fluid Dynamics
On Friday, June 5, 2015 at 10:07:05 PM UTC-4, g vim wrote: That works but I missed this possibility because I'm still not clear how: (group-by :email signs) which produces a map of the form: {a...@gmail.com javascript: [{:email a...@gmail.com javascript:, :sign Cancer,

Re: multi-arity functions with macros

2015-06-04 Thread Fluid Dynamics
On Thursday, June 4, 2015 at 12:55:23 PM UTC-4, Phillip Lord wrote: I have a number of fairly nasty functions with a form that looks like this: (defn default-ontology ([f] (dispatch f)) ([f a] (dispatch f a)) ([f a b] (dispatch f a b)) ([f a b c]

Re: When is [] a vector?

2015-06-02 Thread Fluid Dynamics
On Tuesday, June 2, 2015 at 2:00:17 PM UTC-4, piast...@gmail.com wrote: I don't know how to read this: http://www.leonardoborges.com/writings/2012/12/02/monads-in-small-bites-part-ii-applicative-functors/ (defmulti pure (fn [f _] f))(defmethod pure List [_ v]Wraps value v in a list

Re: prose - a minimal language, inspired by Io/Ioke, that compiles to Clojure and ClojureScript

2015-05-26 Thread Fluid Dynamics
I'm sorry, but for some reason I can't seem to view the contents of this thread. In fact, even the reply button on it isn't working correctly (just does nothing) so I'm having to create a new thread with the appropriate subject line. Google seems to have effed something up here so perhaps you

Re: Why does the following Clojure code take 10x the time the C# version does? How to improve the Clojure version?

2015-05-14 Thread Fluid Dynamics
On Thursday, May 14, 2015 at 8:45:09 PM UTC-4, Lee wrote: Thanks Colin and also Alex and Andy. I'm trying to determine a reasonable way to do this without reading a book about it. It sounds like I should use ^:replace, -server, and also -XX:-TieredCompilation (is that right, the way

Re: is destructuring implemented as a macro?

2015-05-13 Thread Fluid Dynamics
On Wednesday, May 13, 2015 at 8:01:33 PM UTC-4, Gary Trakhman wrote: You can only safely assume that the first symbol (defn) is a macro, it turns out 'destructure' is a function called by the macro (which might call other functions/macros that call other functions/macros :-).

Re: contains? on String

2015-05-12 Thread Fluid Dynamics
On Tuesday, May 12, 2015 at 3:34:46 PM UTC-4, Michael Gardner wrote: On May 12, 2015, at 1:54 PM, Shantanu Kumar kumar.s...@gmail.com javascript: wrote: I agree about the counter-intuitiveness. I'm only wondering whether the error message is a bit misleading contains? not supported on

Re: contains? on String

2015-05-12 Thread Fluid Dynamics
On Tuesday, May 12, 2015 at 5:05:00 PM UTC-4, Michael Gardner wrote: On May 12, 2015, at 3:28 PM, Fluid Dynamics a209...@trbvm.com javascript: wrote: Strings and arrays support constant-time access by index. Yes, but why should that mean that contains? should work on Strings? Because

Re: load a namespace at repl?

2015-05-12 Thread Fluid Dynamics
On Tuesday, May 12, 2015 at 10:55:27 PM UTC-4, piast...@gmail.com wrote: If I: git clone https://github.com/overtone/overtone.git cd overtone lein repl and then at the REPL, I try to load Overtone: user= (all-ns) (#Namespace clojure.set #Namespace clojure.tools.nrepl.ack #Namespace

Re: [ANN] Bocko 0.2.0

2015-05-07 Thread Fluid Dynamics
On Thursday, May 7, 2015 at 9:14:30 AM UTC-4, Mike Fikes wrote: I created a tiny library that makes it easy to plot points in a low-res graphics mode: https://github.com/mfikes/bocko The motivation was to help encourage interest in my own kids (10 and 12-yo) to learn tidbits of

Re: Clojure needs a web framework with more momentum

2015-05-06 Thread Fluid Dynamics
On Wednesday, May 6, 2015 at 3:15:53 PM UTC-4, Andy Fingerhut wrote: The rough edges show up on a lot of things in the Clojure ecosystem. I know I suck at documentation which is why I moved clojure.java.jdbc’s documentation out to

Re: [ANN, GSoC] A Common Clojure Source Metadata Model

2015-05-06 Thread Fluid Dynamics
On Wednesday, May 6, 2015 at 4:09:54 PM UTC-4, Alex Miller wrote: Yes, I think that's largely correct. The goal of Richard's project is to create an information model (data) describing a project from the perspective of use. Codeq goes much deeper by integrating code history - that allows

Re: Streaming a big file

2015-05-05 Thread Fluid Dynamics
On Tuesday, May 5, 2015 at 11:18:56 PM UTC-4, Sam Raker wrote: I've got two really big CSV files that I need to compare. Stay tuned for the semi-inevitable how do I optimize over this M x N space? question, but for now I'm still trying to get the data into a reasonable format--I'm planning

Re: Why is Caribou unmaintained ?

2015-05-04 Thread Fluid Dynamics
On Monday, May 4, 2015 at 10:51:35 AM UTC-4, Luc wrote: Spawned from the other thread about web frameworks. Can any of the original maintainers answer this one ? According to that same other thread, it has 2 developers on it, not 0. If it's feature-complete 2 might easily be sufficient to

Re: juxt/bidi ring question

2015-05-04 Thread Fluid Dynamics
On Monday, May 4, 2015 at 11:34:26 AM UTC-4, clifford wrote: Hi I am using juxt/bidi for route matching. with the following routes: (def routes [/ {index.html :index articles/ {index.html :article-index [:id] :article}}])

Re: juxt/bidi ring question

2015-05-04 Thread Fluid Dynamics
On Monday, May 4, 2015 at 11:50:27 AM UTC-4, Fluid Dynamics wrote: On Monday, May 4, 2015 at 11:34:26 AM UTC-4, clifford wrote: Hi I am using juxt/bidi for route matching. with the following routes: (def routes [/ {index.html :index articles/ {index.html

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread Fluid Dynamics
On Monday, May 4, 2015 at 1:53:30 PM UTC-4, Josh Kamau wrote: Thanks Sean. that makes sense. I didnt want that map to be stored as one cookie because it could potentially be big... (there is a 4kb limit per cookie right?) . I will dig into it and check. If that works for me, then all i

Re: juxt/bidi ring question

2015-05-04 Thread Fluid Dynamics
On Monday, May 4, 2015 at 3:21:19 PM UTC-4, clifford wrote: Thanks @fluiddynamics your right on the money. On Monday, 4 May 2015 17:34:26 UTC+2, clifford wrote: Hi I am using juxt/bidi for route matching. with the following routes: (def routes [/ {index.html :index

Re: Clojure needs a web framework with more momentum

2015-05-03 Thread Fluid Dynamics
On Sunday, May 3, 2015 at 2:12:02 AM UTC-4, Sven Richter wrote: Hi, Reading through all the discussion I don't get which features you are actually missing. I love luminus and did a lot with it, however, for me it was missing some standard stuff, that's why I put together closp, which is

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Fluid Dynamics
On Saturday, May 2, 2015 at 4:43:53 PM UTC-4, g vim wrote: I recently did some research into web frameworks on Github. Here's what I found: FRAMEWORK LANG CONTRIBUTORS COMMITS LuminusClojure28678 CaribouClojure 2

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Fluid Dynamics
On Saturday, May 2, 2015 at 5:12:01 PM UTC-4, g vim wrote: On 02/05/2015 22:06, Fluid Dynamics wrote: Those numbers aren't going to be an apples-to-apples comparison. Contributors may be lower for the Clojure libs because as a Lisp it enables them to be enormously more productive (up

  1   2   3   >