Re: New to Clojure

2017-01-16 Thread Gregg Reynolds
On Jan 16, 2017 5:25 PM, "Gregg Reynolds" wrote: On Jan 16, 2017 5:15 PM, "(hash-map :new "to clojure" :need "assistance")" < nas@gmail.com> wrote: Hi Gregg, I had a look at Aleph - looks fantastic! Plus it seems to have good docs as well. RE the bids, very special use case constraints se

Re: New to Clojure

2017-01-16 Thread Gregg Reynolds
On Jan 16, 2017 5:15 PM, "(hash-map :new "to clojure" :need "assistance")" < nas@gmail.com> wrote: Hi Gregg, I had a look at Aleph - looks fantastic! Plus it seems to have good docs as well. RE the bids, very special use case constraints set by the clients. Many thanks many welcomes! you m

Re: New to Clojure

2017-01-16 Thread (hash-map :new "to clojure" :need "assistance")
Hi Gregg, I had a look at Aleph - looks fantastic! Plus it seems to have good docs as well. RE the bids, very special use case constraints set by the clients. Many thanks On Saturday, January 14, 2017 at 10:08:53 PM UTC, Gregg Reynolds wrote: > > > > On Jan 9, 2017 5:06 PM, "(hash-map :new "to

Re: New to Clojure

2017-01-16 Thread (hash-map :new "to clojure" :need "assistance")
Hi Simon, Many thanks for the advice - will have a look at HugSQL. On Saturday, January 14, 2017 at 1:52:08 PM UTC, simon lomax wrote: > > As far as SQL libraries for Clojure are concerned I would highly recommend > HugSQL . Comprehensive documentation and a > pleasure

Re: New to Clojure

2017-01-14 Thread Gregg Reynolds
On Jan 9, 2017 5:06 PM, "(hash-map :new "to clojure" :need "assistance")" < nas@gmail.com> wrote: Hi all! So, I'm new to Clojure! I'm coming in from a Java background and am currently working on a project that has prompted me to have a look at whether Clojure would be useful. I have started b

Re: New to Clojure

2017-01-14 Thread Gregg Reynolds
On Jan 9, 2017 5:06 PM, "(hash-map :new "to clojure" :need "assistance")" < nas@gmail.com> wrote: Hi all! So, I'm new to Clojure! I'm coming in from a Java background and am currently working on a project that has prompted me to have a look at whether Clojure would be useful. I have started b

Re: New to Clojure

2017-01-14 Thread simon lomax
As far as SQL libraries for Clojure are concerned I would highly recommend HugSQL . Comprehensive documentation and a pleasure to use. Good luck with your project. regards, Simon On Monday, 9 January 2017 23:06:30 UTC, (hash-map :new "to clojure" :need "assistance")

Re: New to Clojure

2017-01-12 Thread Christopher Small
I would _strongly_ recommend you consider HoneySQL over KormaSQL. Korma is based on macros, making it much more difficult to dynamically/programatically construct queries. HoneySQL by contrast is simply a translational layer from Clojure data structures to SQL queries, so the probablem of query

Re: New to Clojure

2017-01-12 Thread (hash-map :new "to clojure" :need "assistance")
Hi Sean, Thanks for your reply. This is really helpful - I really like the look of the jdbc library! Much appreciated. On Tuesday, January 10, 2017 at 2:55:05 AM UTC, Sean Corfield wrote: > > > With the time we have (around 1 month for this stage), is this something > we can easily build in Clo

Re: New to Clojure

2017-01-12 Thread (hash-map :new "to clojure" :need "assistance")
Hi Dennis, Thanks very much for getting back to me - this sounds really good. I've had a look at sqlkorma seems simple enough to get started working with. Once again, thanks very much most appreciated. On Tuesday, January 10, 2017 at 12:05:48 AM UTC, Dennis Roberts wrote: > > From what you've

Re: New to Clojure - productivity and debugging with Emacs

