Fwd: [ILC2012] CALL FOR PARTICIPATION

2012-09-27 Thread Jianshi Huang
Just curious, why there are no Clojure speakers and papers? I think projects like cascalog, clojure.logic and light table are brilliant showcases for Lisp. The lightning talks session is still open for submissions. -- Forwarded message -- From: KURODA Hisao kur...@msi.co.jp Date:

Re: newbie question regarding maps

2012-09-27 Thread Mond Ray
Thanks for the support and especially the examples. I will be back when I bump into the next level of complexity ;-) On Monday, 24 September 2012 12:04:42 UTC+2, Mond Ray wrote: I am playing around with maps and using wish lists as a learning tool. I have a list of items in wish lists like

Re: Does Clojure support efficient coroutines?

2012-09-27 Thread nicolas.o...@gmail.com
Depending of the code they have to write, you can walk their code at compile time and transform it to monadic normal form or CPS style, which would allow to do what you want. I would tend to think that with a lot of threads you will win with closures and not native threads. And would only a few

Re: Clojure : a good start for non-programmers?

2012-09-27 Thread Geoffrey
I agree greg r's approach, tooling is very important when starting, racket comes ready to roll. On 27/09/12 06:59, greg r wrote: I would go with the book Simply Scheme, Introducing Computer Science by Harvey and Wright. Install the Racket system on your computer, and have at it.

Re: comp inside macro

2012-09-27 Thread sailormoo...@gmail.com
Solved. Thanks ^o^ -- 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 post. To unsubscribe from this group,

Re: clojure - diff of sequence's

2012-09-27 Thread Alex Shabanov
Thanks! Looks like subvec is the best one for the kind of task (i.e. when preserving element order matters) - if the sequences are finite, non-lazy collections - e.g. lists or vectors. среда, 26 сентября 2012 г., 15:16:49 UTC+4 пользователь Niels van Klaveren написал: There's several

Questions regarding do form

2012-09-27 Thread arekanderu
Hello all, I am new to clojure and I have two questions about do and the way it should be used. *Question 1: Which of the following two functions is more idiomatic and why? Both functions produce the same result.* code (defn my-fn [java-object] (. java-object firstFunc) (. java-object

Re: Clojure : a good start for non-programmers?

2012-09-27 Thread CA
1. Yes , there is no language that is harder to learn than any other. Clojure happens to be especially newbie friendly. 2. Start with getting yourself familiar with the clojure development environment. These days the best options are Emacs+Nrepl or Eclipse +CounterClockwise. When it is up download

Re: Light Table Playground got a lot more useful.

2012-09-27 Thread humblepie
For the life of me I can figure out the key binding for the Cmd key. Can someone help? On Monday, July 9, 2012 6:27:26 PM UTC-7, Chris Granger wrote: Hey folks, In case you missed it via other channels, the Light Table Playground can now hook into your own projects!

Re: Clojure : a good start for non-programmers?

2012-09-27 Thread Ian
On 26/09/2012 20:04, Jim - FooBar(); wrote: On 26/09/12 17:10, Ian wrote: If you want to start with a functional language, then I would start with Erlang or Haskell, rather than Closure. Closure is a great language, but it runs on the Java VM, and you are expected to know and understand Java

Re: Questions regarding do form

2012-09-27 Thread Meikel Brandmeyer (kotarak)
Hi, Am Donnerstag, 27. September 2012 12:16:41 UTC+2 schrieb arekanderu: I am new to clojure and I have two questions about do and the way it should be used. *Question 1: Which of the following two functions is more idiomatic and why? Both functions produce the same result.* code (defn

Re: Does Clojure support efficient coroutines?

2012-09-27 Thread Timothy Baldridge
You have several options here: 1) Agents 2) Something like actors (my implementation is here https://github.com/halgari/microactors/blob/master/src/microactors/core.clj ) 4) Dataflow using agents (or fork/join perhaps) 3) CPS (as mentioned) Perhaps a bit more explanation of what you're trying

Re: Clojure : a good start for non-programmers?

2012-09-27 Thread Giuliani Sanches
Hi Gregorious, I will show you the track that i'm followin to learn Clojure. I'm a programmer since 99, so maybe this does not apply for you, but can be a good reference: 1- http://blackstag.com/blog.posting?id=5 (for me was a good starting point) 2 -

Re: [ILC2012] CALL FOR PARTICIPATION

2012-09-27 Thread Grant Rettke
Same goes for ICFP: http://icfpconference.org/icfp2012/accepted.html On Thu, Sep 27, 2012 at 1:05 AM, Jianshi Huang jianshi.hu...@gmail.com wrote: Just curious, why there are no Clojure speakers and papers? I think projects like cascalog, clojure.logic and light table are brilliant showcases

Issues with round tripping and tagged literals

2012-09-27 Thread Brent Millare
When one needs to get clojure data passed around over some string carrying pipe, one would need to override the print-dup/print-method methods for non-roundtrippable objects like java.io.File. This modifies the public and functionally global namespace, which is not good practice. A recommended

Re: clojurescript: *ns*, all-ns, ns-map, ns-publics, ns-* ?

2012-09-27 Thread Frank Siebenlist
Thanks Stuart - especially @namespaces is very helpful for understanding more about the resolution process. On Sep 26, 2012, at 12:00 PM, Stuart Sierra the.stuart.sie...@gmail.com wrote: Some of this information exists in the CLJS compiler, although it's not documented. For example, the

Re: Questions regarding do form

2012-09-27 Thread arekanderu
Thank you Meikel for your so helpful replies. On Thursday, September 27, 2012 4:19:44 PM UTC+3, Meikel Brandmeyer (kotarak) wrote: Hi, Am Donnerstag, 27. September 2012 12:16:41 UTC+2 schrieb arekanderu: I am new to clojure and I have two questions about do and the way it should be used.

Re: Questions regarding do form

2012-09-27 Thread Russell Whitaker
On Thu, Sep 27, 2012 at 8:26 AM, arekanderu arekand...@gmail.com wrote: Thank you Meikel for your so helpful replies. Thanks also from a lurker, to whom these facts were a useful surprise: I'd wondered the same myself. Cheers, R On Thursday, September 27, 2012 4:19:44 PM UTC+3, Meikel

Re: Questions regarding do form

2012-09-27 Thread Grant Rettke
I'm reading _The Joy of Clojure_ right now, and they touch on it, which is nice coming from Scheme/Racket. On Thu, Sep 27, 2012 at 10:40 AM, Russell Whitaker russell.whita...@gmail.com wrote: On Thu, Sep 27, 2012 at 8:26 AM, arekanderu arekand...@gmail.com wrote: Thank you Meikel for your so

Re: Questions regarding do form

2012-09-27 Thread Wes Freeman
Thanks for mentioning doto--hadn't seen that before. Particularly, I think some of my unit tests can be made significantly more readable with that. Wes On Thu, Sep 27, 2012 at 11:40 AM, Russell Whitaker russell.whita...@gmail.com wrote: On Thu, Sep 27, 2012 at 8:26 AM, arekanderu

how do I evaluate this lazy sequence?

2012-09-27 Thread larry google groups
I would like 2 types of advice: 1.) an answer to this specific question 2.) advice on how one is suppose to debug mysteries likes this I have a simple web app that serves some data (hopefully in JSON format, but at the moment I will accept anything at all). The app uses Ring and Moustache and

