Re: Help a newbie with his first babysteps... Understanding a function.

2012-07-06 Thread Jacobo Polavieja
On Friday, July 6, 2012 8:16:11 PM UTC+2, Sean Corfield wrote: > > def and defn are for top-level definitions. let is for local definitions. > > Specifically def and defn create a Var in the current namespace bound > to the specified value (or function), whereas let creates a lexically > scope

Re: Help a newbie with his first babysteps... Understanding a function.

2012-07-06 Thread Jacobo Polavieja
On Friday, July 6, 2012 10:55:24 AM UTC+2, Jacobo Polavieja wrote: > > It may be due to my background, but that I understand or feel a lot better > :). I suppose as time passes and I see more and more Clojure code that will > change anyway. > > I know this is going very off

Re: Help a newbie with his first babysteps... Understanding a function.

2012-07-06 Thread Jacobo Polavieja
On Friday, July 6, 2012 2:50:00 AM UTC+2, Benny Tsai wrote: > > Indeed! You can use ->> (like ->, but inserts into the last position of > each form) to do something like: > > (defn neighbors > ([size yx] > (neighbors [[-1 0] [1 0] [0 -1] [0 1]] size yx)) > ([deltas size yx] > (let [

Re: Help a newbie with his first babysteps... Understanding a function.

2012-07-05 Thread Jacobo Polavieja
On Thursday, July 5, 2012 11:52:52 PM UTC+2, Jacobo Polavieja wrote: > > Many thanks to you both Sean and Jeremy, I think I finally got it. > > After understanding it better I think most of my confussion comes from the > fact that in F# it's typical to "pipeline"

Re: Help a newbie with his first babysteps... Understanding a function.

2012-07-05 Thread Jacobo Polavieja
Many thanks to you both Sean and Jeremy, I think I finally got it. After understanding it better I think most of my confussion comes from the fact that in F# it's typical to "pipeline" and therefore we don't have to define everything at once (specially the implicit values which are what lost m

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-07-02 Thread Jacobo Polavieja
On Monday, June 25, 2012 6:31:42 AM UTC+2, Christian Mueller wrote: > > I have developed a tiny web app in Clojure/ClojureScript and have written > an overview here . In > general, it was an exciting experience, but I also faced several problems

Re: Anyone using Sublime Text 2 + SumblimeREPL with Windows?

2012-06-27 Thread Jacobo Polavieja
On Wednesday, June 27, 2012 5:07:05 PM UTC+2, Niels van Klaveren wrote: > > This combination of Sublime -text & -REPL looks pretty useful, with little > extra configuration (except that decommenting part :) ). > When I have the REPL launched, when returning values I get a lot of lines > with BS..

Re: Anyone using Sublime Text 2 + SumblimeREPL with Windows?

2012-06-27 Thread Jacobo Polavieja
On Wednesday, June 27, 2012 2:38:39 PM UTC+2, Lapcjonak wrote: > > On Jun 24, 9:20 pm, Jacobo Polavieja > wrote: > > > My current development environment is that: Sublime Text 2 editor with > > the fabulous SublimeREPL plugin to be able to copy code into the Clojure

Re: Anyone using Sublime Text 2 + SumblimeREPL with Windows?

2012-06-25 Thread Jacobo Polavieja
Well, I thought I had specified in the title my problem with sending commands to SublimeREPL, but as I did it badly and wasn't so specific, I guess I can put my las "problem" in this very thread. As we know, Sublime saves the session you're in and restores it everytime you open Sublime again. T

Re: Anyone using Sublime Text 2 + SumblimeREPL with Windows?

2012-06-25 Thread Jacobo Polavieja
> > Hi again! >> > > On the debate side, I'm pretty aware of the flames that usually develop > and I've read lots of them: I'm not willing to initiate another one, hehe! > > The thing about sublime is that it's light enough and not so hard as emac > or Vim. I've read several Chas Emerick opinion

Re: Anyone using Sublime Text 2 + SumblimeREPL with Windows?

2012-06-25 Thread Jacobo Polavieja
> > Unfortunately, I'm not sure what else to suggest as far as > SublimeREPL. But since you're new to Sublime, I'll assume you're not > that heavily invested in it yet? If you simply can't get SublimeREPL > up and running, there are other choices to look at. > > Counterclockwise (http://code.g

Re: Anyone using Sublime Text 2 + SumblimeREPL with Windows?

2012-06-24 Thread Jacobo Polavieja
On Monday, June 25, 2012 1:05:42 AM UTC+2, Charlie Griefer wrote: > > On Sun, Jun 24, 2012 at 3:59 PM, Jacobo Polavieja > wrote: > > On Monday, June 25, 2012 12:05:17 AM UTC+2, Charlie Griefer wrote: > >> Just to confirm... you're hitting F2, releasing F2, and _th

Re: Anyone using Sublime Text 2 + SumblimeREPL with Windows?

2012-06-24 Thread Jacobo Polavieja
On Monday, June 25, 2012 12:05:17 AM UTC+2, Charlie Griefer wrote: > > On Sun, Jun 24, 2012 at 2:54 PM, Jacobo Polavieja > wrote: > > > In fact, those are some of the many ones I've tried, without success. > When I > > press that combination it just writes t

Re: Anyone using Sublime Text 2 + SumblimeREPL with Windows?

2012-06-24 Thread Jacobo Polavieja
On Sunday, June 24, 2012 11:27:44 PM UTC+2, Charlie Griefer wrote: > > On Sun, Jun 24, 2012 at 11:20 AM, Jacobo Polavieja > wrote: > > Hi there, > > > > My current development environment is that: Sublime Text 2 editor with > > the fabulous SublimeREPL plugin

Anyone using Sublime Text 2 + SumblimeREPL with Windows?

2012-06-24 Thread Jacobo Polavieja
Hi there, My current development environment is that: Sublime Text 2 editor with the fabulous SublimeREPL plugin to be able to copy code into the Clojure REPL. As absurd as it may seem... I can't find the combination of keys to send functions or selected code to the REPL. It's supposed to be t

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-24 Thread Jacobo Polavieja
On Saturday, June 23, 2012 12:43:38 AM UTC+2, wingie wrote: > > Since you love FP I wanted to mention another option: > > LiveScript > > > http://gkz.github.com/LiveScript/blog/functional-programming-in-javascript-using-livescript-and-prelude-ls.html > http://gkz.github.com/LiveScript > http://gkz.

Re: Is there a reason why 'some' returns "nil" instead o "false"?

2012-06-14 Thread Jacobo Polavieja
Thank you both! I had the epiphany now and realized it is what you both stated. But you had already answered! So quick :). I think I've tried too run too much and have read through too fast. All morning setting up Clojure and learning Clojure. It's fun but my brain may now need some rest... Th

Is there a reason why 'some' returns "nil" instead o "false"?

2012-06-14 Thread Jacobo Polavieja
Hi! I've just started learning Clojure today. I've started reading "Clojure - Functional Programming for the JVM" ( http://java.ociweb.com/mark/clojure/article.html ). Anyway, on the collections part ( http://java.ociweb.com/mark/cloj

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-14 Thread Jacobo Polavieja
El jueves, 14 de junio de 2012 14:42:14 UTC+2, Paul deGrandis escribió: > > > I've been building out substantial ClojureScript apps for a few months now. > Previously I had written an HTML5 game engine, so I'm no stranger to lots > of JavaScript. > > My CLJS code base is smaller, easier to organiz

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-14 Thread Jacobo Polavieja
El jueves, 14 de junio de 2012 08:39:19 UTC+2, Kevin Lynagh escribió: > > > >> As to your first point and only to clarify, had you made it a wrapper for >> D3 and in a node.js application, there would still be no problem in using >> it server-side, am I right? >> > > Unfortunately, no---D3 requir

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-13 Thread Jacobo Polavieja
El jueves, 14 de junio de 2012 03:18:29 UTC+2, Kevin Lynagh escribió: > > Jacobo, > > Using JavaScript from ClojureScript is very straightforward. > There are a few points where interop is awkward, but that wasn't the main > reason I wrote a new library (in Clojure). > > There were two primary mot

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-13 Thread Jacobo Polavieja
El jueves, 14 de junio de 2012 02:28:23 UTC+2, thenwithexpandedwingshesteershisflight escribió: > > > 1. I suppose you can't call any Java library from ClojureScript if you >> want it to compile to JS. Can you call any Clojure library and have it >> translated? >> > > If you want to use existing

ClojureScript instead of CoffeeScript for complete web app development?

2012-06-13 Thread Jacobo Polavieja
Hi all, I've always developed desktop apps with the typical C/C++/C# stack and I was willing to delve into web development. I really don't like Javascript so I thought to give CoffeScript with node.js a chance, but as I love functional programming the idea of using Clojure/Clojurescript for EVE