Clojure on the AppEngine Talk

2010-11-18 Thread Miki
Greetings, I gave a short presentation on getting started with Clojure on the AppEngine tonight at the clj-la meetup. Slides can be found at https://docs.google.com/present/view?id=ah82mvnssv5d_1784s26pwsh Comments welcomed. Enjoy, -- Miki -- You received this message because you are subscrib

Re: bimaps in clojure

2010-11-18 Thread Wilson MacGyver
Actually if you want to use java lib. Look at guava, formerly known as google collection. It's one of my fav java lib. http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common/collect/BiMap.html On Nov 18, 2010, at 10:55 PM, Sunil S Nandihalli wrote: > awesome.. :) i keep for

Error message specifies wrong line # in source file if function lacks argvec.

2010-11-18 Thread Ken Wesson
I got this oddity while debugging a Clojure sourcefile today: user=> # user=> Huh? Line 55 is a blank line! user=> # user=> # user=> The line number is changing every time and every line is innocuous (though only the first time was it actually blank). No unmatched delimiters that could be d

Re: bimaps in clojure

2010-11-18 Thread Sunil S Nandihalli
awesome.. :) i keep forgetting that all of java is just a call away .. hmm thanks Lachlan..:) Sunil. On Fri, Nov 19, 2010 at 7:46 AM, jlk wrote: > I haven't tried it, but I just stumbled across > http://commons.apache.org/collections/ > -> BidiMap, might be what you're after? > > > On Nov 16, 6:

Re: bimaps in clojure

2010-11-18 Thread jlk
I haven't tried it, but I just stumbled across http://commons.apache.org/collections/ -> BidiMap, might be what you're after? On Nov 16, 6:14 pm, Sunil S Nandihalli wrote: > Hello everybody, > > Is there something like a bimap in clojure? I know I can have two regular > hash-maps .. but I was w

Re: Enclojure for Clojure 1.2

2010-11-18 Thread David
Have you been able to "Build with Dependencies"? I haven't been able to figure this out yet - though I suspect it's my inexperience with Maven. On Nov 17, 8:28 pm, Ken Wesson wrote: > On Wed, Nov 17, 2010 at 3:54 PM, Harrison Maseko wrote: > > Does Enclojure support Clojure 1.2 yet? > > Yes. I

Clojure for CLR - TypeInitializationException

2010-11-18 Thread Tatiana Racheva
I've run Clojure for CLR successfully before on a different machine. Just downloaded this distribution - https://github.com/downloads/richhickey/clojure-clr/clojure-clr-1.3.0-alpha1-debug-4.0.zip Running Clojure.Main.exe I get this: Unhandled Exception: System.TypeInitializationException: The typ

Re: ANN: ClojureQL 1.0.0 finally released as public beta

2010-11-18 Thread MarkH
On Nov 18, 1:10 pm, LauJensen wrote: > Hi gents, > > For those of you who have followed the development > of ClojureQL over the past 2.5 years you'll be excited > to know that ClojureQL is as of today being released > as 1.0.0 beta1. > > That means that the significant primitives from Relational

Re: ANN: ClojureQL 1.0.0 finally released as public beta

2010-11-18 Thread Stuart Campbell
On 19 November 2010 06:10, LauJensen wrote: > Hi gents, > > For those of you who have followed the development > of ClojureQL over the past 2.5 years you'll be excited > to know that ClojureQL is as of today being released > as 1.0.0 beta1. > > That means that the significant primitives from Rela

Re: Ghost Vars?

2010-11-18 Thread Ken Wesson
On Thu, Nov 18, 2010 at 6:14 PM, Alex Osborne wrote: > Alyssa Kwan writes: > >> Perfect!  That makes things so much easier!  I assume that interning >> vars is synchronized then?  This is the second big source code read >> FAIL in two days.  Obviously I can't read.  :) > > They're stored in an At

Re: Ghost Vars?

2010-11-18 Thread Alex Osborne
Alyssa Kwan writes: > Perfect! That makes things so much easier! I assume that interning > vars is synchronized then? This is the second big source code read > FAIL in two days. Obviously I can't read. :) They're stored in an AtomicReference (basically an atom). > All persistence requires

ANN: ClojureQL 1.0.0 finally released as public beta

2010-11-18 Thread LauJensen
Hi gents, For those of you who have followed the development of ClojureQL over the past 2.5 years you'll be excited to know that ClojureQL is as of today being released as 1.0.0 beta1. That means that the significant primitives from Relational Algebra are all in place and functional. The document

Re: ANN: Clojure Games

2010-11-18 Thread Jeff Heon
That's a great initiative! And the logo is awesome! (Of course I'm biased, I grew up in Pac-Man times.) -- 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

Re: Closures eat permgen?

