Re: Potential Intro clojure projects - libraries and ideas with wow factor

2014-04-16 Thread utel
Thanks Mikera and Andrew for the ideas. Some interesting suggestions there. I'll discuss these with my fellow devs. Much appreciated. On Tuesday, April 15, 2014 1:14:11 AM UTC+1, Andrew Chambers wrote: Clojure logic programming with core.logic (something akin to a sudoku solver

is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread Roelof Wobben
Hello, I like to try clojure. I have little or none programming background but I know I learn the best by reading a piece of text and then do exercises about it so I can check if I really understand it. What is then the best way to proceed ? Roelof -- You received this message because you

Re: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread Bruce Wang
Try 4clojure.com On Wed, Apr 16, 2014 at 4:56 PM, Roelof Wobben rwob...@hotmail.com wrote: Hello, I like to try clojure. I have little or none programming background but I know I learn the best by reading a piece of text and then do exercises about it so I can check if I really understand

Re: Helping newcomers get involved in Clojure projects

2014-04-16 Thread kurofune
Even a tutorial on how to read normal stack-traces would be cool to help take an eager beginner from not knowing anything at all to having a good idea. Sometimes you just need that resource to point something out to you: this is the filename. This is the line. etc. And honestly, if 4clojure

Re: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread Roelof Wobben
Thanks, Can this site also be good : http://www.braveclojure.com/ Roelof Op woensdag 16 april 2014 09:07:36 UTC+2 schreef Bruce Wang: Try 4clojure.com On Wed, Apr 16, 2014 at 4:56 PM, Roelof Wobben rwo...@hotmail.comjavascript: wrote: Hello, I like to try clojure. I have

Re: Potential Intro clojure projects - libraries and ideas with wow factor

2014-04-16 Thread Josh Kamau
Can core.logic be used to implement something like http://www.optaplanner.org ? Josh On Wed, Apr 16, 2014 at 9:36 AM, utel umeshtel...@gmail.com wrote: Thanks Mikera and Andrew for the ideas. Some interesting suggestions there. I'll discuss these with my fellow devs. Much appreciated. On

Re: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread Josh Kamau
more exercises here http://clojure-euler.wikispaces.com/Problem+001 On Wed, Apr 16, 2014 at 10:53 AM, Roelof Wobben rwob...@hotmail.com wrote: Thanks, Can this site also be good : http://www.braveclojure.com/ Roelof Op woensdag 16 april 2014 09:07:36 UTC+2 schreef Bruce Wang: Try

Re: [ANN] Gorilla REPL 0.2.0 - all new extensible renderer

2014-04-16 Thread Jony Hudson
On Wednesday, 16 April 2014 06:26:33 UTC+1, Andrew Chambers wrote: Is there a way to rerun the whole notebook top to bottom with a hotkey? Coming soon :-) https://github.com/JonyEpsilon/gorilla-repl/issues/93 Jony -- You received this message because you are subscribed to the Google

Re: [ANN] Sente - Clojure(Script) + core.async + WebSockets/Ajax

2014-04-16 Thread Peter Taoussanis
So yeah, I think that exposing a list will get us pretty far. The missing piece, then, would be the ability for a a client to send a connection request for a specific channel. I'll be honest I'm a little hesitant to add any kind of room/subscription facilities to Sente itself... My

Re: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread Niels van Klaveren
I suggest read up on Clojure for the Brave and Truehttp://www.braveclojure.comand Clojure from the Ground Uphttp://aphyr.com/posts/301-clojure-from-the-ground-up-welcome, then start on 4clojure's exercises http://www.4clojure.com. I'd recommend it over sites with euler problems, since those

braveclojure problem ( paste into emacs)

2014-04-16 Thread Roelof Wobben
Hello, I try to learn coljure by using this tutorial: http://www.braveclojure.com Im now at point 7 : http://www.braveclojure.com/basic-emacs/ There I must paste a text into emacs. But as far as I know there is no mentioned how I can paste text into emacs. Roelof -- You received this

Re: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread Roelof Wobben
Thanks, At this point Im following the first tutorial. Roelof Op woensdag 16 april 2014 12:45:33 UTC+2 schreef Niels van Klaveren: I suggest read up on Clojure for the Brave and Truehttp://www.braveclojure.comand Clojure from the Ground

Re: braveclojure problem ( paste into emacs)

