Re: Practical Clojure

2012-04-14 Thread JuanManuel Gimeno Illa
On Friday, April 13, 2012 9:11:07 PM UTC+2, faenvie wrote: in addition there could be a separate book 'professional clojure' that focuses on extensions and advanced topics of the clojure cosmos: clojurescript, monads, continuations, building dsl, core.logic, ring, korma, noir ... this

Re: Practical Clojure

2012-04-14 Thread faenvie
light table looks like a candidate for the book ... btw 'professional clojure' is not a good title ... better: 'beyond clojure' ? etc. -- 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

Re: Boolean

2012-04-14 Thread Vinzent
So 'false?' doesn't help you here. It does, actually (see earlier responses for details) So if anyone runs into this problem _in real world code_ it's because they are calling a Java API that somehow returns a Java Boolean object embedded in the result. If you are working with a Java

Re: Boolean

2012-04-14 Thread Angel Java Lopez
What is the situation in ClojureCLR? And, seeing the if code cited, I just run this code: public class BoolTest { public static void main(String[] args) { Boolean f = new Boolean(false); System.out.println(f.equals(false)); // true System.out.println(f == false); // true System.out.println(f ==

ANN: A more fully-featured lein-vimclojure

2012-04-14 Thread Daniel Solano Gómez
Hello, I am happy to let you know I have published a new Leiningen plug-in for VimClojure support. I know there are already a number of VimClojure plug-ins out there, some of them called lein-nailgun and others called lein-vimclojure. However, most of them tend to be fairly minimal. In

Re: ANN: A more fully-featured lein-vimclojure

2012-04-14 Thread Jim - FooBar();
good stuff...can i ask something completely irrelevant? is there any chance the clojure repl for android will ever get support for loading external libraries? also i run a tiny genetic algorithm on it only showed all the output at the end of the simulation rather than going one step at a time.

Re: Supporting platform specific code

2012-04-14 Thread Kevin Lynagh
I have no idea what, if anything, Clojure the language(s) *should* do about this issue, but I can explain the reasoning behind CLJX. CLJX uses the reader to statically analyze toplevel forms in a file and generate new ones according to declarative rewrite rules. The motivating use case was to

Re: Practical Clojure

2012-04-14 Thread Qiu Xiafei
how about Programming Clojure? I am reading it as a start point of learn clojure On Sat, Apr 14, 2012 at 4:52 PM, faenvie fanny.aen...@gmx.de wrote: light table looks like a candidate for the book ... btw 'professional clojure' is not a good title ... better: 'beyond clojure' ? etc. -- You

Re: Light Table - a new IDE concept

2012-04-14 Thread daly
On Friday, April 13, 2012 1:34:54 PM UTC-5, looselytyped wrote: This is an awesome implementation of Brett Victors Inventing On Principle [http://vimeo.com/36579366] using Clojure and Noir by Chris Granger (who also wrote Noir).

Re: Practical Clojure

2012-04-14 Thread Manuel Paccagnella
It depends on the audience I guess. I've bought Practical Clojure but I found its minimalism a little too... minimal to my experience at the time. I was (an in many ways I still am) a nearly total novice on fp and Clojure, and although it's a very good and concise introduction to Clojure I

Re: Practical Clojure

2012-04-14 Thread Stuart Sierra
Hi, faenvie, Thanks for your comments about Practical Clojure, really glad you enjoyed it! Unfortunately, it seems unlikely right now that there will be a second edition of Practical Clojure from Apress, but Luke VanderHart and I are currently working on a second book together. Details to

Re: Boolean

2012-04-14 Thread Softaddicts
Can't talk too much about CLR, but interop with CLR while having similarities syntax wise is a different interop beast (like JS interop has its specifics). You can compare CLR and the JVM but not with Java. Java is a implementation of a language on top of the JVM as Clojure is over both the

Re: ANN: A more fully-featured lein-vimclojure

2012-04-14 Thread Evan Mezeske
Thank you! In particular, the Leiningen 1/2 support is a huge win. I'm really glad someone decided to tackle this! I feel I should point out, though, that the name of the plugin is unfortunate. There are already several plugins named lein-vimclojure, so that when I google that term, the top

Re: ANN: A more fully-featured lein-vimclojure

2012-04-14 Thread Evan Mezeske
I just thought of an additional disadvantage to overloading the lein-vimclojure name, which is that searching for troubleshooting purposes will potentially return misleading results. E.g., I might search for lein-vimclojure throws error, and click through to the first couple of results. If

Clojurescript, sencha, animations

2012-04-14 Thread Marius Seritan
I am looking into integrating clojurescript with sencha toolkit for a complex web app. The app is consumer facing so it needs to be fast and animation rich. I would love to talk to people who have interests/expertise in this area. We can talk about mutating your financial state, if apropriate

Streaming song

2012-04-14 Thread Simone Mosciatti
Hi everybody, I was looking for streaming a song between my server and my laptop, the only problem is that I have no ideas at all, never do something like that. I have a little idea of what aleph is and how it work (very little idea) so i was thinking to use that lib and stream byte by byte

Re: Streaming song

2012-04-14 Thread sean neilan
Over the internet or a LAN? On Sat, Apr 14, 2012 at 7:34 PM, Simone Mosciatti mweb@gmail.comwrote: Hi everybody, I was looking for streaming a song between my server and my laptop, the only problem is that I have no ideas at all, never do something like that. I have a little idea of

Re: Supporting platform specific code

2012-04-14 Thread Dave Sann
I agree with all of that. If you are extracting and writing jvm, py, clr, cljs interop as a means to enable portability, then you are effectively writing extensions to the core clojure platform libs. I.e providing a base, in a similar way that, for example, clojure.string extends common

Re: Supporting platform specific code

2012-04-14 Thread kovas boguta
I think there are 2 big ideas of relevant to this problem. 1. Tagged literals 2. Compiler-as-a-service Tagged literals do not have the drawbacks of metadata, or of macros. They are ideal for indicating the semantics of a piece of data. If a piece of data needs to be tagged as representing

Re: Supporting platform specific code

2012-04-14 Thread kovas boguta
Ok, here is an obvious follow-on idea: Let the file suffix correspond to the tagged literal with which the file contents are interpreted. so foo.clj would get read as #clj file contents and so forth. (non-official releases would use namespace-qualified suffixes, though the / would have to get

Re: Dealing with dynamic header in log file processing

2012-04-14 Thread Benny Tsai
Hi Cliff, There are at least 2 approaches you can try: 1. Use an atom to store the fields data, updating it whenever you encounter a #Fields row, and referencing it when processing data rows. 2. Use (reduce) to process the rows, using the accumulator to store both the current count and fields

ANN: New VimClojure plug-in now known as lein-tarsier

2012-04-14 Thread Daniel Solano Gómez
Hello, Thanks for your thoughts. After considering your points, I've decided to rename the plug-in 'lein-tarsier', after the animal that appears on the cover of 'Learning the vi and Vim Editors'. As a result, I have bumped the revision number and created a new GitHub repository. You can now

Andy Fingerhut wants to chat

2012-04-14 Thread Andy Fingerhut
--- Andy Fingerhut wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-d7d845b242-b84a102cf0-A1gnhr4A2hNcJ4MUjH_o4M_4vTk

Re: ANN: A more fully-featured lein-vimclojure

2012-04-14 Thread Daniel Solano Gómez
On Sat Apr 14 16:39 2012, Jim - FooBar(); wrote: good stuff...can i ask something completely irrelevant? is there any chance the clojure repl for android will ever get support for loading external libraries? Yes, there is. I have not forgotten about the REPL, and there are many updates that