clojure web developer job offer

2013-01-31 Thread Vagif Verdi
Our company is looking for a full time or consultant developer.

The job is to maintain and continue actively develop web application / 
internal webservices written in clojure.

We use compojure web framework, darcs for repository.

Remote work via ssh is ok.

Haskell knowledge is a big plus. We have internal web services written in 
haskell.

We are located in San Dimas, CA. But relocation is not necessary.

Requirements: good grasp of functional programming, at least one year of 
production coding with clojure or haskell.

Contact me if intrested.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Language shoutout clojure code does not have types

2011-09-18 Thread Vagif Verdi
Check for example this code:
http://shootout.alioth.debian.org/u64q/program.php?test=pidigitslang=clojureid=1

It is slower than scala 8 (!!!) times.
But peppering it with types can easily bring it on par with java/
scala.

Any takers ?

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Job position for haskell/clojure dev. in San Dimas, CA

2011-06-20 Thread Vagif Verdi
Anyone interested in full time employment working with haskell and
clojure in San Dimas, CA (local job only, NO telecommute) please let
me know.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Job position for haskell/clojure dev. in San Dimas, CA

2011-06-20 Thread Vagif Verdi
Sorry, forgot to mention, and i already got questions about it. No
worker visa sponsorship, no relocation from abroad. US only.

On Jun 20, 2:36 pm, Vagif Verdi vagif.ve...@gmail.com wrote:
 Anyone interested in full time employment working with haskell and
 clojure in San Dimas, CA (local job only, NO telecommute) please let
 me know.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Emacs setup - quick navigation to files and definitions

2011-06-12 Thread Vagif Verdi
What do you mean by navigation ? Slime supports jumping to function
definition (Alt-.) and back (Alt-,) And this works not only in your
own code but also in all contrib libraries.
So what else do you need ?


On Jun 12, 6:50 pm, yair yair@gmail.com wrote:
 Hi,

 With swank and slime all set-up along with CDT, further improved by
 slime autocomplete, my emacs setup is getting pretty close to being a
 full featured, highly clojure focused IDE.  One thing I am struggling
 with while working on a larger than usual project (i.e. 7 source files
 some of which have 200-300 lines) is quickly navigating between source
 files and the definitions within them.  I took a look at CEDET but it
 seemed a bit overwhelming, and I wasn't sure the effort would be worth
 it as I couldn't tell if clojure would then be supported within it.

 So, which plugins do you use in emacs for navigating between clojure
 source files and definitions?

 Thanks

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: ANN: Logos v0.6 - Pattern matching, Tabling, Disequality Constraints, and now on Clojars

2011-04-11 Thread Vagif Verdi
Can it be used as an inference (rule) engine ?