2014-04-16 Thread C K Kashyap
Try control y google usually returns good results when I search for emacs stuffs. Regards, Kashyap On Wed, Apr 16, 2014 at 4:27 PM, Roelof Wobben rwob...@hotmail.com wrote: Hello, I try to learn coljure by using this tutorial: http://www.braveclojure.com Im now at point 7 :

Re: braveclojure problem ( paste into emacs)

2014-04-16 Thread Tim Visher
On Wed, Apr 16, 2014 at 6:57 AM, Roelof Wobben rwob...@hotmail.com wrote: I try to learn coljure by using this tutorial: http://www.braveclojure.com Im now at point 7 : http://www.braveclojure.com/basic-emacs/ There I must paste a text into emacs. But as far as I know there is no mentioned

Re: braveclojure problem ( paste into emacs)

2014-04-16 Thread Daniel Higginbotham
Sorry for the confusion! As Kashyap mentioned, ctrl-y should work. You can also try your normal keyboard binding for pasting (ctrl-v or cmd-v), that might work as well. Also, if Emacs is too difficult to work with, then it's definitely ok to use whatever editor you like most :) Thanks,

Re: braveclojure problem ( paste into emacs)

2014-04-16 Thread Roelof Wobben
Op woensdag 16 april 2014 12:57:41 UTC+2 schreef Roelof Wobben: Hello, I try to learn coljure by using this tutorial: http://www.braveclojure.com Im now at point 7 : http://www.braveclojure.com/basic-emacs/ There I must paste a text into emacs. But as far as I know there is no

Re: braveclojure problem ( paste into emacs)

2014-04-16 Thread Roelof Wobben
hello, ctrl-y did the job. Roelof Op woensdag 16 april 2014 13:36:44 UTC+2 schreef Daniel Higginbotham: Sorry for the confusion! As Kashyap mentioned, ctrl-y should work. You can also try your normal keyboard binding for pasting (ctrl-v or cmd-v), that might work as well. Also, if

Re: braveclojure problem ( paste into emacs)

2014-04-16 Thread m
a little cheatsheet with things like that for emacs (you have your C-y to paste there, and other stuff like that) ​ http://sachachua.com/blog/wp-content/uploads/2013/05/How-to-Learn-Emacs8.png Have fun! On Wed, Apr 16, 2014 at 2:12 PM, Roelof Wobben rwob...@hotmail.com wrote: hello, ctrl-y

Re: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread Kranthi Rajoli
I found this to be very useful http://clojurekoans.com/ Kranthi -- 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: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread monolithp
I did this https://wiki.helsinki.fi/display/clojure2011/Home This appears to be more updated, but I haven't tried it. http://iloveponies.github.io/120-hour-epic-sax-marathon/index.html On Wednesday, April 16, 2014 1:56:07 PM UTC+7, Roelof Wobben wrote: Hello, I like to try clojure. I have

Why I'm giving Clojure a try

2014-04-16 Thread Massimiliano Tomassoli
Some months ago I decided to learn a new language. In the end, I had to choose between Scala and Clojure and I chose Scala because Clojure was too alien to me. I was looking for a language to write web apps and Scala, with Play 2, seemed like a natural choice to me. The fact that Clojure had

Re: Linked Hash Map/Set

2014-04-16 Thread Frankie Sardo
For anybody interested, I manage to improve performance up to ~2x slower than standard hash-map and pushed it to clojars. https://github.com/frankiesardo/linked linked-set is still a bit slow so I'll keep investigating on it. On Tuesday, April 15, 2014 2:31:14 PM UTC+2, Frankie Sardo wrote:

Re: Why I'm giving Clojure a try

2014-04-16 Thread Manuel Paccagnella
Welcome, Massimiliano! Judging from you name, we seem to share some common cultural background ;) I hope that you'll enjoy learning and using Clojure, and more importantly that you'll reap the advantages that comes from learning and applying its

Why I'm giving Clojure a try

2014-04-16 Thread Mike Haney
Welcome aboard! Fasten your seatbelt, it will be a wild (and exhilarating) ride. I'm still relatively new, but I've learned enough to know that clojure (and clojurescript and Datomic) are what I need to be focusing on. Besides all the other benefits, it's just plain fun. I haven't had this

Re: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread Charlie Griefer
On Apr 15, 2014, at 11:56 PM, Roelof Wobben rwob...@hotmail.com wrote: I like to try clojure. I have little or none programming background but I know I learn the best by reading a piece of text and then do exercises about it so I can check if I really understand it. What is then the best

