Re: generic math, comparator and arithmetic libs

2011-09-01 Thread Konrad Hinsen
On 31 août 11, at 17:04, Sam Aaron wrote: is anyone aware of any plans to move Konrad Hinsen's generic math, comparator and arithmetic libraries to new separate 1.3 contrib libs? * http://richhickey.github.com/clojure-contrib/generic.math-functions-api.html * http://richhickey.github.com/cloj

Aw: Re: is there a 4Clojure forum anywhere?

2011-09-01 Thread finbeu
joined the group and posted! Thx for setting it up. - Finn -- 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

Re: generic math, comparator and arithmetic libs

2011-09-01 Thread Sam Aaron
Hi Konrad, that's great news :-) Thanks for such a useful set of libraries. Oh, and whilst we're on the subject, is there any reason why generic.comparison doesn't include != Sam --- http://sam.aaron.name On 1 Sep 2011, at 08:29, Konrad Hinsen wrote: > On 31 août 11, at 17:04, Sam Aaron wrot

Re: generic math, comparator and arithmetic libs

2011-09-01 Thread Alan Malloy
I don't see any reason for it to include !=, which can be implemented as (not (= a b)). Conversely, <= could be implemented as (or (< a b) (= a b)), but if either of those is expensive operations he gives you a chance to do a more-optimized <=. There's not much point in forcing people to implement

Re: generic math, comparator and arithmetic libs

2011-09-01 Thread Sam Aaron
On 1 Sep 2011, at 09:35, Alan Malloy wrote: > I don't see any reason for it to include !=, which can be implemented > as (not (= a b)). Conversely, <= could be implemented as (or (< a b) > (= a b)), but if either of those is expensive operations he gives you > a chance to do a more-optimized <=. T

how to create a ordered data structure which would efficiently return the element before and after it

2011-09-01 Thread Sunil S Nandihalli
Hi Everybody, I would like to create a sorted-data-structure which would enable me to efficiently 1. insert new elements into it maintaining the sorted-nature of the data structure. 2. query as to which element is immediately before and after a value that I present. one can assume that the value

Re: how to create a ordered data structure which would efficiently return the element before and after it

2011-09-01 Thread Sunil S Nandihalli
I seem to miss the c++ stl library where it would be trivial to do this! Sunil. On Thu, Sep 1, 2011 at 3:43 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Everybody, > I would like to create a sorted-data-structure which would enable me to > efficiently > > 1. insert new elemen

Re: how to create a ordered data structure which would efficiently return the element before and after it

2011-09-01 Thread Sunil S Nandihalli
I really feel sorted-set should have something to achieve what I want .. but don't seem to find it.. On Thu, Sep 1, 2011 at 3:53 PM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > I seem to miss the c++ stl library where it would be trivial to do this! > Sunil. > > > On Thu, Sep 1, 20

Re: how to create a ordered data structure which would efficiently return the element before and after it

2011-09-01 Thread David Powell
On Thu, Sep 1, 2011 at 11:13 AM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Everybody, > I would like to create a sorted-data-structure which would enable me to > efficiently > > 1. insert new elements into it maintaining the sorted-nature of the data > structure. > 2. query as

Re: how to create a ordered data structure which would efficiently return the element before and after it

2011-09-01 Thread Sunil S Nandihalli
Thanks Dave, That did it. I did not know there was rsubseq .. :) Thanks Sunil. On Thu, Sep 1, 2011 at 4:04 PM, David Powell wrote: > > > On Thu, Sep 1, 2011 at 11:13 AM, Sunil S Nandihalli < > sunil.nandiha...@gmail.com> wrote: > >> Hi Everybody, >> I would like to create a sorted-data-structu

Re: JVM 7 support (invokedynamic)

2011-09-01 Thread Laurent PETIT
2011/8/30 Tal Liron > On 08/29/2011 06:01 PM, Aaron Bedra wrote: > > The version of ASM that is bundled in Clojure is very old. This will > likely cause problems. You are correct in looking to ASM 4 since it has > started supported the JSR-292 stuff and other Java 7 changes. I am > planning o

Guidelines for contributing?

2011-09-01 Thread Ralph Moritz
Hi Clojurians! I created my first JIRA issue today (CLJ-834), but I didn't assign it to anyone, because I didn't know who to assign it to! Also, I'm not sure what the procedure is for submitting code - do you generally post to this group & JIRA or just create an issue? Any guidelines would be welc

Re: Problem with ClojureScript + Node.js

2011-09-01 Thread Javier Neira Sanchez
Hi, i'm using clojurescript, node.js 0.4.11 (with npm) on windows vista with some basic examples (https://github.com/jneira/clojurescript-desk) and works fine for me (although it would be nice to have all node.js globals (http://dev.clojure.org/jira/browse/CLJS-61) in cljs/nodejs. Im follow the

Re: Clojure 1.3 Beta 2

