Re: Clojurecademy: Learning Clojure Made Easy

2017-10-04 Thread Ertuğrul Çetin
Here is the DSL documentation link if anyone interested in creating Clojure based courses: https://clojurecademy.github.io/dsl-documentation On Monday, October 2, 2017 at 6:47:55 PM UTC+2, Ertuğrul Çetin wrote: > > Hi everyone, > > I've created site called Clojurecademy which seems like

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Ertuğrul Çetin
ul Çetin wrote: >> >> Hi Bost, >> >> It's important for courses, I mean once your course get updated you will >> be notified, also you can continue to a course where you left off etc. >> Of course this site is not the only platform that you can learn C

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Christopher Small
where you left off etc. > Of course this site is not the only platform that you can learn Clojure, > it just has different approach. Also it is not just learning Clojure, with > powerful Clojurecademy DSL( > https://clojurecademy.github.io/dsl-documentation/) Clojure developers > c

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Ertuğrul Çetin
I removed Terms of Service from the site, also all Clojurecademy projects have MIT license(https://github.com/clojurecademy) and Clojurecademy Web App is going to be an open source project in near future. I hope everything is fine now, if not please let me know I'll do adjusments Thank you...

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Ertuğrul Çetin
My goal is not earning money, this platform will remain free actually and be an open source project when I'm done with unit testing and documentation, my goal is making Clojure adoption as much easy as possible. I'll update Terms and consider your suggestion. On Tuesday, October 3, 2017 at

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Rostislav Svoboda
> Which part(s) is preventing you from contributing? Please the remove that sign-up wall, Terms-of-service nonse and alike. You know what we mean, don't you? If you think your users (= us) need some kind notifications, suspend-resume (i.e. save-load) functionality etc. then make it optional

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Ertuğrul Çetin
It's auto generated Terms of service, I should admit that I did not read all Terms. Which part(s) is preventing you from contributing? I can remove/change it, community's contribution is very important to platform. On Tuesday, October 3, 2017 at 5:03:12 AM UTC+2, Sam Griffith wrote: > > Terms

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-02 Thread Sam Griffith
Terms of service prevent me from helping. I'm not willing to write things for the site and then have you own them like it says. That said, good luck. It does look guise nice from looking at your GitHub. Sam -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-02 Thread Ertuğrul Çetin
Hi Bost, It's important for courses, I mean once your course get updated you will be notified, also you can continue to a course where you left off etc. Of course this site is not the only platform that you can learn Clojure, it just has different approach. Also it is not just learning Clojure

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-02 Thread Rostislav Svoboda
It looks like I can't learn clojure using your site unless I sign up with my email and such. Hmm... Until now I went pretty far with learning clojure without signing up anywhere. So what are your reasons for demanding a sign up? Thanks. 2017-10-02 18:47 GMT+02:00 Ertuğrul Çetin <e

Clojurecademy: Learning Clojure Made Easy

2017-10-02 Thread Ertuğrul Çetin
Hi everyone, I've created site called Clojurecademy which seems like Codecademy for Clojure with powerful DSL to create courses. Feel free to provide feedback so we can improve Clojure adoption together! Link: https://clojurecademy.com -- You received this message because you are subscribed

Free webinar - Deep Learning: Clojure

2016-07-27 Thread Rachael Russell
Every language has many pre-defined core functions, so we can quickly get on building what we really want. This ease of use does come at a cost, though. Do we really know the power of the magic that we are wielding? In this webinar we will look at how to learn a language by implementing

Deep learning: Clojure

2016-06-23 Thread Adele Green
Want to learn more about Clojure? Join us for our upcoming webinar with Dr. Jonathan Graham In this presentation we will look at how to learn a language by implementing models of some of its key features. To put this in practice, we will be diving deep into Clojure, and implementing our own

Re: practice for learning clojure

2014-07-11 Thread Alex P
:58:44 PM UTC+2, Randy Chiu wrote: Hi all, I'm new to clojure and want to find some suggestion for learning clojure. I googled some project about how to learn clojure but without any perfect answers until now. I worked on linux kernel in last several years mainly with C, and I'm recently

Re: practice for learning clojure

2014-07-10 Thread Gregg Williams
solutions, looking at both the factors of elegance and readability in solutions. do you have any good projects/solutions recommended? 在 2014年5月28日星期三UTC+8上午3时15分37秒,Gregg Williams写道: Hi, Randy, I'm several years into learning Clojure. Here's what has worked for me: * Use either Light Table

practice for learning clojure

2014-05-27 Thread Randy Chiu
Hi all, I'm new to clojure and want to find some suggestion for learning clojure. I googled some project about how to learn clojure but without any perfect answers until now. I worked on linux kernel in last several years mainly with C, and I'm recently interested in lisp. I try to read some

Re: practice for learning clojure

2014-05-27 Thread Plínio Balduino
wrote: Hi all, I'm new to clojure and want to find some suggestion for learning clojure. I googled some project about how to learn clojure but without any perfect answers until now. I worked on linux kernel in last several years mainly with C, and I'm recently interested in lisp. I try

Re: practice for learning clojure

2014-05-27 Thread Gregg Williams
Hi, Randy, I'm several years into learning Clojure. Here's what has worked for me: * Use either Light Table or (if you're determined) Emacs as your IDE. * I learned a lot from taking this free online course: http://iloveponies.github.io/120-hour-epic-sax-marathon/index.html * I have *all

Re: practice for learning clojure

2014-05-27 Thread Randy Chiu
/solutions recommended? 在 2014年5月28日星期三UTC+8上午3时15分37秒,Gregg Williams写道: Hi, Randy, I'm several years into learning Clojure. Here's what has worked for me: * Use either Light Table or (if you're determined) Emacs as your IDE. * I learned a lot from taking this free online course: http

Re: Books for learning Clojure

2014-04-23 Thread kurofune
I'm about halfway through all of them, and find the back and forth to actually be helpful. First and foremost though, i recommend you go through the clojure koans video series on YouTube and get started with 4clojure.com (subsequent, difficult problems will become easier for you as you

Re: Books for learning Clojure

2014-04-23 Thread Daniel Higginbotham
Clojure Programming was the most useful to me when I started with Clojure (I already had a bit of Lisp experience). Kyle Kingsbury has an online series going, Clojure from the Ground Up (http://aphyr.com/tags/Clojure-from-the-ground-up). I'm writing a book as well, Clojure for the Brave and

Re: Books for learning Clojure

2014-04-23 Thread Stefan Kamphausen
Would German be an option for you? Just curious stefan -- 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 first

Re: Books for learning Clojure

2014-04-23 Thread Cecil Westerhof
2014-04-23 15:05 GMT+02:00 Stefan Kamphausen ska2...@gmail.com: Would German be an option for you? ​With what is available, not for me, but maybe for others it would.​ -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: Books for learning Clojure

2014-04-23 Thread Plínio Balduino
A nice post by Nikola Peric about this subject with what to read and what to avoid. http://deltadata.wordpress.com/2014/04/19/learning-clojure-tutorial-books-and-resources-for-beginners/ Plínio On Wed, Apr 23, 2014 at 1:27 PM, Cecil Westerhof cldwester...@gmail.comwrote: 2014-04-23 15:05 GMT

Re: Books for learning Clojure

2014-04-23 Thread Hercules Merscher
/04/19/learning-clojure-tutorial-books-and-resources-for-beginners/ Plínio On Wed, Apr 23, 2014 at 1:27 PM, Cecil Westerhof cldwester...@gmail.comwrote: 2014-04-23 15:05 GMT+02:00 Stefan Kamphausen ska2...@gmail.com: Would German be an option for you? ​With what is available, not for me

Books for learning Clojure

2014-04-22 Thread Cecil Westerhof
I have a ‘little’ to learn. ;-) I have worked with a lot of languages, including Lisp. I was thinking about the following books (in that order): - Practical Clojure - Clojure in Action - The Joy of Clojure - Clojure Programming - Programming Clojure Someone told me it was better to start with

Re: Books for learning Clojure

2014-04-22 Thread Plínio Balduino
Some will say that Joy of Clojure is not the best choice for the newcomer. I read all the books more in your list more than once and had the better comprehension with JoC. The important thing is that I didn't get Clojure reading the first or second book. I just really understood after read the

Re: Books for learning Clojure

2014-04-22 Thread Cecil Westerhof
2014-04-22 20:32 GMT+02:00 Plínio Balduino pbaldu...@gmail.com: Some will say that Joy of Clojure is not the best choice for the newcomer. I read all the books more in your list more than once and had the better comprehension with JoC. The important thing is that I didn't get Clojure reading

Re: Books for learning Clojure

2014-04-22 Thread Thiago Massa
I think you should care about learning the concepts involved in clojure and functional programming in general. Getting clojure after you have done some haskell, lisp or erlang is supposed to be a breeze, so you need to get to the basics! I bet that most of the books will teach you almost the same

Re: Books for learning Clojure

2014-04-22 Thread Alex Ott
Hi I would recommend to take Programming Clojure or Clojure Programming first, and after that take the The Joy of Clojure (2ed)... On Tue, Apr 22, 2014 at 8:18 PM, Cecil Westerhof cldwester...@gmail.comwrote: I have a ‘little’ to learn. ;-) I have worked with a lot of languages, including

Re: Books for learning Clojure

2014-04-22 Thread Alex Vzorov
I started with JoC and reading Programming Clojure now. Both give pretty good introduction to the language and its capabilities. JoC is full of not-so-simple examples, but they make one's brain work, show the clojure way, and are good for people how know they way around programming in general.

Re: Books for learning Clojure

2014-04-22 Thread Plínio Balduino
Exactly, Thiago. I just understood Clojure after dive into Clojure. The books helped a lot, but alone they are almost useless. Plínio On Tue, Apr 22, 2014 at 3:53 PM, Thiago Massa thiag...@gmail.com wrote: I think you should care about learning the concepts involved in clojure and

Re: Books for learning Clojure

2014-04-22 Thread Gary Trakhman
JoC is like SICP, just really worth doing, not necessarily immediately practical. On Tue, Apr 22, 2014 at 3:16 PM, Plínio Balduino pbaldu...@gmail.comwrote: Exactly, Thiago. I just understood Clojure after dive into Clojure. The books helped a lot, but alone they are almost useless.

Re: Books for learning Clojure

2014-04-22 Thread Mike Haney
Yeah, JoC is my favorite clojure book, but I agree it's not the best to start with. Let me throw a couple others into the mix that haven't been mentioned yet. If you come from a solid OO background, I highly recommend Brian Marick's book Functional Programming For the Object Oriented

Re: Books for learning Clojure

2014-04-22 Thread Andrey Antukh
Hi Cecil I had read almost all books of you list and without a doubt clojure programming (o'reilly) is the best book for me ;) Andrey 2014-04-22 20:18 GMT+02:00 Cecil Westerhof cldwester...@gmail.com: I have a ‘little’ to learn. ;-) I have worked with a lot of languages, including Lisp. I

Re: Books for learning Clojure

2014-04-22 Thread Cecil Westerhof
2014-04-22 20:18 GMT+02:00 Cecil Westerhof cldwester...@gmail.com: I have a ‘little’ to learn. ;-) I have worked with a lot of languages, including Lisp. I was thinking about the following books (in that order): - Practical Clojure - Clojure in Action - The Joy of Clojure - Clojure

Re: Books for learning Clojure

2014-04-22 Thread Marcus Blankenship
Let me also +10 for Eric Normand’s excellent Clojure videos, found at http://www.purelyfunctional.tv On Apr 22, 2014, at 10:13 PM, Cecil Westerhof cldwester...@gmail.com wrote: 2014-04-22 20:18 GMT+02:00 Cecil Westerhof cldwester...@gmail.com: I have a ‘little’ to learn. ;-) I have worked

Re: [Learning] Clojure web programming - thoughts and series of articles

2012-11-23 Thread Johan Sundström
Nice pointers, I'm soo noob in the clojure world that I'm not able to answer your question, but I will look into your articles. Cheers, Johan Den torsdagen den 8:e november 2012 kl. 19:42:31 UTC+2 skrev Yakovlev Roman: Some time have passed since i posted Is clojure need it's own web

[Learning] Clojure web programming - thoughts and series of articles

2012-11-08 Thread Yakovlev Roman
Some time have passed since i posted Is clojure need it's own web framework like ruby on rails ? https://groups.google.com/forum/?hl=enfromgroups=#!topic/clojure/C41MfD72UBE There answer mostly was no. But i still think that clojure need some base for Clojure web programming maybe wiki site or

Re: Learning clojure: debugging?

2012-06-03 Thread Vinzent
Actually, it's kinda the same (Fogus and me decided to merge trammel and clojure-contracts into one library) воскресенье, 3 июня 2012 г., 6:31:50 UTC+6 пользователь Sean Corfield написал: On Sat, Jun 2, 2012 at 5:22 PM, Vinzent ru.vinz...@gmail.com wrote: BTW, you may want to use

Re: Learning clojure: debugging?

2012-06-03 Thread Sean Corfield
On Sun, Jun 3, 2012 at 1:55 AM, Vinzent ru.vinz...@gmail.com wrote: Actually, it's kinda the same (Fogus and me decided to merge trammel and clojure-contracts into one library) Yeah, I figured. I just wanted to point people to the newly created contrib library since that's where (I assume)

Re: Learning clojure: debugging?

2012-06-03 Thread Sean Neilan
Does Clojurescript have a trace function? On Sat, Jun 2, 2012 at 5:26 PM, Softaddicts lprefonta...@softaddicts.cawrote: clojure.tools.trace beats println by far (biased advice, I maintain it:))) It's also easier to segregate between debug and normal output in the code. You can

Re: Learning clojure: debugging?

2012-06-03 Thread Sean Neilan
Nvm. Not yet. I'm reluctant to dive into clojurescript because the debugger and trace functions aren't ready yet. I suppose if I make test cases for everything and stick to tiny functions, I should be alright. Anyway, if Chris Granger uses it, it's probably pretty good. HERE GOES! On Sun, Jun

Re: Learning clojure: debugging?

2012-06-03 Thread Softaddicts
Not yet, I'll put this on my agenda. I need some research time not being familiar yet with how it would translate in ClojureScript and if it's worthwhile to implement it. Comments from any one using ClojureScript ? Luc Does Clojurescript have a trace function? On Sat, Jun 2, 2012 at 5:26

Re: Learning clojure: debugging?

2012-06-02 Thread Sean Corfield
On Fri, Jun 1, 2012 at 11:18 AM, Abraham Egnor abe.eg...@gmail.com wrote: I'm early in the process of learning clojure, and am hoping that the community has suggestions for a frustration I've run into. ... I eventually tracked it down by evaluating each subexpression of line - the root bug

Re: Learning clojure: debugging?

2012-06-02 Thread Moritz Ulrich
On Fri, Jun 1, 2012 at 8:18 PM, Abraham Egnor abe.eg...@gmail.com wrote: Is there some technique I'm not seeing to make this kind of simple typo-based error less of a hassle to track down?  Or is this simply a matter of getting better at deciphering the stack traces? I think one important

Re: Learning clojure: debugging?

2012-06-02 Thread Sean Corfield
On Sat, Jun 2, 2012 at 2:34 PM, Moritz Ulrich ulrich.mor...@googlemail.com wrote: I think one important point here is that you use two different data structures to hold the same kind of data. Points and deltas are not the same kind of data. Yes, they both have x/y/z values but their meaning is

Re: Learning clojure: debugging?

2012-06-02 Thread Softaddicts
clojure.tools.trace beats println by far (biased advice, I maintain it:))) It's also easier to segregate between debug and normal output in the code. You can enable/disable fn tracing dynamically from the REPL for all fns in a given namespace. I seldom use a debugger. When I do it's to dive