Re: how do I evaluate this lazy sequence?

2012-09-27 Thread Tassilo Horn
larry google groups lawrencecloj...@gmail.com writes: We put some data in this atom. And then we output it. But I have had great difficulty getting anything to appear on the screen. Assuming the problem was with the fact the main sequence was lazy, I added in doall everywhere it made sense.

Re: how do I evaluate this lazy sequence?

2012-09-27 Thread gaz jones
Couple of initial things, Clojure has immutable data structures so when you call for example 'assoc' it will return you a new map with the new values assoc'd. It will not mutate the original, so: (let [foo {}] (assoc foo :a 1) (assoc foo :b 2) foo) Will return {}. You need to do something

Re: Light Table Playground got a lot more useful.

2012-09-27 Thread Chris Granger
Cmd/Ctrl means either the Cmd key (which is on macs) or the Ctrl key on windows/linux. So if it says Cmd/Ctrl + d that would mean just ctrl + d. Cheers, Chris. On Wed, Sep 26, 2012 at 5:01 PM, humblepie wilmerwal...@gmail.com wrote: For the life of me I can figure out the key binding for the

Re: how do I evaluate this lazy sequence?

2012-09-27 Thread Jim - FooBar();
the 2 previous responses answered your question perfectly ...I'm just a bit amazed that you would go away and write clojure code to consume JSON and all that, without realising that data-structures in Clojure are immutable! I think we can all agree they are *the* cornerstone of Clojure. It is

CLR Reflection Laziness

2012-09-27 Thread James Ashley
Greetings, all. Clojure newb here. Life's more difficult because I have to deal with CLR 3.5. I'm going through the resources I can find. And I'm totally typing this in off the top of my head, even though I know it's evil. I apologize for that. I think the gist gets across, though. One's a

Re: Data Structure server (Redis in Clojure)

2012-09-27 Thread Artem Yankov
By the way, i figured performance issue (there was a prn call for each command which significantly slowed everything down, heh). Now, numbers are close to Redis, except for lrange for big lists and I havent' tested zsets yet. Need to gain more experience in jvm tweaking and data structure