2010-11-18 Thread Ken Wesson
I did a bit more torture testing of clojure 1.2 and those JVM settings this time for speed. user=> (time (domany 10 (repeatedly gensym))) "Elapsed time: 1362.33344 msecs" {:foo clojure.lang.Symbol} user=> (time (pmap #(assoc % :bar 1) (take 10 (repeatedly #(domany 1 (repeatedly gensym

Re: ANN: Clojure Games

2010-11-18 Thread Daniel Kersten
No problem! I'm glad theres other people interested in this :) Theres still a lot I need to do with the site as theres very little content there at the moment, but I'll get there eventually, especially if other people are willing to contribute too. Regards, Dan. On 18 November 2010 17:28, Raoul

Re: Converting from 1.2 to 1.3-alpha3

2010-11-18 Thread nicolas.o...@gmail.com
Thank you very much. I will have a look at that tomorrow or try to extract a minimal code for the problem. Just to make sure: has there been any syntax change to definterface? (To make it closer to defprotocol for example) Best, Nicolas. On Thu, Nov 18, 2010 at 2:06 PM, Stuart Sierra wrote: >

Re: Closures eat permgen?

2010-11-18 Thread Ken Wesson
Even with Matt's suggested GC settings, keyword creation still leaks permgen: (def kwseq (map (comp keyword str) (iterate inc 0))) #'user/kwseq user=> (domany 1000 kwseq) #<# To top it off, the Java process continues to use 20-30% CPU when supposedly idle after this message, and typing (keywo

Re: Ghost Vars?

2010-11-18 Thread Alyssa Kwan
On Nov 18, 1:49 am, Alex Osborne wrote: > Hi Alyssa, > > I don't think this situation is possible because Namespace.mapping > (which maps symbols to vars and classes) is *not* thread-local.  For a > given namespace and symbol all threads will resolve the same var object. > > It's the binding of th

Re: ANN: Clojure Games

2010-11-18 Thread Raoul Duke
On Thu, Nov 18, 2010 at 6:14 AM, Daniel Kersten wrote: > Happy game devving, a great idea, thank you for pushing this sort of thing along! sincerely. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: Ghost Vars?

2010-11-18 Thread Alyssa Kwan
On Nov 17, 10:35 pm, Ken Wesson wrote: > On Wed, Nov 17, 2010 at 9:57 PM, Alyssa Kwan wrote: > > How are you planning to persist a function? The clojure reader can't > read functions output with spit or println. I'm not persisting functions at compile time. fns are first class objects, and I wa

Re: fastest way to remove nils

2010-11-18 Thread Ken Wesson
On Thu, Nov 18, 2010 at 10:47 AM, Glen Rubin wrote: > So, it seems the way I was removing nils using filter was already the > best way.  still nice to learn about the keep fn.  thx! I don't know if we can conclude that yet. It seems to be fastest on one system with one combination of Java version

Re: fastest way to remove nils

2010-11-18 Thread Glen Rubin
So, it seems the way I was removing nils using filter was already the best way. still nice to learn about the keep fn. thx! On Nov 17, 8:38 pm, Ken Wesson wrote: > On Wed, Nov 17, 2010 at 7:55 PM, Robert McIntyre wrote: > > So, just to be clear, > > > user> (def nil-seq (doall (interleave (rep

Re: Closures eat permgen?

2010-11-18 Thread Matt Fowles
Ken~ The CMS settings are best for low latency applications or applications that want more predictable pause times. They can cause a drop in throughput for scientific computing or for Extract-Transform-Load style programs. CMS is not the default for historical reasons. The permgen sweeping is n

ANN: Clojure Games

2010-11-18 Thread Daniel Kersten
Hi, I've been playing with the idea of creating a game development site for Clojure for a while now and finally got around to setting up a wiki for that purpose: http://clojure-games.org/ So far, there isn't much content there yet. I've linked any popular game-related libraries, blog posts and co

Re: Converting from 1.2 to 1.3-alpha3

2010-11-18 Thread Stuart Sierra
On Nov 17, 12:31 pm, "nicolas.o...@gmail.com" wrote: > I am trying top port some code from 1.2 to 1.3 and I end up with this error: > > Unknown location: >   error: java.lang.VerifyError: (class: Wow, that looks like a binary compatibility error. Make sure you're starting with a clean directory

Re: Dependency between files problem

2010-11-18 Thread tryingclj
To both of you: this is just to say thank you for taking the time to explain and advise in such detail. Really appreciated! -- 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 f

Re: Dynamic Binding of Self-Referencing Functions Expected Behavior?

2010-11-18 Thread Laurent PETIT
2010/11/18 Meikel Brandmeyer > Salut Laurent, > > On 17 Nov., 16:53, Laurent PETIT wrote: > > > while a good description of how things work in 1.2 > > It doesn't even do that. This is exactly *not* the way it works in > 1.2, because self-references don't go through the Var. I'd be curious > to k

Re: Closures eat permgen?

2010-11-18 Thread Ken Wesson
With those settings, it does not OOME even with 'eval'. It looks like those settings allow infinite sequential function creation without leaks. I did not closely evaluate GC performance. However I must suspect there to be some reasons why those settings aren't the default. I wouldn't mind knowing