Re: Learning clojure: debugging?

2012-06-02 Thread Vinzent
BTW, you may want to use clojure-contracts ( https://github.com/dnaumov/clojure-contracts) instead of asserts or :pre\:post in order to get much nicer and informative error reporting. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: Learning clojure: debugging?

2012-06-02 Thread Sean Corfield
On Sat, Jun 2, 2012 at 5:22 PM, Vinzent ru.vinz...@gmail.com wrote: BTW, you may want to use clojure-contracts (https://github.com/dnaumov/clojure-contracts) instead of asserts or :pre\:post in order to get much nicer and informative error reporting. Or keep an eye on

Re: Newbie's Guide to Learning Clojure

2012-03-29 Thread George Oliver
On Mar 28, 10:16 am, Elango Cheran elango.che...@gmail.com wrote: Hi everyone, On Gregg's suggestion, I want to share a writeup about how total beginners can learn Clojure in a minimally painful way.  I'd welcome any comments, suggestions, etc. You could add a link to this guide,

Newbie's Guide to Learning Clojure

2012-03-28 Thread Elango Cheran
Hi everyone, On Gregg's suggestion, I want to share a writeup about how total beginners can learn Clojure in a minimally painful way. I'd welcome any comments, suggestions, etc. http://www.elangocheran.com/blog/2012/03/the-newbies-guide-learning-clojure/ Thanks. Elango -- You received

Learning clojure - comments on my function?

2011-09-29 Thread Peter Hull
Hi All, I am just learning clojure and I've written a function to split a list (see docstring for details). I was wondering if any of you experienced hands could take a look at it and comment. I've never used lisp or a functional language before so I was wondering if I was doing it right

Re: Learning clojure - comments on my function?

2011-09-29 Thread Jonathan Fischer Friberg
...) '(3 1 7 3 0) - '(3 7 0) On Thu, Sep 29, 2011 at 1:35 PM, Peter Hull peterhul...@gmail.com wrote: Hi All, I am just learning clojure and I've written a function to split a list (see docstring for details). I was wondering if any of you experienced hands could take a look at it and comment

Re: Learning clojure - comments on my function?

2011-09-29 Thread Islon Scherer
You probably want something like (defn split-zero [ls] (filter #(not= (first %) 0) (partition-by zero? ls))) -- 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: Learning clojure - comments on my function?

2011-09-29 Thread Peter Hull
Thank you, both! I guessed there would be a neater solution (I wasn't aware of partition-by) Pete -- 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

Re: learning clojure library

2011-08-03 Thread Islon Scherer
You can use (ns-publics 'your.namespace) to see every public intern mapping in this namespace. Islon -- 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

ANN: Learning clojure? Here's a practical example using clojure and nmap.

2010-07-26 Thread Ryan Waters
I don't have a website I maintain right now so I thought I'd post this to the mailing list. I have a need to scan a list of IP addresses and I wanted the scan order to be random. Nmap can do this. However, I also want the scan order to be consistent so I can do handy things like diff output

Re: Learning Clojure Offline

2010-06-20 Thread Wilson MacGyver
Other than downloading clojure and clojure.contrib itself, I'd suggest you get the progmraming in clojure book by Stuart Halloway. Book in hand, try out the examples in clojure REPL. That's good enough to get started. Welcome! On Sun, Jun 20, 2010 at 3:50 AM, Martin Larsson

Learning Clojure - Wiki

2009-05-30 Thread Rock
I'm editing the Reader Macros section. I hope I got this right: For Lists, syntax-quote establishes a template of the corresponding data structure. Within the template, unqualified forms behave as if recursively syntax-quoted. `(x1 x2 x3 ... xn) is interpreted to mean (clojure.core/seq

Re: Learning Clojure Wiki

2009-05-29 Thread Rock
By the way, here's the link: http://en.wikibooks.org/wiki/Learning_Clojure#Reader_Macros On May 29, 4:14 pm, Rock rocco.ro...@gmail.com wrote: Hi, I've just finished updating the Reader Macros section of the Wiki (especially the syntax-quote part), and I would like to know if it's

Re: Learning Clojure Wiki

2009-05-29 Thread Rock
By the way, here's the link: http://en.wikibooks.org/w/index.php?title=Learning_Clojurestable=0#Reader_Macros On May 29, 4:14 pm, Rock rocco.ro...@gmail.com wrote: Hi, I've just finished updating the Reader Macros section of the Wiki (especially the syntax-quote part), and I would like to

Re: Learning Clojure Wiki

2009-05-29 Thread Rich Hickey
On May 29, 10:18 am, Rock rocco.ro...@gmail.com wrote: By the way, here's the link: http://en.wikibooks.org/w/index.php?title=Learning_Clojurestable=0#R... On May 29, 4:14 pm, Rock rocco.ro...@gmail.com wrote: Hi, I've just finished updating the Reader Macros section of the Wiki

Re: Learning Clojure Wiki

2009-05-29 Thread Rock
Ok. I'll try to correct that. It was already there when I started working on that section. My main concern is the part where I describe the rules for the syntax-quote expansion. Does it seem correct to you? Thanks so much for helping :) Rock On May 29, 5:47 pm, Rich Hickey

learning clojure: macro for importing all static public methods of a Java class

2009-05-01 Thread Boris Mizhen
contrib :) - the difference here is that my code creates clojure functions that can be passed to other functions. This is just an exercise for learning clojure macros, so I would be very grateful for any comments on the code, suggestions on how to improve it, etc ... It is easier to read from bottom

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-29 Thread Boris Mizhen
Thanks Christophe, Using a default return value, you can rewrite the (if-let...) as (conj (amap key ()) item). A good point, getting clojure and clojure :) (defn seq-to-multimap takes a sequence s of possibly repeating elements and converts it to a map, where keys are obtained by

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-29 Thread Boris Mizhen
Thanks Jason. merge-with seems to be made to support a function like this, I wonder where is the slowdown coming from? Is apply slow? I named your version seq-to-multimap2. The timing results are below: user (def a (reverse (take 10 (iterate (fn [x] (rand-int 100)) 1

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-29 Thread Christophe Grand
IMHO, the slowdown comes from allocation: with (apply merge-with concat (map (fn [x] {(key-fn x) [x]}) s)) you build a map containing a vector, plus a seq (merge-with calls seq on each argument) for each item before performing a reduction which calls assoc and concat. In seq-to-multimap you

learning clojure, converting a sequence with repetitions to a multi-map

2009-04-28 Thread Boris Mizhen
Hello all, I am starting to learn clojure. I would appreciate comments on the utility function below. Coding style, idiomatic Clojure, comment style, efficiency, naming conventions, indentations (used slime) ... anything I should improve :) (defn seq-to-multimap [s key-fn] takes a sequence s

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-28 Thread Stuart Sierra
Hi Boris, welcome to Clojure! This function looks reasonable to me. In your example, you don't need to write #(identity %) -- just identity is enough. If you want to preserve the order of objects in the sequence, you can use a vector instead of a list. I would use contains? in the conditional

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-28 Thread Boris Mizhen
Thanks Stuart, preserving order is a nice touch :) I also did not realize that conj preserves sequence type ... BTW, I hope I'm not abusing this mailing list by asking questions like this? Boris On Apr 28, 5:15 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote: Hi Boris, welcome to

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-28 Thread Christophe Grand
Hi Boris, Boris Mizhen a écrit : I am starting to learn clojure. I would appreciate comments on the utility function below. Coding style, idiomatic Clojure, comment style, efficiency, naming conventions, indentations (used slime) ... anything I should improve :) (defn seq-to-multimap [s

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-28 Thread Meikel Brandmeyer
Hi, Am 28.04.2009 um 23:28 schrieb Boris Mizhen: BTW, I hope I'm not abusing this mailing list by asking questions like this? This list and the #clojure channel are the right place to ask such questions. That said, there is the search facility of google groups and the log of the channel at

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-28 Thread Jason Wolfe
(defn seq-to-multimap   takes a sequence s of possibly repeating elements    and converts it to a map, where keys are obtained by applying key- fn    to elements of s and values are sequence of all elements of s with the particular key [s key-fn] (apply merge-with concat (map (fn [x]

Learning Clojure

2009-01-28 Thread janus
While reading Programming Clojure the other night I found this code interesting (+), however, when I tried out (-) I got my fingers burnt. Why this? Or did I do something wrong which has nothing to do with the code in question? Emeka --~--~-~--~~~---~--~~ You

Re: Learning Clojure

2009-01-28 Thread Timothy Pratley
On Jan 29, 6:03 am, janus emekami...@gmail.com wrote: While reading Programming Clojure the other night I found this code interesting (+), however, when I tried out (-) I got my fingers burnt. Why this? Or did I do something wrong which has nothing to do with the code in question? You

Re: Learning Clojure

2009-01-28 Thread Timothy Pratley
Thanks for the detailed explanation Steve! --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to

Re: Learning Clojure

2009-01-28 Thread Emeka
Thanks Steve and Tim. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to

Re: Learning Clojure WikiBook

2009-01-14 Thread Rock
Here's an update on syntax-quote in the WikiBook (Reader Macro section): The most complicated reader macro is syntax-quote, denoted by ` (back- tick). When used on a symbol, syntax-quote is like quote but the symbol is resolved to its fully-qualified name: `meow; (quote cat/meow)

Re: Learning Clojure WikiBook

2009-01-14 Thread Chouser
On Wed, Jan 14, 2009 at 6:07 AM, Rock rocco.ro...@gmail.com wrote: [snip] #^{:ack bar} foo ; (clojure/with-meta foo {:ack bar}) This is not correct, and a common misunderstanding. #^ is not sugar for with-meta. It does not expand into a call to with- meta. They are not equivalent.

Re: Learning Clojure WikiBook

2009-01-14 Thread Rock
On 14 Gen, 17:58, Chouser chou...@gmail.com wrote: On Wed, Jan 14, 2009 at 6:07 AM, Rock rocco.ro...@gmail.com wrote: [snip] #^{:ack bar} foo      ; (clojure/with-meta foo {:ack bar}) This is not correct, and a common misunderstanding. #^ is not sugar for with-meta. It does not expand

Learning Clojure WikiBook

2009-01-13 Thread Rock
I've added some info regarding the backquote expansion mechanism in the Reader section here: http://en.wikibooks.org/wiki/Learning_Clojure#The_Reader I tried to answer the author's question regarding the possible expansion order in nested backquotes and the general algorithm Clojure apparently

Re: Learning Clojure

2008-12-11 Thread janus
Timothy, Your post is a great one indeed , you have developed a template that anyone could use to introduce Clojure. I would implore to fresh out thoughts and deepen it for all to enjoy. Emeka --~--~-~--~~~---~--~~ You received this message because you are

Re: Learning Clojure

2008-12-11 Thread samppi
Great article, but I'm not sure this part in the keyword section is correct: Keywords exist simply because, as you'll see, it's useful to have names in code which are symbol-like but not actually symbols. Keywords have no concept of being namespace qualified as they have nothing to do with

Re: Learning Clojure

2008-12-11 Thread Randall R Schulz
On Thursday 11 December 2008 07:41, samppi wrote: Great article, but I'm not sure this part in the keyword section is correct: Keywords exist simply because, as you'll see, it's useful to have names in code which are symbol-like but not actually symbols. Keywords have no concept of being

Re: Learning Clojure

2008-12-11 Thread Brian Will
Tim, just go ahead and make any changes you like. If I don't like them, I can always revert ;) Actually, I'm sure anything you add we can find a place for, but like I said, that would likely be a separate example page in most cases. Thanks, Randall, I mention keywords-as-functions where I talk

Re: Learning Clojure

2008-12-11 Thread rb
On Dec 11, 7:06 am, Alex Burka zapper3...@gmail.com wrote: To the debate on whether there should be examples early in the text,   here are my two cents: When I click on something called Learning [programming language] I   like to see a representative example of the syntax early on. If  

Learning Clojure

2008-12-10 Thread Brian W
I've created a new Clojure intro at http://en.wikibooks.org/wiki/Learning_Clojure. While Rich's screencasts and reference docs are great, they don't always lay things out in a digestible order. My intro is meant as a sequential tour through the essential concepts, not a practical tutorial. In

Re: Learning Clojure

2008-12-10 Thread J. McConnell
On Wed, Dec 10, 2008 at 1:27 PM, Brian W [EMAIL PROTECTED] wrote: Another issue I had is we don't have a good blanket term for Vars, Refs, Agents, and Atoms. Rich sometimes calls them reference types, but that term already has a different meaning in Java. I considered meta-references, but

Re: Learning Clojure

2008-12-10 Thread Randall R Schulz
On Wednesday 10 December 2008 10:27, Brian W wrote: I've created a new Clojure intro at http://en.wikibooks.org/wiki/Learning_Clojure. ... ... Another issue I had is we don't have a good blanket term for Vars, Refs, Agents, and Atoms. Speaking of these, your article mentions and describes

Re: Learning Clojure

2008-12-10 Thread Cosmin Stejerean
On Wed, Dec 10, 2008 at 2:10 PM, Randall R Schulz [EMAIL PROTECTED] wrote: On Wednesday 10 December 2008 10:27, Brian W wrote: I've created a new Clojure intro at http://en.wikibooks.org/wiki/Learning_Clojure. ... ... Another issue I had is we don't have a good blanket term for

Re: Learning Clojure

2008-12-10 Thread Brian Will
A Java reference type is basically any type allocated on the heap. The four Clojure reference types are particular Java reference types. My complaint is this is exactly the sort of weirdness that causes learners to scratch their heads. Not the biggest issue, sure, but this sort of thing is nice

Re: Learning Clojure

2008-12-10 Thread Rich Hickey
On Wed, Dec 10, 2008 at 4:32 PM, Brian Will [EMAIL PROTECTED] wrote: A Java reference type is basically any type allocated on the heap. The four Clojure reference types are particular Java reference types. My complaint is this is exactly the sort of weirdness that causes learners to scratch

Re: Learning Clojure

2008-12-10 Thread Timothy Pratley
, but I don't think would bloat it: 1) Learning Clojure launches straight into describing Clojure. I think you should at least have a link to a more basic tutorial or dedicate a paragraph to the syntax so that your concepts can be more fully understood. - I propose you should have a link to http

Re: Learning Clojure

2008-12-10 Thread Stephen C. Gilardi
On Dec 10, 2008, at 9:03 PM, Brian Will wrote: btw, you'll see a few notes I left in the text in square brackets where I wasn't sure on some point. If someone could address those questions, I'd appreciate it. [hmm, what are the chances of a false positive due to hash collision? are the

Re: Learning Clojure

2008-12-10 Thread Brian Will
Tim: Rich talks about destructuring in the part about let on the special forms page. The discussion of functions and basic syntax is deliberately delayed because of dependencies, e.g. evaluation can't really be understood without understanding the reader, and explaining the reader involves

learning clojure

2008-11-24 Thread syamajala
How easy is it to pick up clojure without having any previous java experience? I have plenty of common lisp experience, but have just never bothered learning java. I recently got a chance to watch the boston lisp talk on clojure, and it looks fairly straightforward, but I feel that not having any

Re: learning clojure

2008-11-24 Thread Vincent Foley
As somebody who did only a few hours of Java, but knows object oriented programming well and had its fair share of fun with Common Lisp, Scheme and Haskell, Clojure was quite easy to pick up. For all pure Clojure stuff, I don't think that you need to know anything about Java. When you work with

Re: learning clojure

2008-11-24 Thread Stuart Sierra
It's useful to know the standard Java libraries, especially for File/ IO stuff. You can pick up nearly all of it from the Sun Java tutorials: http://java.sun.com/docs/books/tutorial/ -Stuart Sierra On Nov 23, 11:34 pm, syamajala [EMAIL PROTECTED] wrote: How easy is it to pick up clojure

Re: learning clojure

2008-11-24 Thread Ethan Herdrick
For the File / IO things, skip the Java libs - they are pretty low level. Go with the Jakarta Commons libs: http://commons.apache.org/io/description.html , as Stuart has recommended elsewhere. On Mon, Nov 24, 2008 at 6:48 AM, Stuart Sierra [EMAIL PROTECTED] wrote: It's useful to know the

  1   2   >