Re: Could not locate

2021-01-05 Thread 'Alan Forrester' via Clojure
On 5 Jan 2021, at 10:50, Yang Xu wrote: > I am begin with clojure, when I invoke clojure from java. The "Could not > locate cljcore/core__init.class, cljcore/core.clj or cljcore/core.cljc on > classpath" is arised. > > (defproject cljcore "0.1.0-SNAPSHOT" > :description "FIXME: write descripti

[JOB] Strategic Blue Clojure job in London

2020-12-03 Thread 'Alan Forrester' via Clojure
Hello Strategic Blue is a company that helps organisations buy cloud on terms to suit their needs and optimise long-term cloud costs. We’re hiring a Clojure developer in London: https://strategic-blue.com/careers_pt/developer-2/ Alan Forrester -- You received this message because you are su

Re: Best way to use Lein only as a build tool?

2018-07-26 Thread 'Alan Forrester' via Clojure
On 27 Jul 2018, at 06:39, Didier wrote: > What's the best way to use Lein only as a build tool? If I want to do my own > dependency resolutions. Or say use tools.deps for dependency resolution, but > Lein for all other build tasks? There’s a leiningen plugin for using tools.deps: https://gith

transients problem

2018-02-24 Thread 'Alan Forrester' via Clojure
Calling (first #{1}) gives the result 1. Calling (first (transient #{1})) gives an error: “IllegalArgumentException Don't know how to create ISeq from: clojure.lang.PersistentHashSet$TransientHashSet clojure.lang.RT.seqFrom (RT.java:550)” Is this behaviour intended? And whether or not this i

Re: Spec without global registry?

2017-06-12 Thread 'Alan Forrester' via Clojure
On 12 Jun 2017, at 20:41, Mark wrote: > > I don't see how that limits it to dev use cases. Can you explain more why > > you say that? > > I understand (and completely agree with) the assumption of a global namespace > for spec names. The scope of that namespace is all Clojure developers. I

Re: Let and For Doesn't Execute - Where Is My Misunderstanding?

2017-05-17 Thread 'Alan Forrester' via Clojure
On 17 May 2017, at 19:14, Kevin Kleinfelter wrote: > I'm stumped by the behavior of the following code fragment. Can someone help > me understand what's happening? > > This code: > (println "Holding:" (:class holding)) > (let [t (:class holding)] > (for [x t] (println "here" x)) >

Re: if nil is true

2017-01-29 Thread 'Alan Forrester' via Clojure
On 30 Jan 2017, at 07:34, Sayth Renshaw wrote: > Hi > > If nil is true > > clojure-noob.core> (nil? nil) > true > > Then why doesn't nil return from this statement as the first true value? This expression is a function invocation. The function is the first item in the list and the argument

Re: Pattern matching Vs destructuring?

2017-01-26 Thread 'Alan Forrester' via Clojure
On 27 Jan 2017, at 07:04, Didier wrote: > Some languages have pattern matching, and Clojure is said to not have it > (without a library), but it does have destructuring. > > It seems to me that destructuring is the same as pattern matching, except > that it can only be used inside function arg

complex made simple?

2016-10-14 Thread 'Alan Forrester' via Clojure
In Rich Hickey's talk "Simple Made Easy" he mentioned that there are ways to take a system that somebody else wrote that is complex and simplify it. Can anyone recommend some resources on how to do this? Thanks, Alan Forrester -- You received this message because you are subscribed to the Googl

Re: [ANN] Clojure 1.9.0-alpha4

2016-06-04 Thread 'Alan Forrester' via Clojure
What are you asking “Why?” about? You haven’t quoted anything so it’s not clear what you’re asking about. Alan On 4 Jun 2016, at 13:22, Alex Miller wrote: > Why? > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, sen

Re: [ANN] New Clojure Podcast: defn

2016-05-20 Thread 'Alan Forrester' via Clojure
On 20 May 2016, at 10:32, Vijay Kiran wrote: > On Friday, May 20, 2016 at 9:29:29 AM UTC+2, Ashish Negi wrote: >> One suggestion : >> >> Please provide a short description for every podcast episode. This helps >> immensely. > > Hi Ashish, > > Thanks for tuning in, we post the show notes on ht

Re: Removing duplicates from a series

2016-05-17 Thread 'Alan Forrester' via Clojure
On 17 May 2016, at 10:47, 'Simon Brooke' via Clojure wrote: > I'm having trouble with writing a function > in idiomatic clojure > which doesn't blow the stack > The problem is I have a time series of events e.g. > > ({:idhistory 78758272, :timestamp #inst > "2016-03-31T19:34:27.31300-00:00

Re: dependency problem

2016-05-13 Thread 'Alan Forrester' via Clojure
On 13 May 2016, at 11:46, Juan A. Ruz @tangrammer wrote: > (sorry previous comment was sent before I wanted :- ) > Hi Alan, > I think you should keep commons-code 1.9 as far as is the last-version > required by any dep of your project > so ... > > you could exclude globally (using :exclusions

dependency problem

2016-05-13 Thread 'Alan Forrester' via Clojure
I have been trying to use the Twitter API library by Adam Wynne: https://github.com/adamwynne/twitter-api and it appears to have a dependency problem. My project.clj file looks like this (defproject hash-tag-counting-thingy "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http

Reagent html tags

2016-04-17 Thread 'Alan Forrester' via Clojure
I am trying to use reagent for a personal project, but I have a problem with html tags. The keywords corresponding to html tags are not the same as the html tags with a colon in front of them. For example, the onclick html tag becomes :on-click in reagent. So I would like to see a list of which

Re: more minimal clojurescript intro/app

2016-04-13 Thread 'Alan Forrester' via Clojure
On 13 Apr 2016, at 04:18, 'Lee' via Clojure wrote: > Thanks again to Alan, Pedro, and Colin for the input on this. > > I found the modern-cljs tutorial most helpful, and was able to put the > compiled Hello World example on a server and then run it from my browser. > Victory! > > It seems lik

Re: [ANN] Let's make clojure.org better!

2015-11-10 Thread 'Alan Forrester' via Clojure
On 10 Nov 2015, at 15:14, Alex Miller wrote: > The Clojure community is full of talented writers and valuable experience, > and together we can create great documentation for the language and the > ecosystem. With that in mind, we are happy to announce a new initiative to > replace the existin

Re: complex numbers in clojure

2015-11-02 Thread 'Alan Forrester' via Clojure
that swappable, just as the underlying matrix > implantations are presently (in core.matrix.complex). > The complex number library basically casts non-doubles to doubles. Alan > On Mon, Nov 2, 2015, 7:03 AM 'Alan Forrester' via Clojure > mailto:clojure@googlegroups.com>> wrot

Re: complex numbers in clojure

2015-11-02 Thread 'Alan Forrester' via Clojure
On 2 Nov 2015, at 13:11, Grahack wrote: > I'm resurrecting this thread in case there is something new that happened > concerning complex numbers that was not logged here. > So was there some progress made? > > I also wanted to add that mixing rationals and complex wuold be super cool, > like:

Re: palingdrome problem (4 clojure)

2015-10-08 Thread 'Alan Forrester' via Clojure
On 8 Oct 2015, at 09:15, r/ Wobben wrote: > I have now this : > > (ns fourclojure.core > (:gen-class)) > > > (defn checker [x] > ( = x (if (string? x) > (clojure.string/reverse x) > (into (empty x) (reverse x) > > > (checker '(1 2 3 4 5)) true > > > ( = '( 1 2 3 4 5) '(

Re: Generate all possible teams

2015-10-05 Thread 'Alan Forrester' via Clojure
On 5 Oct 2015, at 11:45, andrea crotti wrote: > Hi everyone, > > I was trying for fun to solve the following problem: > > given a list of football players with some defined skills, find out which > team selection would be balanced. > > For example given just 4 players A, B, C, D there would be

Re: How can find something inside heavily nested data structure ?

2015-08-19 Thread 'Alan Forrester' via Clojure
On 19 Aug 2015, at 18:08, Hussein B. wrote: > Here is more concrete example > > (def s [{"n" {"id" "a"} "d" 2 "children" [{"n" {"id" "c"} "d" 4 "children" > nil}]} {"n" {"id" "b"} "d" 3 "children" nil}]) > > > I want to find the map that has value "c" for "id". If found, I need to > return t