Re: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread Roelof Wobben
Op woensdag 16 april 2014 16:43:09 UTC+2 schreef Charlie Griefer: On Apr 15, 2014, at 11:56 PM, Roelof Wobben rwo...@hotmail.comjavascript: wrote: I like to try clojure. I have little or none programming background but I know I learn the best by reading a piece of text and then do

Need HTTP Client not to verify cert on Heroku

2014-04-16 Thread Jonathon McKitrick
I'm getting this error in a web service call on Heroku with Clojure: SSLPeerUnverifiedException javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated Has anyone figured out how to disable peer authentication with clj-http? I'm running clj-http 0.7.6 -- You received this message

Re: [Video] Game development in Clojure (with play-clj)

2014-04-16 Thread kurofune
Jame's tutorial was right on the money and following it I was able to make a comparable version with Skeletor collecting magic gems in a desert. I am interested in leveraging Clojurescript and async for browser-game development, though, and while there is a core.async Dots game tutorial, it

Re: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread Guru Devanla
I would suggest 4clojure.com for the following reasons: 1. Problems are tuned towards learning idioms of Clojure 2. In many cases problems are tuned towards making you thinking functionally. 3. Once you solve the problem, you get to compare it with some of the other submitters. This point is

Re: Why I'm giving Clojure a try

2014-04-16 Thread Massimiliano Tomassoli
Thank you both for the warm welcome! Right now I'm reading Clojure for the Brave and True. I'm not new to functional programming, but I'm not familiar with LISPy languages. I can see the value of having such a regular syntax (or absence of it) but it takes a while to get comfortable with it. One

Re: [Video] Game development in Clojure (with play-clj)

2014-04-16 Thread edbond
Nice video, very cool. Some notes: - you can omit comma ',' in maps {:key value :another value} - can omit contains? in filter: user= (filter :apple? [{:apple? true :x 6} {:apple? true :x 4} {:player? true :x 550}]) ({:apple? true, :x 6} {:apple? true, :x 4}) Thanks again, Eduard On

Re: Potential Intro clojure projects - libraries and ideas with wow factor

2014-04-16 Thread Alex Hammel
Probably. Things like OptaPlanner are the big business use-case for logic programming, IIRC. On Wed, Apr 16, 2014 at 1:49 AM, Josh Kamau joshnet2...@gmail.com wrote: Can core.logic be used to implement something like http://www.optaplanner.org ? Josh On Wed, Apr 16, 2014 at 9:36 AM,

Re: Why I'm giving Clojure a try

2014-04-16 Thread Dan Cross
On Wed, Apr 16, 2014 at 12:06 PM, Massimiliano Tomassoli kiuhn...@gmail.com wrote: Thank you both for the warm welcome! Right now I'm reading Clojure for the Brave and True. I'm not new to functional programming, but I'm not familiar with LISPy languages. I can see the value of having such a

Re: Why I'm giving Clojure a try

2014-04-16 Thread Massimiliano Tomassoli
On Wednesday, April 16, 2014 6:06:57 PM UTC+2, Massimiliano Tomassoli wrote: Thank you both for the warm welcome! Right now I'm reading Clojure for the Brave and True. I'm not new to functional programming, but I'm not familiar with LISPy languages. I can see the value of having such a

Re: Why I'm giving Clojure a try

2014-04-16 Thread Massimiliano Tomassoli
On Wednesday, April 16, 2014 6:27:03 PM UTC+2, Dan Cross wrote: On Wed, Apr 16, 2014 at 12:06 PM, Massimiliano Tomassoli kiuh...@gmail.com javascript: wrote: Thank you both for the warm welcome! Right now I'm reading Clojure for the Brave and True. I'm not new to functional programming,

The Cons in iterate's return value

2014-04-16 Thread Mars0i
The docstring for iterate says that it returns a lazy sequence, but it returns a Cons wrapped around a LazySeq. This means, for example, that realized? can't be applied to what iterate returns. Is this a problem with the iterate docstring? Or should realized? be applicable to Conses? I

Re: Why I'm giving Clojure a try

2014-04-16 Thread Mars0i
I second Dan Cross's comment. You also need to get used to *reading*standard Lisp code indentation. It's not hard, but it's different from what's common for most languages. Then when your editor reformats your code, you easily can see whether there's something wrong with your parentheses.