2017-01-12 Thread Bill Piel
The key to using sayid to capture curl requests is having emacs/cider connected to the same jvm instance that is running the web server. I did this by starting a repl with `lein repl`, then calling the -main function, which started the web server. From there, I used sayid to trace namespaces an

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread Colin Yates
The big barrier for me with emacs was discovering and then remembering all of the various finger-bending chords to do things. Spacemacs uses hydra so all the key mappings are grouped in a very logical way. Have a read of http://spacemacs.org, particularly the horizontal image slide show. But yeah,

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread ahawk
Thanks a lot for your reply. I saw the video of your presentation and it seems like your tool is exactly what I am looking for. I've actually installed the package in Emacs and configured the Emacs/CIDER integration, but I haven't gotten to try it thoroughly just yet. In your video, you demons

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread Gregg Reynolds
On Jan 8, 2017 1:52 AM, "ahawk" wrote: .. I find it difficult to know exactly what to expect from these libraries and many other, unless, of course, I read and understand their source. That is a challenge in its own right for a less advanced programmer such as myself. The good news is that i

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread ahawk
I guess you're right.. however, I'm generally inclined to try to do it the right way (or, what I perceive as the right way) the first time. Now I know liberator exists, I feel an urge to use it :-) With regards to logging, I actually considered that option, but it just didn't seem very producti

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread ahawk
Thanks a lot for the very elaborate reply. I should probably buy SICP. With regards to discovery, I will have a closer look at clojure.spec. It looks interesting. I've previously (perhaps wrongfully) discarded Prismatic Schema, thinking something like "don't you really just want static types?"

Re: New to Clojure

2017-01-09 Thread Sean Corfield
> With the time we have (around 1 month for this stage), is this something we > can easily build in Clojure? Hard to say. I would expect a small team already familiar with Clojure could probably build this in a month but I don’t know how long it’ll take your team to ramp up. Java-to-Clojure is

Re: New to Clojure - productivity and debugging with Emacs

2017-01-09 Thread J.-F. Rompre
Hi ahawk, If you have the time, by all means reach for all the references and books mentioned in this thread, and there is a wealth of free resources out there. However doing both that and learning a powerful tool such as Emacs/CIDER at the same time can be frustrating. If time is of the essenc

Re: New to Clojure

2017-01-09 Thread Matching Socks
You mention SQL. Note, that using JDBC in Clojure is really, really easy. It's a porcupine in Java, but in Clojure it's pure fudge. Whatever your Java frame of reference for an ORM might be, Hibernate or Spring or whatever, bang! you probably won't need it. Sure, there are JDBC wrappers for

Re: New to Clojure

2017-01-09 Thread Dennis Roberts
>From what you've described, it seems as though it would be easy to build the server side of this application in Clojure. I found Clojure to be very easy to pick up. I won't say that the first few applications that I wrote in Clojure were great Clojure code, but it was easy for me to move from

Re: New to Clojure - productivity and debugging with Emacs

2017-01-09 Thread Bill Piel
ahawk, I've been using clojure for years, but can still relate to the issues you are facing, which is why I wrote a debugging/development tool to help. It's called sayid. It can be used directly from the repl, but has an emacs/cider integration that makes it much more powerful. http://bpiel.g

Re: New to Clojure - productivity and debugging with Emacs

2017-01-08 Thread Matching Socks
That is an ambitious project. Divide and conquer. One super duper benefit of Clojure is that if you make a web app with, say, just Ring and Compojure, you can later transplant that work into a more elaborate app scaffolding, because it's all just plain maps. "quite a lot of map manipulation g

Re: New to Clojure - productivity and debugging with Emacs

