What is the best setup to program Clojurescript IF...

2014-10-02 Thread Peter Mancini
What is the best setup to program Clojurescript IF: - you hate EMACS - use linux or windows Any suggestions? -- 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: New release of Light Table (which is now open source!)

2014-01-08 Thread Peter Mancini
I'm using regular editing windows as a repl. I turn off live most of the time as I don't think it's useful - I don't type fast enough before an unlimited take goes to work on an unlimited lazy collection... Everything else about it is great - a console is available to test println messages. The

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-02 Thread Peter Mancini
Ok, so you did not get lein working. If it were working you would not have problems creating a new project. I know you are eager to press forward. Admirable. However, it is what we call initiative without judgement. In the world of engineering that is considered ill-advised. So, lets get back to

Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Peter Mancini
Also, forgot to add, emacs is awful to learn on. Too many issues come with it. Its a lot to ask anyone to learn Clojure and emacs at the same time. In my honest opinion you get no benefit. LT's instatepl is awesome and the latest interface works great! -- -- You received this message because

Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Peter Mancini
At home I'm working in Win 8, Light Table and Lein with no issues. So, have hope and save the money you'd spend on Apple products for fine arts investment or arctic expeditions. :-) First get lein working. If you do nothing else that will get you very far. You'll need a version of curl for wind

Re: Building Trees

2013-09-17 Thread Peter Mancini
I thought last night I had not stated the exact root problem, so I'm glad you brought it up. It is an underlying assumption with my co-workers, but out of that context it is important to state it explicitly. The issue is perplexity . The tree is built ro

Re: Building Trees

2013-09-16 Thread Peter Mancini
Thanks. I authored a paper on building a gaussian-bayes classifier and implemented it in clojure. I looked at Titan. That has a lot of things I like but it requires named nodes to only exist once. So, that is close but not quite what I want. I'm looking at Zippers again. On Monday, September 16

Re: Building Trees

2013-09-16 Thread Peter Mancini
That is along the lines of my thinking. I am starting to look at zippers again. However much of what I need it to do either isn't documented at all or it was never intended to construct trees over time. The purpose of this is to look at sequenced events and detect frequent patterns. These patte

Re: Building Trees

2013-09-09 Thread Peter Mancini
On Sunday, September 8, 2013 11:26:35 PM UTC-5, puzzler wrote: > > > Rather than describing it in terms of how you'd implement it, can you be > clearer about the shape of the data and what specific sorts of operations > and queries you need to perform quickly on the data? That would make it > e

Building Trees

2013-09-08 Thread Peter Mancini
u don't start with a tree structure prebuilt. If it was 1989 I would just do this in C, with pointers and be done pretty quickly. I am thinking there is a more Lispy way of doing this but I haven't broken my thinking away from my old ways enough to see it. *Peter Mancini* Data Scientist

Re: Interest in a commercial IDE for Clojure?

2013-07-27 Thread Peter Mancini
As far as editing goes, I'm happy with Light Table. However, for a great debugger, I'd pay a ransom. Unwinding the Clojure stack is quite hard. One that could pinpoint troubled lambdas, watch state in a pprint kind of way that doesn't force me to put pprint into my code... I'd pay for that. Als

Re: regular expressions how-to: recognize lines?

2013-05-29 Thread Peter Mancini
Winner Winner Chicken Dinner! Thanks. Where do I find that? Much appreciated! On Wednesday, May 29, 2013 11:45:55 AM UTC-5, sw1nn wrote: > > You need to pass the multiline 'm' flag to the regex. some variant of: > > (def testcase "Line 1\nLine 2\nTarget Line\nLine 4\nNot a target line") > (printl

Re: regular expressions how-to: recognize lines?

2013-05-29 Thread Peter Mancini
There has to be some way to turn on line recognition. Its a basic function of regex. I know the string has lines, I can even use clojure.string/split-lines on it. I shouldn't have to do that and map against it. It should be built into the regular expression system. I'm certain my problem is ign

regular expressions how-to: recognize lines?

2013-05-29 Thread Peter Mancini
(def testcase "Line 1\nLine 2\nTarget Line\nLine 4\nNot a target line") (println testcase) (re-seq #"(?i)^target" testcase) (re-seq #"(?i)target" testcase) Line 3 finds nothing. It should find the third line, first word. Ultimately I'd like #"(?i)^Target.*$" to work in finding the entire line. I

Re: How to: reduce boolean operations?

2013-05-22 Thread Peter Mancini
Duh never mind - simplified it and it works like a charm now. (defn all-true? [coll] (every? (fn [x] (= x true)) coll)) (all-true? '(true true true)) (all-true? '(true true false)) (all-true? '(true true 3)) (all-true? '(3 \# !)) No exception on bad input data but if I really need to do that

Re: How to: reduce boolean operations?

2013-05-22 Thread Peter Mancini
So I did some coding and came up with this but it is broken; (= java.lang.Boolean (type false)) ;;evaluates to true (defn all-true? [coll] (every? (cond (= java.lang.Boolean (type identity)) identity :else false) coll)) ;;compiles (all-true? '(true true true)) ;; throws java.lang.ClassCas

Re: How to: reduce boolean operations?

2013-05-22 Thread Peter Mancini
won't get a bad collection then the test and exception aren't needed. Its an interesting problem - especially when you are writing "mission critical" code. On Wednesday, May 22, 2013 9:55:38 AM UTC-5, Jim foo.bar wrote: > > On 22/05/13 15:54, Peter Mancini wrote: > &

Re: How to: reduce boolean operations?

2013-05-22 Thread Peter Mancini
false value. > > Same thing goes for reducing with #(or %1 %2) vs. using some. > > Cheers, > MichaƂ > > > > > On Wed, May 22, 2013 at 5:36 AM, Peter Mancini > > > > wrote: > >> OK long time lurker here. I've been growing in my Clojure s

How to: reduce boolean operations?

2013-05-21 Thread Peter Mancini
OK long time lurker here. I've been growing in my Clojure strength for a while now. For the most part I think I get it and I have no problem getting programs to do what I want. However, sometimes I get stumped. I have one function that produces a list of booleans like '(false false true). It se

Re: WAT? BigInt instead of Long?

2013-04-03 Thread Peter Mancini
Those are good answers and it is acceptable, but what ends up happening is that it creates objects. I just used a profiler and that operation inside of my code for a typical run is executed 1,500 million times. It makes up the lions share of self-time measurements. Each object needs construction

WAT? BigInt instead of Long?

2013-03-29 Thread Peter Mancini
(class 1) java.lang.Long ;check! (class (* (/ 1 255) 254)) clojure.lang.Ratio ;check! (class (* (/ 1 255) 255)) clojure.lang.BigInt ;WAT? Should not example 3 and example 1 end up the same? (Noob question, I know, but this didn't make sense to me and I thought I was doing something wrong when I

Re: Convincing employer to go for Clojure

2013-01-08 Thread Peter Mancini
Our company was recently formed in stages. The first stage did a lot of research and decided we needed strong NLP tools and felt that the right direction to go with the NLP was Python. I had spent 7 years doing NLP and advised them on that aspect and had spent a lot of time doing NLP in Python.