On Apr 9, 2:27 pm, David Nolen dnolen.li...@gmail.com wrote:
 Logos is finally in good enough shape to be worth publishing to Clojars.
 There are really too many changes to enumerate here, but if you're familiar
 with Prolog, Logos is now far enough along that you can basically write
 Prolog in Clojure and then some. Here's the evidence:

 (defn-e nqueens-o [l]
   ([()])
   ([[[?x ?y] . ?others]]
      (exist []
       (nqueens-o ?others)
       (member-o ?y [1 2 3 4 5 6 7 8])
       (noattack-o [?x ?y] ?others

 (defn-e noattack-o [q others]
   ([_ ()])
   ([[?x ?y] [[?x1 ?y1] . ?others]]
      (exist []
       (!= ?y ?y1)
       (nonrel/project [?y ?y1 ?x ?x1]
                       (!= (- ?y1 ?y) (- ?x1 ?x))
                       (!= (- ?y1 ?y) (- ?x ?x1)))
       (noattack-o [?x ?y] ?others

 The big changes are:

 * Pattern matching
 * Goals can be tabled a la XSB
 * Fairly efficient implementation of disequality constraints (and programs
 w/o constraints are not penalized)

 I've been begun porting some examples from Bratko's excellent Prolog book as
 a guide for those who are interested 
 herehttps://github.com/swannodette/bratko-logos.

 A note on performance: when the search space is not small Logos doesn't
 perform as well as Prolog since it uses an interleaving strategy, and this
 interleaving is currently implemented via liberal thunking. While I'm
 interested in making Logos faster, I think many of the kinds of search
 problems that are currently slower in Logos than in Prolog are best solved
 with Constraint Logic Programming anyhow - which is the next major feature
 for Logos.

 Enjoy,
 David

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Monad Lessons

2011-03-10 Thread Vagif Verdi
Jim, i assume you are familiar with haskell (monads - haskell :))

So my question is, can you describe the difference in working with
monads in dynamic language (clojure) with working with monads in
haskell.
From my own experience i would say that without a firm help from
typing system i would struggle with monads in clojure. Heck i struggle
with them even in haskell :)


On Mar 9, 11:15 am, jim jim.d...@gmail.com wrote:
 I gave a talk at CodePaLOUsa on monads and got some favorable
 feedback. So I thought I'd offer to do a live training session on
 monads using pretty much the same material, but at a shared REPL
 rather than with slides.

 How it would work is I would start a Skype conference for 5 to 10
 people. We would also all log in to a tmux session where I would show
 the examples and their results.

 So, my question is how many would be interested in such a session?
 This would be a basic introduction to monads. Future session could be
 about more advanced monad topics, if there was a demand for that.

 Jim

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Deflayout - define Swing UI declaratively

2011-02-03 Thread Vagif Verdi
It would be better if your macro would accept maps and vectors,
because those can be prepared somewhere else and passed around as
parameters. Your current macro allows only hardcoding.

On Feb 3, 4:23 pm, Alexander Yakushev yakushev.a...@gmail.com wrote:
  (deflayout frame
  {:west gamepanel
  :east (deflayout sidepanel
  [nextpanel (JButton. Exit)] :flow :trailing))

 Actually I thought about something like that, but then I decided to come
 up with something at least a bit uniform.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: which IDEs are you all using?

2011-01-09 Thread Vagif Verdi
Jumping to the definition of function: Alt-.
Returning back Alt-,

All other (and much more) features are implemented in slime (emacs
package).

On Jan 9, 11:01 am, Alex Baranosky alexander.barano...@gmail.com
wrote:
 Hi,

 I'm most used to using Intellij, since it is what I use everyday at work
 programming in Java.  So my first forays into Clojure have been using
 LaClojure.  Some things I like about using Intellij for Clojure development
 are:

    - I can click on a piece of code and have Intellij take me to the file
    where that code is defined, even if I didn't write it; this means I can
    click right through into clojure.core and read the source.
    - It also has a nice rainbow parens feature which I find helps with
    visually parsing the Clojure code.
    - And of course Intellij has a LOT of keyboard shortcuts to help with
    manipulating the text.
    - I also like to change the color scheme, I assume emacs allows you to
    use a self-created color scheme?

 I've been considering switching to Emacs because it seems to be the de facto
 standard for the community.  Does emacs have the equivalent of these four
 features?  If not, does it have their equivalents?

 On another note, I'd also love to hear what features Emacs would give me
 that LaClojure doesn't enable.

 All the Best,
 Alex

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Vagif Verdi
Haskell has aha moments too. And it is not lisp.

The definition of lisp i accept is much simpler and much more
obvious: source code of the program is a valid data  structure in that
language.

On Dec 19, 11:33 am, Tim Daly d...@axiom-developer.org wrote:
   There have been discussions, here and elsewhere, about
 whether Clojure is a Lisp. Lots of discussion centers
 around facts like homoiconicity, or the REPL, or the
 debate of Rich's redefinition of lisp primitives, etc.
 These are arguments about the paint on the palace.

 I have struggled with this question and I believe I found
 the answer that satisfies me that Clojure is a Lisp. The
 answer is that getting Clojure involves an ah-hah!
 moment.

 The most fundamental thing about Lisp is that there is
 this universal but personal event when you suddenly
 get it. This does not seem to happen with other languages.
 There is a distinct before vs after when you suddenly
 internalize the language and IT changes YOU.

 I recently felt that moment with Clojure.
 Did anyone else experience the ah-hah!?

 Tim Daly

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Clojure 1.3 Alpha 4

2010-12-13 Thread Vagif Verdi
Maybe clojure should adopt linux versioning scheme, where even numbers
are stable production clojure and odd numbers are development branch ?


On Dec 12, 7:09 pm, Stuart Halloway stuart.hallo...@gmail.com wrote:
 Clojure 1.3 Alpha 2 is now available at

        http://clojure.org/downloads

  0 Changes from 1.3 Alpha 3 to 1.3 Alpha 4
  1 Changes from 1.3 Alpha 2 to 1.3 Alpha 3
  2 Changes from 1.3 Alpha 1 to 1.3 Alpha 2
  3 Changes from 1.2 to 1.3 Alpha 1
  4 About Alpha Releases

 = 0 Changes from 1.3 Alpha 3 to 1.3 Alpha 4

   * normalized unchecked-* fn names
   * added *unchecked-math* support
   * fixes to binding conveyance (and *agent*)

 = 1 Changes from 1.3 Alpha 2 to 1.3 Alpha 3

   * fixed filter performance issue introduced in 1.3A2
   * with-redefs macro (useful for stubbing)
   * print-table

 = 2 Changes from 1.3 Alpha 1 to 1.3 Alpha 2

   * code path for using vars is now *much* faster for the common case,
     and you must explicitly ask for :dynamic bindability
   * new: clojure.reflect/reflect
    http://dev.clojure.org/display/design/Reflection+API
   * new: clojure.data/diff

 = 3 Changes from 1.2 to 1.3 Alpha 1

   * enhanced primitive support
     (http://dev.clojure.org/display/doc/Enhanced+Primitive+Support)
   * better exception reporting
   * ancillary namespaces no longer auto-load on startup:
     clojure.set, clojure.xml, clojure.zip

 = 4 About Alpha Releases

 1.3 is the first release of Clojure that will include a series of
 alpha builds. We are adding these builds to support maven and
 leiningen users, who want a specific artifact that they can target (as
 opposed to building from master or moving-target snapshots).

 If you are the kind of person who used to track master by building
 from source, but no longer do so because you are using maven or
 leiningen, alpha releases are for you.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Function Design: sequence or argument?

2010-11-16 Thread Vagif Verdi
On Nov 15, 8:52 am, Chris christopher.ma...@gmail.com wrote:
 If you have a function that needs to treat multiple arguments as a
 group, what forces drive you to represent this as a single sequence
 argument vs. an  argument?  To give a concrete example, why does
 + work like

 (+ 1 2 3 4)

 instead of

 (+ [1 2 3 4])

 Is it performance?  Aesthetics?  Composability concerns?  Not having
 to call apply all the time?

 Thanks,
 Chris

The  form is a syntax helper. In other words it is intended to
change the source code, not to change the way you program. Thus you
have to look at the intended use of the function.
If you are going to type different number arguments to a function
right in the code yourself, then use . If you are going to get the
arguments for that function at runtime, then use a single argument.
Examples: map, filter, reduce.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Flex as a Clojure Frontend

2010-08-15 Thread Vagif Verdi
Yes, I have a flex app, talking to compojure backend via JSON.

On Aug 14, 12:40 pm, nchubrich nchubr...@gmail.com wrote:
 I'm wondering if anyone has any experience developing Clojure
 applications with a Flex interface, and if so, what is the best way of
 going about it.

 I also wonder if anyone has used Las3rI'm a little reluctant to
 use it because the Flash Builder programming environment is so
 effective.

 Thanks,

 Nick.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Interest Inquiry

2010-07-26 Thread Vagif Verdi
On Jul 26, 6:34 am, jim jim.d...@gmail.com wrote:
 One thing I'd like to do is implement a business rules engine in
 Clojure running the Rete algorithm or something similar. Sort of a
 Drools in Clojure.

Wouldn't it be easier to implement clojure scripting for Drools ? As
far as i know Drools allows several scripting options for it's rules
definitions.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Interest Inquiry

2010-07-26 Thread Vagif Verdi
Back in the days when i was using common lisp (sbcl) i used this
inference engine: http://lisa.sourceforge.net/

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Why I have chosen not to employ clojure

2010-03-22 Thread Vagif Verdi
I'm happy that this guy self eliminated himself from clojure
community. But experience tells me not to be so  sure. His kind tends
to come back and unfortunately is very persistent.

If downloading couple of jar files and dropping them into the
classpath is too much for him, then he is definitelly a java noob.
Imagine him advising his clients never use java :))

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: Zip function

2010-03-13 Thread Vagif Verdi
In clojure map works like zipWith.
So you can pass to it vector if you want just plain zip: (map vector
colls)

That makes making a special named function unnesessary.


On Mar 13, 6:55 am, Marmaduke mmwood...@gmail.com wrote:
 Hello,

 I'm new to Clojure, but in other languages, zip is a workhorse, and I
 didn't find it, so I

 (defn zip [ ss]
   (partition (count ss) (apply interleave ss)))

 but because I didn't find it, I am suspicious: is there a better way?

 Marmaduke

 ps. As a first-poster: thanks to Rich Hickey and Stuart Halloway for
 the language and the book, respectively.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: ANN: Fleet — templating system

2010-02-23 Thread Vagif Verdi
Years of using ASP and JSP convinced me that writing markup and code
in the same file is evil.

That's why i prefer StringTemplate. It is perfectly usable with
clojure and accepts clojure maps, yet it does not allow you to
incorporate arbitrary code into your templates. Everyone is happy,
especially designers.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


function that converts argument into a single value vector.

2010-02-16 Thread Vagif Verdi
I often find myself creating one line helper functions that i use very
often just because it is easier to write them than try to find them in
contrib.

Here's one:
(defn- to-list [x] (if (vector? x) x [x]))

This one is often needed when working with html form fields.

Is there such a function in contrib ?

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Sessions for Ring

2010-02-03 Thread Vagif Verdi
Whatever you guys chose, do not go the immutable road. Compojure took
that approach and now many people (including me) are stuck with
situations where they need to update session in a middle and pass it
somewhere else, and they can't. Session is a data storage, just like a
database.

One of the strong points of compojure is the layers of middleware.
Unfortunately there's no way to communicate between the layers,
because current session updating mechanism makes it impossible. You
cannot use the session to signal to the middleware that this
particular case requires different handling.

So one has to resort to communicating through other shared data
storages like database and then practically duplicate the session
mechanism.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Sessions for Ring

2010-02-03 Thread Vagif Verdi
On Feb 3, 7:18 pm, James Reeves weavejes...@googlemail.com wrote:
 On Feb 3, 8:44 pm, Vagif Verdi vagif.ve...@gmail.com wrote:


 This again is something that's limited to Compojure, and not
 necessarily indicative of a problem with the functional approach.

I agree. As long as session implementation is robust and simple to use
without corner cases it does not really matter for me how they are
implemented internally.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Suggestion: Get rid of java.lang.Exception: EOF while reading..

2010-01-27 Thread Vagif Verdi
+1 for paredit. Writing lisp without an IDE geared towards the
language is miserable. Bracket matching is a must-have feature for
lisp programmer. Higher in importance than anything else.


On Jan 27, 9:48 am, Jarkko Oranen chous...@gmail.com wrote:
 You should really give paredit.el a go some time. It feels silly to
 worry about matching parentheses nowadays.

 That aside, I am supportive of any improvement in either compiler or
 reader error messages.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Clojure + Redis

2009-12-30 Thread Vagif Verdi
There are other NoSQL datastores written in java, like Voldemort.
Perhaps if you investigate them, you will find one that will be much
easier to integrate with clojure.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Google-collections

2009-12-30 Thread Vagif Verdi
I wonder if just released http://code.google.com/p/google-collections/
google-collections java library could be of any use to clojure
implementation ? They have there High-performance immutable
implementations of the standard collection types and many other
goodies.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Why use monads

2009-12-27 Thread Vagif Verdi
On Dec 22, 2:10 pm, jim jim.d...@gmail.com wrote:
 Chouser,

 You're right that maybe-comp is simpler. Once you realize that the
 functions you want to compose are monadic functions under the maybe-m
 monad, you get that composition for 'free', with no further mental
 effort.

Except different types of monads do not compose, so you have to create
another artificial structure called monad transformers. And these new
structures introduce so much new artificial complexity that any
possible simplification becomes a moot point.

This fact is realized even in haskell community:
http://lambda-the-ultimate.org/node/2749#comment-41078

I'd say that monads add way too much complexity in most cases.
Especially in impure languages where you can do many things much
simpler than involving monads.


-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Bert Clojure Implementation

2009-12-18 Thread Vagif Verdi
FYI
There a binary protocol library http://hessian.caucho.com/
It is pure java, supports all the primitives BERT has, has bindings to
many languages including Python, Ruby, Erlang, even Flash. And of
course because it is java, it is readily available from clojure.

It also supports streaming of course.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Parenthesis Inference

2009-12-18 Thread Vagif Verdi
Welcome to the big club of people who in last 50 years came up with a
brilliant idea to fix lisp.

As for Ten parentheses, i do not see a single one. Noone notices
starting parens because they are markers saying this is a function.
And of course noone notices ending parens because they are for your
IDE, not for the human.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Parenthesis Inference

2009-12-18 Thread Vagif Verdi
On Dec 18, 4:59 pm, Martin Coxall pseudo.m...@me.com wrote:
 But I'm trying to think of it from the point of view of Joe Q. Coder, who 
 will take one look at our beloved elegant, expressive Clojure, see all the 
 parens and run screaming.

Let James Gosling worry about Joe Q. Coder. He does a very good job at
that. Do you think HP worries that soccer moms will not use their
Engineering Calculators ?

 Who is the intended audience of Clojure? Is it other Lispers? Or other Java 
 programmers?

The intended audience are Software Engineers. Not the people who hide
behind this-is-not-intuitive their lack of willing to learn the most
effective way to spend their professional life.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Switching off lazyness

2009-10-02 Thread Vagif Verdi

This is not a suggestion or anything, just entertaining myself with
some uneducated thinking.

What if all lazy functions (map filter etc) would check some global
value and decide upon it lazyness ? Then we could do something like
this:

(eager
   (map ...(filter ...)))

That would allow to not to pay lazyness penalty in some cases.

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Switching off lazyness

2009-10-02 Thread Vagif Verdi



On Oct 2, 1:37 pm, Meikel Brandmeyer m...@kotka.de wrote:

 You can do so by with doall:

      (doall (map ... (filter ...)))


Unfortunately this is not true. Yo are paying penalty for lazyness in
this case.

Try it yourself. Write non lazy versions of map and filter and time
them against standard ones.

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: clojure-mode survey

2009-09-11 Thread Vagif Verdi

I use clojure-mode with slime. But i did not use clojure-install.

I also do not run clojure from within emacs. I run it via script, and
then connect to it via slime-connect.

I prefer it much more than clojure-install, because i have a control
over where my clojure and other libraries are resided.

Besides i do not need to run emacs in order to run my clojure web
server. I can connect/disconnect to it anytime and from any machine i
like.

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: When to use macros

2009-08-30 Thread Vagif Verdi

I would argue that macros always should be syntax wrappers for
functions. Coding the logic into a macro in most cases is a mistake.
So first write the function that does the work. Then write a macro
that simplifies a syntax to call that function.

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: How to migrate definitions to another namespace ?

2009-08-29 Thread Vagif Verdi

Thx to all. ns-unmap and remove-ns are what i need.

From my CL experience i was looking for something like unitern.
--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



How to migrate definitions to another namespace ?

2009-08-28 Thread Vagif Verdi

I often refactor my code and move some functions to new modules.
Unfortunately i cannot load them, because clojure says that function
with such name is already loaded from another namespace. I could not
find nothing better but to close my clojure session (which means bring
down the web server) and start it back again.

Is there a way to unregister some names from a namespace without
reloading it ?

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: clojure vs scala

2009-08-25 Thread Vagif Verdi

On Aug 25, 7:37 pm, Alan Busby thebu...@gmail.com wrote:
 Reducing it further, I'd be interested just to hear more about the contrast
 of static typing versus macros. Which is more beneficial for different
 situations and why?

I fail to see how macros can be contrasted to static typeng. They are
orthogonal. Here's and example of statically typed language (liskell)
with lisp syntax and full blown lisp macros:
http://blog.clemens.endorphin.org/2009/01/liskell-standalone.html

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: New string utilities library ready

2009-08-19 Thread Vagif Verdi

I'm using str-utils2 for a couple of months now. Do not care about the
old library.

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: enhancement request: a simple way to read a file

2009-08-07 Thread Vagif Verdi

Try contrib library duck-streams.

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: a better reductions?

2009-08-07 Thread Vagif Verdi



On Aug 7, 1:23 am, Daniel Lyons fus...@storytotell.org wrote:
 This is the difference between FreeBSD and NetBSD. I agree, but I also  
 find it useful to crack open core and contrib to see coding examples  
 and to understand algorithms.

I'd suggest to include into library for teaching purposes variants of
unoptimized functions with a suffix -naive. Say reduction-naive.
This way you could have both beautiful algorithm for teaching
purposes, and optimized function for practical purposes.


--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Reflection warning: reference to field getClass can't be resolved.

2009-08-04 Thread Vagif Verdi

When reflection warning is on, i get 2 warnings on every my file:

reference to field getClass can't be resolved.
reference to field getClassLoader can't be resolved.

Is this something i should be worried about ?

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Transient Data Structures

2009-08-03 Thread Vagif Verdi

On Aug 3, 1:52 pm, luke luke.vanderh...@gmail.com wrote:
 So you could easily wrap an entirely functional code block
 in a transform-to-transient macro that translates the functions to
 their transient counterparts, and gain all the performance benefits?

I do not think it would be that easy. Transient mode cannot be used
with lists and sequences, only with some particular data structures,
like vectors. Your macro would need to know at compile time types of
variables.

I think this is the case when dynamic nature of clojure prevents us
from teaching a compiler to do sophisticated performance optimizations
and forces a programmer to do them manually instead.

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



What happened to clojure.contrib web site ?

2009-08-03 Thread Vagif Verdi

There was this awesome browsable list of clojure libraries with short
description of each, list of functions and even links to source.

Now it all replaced with link to github.

Please bring the user friendly and easily browsable documentation
back!

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: What happened to clojure.contrib web site ?

2009-08-03 Thread Vagif Verdi



On Aug 3, 6:19 pm, ataggart alex.tagg...@gmail.com wrote:
 Here's the well-hidden, auto-generated docs for clojure-contrib:

 http://richhickey.github.com/clojure-contrib/


Thx. That's what i've been looking for.

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Clojure without Rich Hickey

2009-08-01 Thread Vagif Verdi

Today i saw the announcement
http://groups.google.com/group/Qilang/browse_thread/thread/592773c562017d87
that the creator and maintainer of  another modern lisp dialect Qi
closed the shop and went to India.
The effect on Qi was so drastic that the Qi community are discussing
right now which languages to port it over, clojure being one of the
options.

Since i'm using clojure in my business i got worried at a sudden
thought what would happen to clojure if Ruch calls it a day.



--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Grails And Clojure

2009-07-19 Thread Vagif Verdi

Before creating clojure Rich Hickey tried several times to marry
Common Lisp and java:

http://jfli.sourceforge.net/
http://foil.sourceforge.net/
http://lisplets.sourceforge.net/

He spend lots of time and effort to come to realization that something
like clojure is nesessary.

Maybe it is time to use your experience in creating web frameworks and
start a new one, on clojure. Crails :)



--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Grails And Clojure

2009-07-19 Thread Vagif Verdi

On Jul 19, 9:49 am, Wilson MacGyver wmacgy...@gmail.com wrote:
 There are already two webframework in clojure being developed.  
 Compojure and cascade. While I'm eagerly waiting to see how these two  
 and others will envole

Not much to wait there. Compojure is quite stable and feature rich
now. It is a low level web framework. You have to explicitly manage
urls and code html by hand, using their html combinatorics library.
There's nothing wrong with being a low level web framework. You
certainly can build up upon it. I'm currently migrating our web
application from plain java servlets to compojure.

Cascase is not even a web framework yet. It is a toy. And sadly from
what i've seen so far, it took the same path as compojure: explicitly
dealing with urls and manually building html pages with its own
library. No high level object/widget approach a-la Seaside, Weblocks,
Rails etc.
So there's a space for different kind of web frameworks in clojure
ecosystem.
--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Grails And Clojure

2009-07-19 Thread Vagif Verdi

On Jul 19, 4:19 pm, Howard M. Lewis Ship hls...@gmail.com wrote:
 You seem to have a better idea of what's going in in Cascade than I
 do, and I'm the one writing it.  Please be patient.

I was replying to the author of the thread who said there are 2
clojure web frameworks. Cascade could very well become a great web
framework. But it is a toy right now. As for being patient, i'm not in
a hurry.
--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Reddit discussion on lazy lists faster than eager

2009-07-15 Thread Vagif Verdi

I got into funny discussion about speed of lazy lists versus eager
lists in clojure:

http://www.reddit.com/r/programming/comments/91ha3/how_to_start_using_lisp_at_work/c0b44xp

I did this small example to test it:

user (time (dorun (map #(+ % 1) (map #(+ % 1) (map #(+ % 1) (repeat
100 7))
Elapsed time: 1588.133219 msecs
nil
user (time (dorun (map #(+ % 1) (doall (map #(+ % 1) (doall (map #(+
% 1) (doall (repeat 100 7)
Elapsed time: 4953.661747 msecs
nil

What do you guys think about discussion ?

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Java STM

2009-07-12 Thread Vagif Verdi

Potentially interesting library for clojurians. Java STM
implementation: http://www.deucestm.org/

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Questions / guidelines for adopting Clojure

2009-07-08 Thread Vagif Verdi

On Jul 7, 4:08 am, Roman Roelofsen roman.roelof...@googlemail.com
wrote:
 * Parametrization of function groups *

 Lets say I have a bunch of functions that provide database operations
 (read, write, delete, ...). They all share information about the
 database the operate on. In an OO language, I would define these
 methods in the same class and an instance variable would define the
 database. The advantage is, that the caller side does not need to be
 aware of the database name. I can create an instance somewhere and
 pass around the object.

For this particular case i just create a simple macro with-db, that
behind the scenes passes a premade db connection info into with-
connection macro.

So the actiual usage looks very simple and clean:

(with-db (sql-val [select name from author where id = ? 123]))


--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Awkward Booleans from contrib.sql

2009-07-01 Thread Vagif Verdi

Here's some warts, when working with boolean fields from sql
databases.

(if (with-db (sql-val [select convert(bit, 0)])) Yes, no)

will return Yes. This is because contrib.sql returns java Booleans,
not clojure tru/false.

(if (= false (with-db (sql-val [select null]))) Yes, no)

will return no. This is because null is not false in clojure.

So the only way to correctly deal with booleans from sql databases is
to explicitly test for true:

(if (= true (with-db (sql-val [select null]))) Yes, no)

or
(if (not (= true (with-db (sql-val [select null] Yes, no)

That's awkward, especially for those of us, coming from Common Lisp.


--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Awkward Booleans from contrib.sql

2009-07-01 Thread Vagif Verdi

I just got an advise from IRC to use (boolean x).
Problem solved :)

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Differences between 'compiled', 'clojure interpreted', 'clojure in a jar in classpath' and 'load'

2009-06-25 Thread Vagif Verdi

On Jun 25, 8:29 am, Stuart Sierra the.stuart.sie...@gmail.com wrote:
 So AOT-compilation makes the code slightly faster to *load* when your
 application starts, because it doesn't have to compile the code on the
 fly.  But Clojure compiler is very fast, so the difference is barely
 noticeable.

Actually i tried to load compojure web framework from sources and it
is much slower than from precompiled jar. And compojure is not even
that of a big project.

For web applications maybe it is not a big deal. I mean how many times
a day you start a web application ?
But for big desktop applications i think it is worth to compile at
least for production use.

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: A website written using Clojure.

2009-06-25 Thread Vagif Verdi

What server are you running it on ? Tomcat ?

There's a compojure web framework that already has html combinator
library.
Check it out here: http://preview.compojure.org/docs

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Poll for a new name for clojure eclipse plugin 'clojure-dev'

2009-06-23 Thread Vagif Verdi

Clojure, enclojure, compojure, conjure... I say enough with jure
already.
There are lot's of beautiful project names like Tapestry, Wicket,
Hunchentoot, that do not include parts of the programming language
name they are written in.

How about a normal word, like Eclair ?

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: What are people using Clojure for?

2009-06-18 Thread Vagif Verdi

On Jun 18, 8:39 am, Howard Lewis Ship hls...@gmail.com wrote:
 I am having fun learning it by creating a simple web framework.

Howard, that's interesting to hear from a Tapestry creator.

I'm in a process of preparing to write a web application with clojure
web framework compojure. But if you have something usable, I'd love to
check it out before i made my decision.

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: filter on sequence

2009-06-02 Thread Vagif Verdi

On Jun 2, 7:55 am, Andrew Wagner wagner.and...@gmail.com wrote:
  You can use destructuring in your predicate's arg list:

  Not to hijack the thread but...is there some reason clojure doesn't just
 just call this pattern-matching? Is it different somehow?

Pattern matching matches not only structure but also values.

For example
 foo 5 = 0
 foo 7 = 1
 foo x = x * 2


--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Instructions for Emacs+SLIME

2009-05-30 Thread Vagif Verdi

I would greatly appreciate instructions how to setup emacs to connect
to already running clojure.
--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Is oracle going to make the jvm part proprietary?

2009-05-30 Thread Vagif Verdi

Fear not. G1 is in Open-JDK, so no one can forbid you use it anyway
you see fit.
The clause in EULA is simply a lawyer talk, to cover their asses if
someone uses experimental feature in production and looses his data or
crashes server.

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Currying / Partial Application macro

2009-05-29 Thread Vagif Verdi



On May 27, 11:57 pm, kinghajj kingh...@gmail.com wrote:
 Example:
 (def add5 ($ + 5))

 (add5 3)

I love partial application in haskell. But do not see the need for it
in clojure with its succinct syntax for anonymous functions:

(def add5 #(+ 5 %1))

(add5 3)

Besides clojure's anonymous function syntax allows you to replace any
argument, not just the last one, like your partial macro.

--~--~-~--~~~---~--~~
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: La Clojure plugin for IntelliJ IDEA updated

2009-05-20 Thread Vagif Verdi

Do you have plans to add connect/disconnect to existing running Repl
over the network ?
Emacs has this mode with slime and it is very handy in developing web
applications.

--~--~-~--~~~---~--~~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Saving the Clojure.org webiste

2009-05-19 Thread Vagif Verdi

i saved it with wget and then fixed the files with sed to point to
right resources and urls.

--~--~-~--~~~---~--~~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



list vs vector

2009-05-15 Thread Vagif Verdi

What are the use case scenarios where one is preferable to the other
in clojure ?

It looks to me like vectors almost completely overtake lists for all
purposes.
--~--~-~--~~~---~--~~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Slime integration

2009-03-23 Thread Vagif Verdi

When i use slime with lisp, it shows me function parameters, when
cursor is on a function name. But with clojure it only shows me
Evaluation Aborted. Is this because that feature not implemented, or i
setup  something wrong ?

--~--~-~--~~~---~--~~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: filter1 interesting?

2009-03-18 Thread Vagif Verdi

The power of functional programming is in small number of orthogonal
functions. I'm afraid all these combination functions will quickly
transform clojure into php.
Besides it introduces several ways to do the same thing - more
confusion (especially to newbies).
Instead of littering the language with dothis-thendothis functions, i
propose to add a compose operator like in haskell
(. [first filter] ...)


--~--~-~--~~~---~--~~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: filter1 interesting?

2009-03-18 Thread Vagif Verdi

On Mar 17, 11:50 pm, Laurent PETIT laurent.pe...@gmail.com wrote:

 The comp function in clojure.core does just this.

I know about comp function. I was talking about introducing a special
syntax for it.
Since one of the fundamental techniques of functional programming is
composing chains of functions, clojure should have first class support
for this, just like it does for sequences. Then we wouldn't have waste
our time on long discussions how to save 3 letters.

--~--~-~--~~~---~--~~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: filter1 interesting?

2009-03-11 Thread Vagif Verdi

Is (first (filter ..) lazy like in haskell ?
I would hate to wait for filter to get all results just to throw them
out and pick the first one.

--~--~-~--~~~---~--~~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---