State of Clojure 2023 Survey

2023-02-27 Thread Alex Miller
Hello, the annual State of Clojure 2023 survey is now open! This survey has been done every year since 2010 and has been instrumental in tracking changes in the Clojure community over time. https://www.surveymonkey.com/r/clojure2023 We would greatly appreciate it if you could complete this by

Re: Override deps

2023-02-13 Thread 'Alex Miller' via Clojure
There may be other things wrong, but hard to tell without more context of your deps.edn. On Mon, Feb 13, 2023 at 7:02 PM Alex Miller wrote: > It looks like you misspelled ":override-deps" (two r's) ? > > On Mon, Feb 13, 2023 at 5:50 PM 'Tête à-tête' via Clojure < >

Re: Override deps

2023-02-13 Thread 'Alex Miller' via Clojure
corenlp 4.4.0 and, here, I'm insisting on 4.5.2! > > A framework that I use relies on corenlp but, I want deps to resolve to > the latest version only, so not backfill the m2 repo. > > > On Monday, 13 February 2023 at 23:27:38 UTC Alex Miller wrote: > >> Can you share an

Re: Override deps

2023-02-13 Thread 'Alex Miller' via Clojure
Can you share an example deps.edn or some more information? Also, what Clojure CLI version are you using `clj --version`. Alex On Monday, February 13, 2023 at 7:14:20 AM UTC-6 deliver...@googlemail.com wrote: > My laptop is struggling for space and, I would like to override a > depe

Re: ANN: just-maven-clojure-archetype 0.3-RELEASE

2022-11-20 Thread 'Alex Miller' via Clojure
It still builds all the Clojure contrib projects. :) On Saturday, November 19, 2022 at 10:54:18 PM UTC-6 ma...@talios.com wrote: > Nice, > > Almost surprised to not see my clojure-maven-plugin pop in there - it’s > always a surprise finding folk still using it. > > -- > "Great artists are

Re: Any updates on spec after “Maybe Not” presentation?

2022-05-24 Thread Alex Miller
The schema and select support has been added to spec in spec2 (https://github.com/clojure/spec-alpha2) but is still a work in progress. You can find more info at https://github.com/clojure/spec-alpha2/wiki/Schema-and-select . Alex On Thursday, May 19, 2022 at 4:12:33 PM UTC-5 Dmitry Kakurin

Re: Book project : compilation of Rich Hickey conferences transcripts translated in french

2022-05-24 Thread Alex Miller
Hi Paul, contact me at alex.mil...@cognitect.com. I will say that if anyone wants to do translations / transcriptions in other languages for anything on ClojureTV, I am more than happy to add those to the video. Alex On Tuesday, May 24, 2022 at 6:21:02 AM UTC-5 paul@gmail.com wrote: >

Re: Unnecessary boxing of return from set!

2022-05-15 Thread 'Alex Miller' via Clojure
I don't think that void type hint is going to do anything there. The deftype impl of apply here will (has to by Java requirements) return void here. There is a gap here I think where the return gets needlessly boxed. You might try just putting a nil expr after the set! as a workaround. In any

Clojure 1.11 is now available!

2022-03-22 Thread Alex Miller
You can find an overview here: https://clojure.org/news/2022/03/22/clojure-1-11-0 And full changelog here: https://github.com/clojure/clojure/blob/master/changes.md#changes-to-clojure-in-version-1110 Enjoy! -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: How to suppress warnings about namespace replacements?

2022-02-01 Thread 'Alex Miller' via Clojure
?])) But you can't really do that from outside the namespace or suppress this warning otherwise. Alex On Tuesday, February 1, 2022 at 11:22:28 AM UTC-6 Laws wrote: > I get a lot of warnings like this: > > WARNING: boolean? already refers to: #'clojure.core/boolean? in

Re: how to package a project to a jar file?

2021-09-14 Thread Alex Miller
You might want to check out the tools.build project. https://clojure.org/guides/tools_build On Tuesday, September 14, 2021 at 10:35:24 AM UTC-5 yccal...@gmail.com wrote: > i can't use lein > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: ClassNotFoundException when importing a clojure interface

2021-07-18 Thread Alex Miller
definterface is generally considered a low-level tool in Clojure and typically Clojure developers do not create interfaces directly like this. The two primary means of function abstraction/polymorphism are multimethods (can dispatch on any aspect of any of the parameters to a function) and