2017-01-08 Thread Colin Yates
Hi ahawk and welcome to Clojure! Your question seems to cover multiple domains: - navigating/discovery in non-statically typed languages, specifically Clojure - developing in Clojure - developer tools (e.g. IDE for Clojure) (I can feel a stream of consciousness/ramble coming so so this might t

Re: New to Clojure, need some help

2012-08-09 Thread Baishampayan Ghose
On Thu, Aug 9, 2012 at 10:11 AM, Jason Long wrote: > Also, can anyone tell me why != is not included for equality testing, that > would make this problem easy. To answer your other question, != in Clojure is called not= Regards, BG -- Baishampayan Ghose b.ghose at gmail.com -- You received t

Re: New to Clojure, need some help

2012-08-09 Thread Timothy Baldridge
To clarify Baishampayan's code, hash-sets in Clojure are functions: => (#{1} 1) 1 => (#{1} 2) nil Nil and false in Clojure are the same thing, So Baishampayan's example: (remove #{:a :z :x} [:a :b :a :c :d :e :z :b :d :e :x :z]) #{:a :z : x} will return nil if the value is not in the vector,

Re: New to Clojure, need some help

2012-08-09 Thread Baishampayan Ghose
Hi, Does this work for you? (remove #{:a} [:a :b :a :c :d :e]) Also, if you have a list of items you can have all of them in the same set/predicate like so - (remove #{:a :z :x} [:a :b :a :c :d :e :z :b :d :e :x :z]) Hope this helps. Regards, BG On Thu, Aug 9, 2012 at 10:11 AM, Jason Long w

Re: New to Clojure -- Errors Are Frustrating

2011-08-03 Thread Brian Marick
On Aug 2, 2011, at 7:23 PM, Armando Blancas wrote: > Check out the work of Warren Teitelman on > Conversational LISP and Do What I Mean, way back when most in this > board weren't even born. Around 1985, I heard Teitelman's "Do What I Mean" (DWIM) referred to as DWWTWHM ("Do What Warren Teitel

Re: New to Clojure -- Errors Are Frustrating

2011-08-03 Thread Brian Goslinga
On Aug 2, 8:39 am, Ken Wesson wrote: > It is true that the messages commonly encountered could stand to be > better documented on a Clojure site. I'm wondering if we could go > further, though, and make REPL exception printing more informative. > The Java exception gets stored in *e, so someone ca

Re: New to Clojure -- Errors Are Frustrating

2011-08-03 Thread Nicolas
On 3 août, 03:00, Mark wrote: > The compiler might not be able to do better but the runtime system certainly > could.  In this case, both filtered and more information is what's needed.   > Why couldn't the runtime generate a message like: > Symbol "fac" of type clojure.lang.IFn is used where type

Re: New to Clojure -- Errors Are Frustrating

2011-08-03 Thread MarisO
(defn fac [n] (if (= n 1) 1 (* n fac (- n 1 your code tries to multiply n by function this is correct: (defn fac [n] (if (= n 1) 1 (* n (fac (- n 1) On Aug 2, 8:11 am, recurve7 wrote: > In browsing this group I see this topic has been brought up several > times over the past 3 years

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Mark
The compiler might not be able to do better but the runtime system certainly could. In this case, both filtered and more information is what's needed. Why couldn't the runtime generate a message like: Symbol "fac" of type clojure.lang.IFn is used where type java.lang.Number is expected in #2 o

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Luc Prefontaine
I've been coding in Clojure since mid-2008, I have a Lisp background but coded mainly in Java for a number of years (2000-2010) I still goof from time to time with parenthesis. Just yesterday, I screwed up some expression imbrication in a module and it took me at least 30 mns to figure it out. Ok

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Lee Spector
On Aug 2, 2011, at 8:23 PM, Armando Blancas wrote: > Check out the work of Warren Teitelman on > Conversational LISP and Do What I Mean, way back when most in this > board weren't even born. CLISP could handle your typo, > unsympathetically called "careless" in the paper; oh, well... Ah, INTERLIS

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Brent Millare
The following code may prove useful as well. (defmacro log "for debugging, output code and code->val to stdout or optional writer, returns val, custom-fn accepts two arguments, the code, and the result, it must return a string" ([code] `(let [c# ~code] (prn '~code) (clojur

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Armando Blancas
> It's encouraging to see the community is thinking of > ways to improve this. We shouldn't, however, expect any significant improvements, IMO. For the reasons explained, and the fact that lisp has almost no syntax, this is a difficult problem to solve. Not that it has prevented people from trying

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread recurve7
Hi Jeremy, I'm not just thinking about Clojure from the perspective of a Java person, but also from the perspective of someone new to programming and for kids. For the latter, it's best if languages have maximum friendliness in error wording and error messages pointed at a specific character posit

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread recurve7
Thank you, Ken. It's encouraging to see the community is thinking of ways to improve this. On Aug 2, 6:39 am, Ken Wesson wrote: > On Tue, Aug 2, 2011 at 3:11 AM, recurve7 wrote: > > Here's one example where recursion and lack of positional error > > feedback make it hard for me, as someone comin

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread recurve7
Thanks for the replies. I see 1.3 Beta 1 provides some more Java context that helps me find the problem, although it still doesn't afford Clojure its own uniquely-searchable error system or positional error references. On Aug 2, 6:31 am, Sergey Didenko wrote: > It got improved a lot in Clojure 1.

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Sean Corfield
On Tue, Aug 2, 2011 at 12:11 AM, recurve7 wrote: > user=> (defn fac [n] (if (= n 1) 1 (* n fac (- n 1 > #'user/fac > user=> (fac 3) > java.lang.ClassCastException: user$fac cannot be cast to > java.lang.Number (NO_SOURCE_FILE:0) > Let's assume you'd put the code in a source file and run that

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Jeremy Heiler
On Tue, Aug 2, 2011 at 3:11 AM, recurve7 wrote: > Here's one example where recursion and lack of positional error > feedback make it hard for me, as someone coming from Java, to spot the > error (and seeing "ClassCastException" threw me off and had me > wondering where/how I had done something lik

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Ken Wesson
On Tue, Aug 2, 2011 at 3:11 AM, recurve7 wrote: > Here's one example where recursion and lack of positional error > feedback make it hard for me, as someone coming from Java, to spot the > error (and seeing "ClassCastException" threw me off and had me > wondering where/how I had done something lik

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Sergey Didenko
It got improved a lot in Clojure 1.3 which is beta for a while. -- 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: New to Clojure

2011-06-09 Thread Don Jackson
On Jun 9, 2011, at 11:49 AM, Laurent PETIT wrote: > I've seen people coming from a java background quite happy to start > discovering clojure via the 4clojure website. Hey, I've got an idea: Maybe we could get the 4clojure folks to hook their site up to Twitter to let us know how people solve

Re: New to Clojure

2011-06-09 Thread Laurent PETIT
I've seen people coming from a java background quite happy to start discovering clojure via the 4clojure website. 2011/6/9 Santosh M : > Yes I'm from a java background only, not worked with LISP. > Will do that. > > Thank you all for the help. Just wrote the "Hello World" clojure > program. :) > >

Re: New to Clojure

2011-06-09 Thread Santosh M
Yes I'm from a java background only, not worked with LISP. Will do that. Thank you all for the help. Just wrote the "Hello World" clojure program. :) On Jun 9, 9:10 am, Jeff Heon wrote: > As you're coming in from Java, I think Clojure in Action is a good way > to start. > > On Jun 9, 12:15 am, S

Re: New to Clojure

2011-06-09 Thread Jeff Heon
As you're coming in from Java, I think Clojure in Action is a good way to start. On Jun 9, 12:15 am, Santosh M wrote: > I just found out three books on closure, please tell me which is the > best one to start with? > > 1 - The Joy of Clojure > 2 - Programming Clojure > 3 - Practical Clojure --

Re: New to Clojure

2011-06-09 Thread Chouser
On Wed, Jun 8, 2011 at 9:25 AM, looselytyped wrote: > > Finally, I agree with many others on this thread - Emacs is a popular > editor among many a lisp programmer, and Clojure is no different. > Unfortunately if you are not familiar with it, it presents a two-fold > problem - you need to learn to

Re: New to Clojure

2011-06-09 Thread Paudi Moriarty
s.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BxVCLS4f8Sg5OGUwMmZlZjYtZWQ4Zi00ZThmLWFkMjYtNTIxZmY4ODhjNDdl&hl=en&authkey=CLnyyF4 > > Thanks > Shoeb > > -Original Message- > From: clojure@googlegroups.com [mailto:clojure@googlegroups.com] On Behalf > Of hci > Sent:

RE: New to Clojure

2011-06-09 Thread Bhinderwala, Shoeb
ure@googlegroups.com [mailto:clojure@googlegroups.com] On Behalf Of hci Sent: Wednesday, June 08, 2011 3:33 PM To: Clojure Subject: Re: New to Clojure I was in the same boat last year. My experience with Clojure started with Java interop, by writing Clojure code to solve some small problems using existing

Re: New to Clojure

2011-06-09 Thread Jonathan Fischer Friberg
If you are coming from java, I think that a book on (common) lisp would be far better. Especially since practical clojure is essentially a reference (and a good one). I would recommend 'practical common lisp' and 'land of lisp'. http://www.gigamonkeys.com/book/ http://landoflisp.com/ Jonathan On

Re: New to Clojure

2011-06-08 Thread Sean Corfield
On Wed, Jun 8, 2011 at 9:15 PM, Santosh M wrote: > I just found out three books on closure, please tell me which is the > best one to start with? > > 1 - The Joy of Clojure > 2 - Programming Clojure > 3 - Practical Clojure Because Practical Clojure is more modern than Programming Clojure - and c

Re: New to Clojure

2011-06-08 Thread Santosh M
I just found out three books on closure, please tell me which is the best one to start with? 1 - The Joy of Clojure 2 - Programming Clojure 3 - Practical Clojure On Jun 8, 9:03 pm, Santosh M wrote: > Thank you all for the suggestions. > Will keep posting my queries on the google groups. :) > >

Re: New to Clojure

2011-06-08 Thread Santosh M
Thank you all for the suggestions. Will keep posting my queries on the google groups. :) On Jun 8, 12:33 pm, hci wrote: > I was in the same boat last year. My experience with Clojure started > with Java interop, by writing Clojure code to solve some small > problems using existing Java libraries.

Re: New to Clojure

2011-06-08 Thread hci
I was in the same boat last year. My experience with Clojure started with Java interop, by writing Clojure code to solve some small problems using existing Java libraries. For example, I used Clojure to fetch and process application logs in a MySQL database and visualize the results with a Java gra

Re: New to Clojure

2011-06-08 Thread looselytyped
Hi Santosh, I have been playing around with Clojure for some time now, and outside of echoing most of the suggestions listed above (specifically StackOverFlow hints/tricks, OSS projects on GitHub/BitBucket and most importantly the REPL with Leiningen) I have one more suggestion - Being a Java guy

Re: New to Clojure

2011-06-08 Thread Santosh M
Thank you mike will definitely go through the links. :). I don't have any background of lisp. Cheers Santosh On Jun 7, 3:30 pm, Mike Anderson wrote: > Hi Santosh, > > I was in your position a little over a year ago. Some recommendations > that may help: > > - If you're coming from a Java enviro

Re: New to Clojure

2011-06-08 Thread Nick Zbinden
While we talk about Functional thinking. The IBM has a series. They use Java (and Groovy) but it may help you since you allready know java. http://www.ibm.com/developerworks/java/library/j-ft1/index.html http://www.ibm.com/developerworks/java/library/j-ft2/?ca=drs- -- You received this message b

Re: New to Clojure

2011-06-07 Thread Shantanu Kumar
Hi Santosh, For a quickstart, get Leiningen, create a project: $ lein new foo $ cd foo ...and fire up the REPL: $ lein repl You can type in Clojure code at the REPL to experiment. If you need to enter multi-line code write it in an editor and copy-paste the code to the REPL. You can refer Clo

Re: New to Clojure

2011-06-07 Thread Benny Tsai
Mark Volkmann's Clojure introduction ( http://java.ociweb.com/mark/clojure/article.html) helped me out a great deal when I first started. As he noted at the end, the article focused on Clojure 1.0 features, so some parts are superceded (records are recommended over StructMaps now, for example),

Re: New to Clojure

2011-06-07 Thread Mike Anderson
Hi Santosh, I was in your position a little over a year ago. Some recommendations that may help: - If you're coming from a Java environment, you may find it easiest to move to Clojure by using a Clojure plugin for your favourite Java IDE. I use the Counterclockwise plugin for Eclipse which is exc

Re: New to Clojure

2011-05-24 Thread Mark Rathwell
Sorry, missed this email before my last reply. To contact the maintainers, there is a contact email address on their organization page: https://github.com/getwoven On Tue, May 24, 2011 at 2:33 PM, dudaroo wrote: > Also, this is probably elementary, but how do I contact the folks at > woven ab

Re: New to Clojure

2011-05-24 Thread dudaroo
Also, this is probably elementary, but how do I contact the folks at woven about uploading the most current version of the work build to clojars? :) On May 20, 5:20 pm, Mark Rathwell wrote: > A couple things going on here, I think: > > First, it looks like maven is having problems communicating w

Re: New to Clojure

2011-05-24 Thread dudaroo
Hi Mark, Thanks so much for your help :) But I'm still stumped on this ''work:work:jar:0.2.4-SNAPSHOT'. It seems odd to downgrade the version to 0.1.2-SNAPSHOT to try to get it to resolve, doesn't it? Or is there something about downgrading developer versions that I'm not getting? Is there a s

Re: New to Clojure

2011-05-20 Thread Mark Rathwell
A couple things going on here, I think: First, it looks like maven is having problems communicating with the Woven repositories ("snapshots" " http://mvn.getwoven.com/repos/woven-public-snapshots"; and "releases" " http://mvn.getwoven.com/repos/woven-public-releases";), so it then stops looking in

Re: New to Clojure

2011-05-20 Thread dudaroo
Thanks Mark... It seems that it is still not resolving correctly though... I changed the line in the project.clj file from: [work "0.2.4-SNAPSHOT"] to [work "0.1.2-SNAPSHOT"] Intuitively, I would've expected to have increased the version number as opposed to changing i

Re: New to Clojure

2011-05-20 Thread Mark Rathwell
> Look at the code on github: > http://github.com/clj-sys/work This has moved to: https://github.com/getwoven/work You might also ask the maintainers of this project if they would be able to upload more recent versions to clojars. - Mark

Re: New to Clojure

2011-05-20 Thread Luc Prefontaine
Hi, See my notes below: On Fri, 20 May 2011 10:01:42 -0700 (PDT) dudaroo wrote: > I am trying to help with an existing project and have no developer > notes on the application. I'm trying to use Lein to build the > project.clj project file. > > Within the Clojure build file (named project.clj

Re: New to Clojure

2011-05-20 Thread Mark Rathwell
In the clojars repository, looks like the most recent versions are: [work "0.1.2-SNAPSHOT"] http://clojars.org/work [clj-time "0.3.0"] http://clojars.org/clj-time On Fri, May 20, 2011 at 1:01 PM, dudaroo wrote: > I am trying to help with an existing project and have no developer > notes on