Re: Why I'm giving Clojure a try

2014-04-16 Thread Mike Haney
It's almost cliche to say it, but you really do get used to the parenthesis. Once you do, you won't give it a second thought, and for me at least, it's the other languages that start to look weird with their irregular syntax. And at least one a week I catch myself writing (if ... or (for ...

Re: Why I'm giving Clojure a try

2014-04-16 Thread Gary Trakhman
What's harder than parentheses is the fact that any sort of semantics can be hidden under simple words in the call position, and everything looks the same. It changed how I read code, and it took a while to get used to that. I wonder if there's a study somewhere on the ergonomics of lisp. Code

Re: [Video] Game development in Clojure (with play-clj)

2014-04-16 Thread James Trunk
you can omit comma ',' in maps {:key value :another value} In the interest of readability, I usually add commas when I have multiple key-value pairs on the same row. can omit contains? in filter: Cool - thanks for the tip! Also, thanks to everyone else for your comments. :-) Cheers, James

Re: Why I'm giving Clojure a try

2014-04-16 Thread Mars0i
Syntax-highlighting helps, although not for user-defined functions (at least not in Vim, which is what I use). On Wednesday, April 16, 2014 12:30:45 PM UTC-5, Gary Trakhman wrote: What's harder than parentheses is the fact that any sort of semantics can be hidden under simple words in the

Re: Why I'm giving Clojure a try

2014-04-16 Thread Massimiliano Tomassoli
On Wednesday, April 16, 2014 7:25:54 PM UTC+2, Mike Haney wrote: It's almost cliche to say it, but you really do get used to the parenthesis. Once you do, you won't give it a second thought, and for me at least, it's the other languages that start to look weird with their irregular

Re: The Cons in iterate's return value

2014-04-16 Thread gianluca torta
this issue on core.typed http://dev.clojure.org/jira/browse/CTYP-96 in particular the comment: This is starting to make me rethink what a clojure.core docstring means exactly by a lazy sequence cheers, Gianluca On Wednesday, April 16, 2014 6:45:01 PM UTC+2, Mars0i wrote: The docstring for

Light table

2014-04-16 Thread Roelof Wobben
Has anyone tried Light table as a IDE instead of Emacs ? Roelof -- 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: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread blake
As one who has been immersed in Clojure since the beginning of the year, I'd say use 4Clojure judiciously. For one thing, the format of the exercises adds an extra layer of complexity: Most of the time, you can't just solve the problem, you must solve the problem and then try to figure out how to

Re: The Cons in iterate's return value

2014-04-16 Thread Ambrose Bonnaire-Sergeant
Ah so it seems a lazy sequence implements IPending? Thanks, Ambrose On Thu, Apr 17, 2014 at 3:39 AM, gianluca torta giato...@gmail.com wrote: this issue on core.typed http://dev.clojure.org/jira/browse/CTYP-96 in particular the comment: This is starting to make me rethink what a

Light table

2014-04-16 Thread Mike Haney
Lots of people use it, including me. I don't think it's a bad choice for beginners at all. The conventional wisdom seems to be that you will end up learning emacs eventually if you spend any amount of time doing clojure or lisp, so you might as well learn it from the start. That is

Re: The Cons in iterate's return value