Re: Reporting Potential Security Vulnerabilities in the Clojure Codebase

2021-07-18 Thread Alex Miller
If you want to report something privately, you can email it to cloj...@cognitect.com. Alex On Saturday, July 17, 2021 at 2:21:56 PM UTC-5 William Blair wrote: > > Does the Clojure project have a protocol in place for reporting potential > security vulnerabilities found in the run

Re: Recommended way to develop a command-line app in Clojure

2021-06-23 Thread Alex Corcoles
Hi, On Wednesday, June 23, 2021 at 4:53:04 PM UTC+2 matthew...@gmail.com wrote: > It's also probably worth testing out writing something in "normal" Clojure > and compiling it to an uberjar instead of running it via lein / clj, > because depending on what "fast" means to you, a normal jar will

Re: Recommended way to develop a command-line app in Clojure

2021-06-23 Thread Alex Corcoles
On Tuesday, June 22, 2021 at 7:28:09 AM UTC+2 metas...@gmail.com wrote: > If you want quick-running (sans JVM/Clojure startup time) and would rather > stick with the JVM Clojure paradigm over Cljs, I'd highly recommend looking > at babashka: > > https://github.com/babashka/babashka > Thanks!

Re: Recommended way to develop a command-line app in Clojure

2021-06-21 Thread Alex Corcoles
Actually, while doing some more research I stumbled into: https://github.com/theasp/parseit Which is basically what I want to do- and it points to yet-another-build-tool: https://github.com/thheller/shadow-cljs On Monday, June 21, 2021 at 8:58:18 PM UTC+2 Alex Corcoles wrote: > >

Recommended way to develop a command-line app in Clojure

2021-06-21 Thread Alex Corcoles
I want to develop a CLI tool based on instaparse; basically I want to do: $ instaparse-cli my-grammar.abnf random-file And have that command spout a JSON AST of random-file according to my-grammar. I would like to distribute this in a convenient way for my team-mates, without spending a ton

Re: How to get a value of a var in Java

2021-06-18 Thread Alex Ott
s discussion on the web visit > https://groups.google.com/d/msgid/clojure/fcbd3883-705a-4180-9b99-7ccad64a09afn%40googlegroups.com > <https://groups.google.com/d/msgid/clojure/fcbd3883-705a-4180-9b99-7ccad64a09afn%40googlegroups.com?utm_medium=email_source=footer> > . > -- With best wis

Re: deps.edn dependency whose name starts with a number