2011-09-01 Thread Isaac Gouy
On Aug 31, 10:07 pm, Andy Fingerhut wrote: > Isaac, all of the programs that fail with Clojure 1.3 now can be made to > compile and run on both 1.2 and 1.3 by changing a relatively small part of > the programs. > > I have them on my computer (and probably checked into the github repo > clojure-b

Re: generic math, comparator and arithmetic libs

2011-09-01 Thread Konrad Hinsen
On 1 Sep, 2011, at 10:35 , Alan Malloy wrote: > I don't see any reason for it to include !=, which can be implemented > as (not (= a b)). Conversely, <= could be implemented as (or (< a b) > (= a b)), but if either of those is expensive operations he gives you > a chance to do a more-optimized <=.

Re: Guidelines for contributing?

2011-09-01 Thread Luc Prefontaine
Look at this: http://clojure.org/contributing Luc P. On Thu, 1 Sep 2011 04:53:20 -0700 (PDT) Ralph Moritz wrote: > Hi Clojurians! > > I created my first JIRA issue today (CLJ-834), but I didn't assign it > to anyone, because I didn't know who to assign it to! Also, I'm not > sure what the pro

clojure and emacs

2011-09-01 Thread labwork07
I do like "lein repl" on the command line. How can I have that in emacs? Basically, if I have a project in Lein, how can I do a (require 'projectname) and have all the libraries loaded in emacs? I'm just using Mx inferior-lisp at this point. I find swank-clojure too complex for right now. Mayb

Re: clojure and emacs

2011-09-01 Thread Paul Nakata
On Thursday, September 1, 2011 10:03:13 AM UTC-7, melipone wrote: > > I do like "lein repl" on the command line. How can I have that in emacs? > Basically, if I have a project in Lein, how can I do a (require > 'projectname) and have all the libraries loaded in emacs? > I'm just using M-x inferi

Re: how to create a ordered data structure which would efficiently return the element before and after it

2011-09-01 Thread Alan Malloy
Well, the two calls to subseq are unpleasant and possibly slow. I was thinking there's a way to write it as a single operation that returns three items, say (subseq s >= (dec 50)) to get the items before and after 50, but of course that doesn't work unless you know 49 is in there, and in that case

Re: how to create a ordered data structure which would efficiently return the element before and after it

2011-09-01 Thread Ken Wesson
On Thu, Sep 1, 2011 at 2:08 PM, Alan Malloy wrote: > Well, the two calls to subseq are unpleasant and possibly slow. I was > thinking there's a way to write it as a single operation that returns > three items, say (subseq s >= (dec 50)) to get the items before and > after 50, but of course that do

http-client and ignoring ssl errors

2011-09-01 Thread John Newman
Hello All, I am trying to add some functionality to http-client. Basically, I need the ability to do get requests on a server while ignoring ssl errors. Once I figure out how to get it working, I'll put it up on github and people can pull it if they'd like. I am working from a fork of http-clie

Top secret clojure project names

2011-09-01 Thread JAX
Hi guys: I assume some of you have "secret" Clojure projects at work, that your bosses don't know about. I was going to suggest that we all decide on a convention for top secret clojure project names... Like maybe soft drink names? That way we can all recognize each other. Anyways... Or Maybe

Re: generic math, comparator and arithmetic libs

2011-09-01 Thread Jason Wolfe
A couple nitpicks: > Right, and that's also the reason why there should be not=, with a default > implementation that does (not (= ...)). It can be expensive to establish > equality for a complex data structure, whereas inequality can be ascertained > at the first difference encountered. In th

Re: Top secret clojure project names

2011-09-01 Thread Sean Corfield
On Thu, Sep 1, 2011 at 2:31 PM, JAX wrote: > Hi guys: I assume some of you have "secret" Clojure projects at work, that > your bosses don't know about. LOL! That would be hard for me - every commit and every ticket update / comment is emailed to the whole project team which includes management :

Re: Top secret clojure project names

2011-09-01 Thread Islon Scherer
I have a big clojure project at work but it's not a secret. It superseded a old java project, the clojure one is 50 times smaller, 10 times faster and bug free. They had no choice but to accept the new one =) On Sep 1, 6:54 pm, Sean Corfield wrote: > On Thu, Sep 1, 2011 at 2:31 PM, JAX wrote: >

Re: Top secret clojure project names

2011-09-01 Thread Ken Wesson
On Thu, Sep 1, 2011 at 5:31 PM, JAX wrote: > Hi guys: I assume some of you have "secret" Clojure projects at work, that > your bosses don't know about. > > I was going to suggest that we all decide on a convention for top secret > clojure project names... Like maybe soft drink names? > > That wa

Re: Guidelines for contributing?

2011-09-01 Thread Ralph Moritz
Thanks, If I'd read that page carefully & done a search in JIRA I would've seen that CLJS-24 already addresses this. Doh! On Sep 1, 4:26 pm, Luc Prefontaine wrote: > Look at this: > > http://clojure.org/contributing > > Luc P. > > On Thu, 1 Sep 2011 04:53:20 -0700 (PDT) > > Ralph Moritz wrote: >