2014-04-16 Thread John Mastro
I assume that there's a good reason that iterate returns a Cons instead of a LazySeq. IIUC, this particular case arises because iterate's body is implemented as (cons x (lazy-seq (iterate f (f x rather than (lazy-seq (cons x (iterate f (f x Can anyone comment on whether

Re: Why I'm giving Clojure a try

2014-04-16 Thread Sean Corfield
On Apr 16, 2014, at 9:42 AM, Massimiliano Tomassoli kiuhn...@gmail.com wrote: I'm going to use LightTable which seems to have great support for Clojure. emacs terrifies me :) I'm using LightTable for all my editing these days - and for ClojureScript it's truly amazing! Welcome to Clojure /

Re: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread Mimmo Cosenza
In my humble experience, the best way to learn a language is to follow your way to learn a language, that means the same way you were already successful with the latest language you learnt. Hopefully in the future CLJ could become the very first language the new generation will learn (today I

Re: Light table

2014-04-16 Thread Sean Corfield
On Apr 16, 2014, at 12:42 PM, Roelof Wobben rwob...@hotmail.com wrote: Has anyone tried Light table as a IDE instead of Emacs ? Yes. I used Emacs back in the 17.x / 18.x / early 19.x days and then went on to other editors. After a long break, and after starting to use Clojure daily, I went

Re: Why I'm giving Clojure a try

2014-04-16 Thread Mimmo Cosenza
On 16 Apr 2014, at 23:10, Sean Corfield s...@corfield.org wrote: I used Emacs for just over two years before switching to LT, BTW (well, after a near 20 year break from Emacs before that). which means you stopped to use emacs because of Java like I did 20 years ago? Have you noted that your

Re: Why I'm giving Clojure a try

2014-04-16 Thread Zhemin Lin
Hi Massimiliano, You may also want to give ClojureScript or LiveScript (which compiles to JavaScript and run on node.js) a try! LiveScript is quite functional and the callback hell is somewhat eased. -- You received this message because you are subscribed to the Google Groups Clojure group. To

Re: Light table

2014-04-16 Thread Colin Fleming
I think LightTable is a good choice for Clojure beginners, certainly it's much more approachable than Emacs. Other options you might consider are Cursive (based on IntelliJ, at http://cursiveclojure.com) or CounterClockwise (based on Eclipse, at https://code.google.com/p/counterclockwise) which

Re: Light table

2014-04-16 Thread Mark Engelberg
On Wed, Apr 16, 2014 at 6:01 PM, Colin Fleming colin.mailingl...@gmail.comwrote: Standard disclaimer: I develop Cursive. How's Cursive coming along? The website still says it's only for those who are feeling brave. -- You received this message because you are subscribed to the Google Groups

Re: Why I'm giving Clojure a try

2014-04-16 Thread Sean Corfield
On Apr 16, 2014, at 2:18 PM, Mimmo Cosenza mimmo.cose...@gmail.com wrote: which means you stopped to use emacs because of Java like I did 20 years ago? Yup, that was pretty much why. For a while I was very enamored with Together/J which integrated UML diagramming and Java code editing and

Re: Light table

2014-04-16 Thread Mark Mandel
I use Cursive for my Clojure development and it's great! I'm a big fan. Standard disclaimer: I was already firmly entrenched in Intellij beforehand. Sent from my mobile doohickey On 17/04/2014 11:12 AM, Mark Engelberg mark.engelb...@gmail.com wrote: On Wed, Apr 16, 2014 at 6:01 PM, Colin

Re: Light table

2014-04-16 Thread Mikera
On Thursday, 17 April 2014 03:57:56 UTC+8, Mike Haney wrote: Lots of people use it, including me. I don't think it's a bad choice for beginners at all. The conventional wisdom seems to be that you will end up learning emacs eventually if you spend any amount of time doing clojure or

Re: The Cons in iterate's return value

2014-04-16 Thread Mikera
On Thursday, 17 April 2014 04:28:02 UTC+8, John Mastro wrote: I assume that there's a good reason that iterate returns a Cons instead of a LazySeq. IIUC, this particular case arises because iterate's body is implemented as (cons x (lazy-seq (iterate f (f x rather than

Re: Why I'm giving Clojure a try

2014-04-16 Thread Mike Haney
Sean - funny, I used Together/J when it first came out, way before Borland bought it. It's been a long time, but I remember being quite enamored with it as well. It was certainly ahead of it's time. Then we switched to Visual Age for Java, which was pretty cool at first. Until it corrupted

Re: The Cons in iterate's return value

2014-04-16 Thread Mars0i
On Wednesday, April 16, 2014 2:39:24 PM UTC-5, gianluca torta wrote: this issue on core.typed http://dev.clojure.org/jira/browse/CTYP-96http://www.google.com/url?q=http%3A%2F%2Fdev.clojure.org%2Fjira%2Fbrowse%2FCTYP-96sa=Dsntz=1usg=AFQjCNFtiMksWlWr1XT8J0zwKsQ1xvo2jQ in particular the comment:

Re: Light table

2014-04-16 Thread Lee Spector
On Apr 16, 2014, at 10:48 PM, Mikera mike.r.anderson...@gmail.com wrote: On Thursday, 17 April 2014 03:57:56 UTC+8, Mike Haney wrote: The conventional wisdom seems to be that you will end up learning emacs eventually if you spend any amount of time doing clojure or lisp, so you might as