2021-05-15 Thread 'Alex Miller' via Clojure
I don't think there is any workaround for this, it's the first time I've seen someone run into this. I'll log it and think about a solution. On Saturday, May 15, 2021 at 6:22:41 PM UTC-5 zk wrote: > Is there a way to specify a dependency whose name starts with a number? > For example: > > ```

State of Clojure 2021 survey results

2021-04-06 Thread 'Alex Miller' via Clojure
Read all about it here! https://clojure.org/news/2021/04/06/state-of-clojure-2021 -- 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

Re: Unexpected "#_ - Discard" error

2021-04-03 Thread Alex Miller
The discard reader will read, then discard (so the following form still has to be readable). In this case, the 1:2 starts with a number so is parsed as one, but that's an invalid form. On Saturday, April 3, 2021 at 8:50:49 AM UTC-5 zen...@gmail.com wrote: > I'm reading

State of Clojure 2021 survey

2021-01-18 Thread 'Alex Miller' via Clojure
It's that time of year again! Please complete the State of Clojure 2021 survey, an important tool for tracking our community over the last decade. https://www.surveymonkey.com/r/clojure2021 Thanks! Alex -- You received this message because you are subscribed to the Google Groups "Cl

Re: Documentation of clojure.string/split is confusing

2021-01-12 Thread 'Alex Miller' via Clojure
-trailing-delimiters (which is the ask.clojure question corresponding to that last ticket). Votes really do matter in our prioritization! Alex On Tuesday, January 12, 2021 at 2:17:28 PM UTC-6 oliver...@gmail.com wrote: > Happy new year, folks. > > (Might not be the best place to post th

Cognitect and Nubank are Sponsoring Open Source Developers

2020-12-15 Thread Alex Miller
https://cognitect.com/blog/2020/12/15/sponsoring-open-source-developers -- 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

Clojure 1.10.2-rc1

2020-12-11 Thread Alex Miller
Clojure 1.10.2-rc1 is now available. This is a release candidate and we would appreciate it if you could try it in your own projects. If you encounter issues, https://ask.clojure.org is the best place to file a report. Below is a changelog for 1.10.2 (items new to this release since

Re: Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main

2020-09-21 Thread Alex Miller
the changes in the release that led to the issue here. Additionally, libs are now sorted by tree depth (roots first, then their deps, etc), then alpha per depth so this should greatly improve reproducibility of lib ordering across builds. On Monday, September 14, 2020 at 7:51:07 AM UTC-5 Alex Miller

Re: Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main

2020-09-14 Thread 'Alex Miller' via Clojure
Just FYI, we have a plan to address this and it should be in the next stable version. > On Sep 14, 2020, at 1:00 AM, 'bed...@yahoo.com' via Clojure > wrote: > >  > I couldn't agree more. > > It really boils down to the simple fact that class loading in the JVM - for > the standard

Re: core.async buffers alternative backend

2020-09-10 Thread Alex Miller
I don't actually remember now, but it's possible that when core.async was created we were still trying to accommodate an older version of Java before some of those existed. That's not an issue now as we only need to support Java 1.8+. So, I don't know of any reason these wouldn't be an option.

Re: Clojure tools-deps Docker image versions & stable releases

2020-08-13 Thread 'Alex Miller' via Clojure
ed, but am now planning to take steps to revert back to stable > versions only. > > So, I have a couple of questions: > > 1. For Alex Miller or other Cognitect folks: What's the best place to > monitor for new stable tools-deps releases (to trigger Docker image > updates)? Are u

Re: Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main

2020-08-11 Thread 'Alex Miller' via Clojure
FYI, I've been working with the homebrew team today and homebrew-core now points to the latest stable clojure tools version and will track that automatically going forward. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main

2020-08-11 Thread 'Alex Miller' via Clojure
On Tue, Aug 11, 2020 at 6:41 PM 'bed...@yahoo.com' via Clojure < clojure@googlegroups.com> wrote: > Just 2 quick points before I go back to migrate to shadow-cljs & leiningen > ;) > > "just does not seem well defined " > This is not a line of argument you want to pursue when we are talking >

Re: Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main

2020-08-11 Thread 'Alex Miller' via Clojure
> cljs-bean/cljs-bean (deps.edn) > #object[java.net.URL 0x6c345c5f > "file:/Users/alanthompson/work/tmp810/xanadu/resources/public/index.html"] > > > The call to `requiring-resolve` claims it is finding my local > `./resources/public/index.html`. However, the error

Re: Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main

2020-08-11 Thread 'Alex Miller' via Clojure
On Tue, Aug 11, 2020 at 3:01 PM 'bed...@yahoo.com' via Clojure < clojure@googlegroups.com> wrote: > Here's some maven-specific discussion: > https://stackoverflow.com/questions/793054/maven-classpath-order-issue. > They have a defined order since 2.0.9. and declaration order is considered > for

Re: Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main

2020-08-11 Thread 'Alex Miller' via Clojure
Just to beat the horse... On Tue, Aug 11, 2020 at 1:05 PM 'bed...@yahoo.com' via Clojure < clojure@googlegroups.com> wrote: > Changing the order of classpath entry and not having paths be at the > beginning of the CLASSPATH will break existing code that uses `(io/resource > ...)` to load

Re: Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main

2020-08-10 Thread 'Alex Miller' via Clojure
Bunch of things here... Clojure maintains its own brew tap and a "stable" release that you can obtain with `brew install clojure/tools/clojure` (the brew conventions automatically find the prior repo based on that). That tap also includes prerelease unstable versions that can be obtained with

Re: DEPRECATED: Libs must be qualified, change cljfmt => cljfmt/cljfmt (~/.clojure/deps.edn)

2020-08-06 Thread 'Alex Miller' via Clojure
stable release of `clj` so using the core tap may be giving you preview releases. So, use the official tap! Alex On Thursday, August 6, 2020 at 12:19:31 PM UTC-5 ben.k...@gmail.com wrote: > I've started seeing a lot of messages like this, I think after I updated > clojure, but I can't fi

Re: Clojure interop with Spark

2020-07-10 Thread Alex Ott
0-439fed88ab39o%40googlegroups.com > <https://groups.google.com/d/msgid/clojure/259f5ff6-dd66-4688-aa80-439fed88ab39o%40googlegroups.com?utm_medium=email_source=footer> > . > -- With best wishes,Alex Ott http://alexott.net/ Twitter: alexott_en (Englis

Re: Optimizaton for finding the next key in a sorted-map

2020-05-25 Thread 'Alex Miller' via Clojure
Hi, there is no such optimization and that's not really feasible in the sorted-map impl. However there are other sorted map data structures like https://github.com/clojure/data.avl which have facilities in this area. On Monday, May 25, 2020 at 4:47:58 PM UTC-5, Harmon Nine wrote: > > Is there

Re: HP Fortify Security Scanner and Clojure

2020-04-02 Thread 'Alex Miller' via Clojure
I might give > that a try if I can't find anything else. > > Regards > > On Wednesday, 21 October 2015 15:14:31 UTC-7, Alex Miller wrote: >> >> In general, Clojure code cannot be decompiled from .class to .java as the >> Clojure generated bytecode does things that cann

Re: Emacs-cider

2020-03-13 Thread 'Alex Miller' via Clojure
It would probably help to include any error information for someone to learn more about the problem. On Friday, March 13, 2020 at 1:54:40 PM UTC-5, Duke wrote: > > The emacs-cider combo chokes with an error to the effect that cider-nrepl > could not be loaded. > I'm on a Win10 box. Would

Re: [ANN] Clojure 1.10.2-alpha1

2020-03-13 Thread 'Alex Miller' via Clojure
Generally, you don't explicitly download it at all - you should just change your dependency in your project.clj to use [org.clojure/clojure "1.10.2-alpha1"] and then leiningen will download it for you into your local Maven repository (usually in ~/.m2/repository). On Friday, March 13, 2020

Re: Clj on Win: Error building classpath

2020-03-10 Thread 'Alex Miller' via Clojure
/org/clojure/clojure/1.10.1/clojure-1.10.1.pom If you do need a proxy setup, there are docs on this at https://clojure.org/reference/deps_and_cli if you search for "Maven proxies" there. Alex On Tuesday, March 10, 2020 at 7:23:38 AM UTC-5, Daniel G. Gamonal wrote: > >

Re: Register to the International Clojure Data Science Meetup in Berlin on 27th of February

2020-02-25 Thread 'Alex Miller' via Clojure
I don't know if it makes sense, but might be worth updating the clojure.org event page at https://clojure.org/events/2020/clojured (PR to https://github.com/clojure/clojure-site/blob/master/content/events/2020/clojured.adoc). On Tuesday, December 17, 2019 at 8:59:30 AM UTC-6, Sami Kallinen

Re: Clojure 1.10 "Illegal Reflective Access Operation"

2020-02-19 Thread Alex Miller
I believe this has already been discussed in this same thread, but to rehash. More info on what this warning means: https://clojure.org/guides/faq#illegal_access To diagnose the cause, you can use --illegal-access=debug to get better info about the cause. Here I assume it's in xml/parse, but

Re: A controversial call to bump libraries from 0.x to 1.0

2020-02-19 Thread Alex Miller
I think you are misinterpreting what people believe the 0.x to 1.x means. In the wide world of semver, 0.x indicates "unstable" and 1.x indicates "first stable"- you're conflating that special case with a general n.x to n+1.x which is interpreted as "breaking change". (See https://semver.org/

Re: [ANN] Cognitect Labs' aws-api 0.8.430

2020-02-18 Thread Alex Miller
There is no public repo for it, but the source is in the jar. https://repo1.maven.org/maven2/com/cognitect/http-client/0.1.104/http-client-0.1.104.jar -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Clojure has been selected to participate in GSoC 2017!

2020-02-04 Thread Alex Miller
at it actively seeks diversity, and that it is possible > to submit a concrete open source project as a suggestion. > > > On Sunday, 12 January 2020 09:03:05 UTC+2, Daniel Slutsky wrote: >> >> To summarize the GSoC 2020 discussion so far: >> - Several individuals seem to be interested.

Re: Bit rot and leiningen?

2020-02-04 Thread Alex Miller
What you're seeing here is a spec failure on macro specs that have been added in Clojure 1.9+ (tighter checks on code, so basically identifying existing silently wrong code). Note that lein is itself a Clojure program with plugins and running on it's own version of Clojure, which can change

Re: Recursively convert Java Map to Clojure Map

2020-01-31 Thread Alex Miller
You don't need that - Clojure maps *are* Java maps (they implement java.util.Map) and you can pass them into most Java APIs as is (with the caveat that they are made for reading, not for writing). If you did really want to convert them to hash-maps or whatever, it's pretty easy to do so with a

Re: Feedback on datafy/nav project

2020-01-31 Thread Alex Miller
Datafiable is not special, the guidelines (recently refreshed with Rich's input at https://clojure.org/reference/protocols#_guidelines_for_extension) still make sense, but are still just guidelines for your thinking not Laws whose breakage will land you in Clojure Jail. If you want to make

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

2020-01-15 Thread Alex Miller
Using vars lets you iterate on the impl functions without invalidating the proxy instances. I'm not sure if that was the reason, but that would be one advantage. On Wednesday, January 15, 2020 at 10:46:36 AM UTC-6, Mike Rodriguez wrote: > > Do you have any idea about the reason that the Clojure

Re: Why is `(get-in m ks)` not implemented as `(get-in m ks nil)`?

2019-12-11 Thread Alex Miller
At a skim, seems like a reasonable thing to do. On Wednesday, December 11, 2019 at 5:04:38 AM UTC-6, Dirk Wetzel wrote: > > Hey everyone! :) > > I was recently looking at the source for *get-in* to check if it would > exit early as soon as a key was not present in the nested maps. > The source

Re: Clojure has been selected to participate in GSoC 2017!

2019-12-04 Thread Alex Miller
lojure to > participate in Outreachy? > > On Wed, 4 Dec 2019 at 10:18 PM, Alex Miller wrote: > >> As far as I'm aware the work involved here is: >> >> - submitting the organization application (in Jan) >> - soliciting and writing up project ideas (in Jan/Feb) >>

Re: Clojure has been selected to participate in GSoC 2017!

2019-12-04 Thread Alex Miller
opportunity for someone to contribute! On Wed, Dec 4, 2019 at 10:35 AM Daniel Compton < daniel.compton.li...@gmail.com> wrote: > Hi folks, I'm the secretary of Clojurists Together. > > Thanks very much for the background on GSoC and the kind words Alex :) > > Clojurists Together w

Re: Clojure has been selected to participate in GSoC 2017!

2019-12-03 Thread Alex Miller
el Slutsky wrote: > > Ag, Alex, many thanks. > > These days some of us are trying to think where we should put our efforts > in the next few months. This might be one of the things we have to > consider. We'll update if we do. > > > > On Tuesday, 3 December 2019 17:2

Re: Clojure has been selected to participate in GSoC 2017!

2019-12-03 Thread Alex Miller
> > > Thanks so much, that helps to know. > > > > On Sunday, 1 December 2019 06:36:33 UTC+2, Alex Miller wrote: > >> > >> We applied and were not accepted for a couple years. Having done some > of > >> the admin/org stuff in the past, I don't reall

Re: Clojure has been selected to participate in GSoC 2017!

2019-11-30 Thread Alex Miller
We applied and were not accepted for a couple years. Having done some of the admin/org stuff in the past, I don't really want to do it again, but an organization like Clojurists Together would be great for that part (although I'm not looking to add any work to anyone else either). It's not

Re: Benefits to partial functions.

2019-10-21 Thread Alex Engelberg
All functions returned by a given arity of partial or comp are of the same Java class under the hood, whereas defining an anonymous function always generates a new class, and I've heard that fewer classes can result in better performance from a JIT perspective. But I'm just speculating and haven't

Re: A Concise Guide to Getting Started with Clojure on Windows

2019-10-17 Thread Alex Miller
We'd be happy to host a guide like this on clojure.org if you're interested... https://clojure.org/community/contributing_site Alex On Thursday, October 17, 2019 at 7:47:03 PM UTC-5, Brandon R wrote: > > Hello Clojure friends, > > I wrote this guide for a friend, and it's someth

Re: clojure.spec merge+or bug?

2019-10-14 Thread Alex Whitt
I got bitten by this today as well... makes it hard to add a predicate that destructures the map and compares its values. On Friday, August 17, 2018 at 4:35:12 PM UTC-4, Alex Miller wrote: > > With s/and, conformed values flow through the predicates. This allows you > to take

Re: s/valid returns false, but s/explain prints "Success!"

2019-09-26 Thread Alex Miller
> On Sep 26, 2019, at 7:15 PM, Markus Agwin wrote: > > https://www.clojure.org/guides/spec are the docs I mentioned (search for > first occurrence of :kind) Thanks, that’s just old, will fix. > -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: s/valid returns false, but s/explain prints "Success!"

2019-09-26 Thread Alex Miller
On Thursday, September 26, 2019 at 7:41:20 AM UTC-5, Markus Agwin wrote: > > Consider the following cloure.spec-alpha2 example: > > (def v [0]) > (s/def ::thevec vector?) > (s/def ::data (s/coll-of number? :kind ::thevec)) > :kind is expected to be a predicate, not a spec. The doc string (in

Re: How to use Clojure core specs in my own library with regards to the EPL license?

2019-08-30 Thread Alex Miller
I think at the point of "I copied the specs for `fn` and `defn` in my own code base, and modified them accordingly.", that sounds like a modification of source under the EPL. A more subtle interpretation would require legal expertise. Re the PS, yes that's a larger known issue around regex

Re: [ANN] defexception 0.1.0: a library for dynamically defining exception types in Clojure

2019-08-24 Thread Alex Miller
The clojure.asm namespaces are an internal vendored version of the asm library. It is NOT considered to be part of the public Clojure API. We periodically update it and have no control over that API, which does sometimes include breaking changes. External users of Clojure should never depend

[ANN] clj 1.10.1.469 and tools.deps.alpha 0.7.541

2019-08-21 Thread Alex Miller
These releases are now available... - FIX: exclusions were not canonicalized and could fail to match and exclude - PERF: cache Maven session and use Maven session cache - FIX: Remove slf4j-nop as dependency of tools.deps.alpha -- You received this message because you are subscribed to the

Re: questionable result of Clojure code execution in org babel

2019-08-12 Thread Alex Miller
You can’t wrap ns and forms into a single do like that. If you google around you can find this issue referred to as the Gilardi scenario. -- 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

Re: Strange with "clj" tool

2019-07-31 Thread Alex Miller
The error indicates a classpath that does not include the clojure dependency. That shouldn't ever happen (as clojure is included as the default dependency set). So not sure what would cause that, but it would help to know if there is a deps.edn file at the location of the failure and what it

Re:

2019-07-18 Thread Alex Miller
Something is wrong with Google groups. If I knew how to fix it, I would, but I’ve given up trying. > On Jul 18, 2019, at 6:20 AM, 'David Bürgin' via Clojure > wrote: > > I’m an email user. For some reason official announcements (by Alex > Miller) don’t get sent out via email, t

Re: core.async: Unbound channels

2019-07-08 Thread Alex Miller
Expanding transducers (like mapcat) can produce multiple output values per input value, and those have to have someplace to go. -- 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

Re: [ANN] Cognitect Labs' aws-api 0.8.335

2019-07-06 Thread Alex Miller
clojure.xml is a ns built into Clojure core that dates from very early days of Clojure. At a later point, it almost certainly would have been in clojure-contrib or a separate library. It is not a good choice for anything more than one-off code. In particular, it will cause reflection/illegal

Re: Calling Java from Clojure

2019-06-21 Thread Alex Miller
In that case, I would try to isolate those gen-classes into as small a box as possible and make an artifact for just those. On Fri, Jun 21, 2019 at 4:58 PM Didier wrote: > Oh, not when you don't have too. I mean, you can always hand write a class > in Java and have it call into Clojure. That's

Re: Calling Java from Clojure

2019-06-21 Thread Alex Miller
even easier in Clojure 1.10 with the addition of requiring-resolve > (which is also thread safe, unlike regular require right now). > > But yeah, as Alex indicated, you need to be careful if you have an AOT’d > entry point and downstream code is not AOT’d. Just one more “here be dragons” > aspec

Re: Calling Java from Clojure

2019-06-21 Thread Alex Miller
With AOT, you generally shouldn't ever exclude part of the AOT'ed code. Most problems with AOT'ed code stem from having AOT'ed code call into non-AOT'ed code, so anything "downstream" should also be AOT'ed. On Fri, Jun 21, 2019 at 10:01 AM eglue wrote: > This is a good clarification. > > I

Re: Calling Java from Clojure

2019-06-17 Thread Alex Miller
ned in Support.java. For example, that "getTimestamp" means > result of a new java.util.Date. > > понедельник, 17 июня 2019 г., 23:35:30 UTC+3 пользователь Alex Miller написал: >> >> No, there is a bit of Java code just to load the Clojure >> code, but then it’s Cloj

Re: Calling Java from Clojure

2019-06-17 Thread Alex Miller
No, there is a bit of Java code just to load the Clojure code, but then it’s Clojure after that (the entity record impl). -- 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

Re: Calling Java from Clojure

2019-06-10 Thread Alex Miller
On Mon, Jun 10, 2019 at 12:04 AM eglue wrote: > This is great, Alex, thanks. (Sorry, I deleted from underneath you and > reposted to fix the title before I saw your reply...) > > The latter option, writing interfaces and classes in Java and calling w/ > the glue code is

Re: Calling Java from Clojure

2019-06-09 Thread Alex Miller
Looks like the title for this is backwards if I understand the intent, should be calling Clojure from Java, right? Java code is going to invoke methods on classes (that's all it knows how to do). You have several options: 1) Use the Clojure Java API to invoke the Clojure runtime - here you're

Re: spec error output in web context

2019-06-09 Thread Alex Miller
On Sun, Jun 9, 2019 at 8:43 AM 'Sven Richter' via Clojure < clojure@googlegroups.com> wrote: > Hi Alex, > > I tracked it down to a minimal example with an explanation here: > https://gist.github.com/sveri/1aaad9b12a8ec90d243206ab3b6073e3 > > The short version is. Ru

Re: spec error output in web context

2019-06-08 Thread Alex Miller
On Saturday, June 8, 2019 at 1:41:59 AM UTC-5, Sven Richter wrote: > > > > Am Freitag, 7. Juni 2019 15:35:41 UTC+2 schrieb Alex Miller: >> >> How do you start the web server? >> > I use component to startup immutant web, I also tried with http-kit, but > tha

Re: spec error output in web context

2019-06-07 Thread Alex Miller
How do you start the web server? Who is printing the error? There are functions available in clojure.main to replicate the message from the repl - you can call them yourself. See https://clojure.org/reference/repl_and_main#_error_printing for more on error triage and the functions like

Re: [ANN] Clojure 1.10.1

2019-06-06 Thread Alex Miller
Correct, no changes were made between 1.10.1-RC1 and 1.10.1. On Thu, Jun 6, 2019 at 11:31 AM Sean Corfield wrote: > Thanks for all the work on this! > > Can you confirm that this is the same as 1.10.1-RC1? > > Sean > > On Thursday, June 6, 2019 at 8:28:17 AM UTC

Re: Use invokedynamic instead of the reflection API when possible

2019-05-22 Thread Alex Miller
higher priority. Ghadi, in particular, has investigated options for lazy-initing vars which could have a noticeable impact on startup performance while minimizing the effect on subsequent calls like other approaches that have been tried. Anyways, he can probably chime in on that more. Alex

Re: Macro help/strategy for writing a tiny DSL for circuit-model quantum computing?

2019-05-15 Thread Alex Miller
My general advice would be not to start with macros. 1. Start with data - what are the entities (bits? gates?), and how do you represent them? It's ok (actually better) for these to be verbose. Plan for extension (maps are open, which is why they're so common in representing data in Clojure).

Re: No "clojure --version" switch

2019-05-08 Thread Alex Miller
Thanks! On Wed, May 8, 2019 at 11:49 AM Alan Thompson wrote: > Jira CLJ-2508 created. > > On Wed, May 8, 2019 at 4:51 AM Alex Miller wrote: > > > > Actually, reporting the Clojure AND Java version would be even better. > > > > > On May 8, 2019, at 6:31 A

Re: No "clojure --version" switch

2019-05-08 Thread Alex Miller
Actually, reporting the Clojure AND Java version would be even better. > On May 8, 2019, at 6:31 AM, Alex Miller wrote: > > I would echo the other comments here. What user question are we trying to > answer? The scripts are not written in Clojure, but use a Clojure program t

No "clojure --version" switch

2019-05-08 Thread Alex Miller
I would echo the other comments here. What user question are we trying to answer? The scripts are not written in Clojure, but use a Clojure program to compute the classpath, then launch your Clojure program. The version used for the first is largely irrelevant to you and probably more confusing

Compiler error message misses the target

2019-05-08 Thread Alex Miller
I would definitely be interested in understanding and improving that error reporting. What was the command you ran to produce the error and can you make a smaller self contained repro? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

[ARTICLE] Shenandoah GC in production: experience report

2019-05-07 Thread Alex Miller
Excellent write up, thanks for doing that. -- 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

Re: clojure.data.csv/write-csv isn't thread safe (should it be?)

2019-05-02 Thread Alex Miller
I think the vast majority of the time, people are writing a csv file in a single thread. Issue/patch welcome though... On Thursday, May 2, 2019 at 7:59:05 AM UTC-5, matt@gmail.com wrote: > > The write-csv function in clojure.data.csv isn't thread safe because even > though it uses the

Re: Add support for seq on Java streams?

2019-04-12 Thread Alex Miller
We have been looking at how to provide default interop for some of the function APIs, and this seems equally interesting now. I don’t recall a ticket for this in particular so feel free to make one. Needs some assessment of course. -- You received this message because you are subscribed to the

Quick question on spec alpha 2

2019-04-02 Thread Alex Miller
It’s equivalent. Schemas have no “structure”. -- 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

Re: [ANN] Clojure 1.10.1-beta1

2019-03-31 Thread Alex Miller
You could put it in user.clj, but it would be reasonable to have a ticket for this. On Sunday, March 31, 2019 at 8:58:30 PM UTC-5, Ben Brinckerhoff wrote: > > I see that this handler uses `ex-str`, which is nice because `ex-str` in > turn calls `*explain-out*` which is user-configurable. > >

Re: regex in edn?

2019-03-29 Thread Alex Miller
There are edn impls in at least 15 languages so the problem is wider than just java and js. -- 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

pprint

2019-03-28 Thread Alex Miller
jira/patch welcome... -- 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

Re: [ANN] Clojure 1.10.1-beta1

2019-03-23 Thread Alex Miller
That sounds like a different problem, don’t think Clojure 1.10.1-beta1 would affect anything there. > On Mar 23, 2019, at 5:57 PM, David Neu wrote: > > Hi Alex, > > I had been getting > > Error: Could not find or load main class clojure.main > Caused by: java.lan

Re: No matching field found: length for class byte array

2019-03-18 Thread Alex Miller
Too far down the slippery slope for me. -- 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

Re: spec with schema and select?

2019-03-07 Thread Alex Miller
Not yet, although I am working on select at the moment for spec 2 (at https://github.com/clojure/spec-alpha2). schema, as described in that talk, is still TBD in terms of how it will end up. You might also be interested in following my weekly journals at http://insideclojure.org to track what

Re: Exploring the (tap>) functions

2019-03-02 Thread Alex Miller
On Saturday, March 2, 2019 at 1:23:21 PM UTC-6, Glen Mailer wrote: > > Hello All > > I was wondering if there is an annoucement or a rationale doc coming for > (tap>) and it's related functions? The current docstrings do a good job of > telling you what they do and how to use them, but the

1.8.0/1.9.0/1.10.0-RC1 -> 1.10.0 regression: Extending protocols with metadata / datafy combined with macros/symbols

2019-02-28 Thread Alex Miller
Please file a jira with this info at https://dev.clojure.org/jira/browse/CLJ -- 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

Re: Customizable project .cpcache path

2019-02-25 Thread Alex Miller
File a ticket... https://dev.clojure.org/jira/browse/TDEPS Please start with the problem - not being able to use in a directory which is not writable, which may have many solutions. On Monday, February 25, 2019 at 10:51:24 AM UTC-6, Stanislav Yurin wrote: > > Currently user cache is

  1   2   3   4   5   6   7   8   9   10   >