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

2020-11-07 Thread Matching Socks
This is not either/or. There is room for an alternative, spec-enforcing, EDN reader. A drop-in replacement, as it were, for those inclined to try it. If you want speed, you use Transit anyway, right? P.S. Even better if the alternative, compliant, reader were compatibly licensed, to replace

Re: Truly, we live in the garden of edn

2020-09-13 Thread Matching Socks
I can't comment on the whole crazy world of JSON, but it's a shame to think of all the coal-fired watts spent unnecessarily parsing UUIDs. If all you need is a string, there is no dishonor in letting it be a string. > I was made to wonder how the rest of the world lives! > > P.S. Also,

Re: Rationale behind github.com/cljctools project

2020-09-13 Thread Matching Socks
I especially like the "bigger aspirations" - https://github.com/cljctools/readme#bigger-aspirations And your summary of relevant strengths of Clojure. On Sunday, August 30, 2020 at 2:42:25 AM UTC-4, Sergei Udris wrote: > > Thought process behind and goals of the https://github.com/cljctools >

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

2020-09-13 Thread Matching Socks
Too fragile. This reminds me of the notion of "situated programming", featured in the talk by Rich Hickey: you and your programs operate in the middle of a bizarre and changing situation. For Clojure, the Java ecosystem is part of that situation. Even if some jars do not overlap today, you

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

2020-08-07 Thread Matching Socks
Rich Hickey has pushed using solid domain names before, and I'm super glad to see more progress on that front. But it's unfortunate if the tools castigate the victim, not the perpetrator. Wouldn't Clojars be a better point for enforcement? Has the question been raised with Clojars? Alex's

Re: Cognitect joins Nubank!

2020-07-23 Thread Matching Socks
I think this will *compound interest* in the language! -- 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

Re: Inadequate behavior of agent await?

2020-06-13 Thread Matching Socks
await takes many steps and is not synchronized, so it would be messy to guarantee how it relates to other threads. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new

Re: [ANN] com.walmartlabs/schematic 1.3.0

2020-05-23 Thread Matching Socks
Sierra's Component README illustrates factory functions that take a complete static configuration at once, followed up by injections. But, really, it's none of Component's concern how you work a Lifecycle thing into shape for Component to assoc the injections and start it. In Schematic,

Re: [ANN] Clojureranker 1.0 for Solr

2020-04-11 Thread Matching Socks
Something is odd about the href of that link, but the Github page https://github.com/pegesund/clojureranker describes a wondrous disruption-for-the-better - using the Clojure REPL inside a running Solr so "There is no long restart, packing cycles" (except "when you require new packages in

Re: Conceptual difference between map and class

2020-03-31 Thread Matching Socks
Witty and instructive: http://wiki.c2.com/?ClosuresAndObjectsAreEquivalent -- 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: WebApp authentication and authorization - up-to-date information?

2020-03-22 Thread Matching Socks
Dmitri Sotnikov's book "Web development with Clojure" includes an example. Do not be put out by books or primers dated a few years back. HTTP, Servlets, and Clojure have been quite stable. Likewise the basic facts of authentication and authorization, right? On Saturday, March 21, 2020

Re: Clojure 1.10 "Illegal Reflective Access Operation"

2020-03-22 Thread Matching Socks
Alan, consider JSoup too, if you can... Enlive offers both options, and, if memory serves, JSoup seemed the more capable with HTML5. -- 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

Re: How to include ClojureScript into HTML page?

2020-03-22 Thread Matching Socks
Feel free to post this kind of question to https://ask.clojure.org/, where things are better organized. At the risk of not answering your specific question, I'd suggest you put aside "Web development with Clojure" for matters of ClojureScript. (And regard with suspicion any template system

Re: Help test the new Clojars server

2020-03-16 Thread Matching Socks
I can tell by the beet-colored theme that beta.clojars.org is a wholesome replica. -- 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: A controversial call to bump libraries from 0.x to 1.0

2020-03-14 Thread Matching Socks
(A constructive note) The core.async official API docs are still labeled "core.async 0.7.560-SNAPSHOT (in development)". I followed the link from https://github.com/clojure/core.async . -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Emacs-cider

