Re: Where I can learn this?

2015-10-14 Thread Mikhail Malchevskiy
Sure you can =) Here is the public repo of Magnar Sveen (author of the "Parens of the Dead"): https://github.com/magnars/.emacs.d. Some of the functions are part of the clj-refactor (https://github.com/clojure-emacs/clj-refactor.el) which is part of the CIDER (https://github.com/clojure-emacs/ci

Re: Where I can learn this?

2015-10-14 Thread Tassilo Horn
Erlis Vidal writes: > - html completion That typing a < inserts the closing > immediately is probably `electric-pair-mode'. That script expands to could be yasnippet. > - refactoring (rename, move to function) > - adding dependencies and automatic project.clj modificaiton That's all courtesy

Where I can learn this?

2015-10-14 Thread Erlis Vidal
Guys, I've just finished the first episode of "parens of the dead" and was mind blown for what I saw there. http://www.parens-of-the-dead.com/e1.html Have you been near someone that do something cool and you have to ask, "how you did that?" Well, every second on the video I was having that feeli

Re: Newbie trying HTML parsing

2015-10-14 Thread James Reeves
It looks like the response body is a string rather than a stream. Try using crouton.html/parse-string instead. - James On 15 October 2015 at 01:27, Mike wrote: > So now I'm trying to make the conversion to Crouton. Of course that is > not going well. Here is a chunk of code: > > (ns one.core

Tessel and ClojureScript

2015-10-14 Thread Erlis Vidal
This question is for the clojurescript guys. Do you think it's possible to code the Tessel (https://tessel.io/) using ClojureScript? I really want to have fun :) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cl

Re: Newbie trying HTML parsing

2015-10-14 Thread Mike
So now I'm trying to make the conversion to Crouton. Of course that is not going well. Here is a chunk of code: (ns one.core (:gen-class)) (require '[clj-http.client :as client] '[clojure.zip :as z] '[clojure.data.zip :as dz] '[clojure.data.zip.xml :as dzx]

Re: Newbie trying HTML parsing

2015-10-14 Thread Matching Socks
(Enlive wraps JSoup and TagSoup and causes them both to return a value in the same format as clojure.xml. Likewise, Enlive's transformation features will work with anything that looks like clojure.xml.) -- You received this message because you are subscribed to the Google Groups "Clojure" grou

Re: Newbie trying HTML parsing

2015-10-14 Thread James Reeves
I'm not that familiar with Enlive, so I can't comment on the ease of that approach. However, the way I'd personally do it is that I'd make use of Crouton and the zipper functions in clojure.zip and clojure.data.zip. A zipper is a functional way of navigating an immutable data structure. So first

Re: [ANN] Clojure 1.8.0-beta1

2015-10-14 Thread Marc O'Morain
Agreed :) On 14 October 2015 at 23:08, Alex Miller wrote: > This is a bug in the original code that is being caught by the stricter > check on throws (at > https://github.com/hugoduncan/clj-ssh/blob/develop/src/clj_ssh/ssh.clj#L301) > - name there should be the final arg to ex-info, not to throw

Re: [ANN] Clojure 1.8.0-beta1

2015-10-14 Thread Alex Miller
This is a bug in the original code that is being caught by the stricter check on throws (at https://github.com/hugoduncan/clj-ssh/blob/develop/src/clj_ssh/ssh.clj#L301) - name there should be the final arg to ex-info, not to throw. So I'm going to call that a good regression. :) On Wednesday,

Re: deprecation warnings?

2015-10-14 Thread Colin Fleming
Sadly Cursive doesn't show this right now - it definitely should, though. Cheers, Colin On 15 October 2015 at 06:55, William la Forge wrote: > *warn-on-deprecated* would be super! :D > > On Wed, Oct 14, 2015 at 1:44 PM, Alex Miller wrote: > >> You might wish to up-vote http://dev.clojure.org/j

Re: Newbie trying HTML parsing

2015-10-14 Thread Mike
Thanks James! You helped me get another step along the way, I got this working. Of course you mentioned Crouton; you should and I asked for advice on my approach. So please allow me to expand the problem statement and you may advise me further... Once I get this HTML parsed, I know that some

Re: [ANN] Clojure 1.8.0-beta1

2015-10-14 Thread Marc O'Morain
I don't have a good way to measure runtime like that I'm afraid. On 14 October 2015 at 22:39, Ghadi Shayban wrote: > Marc, > Any changes up or down in run-time performance (post-startup)? > > On Wednesday, October 14, 2015 at 5:11:20 PM UTC-4, Marc O'Morain wrote: >> >> I just ran the CircleCI c

Re: [ANN] Clojure 1.8.0-beta1

2015-10-14 Thread Ghadi Shayban
Marc, Any changes up or down in run-time performance (post-startup)? On Wednesday, October 14, 2015 at 5:11:20 PM UTC-4, Marc O'Morain wrote: > > I just ran the CircleCI code-base under 1.8 beta 1 to see if there were > any gains in compile time (which is in the region of 90 seconds for our > ma

Re: [ANN] Clojure 1.8.0-beta1

2015-10-14 Thread Marc O'Morain
I just ran the CircleCI code-base under 1.8 beta 1 to see if there were any gains in compile time (which is in the region of 90 seconds for our main app). The clj-ssh issue was the only third-party lib that didn't work. Here is our compile time on Clojure 1.7 and 1.8: Clojure 1.7: real 1m30.622s

Re: [ANN] Clojure 1.8.0-beta1

2015-10-14 Thread Marc O'Morain
FYI - Trying to upgrade CircleCI I get a syntax error in clj-ssh (passing too many argument to throw): https://github.com/hugoduncan/clj-ssh/issues/39 I've logged the issue with them. On 13 October 2015 at 15:01, Alex Miller wrote: > Clojure 1.8.0-beta1 is now available. > > Try it via > >

Re: The Reading List

2015-10-14 Thread Dragan Djuric
Is there a living person who read all, or even a majority, of these books? If there is (although I doubt), what he/she thinks about them? I am genuinely interested. In my opinion, there is too much Cool Aid magic in the list, and too little of more tangible stuff. Is not that the books are usel

Re: [ANN] Clojure 1.8.0-beta1

2015-10-14 Thread Mike Rodriguez
Just a heads up, I tried upliftign to Clojure 1.8.0-beta1 today and had a failure that is originating from potemkin "0.4.1". I think the issue may be in its dependent project riddley "0.1.10". I logged an issue there at https://github.com/ztellman/riddley/issues/18. I haven't tracked down the c

The Reading List

2015-10-14 Thread Alan Thompson
Hi, Just saw a good presentation on InfoQ by Jason McCreary ( http://www.infoq.com/presentations/the-reading-list) where he mentions several topics from "The Reading List", which is an informal list of books that are considered by many in the industry to be "required reading" for software enginee

Re: Newbie trying HTML parsing

2015-10-14 Thread James Reeves
In the clj-tagsoup example it has the following line: (use 'pl.danieljanus.tagsoup) The use function is like require, except it aliases the vars to the current namespace. So the pl.danieljanus.tagsoup is the namespace to use. If the README doesn't provide any clues, you can sometimes figure

Newbie trying HTML parsing

2015-10-14 Thread Mike
Hello, For my first real Clojure project I am attempting to get an HTML page and locate a particular ** tag within the page. I have my program GETting the page, but I am having trouble parsing it. I am trying to use *clj-tagsoup* to parse the page, but I get an error message when I try to ;req

Re: deprecation warnings?

2015-10-14 Thread William la Forge
*warn-on-deprecated* would be super! :D On Wed, Oct 14, 2015 at 1:44 PM, Alex Miller wrote: > You might wish to up-vote http://dev.clojure.org/jira/browse/CLJ-706 > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send e

Re: deprecation warnings?

2015-10-14 Thread Alex Miller
You might wish to up-vote http://dev.clojure.org/jira/browse/CLJ-706 -- 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: 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: deprecation warnings?

2015-10-14 Thread William la Forge
OK, but 1. Still no warning from cursive or lein test and 2. I think the metadata goes after the arguments when defining multi-arity functions. On Wed, Oct 14, 2015 at 12:11 PM, Colin Yates wrote: > Isn’t meta data before the symbol name? > > On 14 Oct 2015, at 17:09, William la Forge wrote: >

Re: deprecation warnings?

2015-10-14 Thread Colin Yates
Isn’t meta data before the symbol name? > On 14 Oct 2015, at 17:09, William la Forge wrote: > > Going forward, I'd like to deprecate some functions and have a warning > displayed on first use. So I've done this: > > (def emptyAAMap ^{:deprecated "0.3.4"} > (new AAMap emptyNode {:comparator R

deprecation warnings?

2015-10-14 Thread William la Forge
Going forward, I'd like to deprecate some functions and have a warning displayed on first use. So I've done this: (def emptyAAMap ^{:deprecated "0.3.4"} (new AAMap emptyNode {:comparator RT/DEFAULT_COMPARATOR})) But I am not seeing any warnings from either lein or cursive. Do I need to add a

aatree release 0.3.3--AASet

2015-10-14 Thread William la Forge
The aatree project provides fully compatible alternatives to Clojure sorted-map, sorted-set and vector, with several extensions: - AAVector supports add/drop at any point using addn and dropn. - AAMap and AASet implement Reversible, Counted, Indexed and Sorted - CountedSequence implements Co

Re: Ted Dziuba: The S in REST

2015-10-14 Thread Patrick Kristiansen
On Wednesday, October 14, 2015 at 5:49:06 AM UTC+2, James Reeves wrote: > > Of course, the difficulty with this architecture is that few databases > have fast, immutable snapshots built in, so you'd have to get a little > creative with your database design. > Which, I guess, is where Datomic wou

Re: Inspecting the Call Stack on Recursive Calls

2015-10-14 Thread Philippe Guillebert
Hi Well, you answered yourself, either replace recur with random-depth (and it will consume stack), or add a counter in your recursion and (recur (inc i)). Philippe On Wed, Oct 14, 2015 at 2:41 AM, Jeremiah Via wrote: > Hi all, > > I was curious to know if it is at all possible to determine h

Re: Ted Dziuba: The S in REST

2015-10-14 Thread Colin Yates
Not following this too closely, but CQRS and event sourcing is an incredibly powerful combination (particularly if you throw DDD in there as well) and might be a perfect fit here... > On 14 Oct 2015, at 04:48, James Reeves wrote: > > On 13 October 2015 at 09:49, Patrick Kristiansen