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: 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: 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: [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: [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: 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: 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: 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: 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: 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: 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: 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: 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: [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: [?] 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: 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: 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: 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

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: 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

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
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: 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: 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: 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: 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: 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: [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: [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
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
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: 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: 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: [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: 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] 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: [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-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] 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] 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: 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: 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: 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: (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: (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: 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: 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: 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: 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: 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: 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: 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: 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: (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: 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: 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: 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: 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: 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: 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
) > > 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: 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: 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: 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: 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

[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: [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

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

[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: 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

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

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: 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

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: 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: 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 Development jobs?

2015-07-30 Thread Andy Fingerhut
This is not an 'official' answer, but there have been multiple job postings here in the past. I believe they are reasonably welcome if they are from the development team itself that is doing the hiring. I have personally rejected many attempts to post recruiting messages here and on the Clojure D

Re: Should the Cheat Sheet mention assoc-in for vectors?

2015-08-06 Thread Andy Fingerhut
I have added assoc-in to the Vectors/'Change' section of the cheat sheet that is available here: http://jafingerhut.github.io That is where the latest version is published. The version at clojure.org/cheatsheet gets updated less frequently -- typically a couple of times a year, when there are mor

Re: 0.1.0 core.async release?

2015-08-08 Thread Andy Fingerhut
Mike, Sean: I don't know if there are deficiencies with this approach, but if you make project.clj the 'original source of truth', and generate pom.xml via 'lein install', does the auto-generated pom.xml contain everything you would need? Andy On Sat, Aug 8, 2015 at 1:02 AM, Mikera wrote: > He

Re: Parsing Unicode character with Clojure

2015-08-09 Thread Andy Fingerhut
Java uses UTF-16 encoding in memory for String objects. Characters in the Basic Multilingual Plane are represented as a single 16-bit character in memory, but anything outside the BMP is represented as a sequence of 2 16-bit characters. Clojure's \u syntax can only be used to directly represent a

Re: Parsing Unicode character with Clojure

2015-08-09 Thread Andy Fingerhut
recommend that you do not rely on any behavior you have not tested extensively yourself there. Andy On Sun, Aug 9, 2015 at 9:22 AM, Andy Fingerhut wrote: > Java uses UTF-16 encoding in memory for String objects. Characters in the > Basic Multilingual Plane are represented as a single 16-

Re: Is the following behavior of into function a bug or the intended result?

2015-08-09 Thread Andy Fingerhut
array-map preserving order is a property of its implementation, but not a promise to those who use them. Adding a key/value pair to an array-map that takes it over a certain threshold size changes its implementation to a hash-map, which in general changes the seq order completely. This is by desi

Re: some guidance sought

2015-08-10 Thread Andy Fingerhut
I had not heard of AA trees before, but according to Wikipedia they sound like a variant of red-black trees. Clojure's built-in sorted-map and sorted-set implementations are called by the class name PersistentTreeMap in its Java implementation [1], and it implements a persistent version of a red-b

Re: Clojure bootstrap, what am I missing here?

2015-08-24 Thread Andy Fingerhut
William: Nicola Mometto has done a lot of work implementing Clojure in Clojure, but there is no time frame proposed anywhere that I am aware of for this implementation to become the one that is most widely used, if that ever happens. The reader and analyzer are pretty much complete, as far as I a

Re: Ratio implementation questions

2015-08-26 Thread Andy Fingerhut
On Wed, Aug 26, 2015 at 3:26 PM, waffletower wrote: > Would someone care to rationalize the implementation of (rationalize)? > Sorry, I don't have an answer of the form "Rich Hickey's rationale for this behavior is X", because I don't know what X is for this behavior. I can point out a few thin

Re: clojure.core/run! doc string is incorrect

2015-09-21 Thread Andy Fingerhut
Should be fixed in Clojure 1.8.0-alpha2 and later, due to this ticket and its attached patch: http://dev.clojure.org/jira/browse/CLJ-1761 Change was to force run! to return nil always. Andy On Mon, Sep 21, 2015 at 2:36 PM, Mike Rodriguez wrote: > The doc string for clojure.core/run! is: > "R

Re: cl-format bug?

2015-09-24 Thread Andy Fingerhut
It is definitely the case that this behavior of cl-format you demonstrate does not match the behavior of Common Lisp's format when given the same arguments. It doesn't capitalize the keyword name, either, but I think leaving it lower case is more in keeping with Clojure's case-sensitive symbol nat

Re: "Clojure Javadoc API Documentation" needs to be rebuilt.

2015-09-29 Thread Andy Fingerhut
Others can confirm, but I think that is the entire API, callable from Java, that is documented and supported by Clojure. Everything is reachable from there if you know which Clojure Vars you want to use. Andy On Tue, Sep 29, 2015 at 7:31 AM, crocket wrote: > http://clojure.github.io/clojure/ja

Re: deprecation warnings?

2015-10-14 Thread Andy Fingerhut
Try out the Eastwood Clojure lint tool [1] and see if it gives deprecation warnings where you hope to see them. Andy [1] https://github.com/jonase/eastwood On Wed, Oct 14, 2015 at 9:31 AM, William la Forge wrote: > OK, but > > 1. Still no warning from cursive or lein test and > 2. I think the

Re: Apparent bug with more than 5000 command line arguments

2015-10-15 Thread Andy Fingerhut
James: This sounds to me likely to be known and expected behavior of xargs. Any OS has maximum limitations on either number and/or total size of command line arguments, and xargs is probably invoking multiple JVMs. Here is a portion of the man page for xargs on my Mac: Any arguments specified o

Re: ArithmeticException while using unchecked-multiply

2015-10-24 Thread Andy Fingerhut
I can't answer whether Clojure should do that. It is doing it because unchecked-multiply falls back to normal multiply, i.e. *, unless both of its arguments are primitive long values. Even boxed Long values cause it to fall back to the behavior of *. The same goes for unchecked-add and unchecked

Re: ArithmeticException while using unchecked-multiply

2015-10-25 Thread Andy Fingerhut
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, perhaps nothing. I wouldn't be surprised if the Clojure core team judged the existing

Re: ArithmeticException while using unchecked-multiply

2015-10-25 Thread Andy Fingerhut
ojure.core/unchecked-subtract Describing the odd behavior in only one of those entries, and then cross-referencing it explicitly in the examples of the others to the 'detailed one', can save redundancy in writing. Andy On Sun, Oct 25, 2015 at 11:17 PM, Andy Fingerhut wrote: > I cr

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

2015-11-11 Thread Andy Fingerhut
Results of some testing done on 1.8.0-RC1: Ran 'mvn clean test' on a few OS/JDK combos that are not tested as often. Reason: there have been (or still are) build or test failures with some of them. All JDKs listed below were 64-bit. Windows 7 Enterprise SP1 + Oracle JDK 1.7.0_80-b15: ok 3/3 tria

[ANN] Eastwood, the Clojure lint tool, version 0.2.2 released

2015-11-15 Thread Andy Fingerhut
Eastwood, the Clojure lint tool, version 0.2.2 has been released. See install instructions and complete documentation at [1]. Below are some of the changes since version 0.2.1. A complete list is at [2]. Go squash some bugs! Jonas Enlund, Nicola Mometto, and Andy Fingerhut [1] https

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

2015-11-15 Thread Andy Fingerhut
Sorry, that link to the docs on the new wrong pre/post-condition linter should have been: https://github.com/jonase/eastwood#wrong-pre-post Andy On Sun, Nov 15, 2015 at 1:25 PM, Andy Fingerhut wrote: > Eastwood, the Clojure lint tool, version 0.2.2 has been released. See > i

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

2015-11-15 Thread Andy Fingerhut
nearly the same -- about 2% longer with 1.8.0-RC1, but I only ran each set of tests once, and that could be within the range of variability across runs. Andy On Wed, Nov 11, 2015 at 12:02 PM, Andy Fingerhut wrote: > Results of some testing done on 1.8.0-RC1: > > Ran 'mvn clean test&#x

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

2015-11-16 Thread Andy Fingerhut
There is no STM involved if you only have atoms, and no refs, so it can't be STM-related. I have a conjecture, but don't yet have a suggestion for an experiment that would prove or disprove it. The JVM memory model requires that changes to values that should be visible to all threads, like swap!

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

2015-11-17 Thread Andy Fingerhut
David, you say "Based on jvisualvm monitoring, doesn't seem to be GC-related". What is jvisualvm showing you related to GC and/or memory allocation when you tried the 18-core version with 18 threads in the same process? Even memory allocation could become a point of contention, depending upon how

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

2015-11-19 Thread Andy Fingerhut
(swap! a long-operation-on-score some-param >>>>> >>>>> >>>>> In this case long-operation-on-score will need to be re-run every time >>>>> a thread modifies the atom. However if our function only needs the state >>>>&g

<    1   2   3   4   5   6   7   8   9   10   >