Jade / Jade4J

2012-07-04 Thread Kyle Cordes
Over on a Node project (boo!), we're enjoying Jade: https://github.com/visionmedia/jade (It is an indentation-based syntax for HTML, similar to HAML.) There is a port to Java: https://github.com/neuland/jade4j If anyone is aware of a Clojure wrapper for this, or has found 4j to work well as-i

Re: Including core.cache in clojurescript?

2012-07-04 Thread Michael Fogus
What are the nature of the warnings? I suspect there will be issues with the use of Java classes in some cache impls, but they should be OK if you do not use them. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c

Re: Clojure Sticker

2012-07-04 Thread David Della Costa
+1, wants sticker. 2012/7/4 Eric Scrivner : > +1 I was just looking for this the other day and was disappointed to find I > could only get a t-shirt. > > > On Saturday, June 9, 2012 6:03:46 PM UTC-7, aboy021 wrote: >> >> Is there anywhere that I can get a Clojure sticker? > > -- > You received thi

Clojurians in Auckland, NZ?

2012-07-04 Thread coltnz
Hi there, I see precedent for this on the list so hopefully still kosher, Is anyone out there interested in Clojure work in Auckland (could help with visa potentially)? We do cool cloud, big data stuff (Storm, Cassandra, Cascalog). Please reply to me off list. cheers Colin. -- You rec

Mini Beast - Overtone + Quil

2012-07-04 Thread Sam Aaron
Hi everyone, Aaron Santos just dropped a rather quiet email to the Overtone mailing list announcing something called Mini Beast which he built with Clojure, Overtone and Quil: https://github.com/aaron-santos/mini-beast This thing is seriously cool and really is the tip of the iceberg w.r.t. th

Re: a newbie question

2012-07-04 Thread Michał Marczyk
Note that subvec as currently implemented does not return a first class vector; it prevents the original vector from being garbage collected, because it delegates all basic operations to it, and it does not support some less-basic operations (you cannot make a transient out of a subvec-created vect

Re: a newbie question

2012-07-04 Thread Jay Fields
I think subvec is likely what you're looking for, but I also wanted to mention take-last for the sake of completeness. On Wed, Jul 4, 2012 at 2:16 PM, Tassilo Horn wrote: > John Holland writes: > > Hi John, > >> If I want to get the last n elements of a list or vector I am doing >> the following

Re: read-string and timestamps

2012-07-04 Thread David Powell
On Wed, Jul 4, 2012 at 3:17 PM, keeds wrote: > Please excuse my ignorance. This is the first time I've played with > read-string and the reader... > > I was trying to serialise some clojure data structures to a database and > then read them back. > In the data I have some java.sql.Timestamp data.

Re: a newbie question

2012-07-04 Thread John Holland
Thanks everybody On Wed, Jul 4, 2012 at 2:16 PM, Tassilo Horn wrote: > John Holland writes: > > Hi John, > > > If I want to get the last n elements of a list or vector I am doing > > the following: > > > > (reverse (take n (reverse thelist))) > > > > Is there a better way to do this? > > For ve

Re: a newbie question

2012-07-04 Thread Tassilo Horn
John Holland writes: Hi John, > If I want to get the last n elements of a list or vector I am doing > the following: > > (reverse (take n (reverse thelist))) > > Is there a better way to do this? For vectors, you can do that much more efficiently using subvec: (subvec my-vec (- (count vec) n

Re: a newbie question

2012-07-04 Thread Timothy Baldridge
> Is there a better way to do this? Use subvec for vectors. For lists, look at take and but-last. Timothy -- 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

Re: a newbie question

2012-07-04 Thread Steven E. Harris
John Holland writes: > Is there a better way to do this? See `take-last'¹ and, specifically for vectors where you can calculate the start index of the suffix, `subvec'². Note that even though Clojure has a `last' function with the same name as Common Lisp's `last'³, the former lacks the optiona

a newbie question

2012-07-04 Thread John Holland
If I want to get the last n elements of a list or vector I am doing the following: (reverse (take n (reverse thelist))) Is there a better way to do this? I'm going through some basic coding exercises which were meant for Java but I'm finding them educational to get started with Clojure. -- Yo

Re: Using type hints to document return types

2012-07-04 Thread Ambrose Bonnaire-Sergeant
Who's reading the documentation? Why not a simple comment? Ambrose On Tue, Jul 3, 2012 at 7:16 PM, skuro wrote: > Hi *, > > I'm developing a Clojure bridge to the Alfresco APIs, where I use a > protocol, Node, to extend a class coming from the original Java API > (NodeRef). Now, one of the proj

Re: Using type hints to document return types

2012-07-04 Thread Herwig Hochleitner
> > The problem with using type hints for doc is, that they actually alter >> runtime behavior, non - locally: >> - They replace expensive reflective method call sites with casts to a >> known type >> - Hence they effectively narrow the accepted type at the call site >> > But the above would only a

read-string and timestamps

2012-07-04 Thread keeds
Please excuse my ignorance. This is the first time I've played with read-string and the reader... I was trying to serialise some clojure data structures to a database and then read them back. In the data I have some java.sql.Timestamp data. These get serialised as # When trying to read-string t

Re: 6 December 2012 - London - Clojure eXchange - Call for Presentations

2012-07-04 Thread Simon Holgate
Thanks for organising this, Bruce. I hadn't come across Clojure eXchange before. For other folks that want more info on what happened last year and what's proposed for this year, the links are: http://skillsmatter.com/event/scala/clojure-exchange and http://skillsmatter.com/event/scala/clojure-

Re: :arglist metadata for partially-applied functions

2012-07-04 Thread Tassilo Horn
MerelyAPseudonym writes: Hi! > When abstracting out common behavior by creating higher-order > functions, I would like the resulting function to retain the arglist > metadata. Has anyone already solved this problem? Right now, if I define public functions in terms of comp or partial, I add the

Re: Java 7 & GC Settings

2012-07-04 Thread Niels van Klaveren
Interesting settings Sam, I'm curious about this one: "-XX:MaxTenuringThreshold=0" ; Makes the full NewSize available to every NewGC ; cycle, and reduces the pause time by not ; evaluating tenured objects. Technically,