Re: Without breakloop not much of a REPL

2021-02-01 Thread Andy Fingerhut
There is no reason to merely imagine ... you can do it today. Here is a transcript of Stuart Halloway's "REPL-Driven Development" talk with links to sources that he mentions: https://github.com/matthiasn/talk-transcripts/blob/master/Halloway_Stuart/REPLDrivenDevelopment.md The part of that talk w

Re: clojure.edn/read isn't spec compliant

2020-10-31 Thread Andy Fingerhut
Here is some possibly relevant information. I suspect the reason that `(clojure.edn/read-string ":a:")` gives an error is that Clojure's EDN reader implementation was originally developed as an adaptation from Clojure's reader, and `(read-string ":a:")` also gives an error. The reference document

Re: sort-by reverse order?

2020-10-14 Thread Andy Fingerhut
This document goes into fairly deep dive on other ways to do it, including a gotcha on edge cases of using something like (comp - compare) that will rarely if ever bite you, but some people may want to know about them to avoid them. https://clojure.org/guides/comparators Andy On Wed, Oct 14, 202

Re: Clojure API copyright assignment?

2020-05-24 Thread Andy Fingerhut
You ask: "I was not sure if the Eclipse license was only for the implementation of the interpreter / compiler, or if it covers the language API itself?" If you are merely curious, then I don't know the answer. If you have a significant investment of money and/or time depending upon the answer to

Re: Clojure API copyright assignment?

2020-05-24 Thread Andy Fingerhut
The implementation of Clojure on the JVM, and of ClojureScript, were both initially written by Rich Hickey, and he released their implementations under the Eclipse Public License version 1.0. It says so in the first couple of sentences of the readme here: https://github.com/clojure/clojure/ For C

Re: [JOB] Software Engineer | Red Planet Labs | Fully distributed team

2020-02-21 Thread Andy Fingerhut
I suspect "radically change the economics of software development" means "drastically reduce the cost to achieve any of a large set of goals we believe our technology covers". Reduce by how much? Maybe they have proposed answers to that question that they are willing to share publicly, but such t

Re: Two new transcripts available of talks by Rich Hickey

2019-12-02 Thread Andy Fingerhut
-transcripts/blob/master/Hickey_Rich/ClojureConcurrency.md https://github.com/matthiasn/talk-transcripts/blob/master/Hickey_Rich/ClojureForJavaProgrammers.md Andy On Mon, Dec 2, 2019 at 10:05 AM Anthony Leonard wrote: > On Monday, December 2, 2019 at 6:29:24 AM UTC, Andy Fingerhut wr

Two new transcripts available of talks by Rich Hickey

2019-12-01 Thread Andy Fingerhut
l or even part of another talk. Offer your time and coordinate efforts on any of the open Github issues for not-yet-transcribed talks in that same Github repo. Regards, Andy Fingerhut -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post t

Re: 100x startup for Clojure using GraalVM

2019-11-12 Thread Andy Fingerhut
I believe at least some of the people working on this, and interested in these results, would like to use Clojure for command line utilities and such, which tend to have quite short run times when implemented in C/C++/Python/etc. They are probably much less interested in using these methods for lo