2020-03-13 Thread Matching Socks
How cider-nrepl gets loaded, all depends. The manual has something to say about it, at https://docs.cider.mx/cider/basics/up_and_running.html -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

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

2020-02-18 Thread Matching Socks
Dear August Forum: Today I noticed a new post on "Inside Clojure" https://insideclojure.org/2020/02/18/lib-version/ , which says, after some thoughtful justification, "we have lots of libraries in the Clojure ecosystem that have been around for many years, are widely used, have stable APIs,

Stack Overflow developer survey

2020-02-05 Thread Matching Socks
Today, I noticed an invitation to complete the Stack Overflow developer survey. (Clojure was not on the menu.) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new

Re: Enlive: select a comment, drop all subsequent nodes?

2019-12-15 Thread Matching Socks
Indeed "lefts" or "rights" will be the key. A transformation is just a function (open up enlive's html.clj to see how it works), so you can sanity-check yourself by providing a "transformation" that prints out the matched nodes. Feel free to regard Enlive's own transformations as mere

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

2019-12-12 Thread Matching Socks
By the way, the ClojureScript version of get-in's 3-arity avoids allocating a sentinel. Instead, it uses a predefined sentinel: (def ^:private lookup-sentinel (js-obj)) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Calva, generative testing, and a good day at the keyboard

2019-11-04 Thread Matching Socks
This is just a short, happy dispatch from the provinces. Spurred by tweets from Stuart Halloway, I tried out "test.check", by following the helpful Guide on clojure.org.! To leave no stone unturned, and avoid tainting my test.check results with Emacs, I also took the opportunity to

Re: Can't use my macro in fuction definition

2019-10-19 Thread Matching Socks
Macros manipulate program symbols. Macros fill the role that is filled by Perl scripts in the Java world, when they pre-process stuff (a database schema, or a gui model, for example) into actual Java code before you compile it. If a task could not be solved by pre-processing the source code

Re: Can't use my macro in fuction definition

2019-10-19 Thread Matching Socks
The macro is a code generator, with which the compiler computes the actual definition of the "test" function. What's there is x, and the macro does not like x. The REPL definition of JLabel worked because JLabel was the literal argument. See https://clojure.org/reference/macros, which is

Re: Code style: how do you order map keys?

2019-09-20 Thread Matching Socks
Clarity is important. Considering the conundrum of sorting namespace aliases, vs using the fully-qualified name as the implicit sort key despite the apparent alias; and the burden of shuffling everything after a refactoring; any sorted order will sooner or later be "broken", so you might as

Re: gen-class/AOT considered harmful (in libraries)???

2019-08-31 Thread Matching Socks
On Saturday, August 31, 2019 at 5:39:18 AM UTC-4, Didier wrote: > > with only the -xyx fns in it. And have those instantly delegate to a call > to another namespace. > The gen-class :impl-ns option is useful here. It achieves the delegation without spreading AOT to the implementing namespace.

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

2019-08-31 Thread Matching Socks
A bit awkward to clutter a standard library with too much speculative forgiveness of other software's potential failure to follow a spec. Where would it end? Anyway, the best improvement here would help with all InputStream consumers, not just io/copy. If you suffer from a faulty

Re: gen-class/AOT considered harmful (in libraries)???

2019-08-22 Thread Matching Socks
You are considering gen-class as an alternative to writing the service-provider class in Java and using only methods in Clojure's public Java API to connect it with an implementation-in-Clojure? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

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

2019-08-22 Thread Matching Socks
Swell! This looks like a super duper cure for a perennial speed bump. And impressive that you took it all the way back to Clojure 1.4! By the way, is clojure.asm considered internal? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Clojurists Together wants to fund you to work on your open source Clojure project

2019-08-10 Thread Matching Socks
I am glad Clojurists Together has materialized community support for Calva (VSCode) - from two angles at once - top-down to Calva and bottom-up via CIDER, which shares its orchard of features. Nonetheless, the Calva quest is quixotic. The supposedly customizable Integrated Development

PSA: A slight tweak to "concat"

2019-07-06 Thread Matching Socks
There's activity on a ticket in Jira to fix a quirk of "concat" that dates back to a commit by chouser in 2009! It's subtle because the title of CLJ-2523 is "lazy-cat can cause StackOverflowError with more than 2 arguments", which describes a

Re: core.async: Unbound channels

2019-07-06 Thread Matching Socks
"Effective" is in the eye of the beholder. The 1024 limit helps surface bugs wherein more than a thousand threads are blocked for lack of a certain channel's buffer space. But the 1024 limit does not pertain if 1 thread would like to do thousands of puts for which there is no buffer space.

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

2019-07-06 Thread Matching Socks
David, what's wrong with clojure.xml that pushed cognitect-labs/aws-api to try another library, and is there a Jira issue for it? > > -- 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

Re: core.async: Unbound channels

2019-07-04 Thread Matching Socks
Ernesto, you may be interested in the informative response to this enhancement request, https://clojure.atlassian.net/browse/ASYNC-23, "Support channel buffers of unlimited size". Anyway, if you do not want to think very hard about buffer size, you can specify a size of 1. It does not limit

Re: Java Interop on steroids?

2019-06-22 Thread Matching Socks
By "generic type information", you mean the X in List ? On Friday, June 21, 2019 at 12:03:46 AM UTC-4, atdixon wrote: > > However -- there are many popular Java frameworks that love to reflect on > their annotations and their generic type signatures. > > To name a heavyweight: Spring. But also,

Re: Calling Java from Clojure

2019-06-21 Thread Matching Socks
Instead of deleting class files from a jar, you can use the :impl-ns option on gen-class to stop transitive AOT. (gen-class makes a class file, but AOT does not reach the impl-ns.) I don't remember seeing this in the manual, but I don't know why else impl-ns would exist... On Friday, June

Re: Calling Java from Clojure

2019-06-20 Thread Matching Socks
Depends on what you seek an example of. The cfj interop example provides 1-line Clojure implementations of the features the Java program consumes, and 1 line is plenty to demonstrate the interop. On the other hand, those 1-liners are not an example of significant work you'd much rather do in

Re: Clojure JIRA migration

2019-05-18 Thread Matching Socks
> > ... a new path for language users to file tickets without needing an > account We are also looking at a new process to obtain a contributor > account and gain access to the system for commenting or other work. Stay > tuned for more on that. > Issue comments are the best help I can

Re: Compiler error message misses the target

2019-05-08 Thread Matching Socks
Was that letter d the only error in the file, as it turned out? -- 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

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

2019-05-03 Thread Matching Socks
You give credit where none is due! The awe is genuine. Using higher-order functions to avoid writing a loop is old hat. But you went further, and ran *100 threads* without writing a loop. I was so amazed and impressed that an integer overflowed in my brain stem and vectored me off toward

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

2019-05-02 Thread Matching Socks
Wow, that user.clj is impressive. This is a top-notch application of clojure core async! Nonetheless, if one is going to the trouble of making 100 threads, it would be clearer and farther-sighted (and not much more work) to toss the results into a channel that a single thread drained into an

Re: The magic of Lisps

2019-04-30 Thread Matching Socks
We owe much of Clojure's utility and innovation to a *community* of macro writers. core.match, core.logic, clojure.test, Tellman's Manifold... You are in deep trouble if you "brute-force" your way around what Manifold does, by melding the complexity into your application space. And those

Re: [ANN] Crux—open source database alpha launch

2019-04-22 Thread Matching Socks
Where do folks discuss Crux? -- 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

Re: Add support for seq on Java streams?

2019-04-13 Thread Matching Socks
Another Java innovation (from back in Java 6) that could benefit from interop support is varargs. The Java compiler automatically passes arguments with an array, but the Clojure compiler does not. That's CLJ-440. But I do not find a Jira ticket (https://dev.clojure.org/jira/) related to seq

Re: regex in edn?

2019-03-29 Thread Matching Socks
How would you resolve the problem "Rich Hickey" mentioned on the page you linked? "The lack of portability for regexes"... True, *some* regex patterns mean the same thing in the JVM and JS, but in general a regex pattern is not a portable value; it may mean something different to each regex

Re: Missing fns: rotate & rotate-while

2019-03-23 Thread Matching Socks
Could it finish off the result in some way other than flatten? flatten would go too far if the input data were a collection of collections. Indeed, I would support adding (some form of) rotate to the standard library *on the condition that flatten be removed.* rotate is an amusement, but

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

2019-03-18 Thread Matching Socks
That suggestion of a more humane and helpful error message (", use alength function for array length") is Jira ticket 1448 . Back in 2014, it got closed as "declined". But that was before the recent growth of interest in usable error messages.

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

2019-03-16 Thread Matching Socks
By the way -- To be sure it's working, I like to do stuff like this. You can really have heaps of fun using Java interop for side effects: user> (import 'javax.swing.JOptionPane) user> (JOptionPane/showMessageDialog nil "42 pounds of edible fungus" "Shopping Cart"

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

2019-03-16 Thread Matching Socks
Overall, WSL might not help much here. Last I heard, WSL did not include an X Window server to accommodate any GUI. Therefore, I suppose Intellij IDEA would be most useful as a native Windows app. In addition, Java and Leiningen work natively in Windows. I am glad you got Leiningen in gear,

Re: Closure lang for newbies in 2019

2019-03-09 Thread Matching Socks
Clojure is pretty simple. It works well. And nothing in it has ever been deprecated. In short, do not worry about finding a very new resource. What kind of project would you like to start out with? -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: [ANN] re-graph 0.1.8 - the GraphQL client for Clojurescript

2019-03-05 Thread Matching Socks
It dresses up HTTP failures in the GraphQL error structure so the user has to cope with only one failure channel. Is that what everyone does? Anyway, I did not see that spelled out in the Readme. It looks like a useful feature! By the way, I see it uses cljs-http, which in turn uses clj->js

Re: Clojure 1.10 "Illegal Reflective Access Operation"

2019-03-02 Thread Matching Socks
Does this need adjusting in clojure.xml too? The code looks pretty similar: (defn startparse-sax [s ch] (.. SAXParserFactory (newInstance) (newSAXParser) (parse s ch))) The reflection on "parse" is convenient. There are multiple SaxParser.parse methods with unique capabilities. The String

Re: Disable swagger.ui in production

2019-02-20 Thread Matching Socks
Would it be fair to paraphrase the question as, how to pass a different data structure to compojure's api function depending on whether the program is running in the development environment or "in production"? One very general technique is to wield the classpath to advantage. Suppose for

Re: Silly ns question

2019-02-16 Thread Matching Socks
Haha! (Can .shared.connection-test be require'd by another ns?) -- 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

Re: State of Clojure 2019 Survey!

2019-01-30 Thread Matching Socks
Clojure is to be commended for keeping the survey short. StackOverflow's (which is still open) is longer. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new

Re: Noob question on the --> macro implementation

2019-01-27 Thread Matching Socks
Gary might be on to something. The immediate context is (if (seq? form) (with-meta `(~(first form) ~@(next form) ~x) (meta form)) (list form x))] where seq?, as distinct from seq, does not check whether there is anything in the sequence. -- You received this

Re: How should I debug a poorly performing small web app, using Jetty?

2019-01-20 Thread Matching Socks
(Takes me back to the heyday of SQL, when one thread would start a long transaction, which the db would establish as a full-table lock, and nothing else could get done until the transaction committed.) Another thing you could do is decouple the periodic bulk procedure from the web app and run

Re: Issue when moving to Clojure 1.10

2019-01-15 Thread Matching Socks
This might have nothing to do with it, but, doesn't :import use parens? -- 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

Re: How does Executors/newScheduledThreadPool know how or where to parallelize work?

2019-01-02 Thread Matching Socks
You are right, this is not a Clojure question. I suppose your scheduled task could put a bunch of tasks on a queue and a thread-pool executor could work the queue in multiple threads. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: clj deps.edn :git overture rejected by ssh server, citing dss

2018-12-31 Thread Matching Socks
Wow, that is a super write-up on SSH and clj! I would contribute 2 tiny tips: git and jsch were reading ~/.ssh/config and coming to different conclusions about the HostKeyAlgorithms. The HostKeyAlgorithms statement said, "HostKeyAlgorithms +...". In effect, jsch may have ignored the "+",

clj deps.edn :git overture rejected by ssh server, citing dss

2018-12-30 Thread Matching Socks
The git command can clone, push, pull, etc.; so I think that the git url and the key pair are OK. But clj throws an exception when using that git url: ... Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail at com.jcraft.jsch.Session.receive_kexinit(Session.java:590)

Re: [ANN] Clojure 1.10.0-RC4

2018-12-07 Thread Matching Socks
Making serialized-require private (but not useless!) is a quiet triumph of Clojure's thoughtful perspective on private symbols. (Another, less enlightened, opinion is on Stack Overflow: https://stackoverflow.com/questions/37471253/how-can-i-write-unit-tests-for-private-clojure-functions ) --

Re: Confusing Regex Behavior

2018-12-04 Thread Matching Socks
See also Java's regex "Comparison to Perl 5" at https://docs.oracle.com/javase/9/docs/api/java/util/regex/Pattern.html. However, you are in for a treat! Perl is insanely great. Clojure is simply great. -- You received this message because you are subscribed to the Google Groups "Clojure"

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

2018-12-03 Thread Matching Socks
To be clear: In the example, p1 is not an instance of Person. p1 is just a map. An actual record has (at least) all of the basis fields. user> (map->Person {:name "foo"}) #user.Person{:name "foo", :age nil, :company nil} user> (dissoc *1 :age) {:name "foo", :company nil} ;; not a record

Re: [ANN] Clojure 1.10.0-beta7

2018-11-20 Thread Matching Socks
For those keeping score at home, the CLJ-2436 patch says, (defn- typeref->class - [typeref classloader] + ^Class [typeref classloader] (if (class? typeref) typeref - (clojure.lang.RT/classForName (typename typeref) false classloader))) +(clojure.lang.RT/classForName (typename

Re: [Question] How to properly start up refs in web applications?

2018-11-18 Thread Matching Socks
The ref is a good step, but it seems that accessing it via a global variable causes a problem. So don't use a global variable. Pass everything into the Ring handlers via the formal parameters. Compojure-style Ring handlers have only one formal parameter, the request map, but you can put

Re: [ANN] Lancaster 0.6.0 - Avro Schema Creation / Serialization / Deserialization

2018-11-18 Thread Matching Socks
"Faster than JSON" sounds reasonable -- in the JVM -- inasmuch as Avro uses a binary data format. But what about in Javascript? I ask because the motivation for Transit-JSON was an observation that the Javascript interpreters' built-in JSON parsers made binary formats uncompetitive. Has the

Re: What's the end goal for tools.deps?

2018-11-04 Thread Matching Socks
The premise that "Any serious work will need a build tool of some sort" is being challenged. You will check your clj files into Git somewhere and tell people to run your program with "clj...". If you must build something, such as a web-archive for Servlets, then you will stick with tools that

Re: Prototype code for enhanced CIDER code completion for Java methods

2018-10-19 Thread Matching Socks
The cost/benefit is hard to work out. Look ahead 7 years - we would have the ceremonial (jvm... (MyType:baz...)) in some places and the good old elegant (.baz ...) in others, and the tooling will work just as well with it. On the other hand, if you routinely do tons of interop with a wide

Re: [ANN] com.walmartlabs/cond-let 1.0.0

2018-10-03 Thread Matching Socks
Is this a refinement of Mark Engelberg's "better-cond", or an alternative approach? I have not used better-cond myself, but it starts here: https://dev.clojure.org/jira/browse/CLJ-200. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Clojure(Script) web apps in 2018

2018-09-20 Thread Matching Socks
Most of the choices are, or can be, wrappers around at least one battle-tested server - Jetty, Netty, Tomcat, etc. If you care, then decide that first. If you don't care, then how about Jetty. Next: if Jetty, then you will wind up in Pedestal sooner or later, so why not start there.

Re: [ANN] org.clojure/tools.cli 0.4.0

2018-09-13 Thread Matching Socks
Wow, I had not even noticed the cljs half of tools-cli! Is it useful with Node? -- 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: [ANN] Clojure 1.10.0-alpha7

2018-09-06 Thread Matching Socks
A linter is a good place for a warning that = is used with one apparent argument. Eastwood to the rescue! src/easter/core.clj:6:3: suspicious-expression: = called with 1 args. (= x) always returns true. Perhaps there are misplaced parentheses? Since = (and also < and > ) are handy in

Re-frame - on-click handler doesn't work, and I can't understand why not

2018-08-28 Thread Matching Socks
Did you intend to pass a function-that-returns-a-function instead of just a function as the handler? Also, it is a bit odd (maybe it has to do with context you have not shown) to use the big-link component function with () as opposed to square brackets. -- You received this message because

Re: Calling proxy without reflection

2018-08-02 Thread Matching Socks
And there's less! It's not necessary to issue the first (defn... or (get-test... (I tried in Clojure 1.8 only) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-20 Thread Matching Socks
To return to OP's question -- Good idea? Answer: At first, I saw the standard library as a mud puddle, an inkblot with just chaos, no airplane or number 42 in it. Then I got this book: Clojure Programming - Practical Lisp for the Java World - by Chas Emerick, Brian Carper, Christophe

Re: Some Seesaw Questions

2018-07-14 Thread Matching Socks
You might get a more accurate or precise answer from the seesaw-clj group. In indirect & partial answer to one-third of your questions: As I recall, in Swing, just about every bit of intense or blocking work (even reading files) belongs on a background thread. You can make and manage the

Re: defrecord can't impl some interface methods

2018-07-06 Thread Matching Socks
Wow, that Jira item got mired in a muddle of Various Alternatives! It discusses (1) error messages, (2) documentation, and (3) covariant returns! Jira can be a slow place to resolve a muddle. By the way: I suppose each compiler (clj, cljs, ...) is sensitive to a distinct set of

Re: Topological sort

2018-06-15 Thread Matching Socks
user> (topological-sort {0 [1] 1 [2 3] 2 [3] 3 []}) (3 2 0 1) ! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with

Re: Validate XSD 1.1

2018-05-30 Thread Matching Socks
(A fun and enlightening discussion is here: https://issues.apache.org/jira/browse/XERCESJ-1454 --- about whether to post Xerces on Maven Central.) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Clojure on Azul Zing JVM

2018-05-21 Thread Matching Socks
IBM Java likewise has not excited very much conversation here. Perhaps because Java is "write once, run anywhere"! The various implementations of Java have their strong and weak points, but they will run Clojure in any case. -- You received this message because you are subscribed to the

Re: [ANN] packthread 0.1.10

2018-04-04 Thread Matching Socks
Those are also good occasions for the standard-library *as->* user> (-> 4 (as-> x (let [n 2] (+ x n))) inc) 7 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Calling functions from within maps

2018-03-20 Thread Matching Socks
Why not provide a short, self-contained example that demonstrates the problem? And, by the way, are you using paredit or park fee? -- 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

Re: [ANN] clj-memory meter – measure the memory used by arbitrary objects

2018-03-06 Thread Matching Socks
Unrealized lazy sequence... user=> (def mm (filter even? (range 10))) #'user/mm user=> (mm/measure mm) "160 B" Realized... user=> (count mm) 5 user=> (mm/measure mm) "1.8 MB" Structural sharing? user=> (def nn (drop 25000 mm)) #'user/nn user=> (mm/measure nn) "1.8 MB" user=>

Re: Why does the `def-` not exist?

2018-03-03 Thread Matching Socks
^:private is the stale and sleazy co-conspirator of another blunt instrument, the whole-ns :use. Besides relegating inner-workings to a separate ns: You can gracefully omit a function from auto-generated docs by putting its description in a comment instead of a docstring. It would, likewise,

Re: `lein run` VS `lein uberjar` behaviour

2018-02-18 Thread Matching Socks
With the luxury of commenting on complex software sight-unseen... best of all, JavaFX... and you mention an uberjar, which grants opportunity to vent baseless suspicions about class-loading and compilation differences... could it be that the MediaPlayer is being instantiated *twice* in the

Re: macroexpand in uberjar

2018-02-15 Thread Matching Socks
Does the "uberjar" contain .class files for your "m" namespace? -- 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

Re: create vector from other vector and indices

2018-02-13 Thread Matching Socks
user> (def v [:a :b :c :d]) #'user/v user> (mapv v [3 1 2 0]) [:d :b :c :a] -- 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: [ANN] com.walmartlabs/lacinia 0.24.0, com.walmartlabs/lacinia-pedestal 0.6.0

2018-01-30 Thread Matching Socks
Lacinia is well done, and, in combination with Clojure, a terrific labor-saving device. In fact, Lacinia is so well-conceived that it makes GraphQL itself glow with labor-saving virtue. GraphQL is anyway splendidly low-impact for in-the-browser clients. In return, the burdens of GraphQL

Re: Officially support Vert.x

2018-01-10 Thread Matching Socks
How do the aims of this undertaking compare with Pedestal? http://pedestal.io/ says, "Pedestal supports Tomcat, Jetty, Immutant (with Undertow), Vert.x, ..." -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Clojure for beginners

2017-12-06 Thread Matching Socks
Meat and potatoes? -- 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] Dynadoc, dynamic docs for Clojure(Script)

2017-11-28 Thread Matching Socks
Hey, gang! There is something important here. Gold!, amidst the nuts and bolts. A humdinger of first-rate philosophical insight is tucked, inconspicuously, way toward the end of the linked demo video. In a word, it is a bat-it-out-of-the-park answer to the docstring-improvement chatter.

Re: Unexpected behaviour of transient map

2017-11-25 Thread Matching Socks
A docstring need not be a rope ladder that leads to all truth. (That would be a project for the IDE documentation access improvement brigade.) But the docstring of "assoc!" feints in a direction that makes this a frequently-asked question. -- You received this message because you are

Re: Unexpected behaviour of transient map

2017-11-24 Thread Matching Socks
I would go so far as to (light-heartedly) call the "assoc!" docstring booby-trapped. There is an open issue in Jira for it. Go vote: https://dev.clojure.org/jira/browse/CLJ-1385 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Any data about just how much loc Clojure shaves off java?

2017-11-20 Thread Matching Socks
To Alex's list -- you may add the contorted use of XSLT for lack of data-structure transformation functions! And all the messing around making "safe copies"! And "thread-safe" wrappers! And factory-factory factories! And code written just to print out the contents of POJOs! And

Re: calling a clojure function within a quote/(')

2017-11-17 Thread Matching Socks
In the docs: "syntax quote" on https://clojure.org/reference/reader -- 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

Re: Doc strings for complex cases?

2017-11-09 Thread Matching Socks
You can also put a docstring in a ns form to give context. I don't think you need anything done to Clojure itself. Or more specifically, you need not be limited by whatever Clojure has done with docstrings. Nor will you need to modify defn. You can attach any metadata you like, to the vars

Re: Grateful Appreciation

2017-11-01 Thread Matching Socks
Simplicity is a rare pleasure, and so too is a standard library diverging only immaterially from the ideal of 1 data structure and 100 functions. In Clojure, it saves a lot of time that would otherwise be spent asking questions on Stack Overflow. Or rather, it frees up a lot of time for

Re: Got NullpointerException when using loop/recur/let together

2017-10-25 Thread Matching Socks
Also, have another look at '(ret (- time-now start-time)) It will yield a list containing the symbol 'ret and a nested list containing the symbol '- etc etc etc. I think what you expected was a vector of two numbers. -- You received this message because you are subscribed to the Google

Re: How to add a java servlet into a clojure ring project

2017-10-11 Thread Matching Socks
war files are zip files, so you can unzip the war and see what's wrong with it. If necessary, build the combined war file another way. You might be able to do that by producing a war file with your web app only (which you know works) and then taking it apart with unzip, incorporating the

Re: Is the Learning Guide in Order?

2017-10-11 Thread Matching Socks
There are some books that give a cohesive and well-ordered introduction. If you can still find a copy of "Clojure Programming", by Emerick, Carper, and Grand, that's the one that I found most thoroughly helpful with the standard library. Also, it has a pretty good index and I made frequent

  1   2   3   >