Re: Why ('f 1) does deliver nil?

2019-10-26 Thread Andy Fingerhut
Both symbols and keywords, when placed inside of an expression in the first position, e.g. (:my-keyword my-map), or ('some-symbol my-map), behave as functions that "look themselves up" in the map that is the first argument, and if that symbol or keyword is a key in that map, the associated value is

[ANN] core.rrb-vector 0.1.1 -- eliminate a warning in ClojureScript version

2019-10-25 Thread Andy Fingerhut
ed best to clean up the code there anyway. Independent of that, I have added some benchmarks and extra documentation related to the library since the 0.1.0 release, described in the change log: https://github.com/clojure/core.rrb-vector/blob/master/CHANGES.md Cheers, Michał Marczyk and Andy Fingerhu

Re: [ANN] core.rrb-vector 0.1.0 -- bug fixes

2019-10-02 Thread Andy Fingerhut
u use a normal Clojure vector of arbitrary Object's because of the boxing of Character objects. Same for :long and other vectors of primitives. Andy On Wed, Oct 2, 2019 at 6:31 AM Andy Fingerhut wrote: > Excellent! Please do file additional reports if you find any issues with > th

Re: [ANN] core.rrb-vector 0.1.0 -- bug fixes

2019-10-02 Thread Andy Fingerhut
ixed bugs surface, so I am > upgrading immediately. :-D > > > Terje > > > On Monday, September 30, 2019 at 10:21:05 PM UTC+2, Andy Fingerhut wrote: >> >> I am pleased to announce the 0.1.0 release of core.rrb-vector, a Clojure >> Contrib library extending the C

[ANN] core.rrb-vector 0.1.0 -- bug fixes

2019-09-30 Thread Andy Fingerhut
rrb-vector 0.1.0 This release fixes several bugs that were found in previous releases of the library. More details can be found in the change log: https://github.com/clojure/core.rrb-vector/blob/master/CHANGES.md Cheers, Michał Marczyk and Andy Fingerhut -- You received this message b

Re: Using :clojure.spec.alpha/invalid inside clojure.core macros throw exception

2019-09-18 Thread Andy Fingerhut
I do not know the specifics of this issue, but just because it was reported in 2016 does not necessarily imply that the Clojure spec developers believe it is a bug, rather than something than an unexpected corner case that some spec users wish would behave differently. Also, Rich Hickey and Alex M

Re: records alias with local vars

2019-08-28 Thread Andy Fingerhut
I tried it on Clojure 1.10.1 and if I first did (set! *warn-on-reflection* true) the defn of b did give a reflection warning if you first did the defrecord, but not without the defrecord. Andy On Wed, Aug 28, 2019 at 6:35 PM Sean Corfield wrote: > What version of Clojure/Script are you using? T

Re: Strange behavior with clojure.java.io/copy

2019-08-25 Thread Andy Fingerhut
ize should never result in a return value of 0. Andy On Sun, Aug 25, 2019 at 9:54 PM Andy Fingerhut wrote: > That bit of Java-Doc says nothing about the behavior when providing a > buffer b with a non-0 length. > > If it said: "If the length of b is non-zero, then the return value

Re: Strange behavior with clojure.java.io/copy

2019-08-25 Thread Andy Fingerhut
That bit of Java-Doc says nothing about the behavior when providing a buffer b with a non-0 length. If it said: "If the length of b is non-zero, then the return value will never be 0", then I might agree with you. Also, if you knew for some reason that the implementation guaranteed this. (I have

Re: Shorter form to check if some words are contained in a sentence?

2019-06-22 Thread Andy Fingerhut
) > > Finally, how can I send you a tip or payment for this help? > Thad > https://www.linkedin.com/in/thadguidry/ > > > On Sat, Jun 22, 2019 at 12:38 PM Andy Fingerhut > wrote: > >> And, of course you can continue to use .contains: >> >> (every? #(.c

Re: Shorter form to check if some words are contained in a sentence?

2019-06-22 Thread Andy Fingerhut
And, of course you can continue to use .contains: (every? #(.contains value %) ["CBS" "Bar" "cat"]) On Sat, Jun 22, 2019 at 10:37 AM Andy Fingerhut wrote: > I haven't counted characters, but this would certainly become relatively > shorter the more

Re: Shorter form to check if some words are contained in a sentence?

2019-06-22 Thread Andy Fingerhut
I haven't counted characters, but this would certainly become relatively shorter the more substrings you check for. It is shown in the context of a Clojure REPL. I do not know whether OpenRefine might already do the require for you, or perhaps even (use 'clojure.string). user=> (def value "Bar t

Re: Compiler error message misses the target

2019-05-07 Thread Andy Fingerhut
You can check with Alex Miller if you have doubts, but given that error messages, and in particular the one you show, is at this moment an area of active changes in Clojure 1.10.1 beta versions, they may be open to fixes to such things right now. Andy On Tue, May 7, 2019 at 9:21 PM Alan Thompson

Re: Developing Closure in 2019 on Windows 10 or using Windows - WSL/Linux.

2019-03-15 Thread Andy Fingerhut
Sorry, I do not know the answer to your questions. There are multiple relevant channels on the Clojurians Slack [1] and Zulipchat [2] servers where you may get quicker feedback. On Slack, for example, there is a #clj-on-windows channel, #beginners, and #cursive [1] https://clojurians.slack.com [

Re: Clojure 1.10 "Illegal Reflective Access Operation"

2019-02-24 Thread Andy Fingerhut
I believe this FAQ entry covers what is known about this issue, which many others have also seen: https://clojure.org/guides/faq#illegal_access Andy On Sun, Feb 24, 2019 at 4:48 PM Alan Thompson wrote: > Upgrading from Clojure 1.9 to 1.10, I am getting a new warning: > > WARNING: An illegal ref

Re: crossclj.info unavailable ???

2019-02-06 Thread Andy Fingerhut
The creator of the site announced on on 2018-Dec-22 that he would be shutting it down: https://www.reddit.com/r/Clojure/comments/a99jwn/crossclj_is_shutting_down/ The issue is not lack of funds, but lack of his time/interest to continue updating it, and not wanting it to gradually become more and

Re: (gen/sample (s/gen #{'nil})): Couldn't satisfy such-that predicate

2019-01-31 Thread Andy Fingerhut
Sometimes text in comments in ClojureDocs.org examples can be more useful than the examples. They are effectively longer (unofficial) doc strings. Andy On Thu, Jan 31, 2019 at 5:36 AM Alex Miller wrote: > Go for it. Not sure the type stuff is adding anything in the context of > quote examples

Re: Invalid-token when dereferencing namespaced keywords.

2019-01-29 Thread Andy Fingerhut
I believe the original intent was that keywords with a digit immediately after the colon would not be supported, but due to a bug in the Clojure reader they were permitted. There was a brief time in 2013 where this bug was fixed, but there were enough extant Clojure code bases that used such keywo

Re: Noob question on the --> macro implementation

2019-01-26 Thread Andy Fingerhut
When you ask "am I right?" about your proposed change, what is it that the current behavior does not do, that your change would do? Do you have some use case in mind that works with your change, but doesn't with the current implementation? Andy On Sat, Jan 26, 2019 at 10:50 AM Ujjwal Thaakar wr

Re: Learn Clojure - Syntax Test your knowledge No4. question.

2019-01-19 Thread Andy Fingerhut
If in a Clojure REPL session you type `(doc find-doc)`, you should see this (I'm using Clojure 1.10 here, in case the doc string has changed in a recent Clojure version): ser=> (doc find-doc) - clojure.repl/find-doc ([re-string-or-pattern]) Prints documentation for any va

Re: Why did this compile? It's an obvious syntax mistake

2018-12-26 Thread Andy Fingerhut
If you can provide the entire file that compiled with the mistake in it, that might help provide valuable context, especially if someone else can reproduce it locally. >From what you have described, if the only difference between two files is that one has a ] and the other has that one character d

Re: error in process filter: Stack overflow in regexp matcher

2018-12-24 Thread Andy Fingerhut
I would recommend trying to temporarily rename ~/.lein/profiles.clj to a different name, so that there is no such file with that name any more, and try your file-seq expression again to see if it behaves any differently. Andy On Mon, Dec 24, 2018 at 1:38 PM nenad mitrovic wrote: > Sorry, here i

Re: error in process filter: Stack overflow in regexp matcher

2018-12-24 Thread Andy Fingerhut
I have just tried to reproduce a similar case on a system running Mac OS X 10.13.6, Oracle/Apple Java 1.8.0_192, Clojure 1.9.0, and Leiningen 2.8.3, and a directory containing 1400 files. I did not see the error you did. What versions of OS, Java, Clojure, and anything on top of Clojure (e.g. Lei

Re: Clojure 1.10 issue: thrown? no longer works on macros

2018-12-18 Thread Andy Fingerhut
he message with the root cause: > > > https://github.com/clojure/clojure/blob/master/test/clojure/test_helper.clj#L134-L151 > > On Tuesday, December 18, 2018 at 12:06:18 PM UTC-6, Andy Fingerhut wrote: >> >> I do not know if Leiningen is involved in the difference in the

Re: Clojure 1.10 issue: thrown? no longer works on macros

2018-12-18 Thread Andy Fingerhut
I do not know if Leiningen is involved in the difference in the reproduction project linked below yet (I am testing with the latest Leiningen 2.8.3 here), but I do see a clojure.test `(is (thrown-with-msg? ...` expression that gives no error when running 'lein test' with Clojure 1.9.0, but does wit

Re: (float 0.819869321599107) = 0.81986934 ?

2018-12-15 Thread Andy Fingerhut
The rounding of floats and doubles is _not_ in decimal digits. It is internally implemented in binary, so the rounding behavior you see, while it might not make much sense when written in decimal, probably makes perfect sense if you write it in the IEEE binary format. Andy On Sat, Dec 15, 2018 a

Re: (float 0.819869321599107) = 0.81986934 ?

2018-12-15 Thread Andy Fingerhut
As mentioned in other responses, floating point numbers are usually approximations, with round-off error in the least significant digits (both floats and doubles do this, with more digits of precision for doubles, at the cost of more storage in memory). Depending on how deeply you want to dive int

Re: Confusing Regex Behavior

2018-12-04 Thread Andy Fingerhut
The doc string for re-matches says that it uses java.util.regex.Matcher.matches(). The Java doc page for the class java.util.regex.Matcher [1] says "The matches method attempts to match the entire input sequence aga

Re: How to use defrecord getBasis to look up record instance field values

2018-12-02 Thread Andy Fingerhut
Maybe you are looking for something like this? (map #(% p1) (map keyword (Person/getBasis))) keyword can take a symbol as argument, and return a corresponding keyword. Andy On Sun, Dec 2, 2018 at 8:31 PM wrote: > > defrecord Person [name age company]) > > (def p1 {:name "foo", :age 27, :compa

Re: Received fatal alert: protocol_version

2018-11-22 Thread Andy Fingerhut
What are the outputs of 'java -version' and 'lein version' ? What OS? Some older versions of the JVM have older crypto certificates built into them, which newer versions may improve upon. Andy On Thu, Nov 22, 2018 at 12:42 PM wrote: > Saw a suggestion here: > > https://github.com/technomancy/

Re: [ANN] Clojure 1.10.0-beta8

2018-11-21 Thread Andy Fingerhut
I suspect Alex and other folks have already done all of the bikeshedding internally that they have the patience for, and are content with the name and the reasons they ahve for it, and are not enthusiastic about another round of that in a public forum. Rich owns Clojure code legally, and I would s

Re: [ANN] Clojure 1.10.0-beta7

2018-11-19 Thread Andy Fingerhut
Not testing results this time, but just a comparison of reflection warnings in Clojure 1.9.0 vs. 1.10.0-beta7, after adding (set! *warn-on-reflection* true) to all .clj files in Clojure's source code that did not already have one. These were obtained when compiling Clojure using mvn and Oracle Jav

Re: [ANN] 1.10.0-beta5

2018-11-15 Thread Andy Fingerhut
main and found some unintentional > reflection in new code and expect that to be fixed for next beta. There is > also some intended reflection in there, based on the docstrings so I left > that there. > > On Thu, Nov 15, 2018 at 1:04 PM Andy Fingerhut > wrote: > >> Under

Re: [ANN] 1.10.0-beta5

2018-11-15 Thread Andy Fingerhut
at 6:07 AM Alex Miller wrote: > Thanks Andy! > > I'd be curious to see what reflection errors you're talking about in > clojure.main just to make sure I understand the difference. > > > On Thursday, November 15, 2018 at 12:32:20 AM UTC-6, Andy Fingerhut wrote: >

Re: [ANN] 1.10.0-beta5

2018-11-14 Thread Andy Fingerhut
I have run versions 0.2.6 and 0.3.3 of the Eastwood Clojure lint tool on 84 projects in its "crucible" set of projects that we use for testing Eastwood. You can find the list at [2]. I tried comparing the output for these pairs of version combinations of (Eastwood version, Clojure version, JDK ve

Re: Inconsistent stack traces from the same expression.

2018-10-24 Thread Andy Fingerhut
I am not sure if this is the reason, but I would recommend checking the command line options used when starting the java process in these cases. Leiningen uses some command line options by default, for faster startup times I think, that might affect how much detail is captured in stack traces when

Re: [ANN] Clojure 1.10.0-RC1 (please test!)

2018-10-11 Thread Andy Fingerhut
I ran the latest version of Eastwood on the Clojure code itself, and didn't find any surprising/new warnings. There are a fair number of reflection warnings in what I would consider non-performance-critical functions (e.g. clojure.java.browse/open-url-in-browser, and code for handling/printing exc

Re: Large core.math expression produces excessively long Clojure-generated class names

2018-10-07 Thread Andy Fingerhut
://dev.clojure.org/jira/browse/CLJ-1852 comments mention some ideas of changing the Clojure compiler to use shorter class file names, e.g. via hashing the contents of long names to shorter ones. Andy On Sun, Oct 7, 2018 at 10:42 AM Andy Fingerhut wrote: > I was able to fork your repo

Re: Large core.math expression produces excessively long Clojure-generated class names

2018-10-07 Thread Andy Fingerhut
I was able to fork your repo and created a different 'growing expression' that nests each one inside the 'catch' clause of the enclosing try expression, which is what the macro-expansion of core.match `match` expressions do as they get longer. It shows that the longest class file names are getting

Re: [ANN] Clojure 1.10.0-alpha7

2018-09-06 Thread Andy Fingerhut
n Thu, Sep 6, 2018 at 8:57 AM Andy Fingerhut wrote: > Thanks for the response. Makes sense. I haven't used CIDER before, and > don't plan to try it out just to learn if it has a feature that checks unit > tests for problems. If anyone else knows whether CIDER has a featu

Re: [ANN] Clojure 1.10.0-alpha7

2018-09-06 Thread Andy Fingerhut
anks, Andy On Thu, Sep 6, 2018 at 8:09 AM Peter Hull wrote: > > On Thursday, 6 September 2018 15:09:15 UTC+1, Andy Fingerhut wrote: >> >> >> If you have a few minutes to try out the tests in my repo to see if you >> get different results than I did, I'd be cur

Re: [ANN] Clojure 1.10.0-alpha7

2018-09-06 Thread Andy Fingerhut
Sorry, wrong link to the unit test that I tried, which should have been: https://github.com/jafingerhut/catch-bad-unit-test/blob/master/test/catchme/core_test.clj#L5-L7 On Thu, Sep 6, 2018 at 7:08 AM Andy Fingerhut wrote: > Peter: > > I do not know why you are seeing this change in

Re: [ANN] Clojure 1.10.0-alpha7

2018-09-06 Thread Andy Fingerhut
Peter: I do not know why you are seeing this change in behavior. In order to see if I could determine why, I created my own unit test based on your description, but when I run my incorrectly unit test with Clojure 1.10.0-alpha6 or 1.10.0-alpha7, I get the same results -- no failures, and no "erro

Re: Pipe shell output into REPL?

2018-09-05 Thread Andy Fingerhut
Others with better imagination or Unix-like system hackery skills than myself may respond with a way, but my first inclination is 'no'. In particular, normally what you type at the REPL is being read from standard in. Perhaps if you had a way of changing the Clojure REPL function executed when yo

Re: How to escape a space in a keyword?

2018-08-08 Thread Andy Fingerhut
lieve there is > something that's going to bite me later if I do this? > > On Tuesday, 13 March 2012 00:14:48 UTC-7, Andy Fingerhut wrote: >> >> Ah, my senior moment was not noticing the invalid example use of symbol >> in the second example, which was passing stri

Re: clojure.core/keys

2018-08-05 Thread Andy Fingerhut
Except for sorted-map and a few other special kinds of maps with ordering guarantees, the normal kind of map in Clojure is a hash-map, which uses a hash function of the keys to create a tree data structure with the hash value as a search key. seq on hash-map's traverses these trees in a determinis

Re: clojure test has 10 failures

2018-07-24 Thread Andy Fingerhut
Just another data point. I tried Windows 10 Enterprise, Oracle JDK 1.8.0_171, Maven 3.5.0, unmodified latest Clojure source code 1.10.0-alpha6. mvn clean test gave no errors. The language/system/internationalization settings were US English, but I have no idea if that could be making a differen

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-19 Thread Andy Fingerhut
On Thu, Jul 19, 2018 at 1:04 PM Benoît Fleury wrote: > Replying to myself ... :) > > 1. Am I wrong in thinking that most Clojure programmers use append/prepend > as mental models for the different implementations of conj? > > No. > > 2. Am I wrong in thinking that they shouldn't? > > Yes. > > Clo

Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Andy Fingerhut
nstall ca-certificates-java > > > sourced from this stackoverflow answer > https://stackoverflow.com/a/33440168 > > On Mon, May 21, 2018 at 12:28 PM Andy Fingerhut > wrote: > >> >> Jesús: >> >> Agreed that this issue is frustrating. It doesn'

Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Andy Fingerhut
Jesús: Agreed that this issue is frustrating. It doesn't necessarily help you here, but realize that this issue appears like it might be unique to Ubuntu 18.04's OpenJDK installations. This issue did not occur with earlier versions of Ubuntu that I am aware of. Andy On Mon, May 21, 2018 at 10:2

Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Andy Fingerhut
Justin, I have tried doing these commands on an Ubuntu 18.04 LTS system (which I believe is Debian based): % sudo apt-get --reinstall install ca-certificates % sudo apt-get --reinstall install ca-certificates-java Afterwards, the command "lein repl" still fails when using Ubuntu's OpenJDK8 or Ope

Looking for people interested in developing Eastwood lint tool

2018-04-26 Thread Andy Fingerhut
atedly in the future. Regards, Andy Fingerhut [1] https://github.com/jonase/eastwood -- 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 - plea

Re: Clojure Group

2018-04-16 Thread Andy Fingerhut
I believe Bijay's earlier questions he is referring to were sent to the group using a different email address of his: pbi...@gmail.com Several short messages to the Clojure Google group sent from that address in the last month or so appear to have gone through just fine and been published, but n

Re: lein midje not working

2018-04-11 Thread Andy Fingerhut
The contents of your $HOME/.lein/profiles.clj file can affect the behavior of all 'lein' commands run from any project, if you have one. Andy On Wed, Apr 11, 2018 at 4:31 PM, Renata Soares wrote: > It happens with 'lein repl' too (gives timeout in this case). > > > Em quarta-feira, 11 de abril

Re: Coordinating STM with database?

2018-03-23 Thread Andy Fingerhut
I do not know what the result of that discussion was, but I would guess it did not turn into a change that was incorporated into Clojure. In the discussion thread you linked to, Dave Griffith mentioned attaching a patch "to the group". I am pretty sure file attachments to Google groups went away

Re: [?] Adding my own function to clojure.core namespace

2018-02-24 Thread Andy Fingerhut
I would echo the question "is it truly a good idea?" You can do it, but typing a single :require clause in an ns form once, and then copying and pasting to other places that you use functions defined in that namespace, is likely to be less time-consuming in the long run. Andy On Sat, Feb 24, 201

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

2018-02-21 Thread Andy Fingerhut
Any call to clojure.core/future will also cause this 60-second delay, including calls to pmap or clojure.java.shell/sh: http://clojuredocs.org/clojure.core/future Andy On Tue, Feb 20, 2018 at 8:14 PM, 'Avi Flax' via Clojure < clojure@googlegroups.com> wrote: > On Tuesday, 20 February 2018 12:10:

Re: Why not clojure support raw string?

2018-02-20 Thread Andy Fingerhut
Clojure does not have Python's triple-quoted strings, that is true. Why? They have only come up a few times before in discussion on this Google group, and Rich Hickey has not participated in them that I have seen, so most likely he may simply not see much advantage to having them in the language,

Re: tlc Expect like library?

2018-02-13 Thread Andy Fingerhut
Google searches for the terms: java tcl expect turn up a few things that appear to be integrations of existing Tcl/Expect into the JVM via native interfaces like JNI. There might also be a "native Java" version available that way. The up side of wrapping an existing implementation is that it wou

Re: Help please: New to clojure development

2018-02-06 Thread Andy Fingerhut
Nadeen: You are welcome to send questions here, of course. I wanted to point out another resource that many people take advantage of: The #beginners channel on Slack. https://clojurians.slack.com Sorry, I don't recall the exact button clicks necessary after you create a free account on Slack fo

Re: lein repl broken under 1.9?

2018-01-13 Thread Andy Fingerhut
Given the warning about seesaw.util, I would guess that your project.clj file has seesaw as a dependency? Or maybe you have seesaw in your ~/.lein/profiles.clj file as a dependency? If so, either seesaw, or some other dependency being loaded, likely has an erroneous ns form somewhere. Perhaps w

Re: Understanding remove-ns and require

2017-12-22 Thread Andy Fingerhut
If you do have namespace names that do not correspond with the file name they are placed in, in a Clojure/Java files, Eastwood can find them for you quickly. Eastwood doesn't analyze ClojureScript files, though. Andy https://github.com/jonase/eastwood On Fri, Dec 22, 2017 at 9:41 AM, Stuart Si

Re: Understanding remove-ns and require

2017-12-19 Thread Andy Fingerhut
I don't have the answer, but perhaps a clue that might lead you to one: the function remove-lib inside of the tools.namespace library does this: (defn remove-lib "Remove lib's namespace and remove lib from the set of loaded libs." [lib] (remove-ns lib) (dosync (alter @#'clojure.core/*loade

Re: Slow -main function termination by pmap

2017-12-19 Thread Andy Fingerhut
Well, this behavior is documented _somewhere_, but not in the doc string or on clojure.org that I know of (happy to be corrected if I'm wrong there). On the ClojureDoc.org web site, the docs for pmap: http://clojuredocs.org/clojure.core/pmap suggest looking at the docs for future for info about a

Re: rationale for IAtom2 ?

2017-12-17 Thread Andy Fingerhut
I believe the short answer is: There are existing implementers of the IAtom interface out there. If the interface grew, those implementers would become broken with Clojure 1.9.0. There is no deep discussion of the details here, but a mention of wanting to avoid breaking changes in the IAtom inter

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Andy Fingerhut
> > >> This modularization facilitates refinement of spec separate from the > >> Clojure release cycle. > >> > >> The command line tools (guide, reference) provide: > >> > >> Quick and easy install > >> Clojure REPL and runner > &g

Re: [core.spec] Stricter map validations?

2017-12-07 Thread Andy Fingerhut
I don't know if this is a fruitful avenue to pursue, but the Eastwood lint tool [1] uses tools.reader to read Clojure code, and the tools.analyzer library to analyze it, while expanding all macros. If someone can figure out a way to scan through the Abstract Syntax Tree output of tools.analyzer to

Re: clojure.edn versus clojure.tools.reader.edn

2017-11-28 Thread Andy Fingerhut
I am pretty sure that clojure.tools.reader.edn is a version of the Clojure reader specifically for the edn subset, hence the name of the namespace. That said, no need to add a separate dependency on clojure.tools.reader if you would prefer to avoid it, and you are reading EDN inside Clojure on the

Re: Unexpected behaviour of transient map

2017-11-27 Thread Andy Fingerhut
I know they aren't "official" Clojure documentation, but the examples and comments at clojuredocs.org are often correct, and even sometimes illuminating. http://clojuredocs.org/clojure.core/assoc! All of the clojuredocs.org pages for transient operations refer to that one for a more full discussi

Re: [ANN] Clojure 1.9.0-RC1

2017-11-13 Thread Andy Fingerhut
I see the same behavior in Clojure 1.7.0 and 1.8.0 as you see in 1.9.0-RC1. Andy On Mon, Nov 13, 2017 at 9:48 PM, Shantanu Kumar wrote: > Sorry, I did not specify the problem completely earlier. The coercion > fails only when *uncheked-math* is set to truthy in 1.9.0-RC1. > > user=> (byte \a) >

Re: [ANN] Clojure 1.9.0-beta4

2017-11-02 Thread Andy Fingerhut
Alan, I get similar messages when starting 'lein repl' with this combination of versions: + Leiningen version 2.8.0, Clojure 1.8.0, Java 9.0.1 (note - No Clojure 1.9.0 involved) Changing only the Leiningen to version 2.8.1 and there is no such error message. Andy On Thu, Nov 2, 2017 at 11:29 AM,

Re: hello world question !!!

2017-10-13 Thread Andy Fingerhut
hey are precompiled ,with Kawa or Bigloo Scheme, and also use > regular Java class compiled with Java8. > They never ran in REPL ,all the test and debug must be done on the host > that run tomcat web server in Java 8, here is the site : > https://sidonie.oca.eu/ > > On Friday, Octob

Re: hello world question !!!

2017-10-13 Thread Andy Fingerhut
Just a note that at the top of the documentation page you mention, it says: "Clojure compiles all code you load on-the-fly into JVM bytecode, but sometimes it is advantageous to compile ahead-of-time (AOT)." I would venture an estimate that most people who use Clojure do so without using AOT compi

Eastwood, the Clojure lint tool, version 0.2.5 released

2017-10-12 Thread Andy Fingerhut
. Go squash some bugs! Jonas Enlund, Nicola Mometto, and Andy Fingerhut [1] https://github.com/jonase/eastwood [2] https://github.com/jonase/eastwood/blob/master/changes.md#changes-from-version-024-to-025 The main changes with version 0.2.5 are for improving how Eastwood works with Clojure

Re: clojure.core.server/start-server should have :encoding as option

2017-09-25 Thread Andy Fingerhut
Clojure contribution and development: https://dev.clojure.org/display/community/Contributing Andy Fingerhut On Sun, Sep 24, 2017 at 8:50 AM, Alex Miller wrote: > File a jira > > -- > You received this message because you are subscribed to the Google > Groups "Clojure&

Re: Using memory with futures

2017-09-07 Thread Andy Fingerhut
You can probably also avoid the 60- to 80-second wait if you call (shutdown-agents) at the end of your program. https://clojuredocs.org/clojure.core/future Andy On Thu, Sep 7, 2017 at 2:27 AM, Max Muranov wrote: > it takes about a minute for the pool to decide to shutdown the threads. >> > >

Re: need help on json format extraction multiple deep

2017-09-06 Thread Andy Fingerhut
I don't know if this is the issue, but the JSON data has it spelled resolvedQuery, but you spelled it differently in your Clojure code as :resolvedQuerry (two "r"s in Query instead of one) In general, using a REPL session to examine the contents of data, or good old-fashioned debug print statemen

Re: SRSLY? (= (true? identity) (false? identity)) => true

2017-09-01 Thread Andy Fingerhut
By design, true? never throws an exception. Neither does false? You can create functions similar to those that throw an exception when given a non-boolean value, if you want such functions. (Note: examples below rely on existence of clojure.core/boolean? which does not exist in Clojure 1.8.0)

Re: [ANN] expound 0.1.2

2017-07-25 Thread Andy Fingerhut
inspectable was recently announced in this group as well. Do you know what the similarities and differences are between these projects? Andy On Tue, Jul 25, 2017 at 4:16 PM, Ben Brinckerhoff wrote: > Expound formats clojure.spec errors in a way that is optimized for humans > to read. Expound w

Re: Migrating nREPL out of Clojure Contrib

2017-07-19 Thread Andy Fingerhut
Contribs are on github, but none of them accept pull requests. All of them use JIRA for tickets, listed here: https://dev.clojure.org/jira/secure/BrowseProjects.jspa#all Some background on the contribution process: https://dev.clojure.org/display/community/Contributing+FAQ Andy On Tue, Jul 18,

Re: ClojureDocs example management?

2017-06-18 Thread Andy Fingerhut
I think part of it is that examples are easy to edit, so if there are small easily fixed mistakes, often someone will. Unlike politically contentious issues on Wikipedia, there isn't much to be gained from putting misleading information in ClojureDocs. Andy On Sun, Jun 18, 2017 at 7:53 PM, Alex

Re: New guide: Reading Clojure Characters

2017-06-17 Thread Andy Fingerhut
that foo works, because '_' is just another parameter name, no more or less special to the compiler than the parameter name 'arg1' or 'f'. Andy On Sat, Jun 17, 2017 at 2:01 PM, Gregg Reynolds wrote: > > > On Jun 17, 2017 3:36 PM, "Andy Fingerhut"

Re: New guide: Reading Clojure Characters

2017-06-17 Thread Andy Fingerhut
Consider this Clojure 1.8.0 REPL session: user=> (defn foo [a a] [a a]) #'user/foo ser=> (foo 1 2) [2 2] user=> (defn foo2 [_ _] [_ _]) #'user/foo2 user=> (foo2 1 2) [2 2] This is the sense in which _ is just another function parameter name, no more or less special to the compiler than th

Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-06-01 Thread Andy Fingerhut
I am doing wrong? > > Pete > > > > On Thursday, 1 June 2017 07:19:04 UTC+1, Peter Hull wrote: >> >> On Thursday, 1 June 2017 06:55:52 UTC+1, Andy Fingerhut wrote: >>> >>> Sounds like a limitation/bug in the current Eastwood implementation that >>&g

Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-31 Thread Andy Fingerhut
Sounds like a limitation/bug in the current Eastwood implementation that it doesn't handle this. You are welcome to file an issue on Github: https://github.com/jonase/eastwood/issues Sorry, no promises on when it might be addressed. Andy On Wed, May 31, 2017 at 5:39 AM, Peter Hull wrote: > On

Re: testing println in clojure.test

2017-05-30 Thread Andy Fingerhut
The with-out-str macro should be able to do this for you. A few examples of use can be found on ClojureDocs here: https://clojuredocs.org/clojure.core/with-out-str You may find the Clojure cheat sheet useful for discovering things like this (at least for things the cheat sheet includes -- it doe

Re: 'get' behaviors

2017-05-29 Thread Andy Fingerhut
On Mon, May 29, 2017 at 1:20 PM, wrote: > > On Monday, 29 May 2017 18:45:20 UTC+1, Nicola Mometto wrote: >> >> Issue #1 had been logged in CLJ-1242, but it was later decided to just >> focus on making equality not throw as contains/get throwing is consistent >> with java behaviour, see comments fr

Re: SymbolHound search engine

2017-05-25 Thread Andy Fingerhut
Yep, useful things, those. "The weird and wonderful characters of Clojure" article is also linked from the Clojure Cheat Sheet, in the Special Characters section, the link called "tutorial": https://clojure.org/api/cheatsheet http://jafingerhut.github.io Andy On Thu, May 25, 2017 at 8:04 AM, A

Re: slackpocalypse?

2017-05-23 Thread Andy Fingerhut
I have no skin in this game, but wasn't the move to Slack pretty much a "vote with your feet" combined with word of mouth advertising? It seems to me the same could happen to add another on-line chat tool/system, without anyone taking a poll/voting on this or any other medium. We'll know when it

Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-23 Thread Andy Fingerhut
Eastwood analyzes your code to look for constructs that might be errors. Kibit analyzes code to look for places where you could use Clojure macros or functions that may make your code shorter, or more idiomatic. Andy On Tue, May 23, 2017 at 9:16 AM, Travis Daudelin wrote: > Hi, thanks for pos

Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-21 Thread Andy Fingerhut
See > install instructions and complete documentation at [1]. > > Below are some of the changes since version 0.2.3. A complete list is at > [2]. > > Go squash some bugs! > > Jonas Enlund, Nicola Mometto, and Andy Fingerhut > > [1] https://github.com/jonase/eastwoo

  1   2   3   4   5   6   7   8   9   10   >