Re: Clojure meetup group listing

2010-09-23 Thread Robert McIntyre
Are there any clojure groups around Boston, MA? --Robert McIntyre On Tue, Sep 21, 2010 at 12:43 PM, Sean Corfield seancorfi...@gmail.com wrote: The Bay Area Clojure User Group had its 25th meeting last night: http://www.meetup.com/The-Bay-Area-Clojure-User-Group/ It was a great meeting -

ANN: Durable refs with ACID guarantees - Phase I

2010-09-23 Thread Alyssa Kwan
This is in reference to http://groups.google.com/group/clojure/browse_frm/thread/d6deac0c34d0ce28/5c1e11ec2bd52bde. Hi everyone! I have hacked the Clojure core to add durability to refs. The syntax to create these is (dref val key path), where key and path are strings. Then you use them just

Re: building new contrib against a specific clojure jar

2010-09-23 Thread Andy Fingerhut
OK, it appears one more line of change allows clojure-contrib latest as of today to build with clojure 1.3.0-master-SNAPSHOT. See inline below for slightly modified instructions that worked for me on both OS X and Ubuntu Linux. On Sep 22, 2010, at 6:16 PM, Andy Fingerhut wrote: So I'm

Re: CLR questions

2010-09-23 Thread Jarl Haggerty
Is this still a problem if you compile everything ahead of time? I noticed that if I make a jar with leiningen my clj files are included in the jar but I assumed that it was just part of some dogma that I should share my source code. Also, I asked a similar question where I was concerned about

Re: Clojure meetup group listing

2010-09-23 Thread Sam Aaron
Hi Andrew, feel free to add the Cambridge (UK) Clojurians group: http://www.meetup.com/Cambridge-Clojurians/ Our next meeting is in a lovely pub called the Punter on Monday the 4th of October from 7.30 onwards. Sam --- http://sam.aaron.name On 20 Sep 2010, at 4.33 pm, Andrew Gwozdziewycz

Re: building new contrib against a specific clojure jar

2010-09-23 Thread Andy Fingerhut
OK, one more quick hack I've found -- again, a hack, not a long term solution. If you want to create a Leiningen project that uses the latest clojure and contrib, read on. I couldn't figure out what to use in project.clj unless I renamed this file first. % mv

Re: ANN: Durable refs with ACID guarantees - Phase I

2010-09-23 Thread Per Vognsen
Cool! I'm getting back to Clojure after an extended absence. Just today I was pondering the design of a solution to a similar problem, though I suspect our requirements diverge on several points. My tentative conclusion was that it could be done entirely in Clojure and without modifying existing

Re: CLR questions

2010-09-23 Thread Timothy Baldridge
Is this still a problem if you compile everything ahead of time?  I noticed that if I make a jar with leiningen my clj files are included in the jar but I assumed that it was just part of some dogma that I should share my source code. Actually I think it's a bit worse than that. LISP treats

Re: Clojure meetup group listing

2010-09-23 Thread Eric Lavigne
CodeBuilders is a small programming club in Gainesville, Florida, that meets about twice per week to work on programming projects (mostly in Clojure). The other two members are very new to programming, but learning fast as we build a Tic Tac Toe game together.

Re: ANN: Durable refs with ACID guarantees - Phase I

2010-09-23 Thread Alyssa Kwan
It's probably possible to do it completely in Clojure, but you have to subclass Atom. There's no need for any transaction boundary; you just have to make sure that compareAndSet does a durable swap. My plan was to get durable refs done and then extend the other mutable identities, including

Re: CLR questions

2010-09-23 Thread Wilson MacGyver
On xbox, you can't alter running code in memory, which means JIT basically doesn't work. So imagine you are running java code on JVM in interpreted mode, it's too slow for any serious game. This is a common issue in most game consoles. -- You received this message because you are subscribed to

Re: CLR questions

2010-09-23 Thread tsuraan
First of all, MonoDevelop should be able to load the .sln Ok, I'll have a look at that. I currently know nothing of .NET or mono, so it's all news to me :) As far as XNA...last I heard XNA did not have any support for emit, and as such is incapable of running any sort of jit code. Basically

Re: CLR questions

2010-09-23 Thread tsuraan
As far as XNA...last I heard XNA did not have any support for emit, and as such is incapable of running any sort of jit code. Basically all .NET code has to be ahead-of-time compiled to run a XBOX via XNA. It's the same limitation that IronPython has

Clojure 1.3 Alpha 1

2010-09-23 Thread Stuart Halloway
Clojure 1.3 Alpha 1 is now available at http://clojure.org/downloads == Changes == * 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,

Re: CLR questions

2010-09-23 Thread Timothy Baldridge
So imagine you are running java code on JVM in interpreted mode, it's too slow for any serious game. Meh...that's not exactly true. Many games (Warhammer 40k, Supreme Commander, WoW, etc.) use stock LUA, and some (Civ IV) use Python. Both of these are not JIT languages. Actually I would assume

Re: Clojure meetup group listing

2010-09-23 Thread Andrew Gwozdziewycz
On Thu, Sep 23, 2010 at 8:47 AM, Eric Lavigne lavigne.e...@gmail.comwrote: CodeBuilders is a small programming club in Gainesville, Florida, that meets about twice per week to work on programming projects (mostly in Clojure). The other two members are very new to programming, but learning

Re: CLR questions

2010-09-23 Thread Jarl Haggerty
(str if Xbox 360 has all you need to run Clojure), I was just trying to emphasize that even if you could emit code you still had other problems. On Sep 23, 5:45 am, Timothy Baldridge tbaldri...@gmail.com wrote: Is this still a problem if you compile everything ahead of time?  I noticed that

Re: CLR questions

2010-09-23 Thread Wilson MacGyver
Not quite. Lua isn't a good example because it's a register based runtime designed to be very small footprint. Also most of the games you listed are PC. Civ 4 uses python but it targets PC too. Consoles have very different and strict set of rules. We tried this last year, while we could get a

Re: Clojure 1.3 Alpha 1

2010-09-23 Thread Alex Miller
Will alpha releases be once-a-month, once-a-quarter, or now-seems- good? Is there a theoretical schedule for 1.3? Are people thinking of it as a year or something less than a year away? On Sep 23, 12:23 pm, Stuart Halloway stuart.hallo...@gmail.com wrote: Clojure 1.3 Alpha 1 is now available

Re: clojure-contrib master now in submodules

2010-09-23 Thread Brian Carper
On Sep 22, 2:03 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote: On Sep 22, 12:35 pm, Justin Kramer jkkra...@gmail.com wrote: Here's the magic incantation I've been using: [org.clojure.contrib/complete 1.3.1-SNAPSHOT :classifier bin] I don't know how official or future-proof that is.

Clojure for VS2010

2010-09-23 Thread Will Kennedy
Some background: I've been spending some of my free time providing by basic Clojure support in VS 2010. To be honest, I'm a bit of a Clojure newbie, so I figured something that would require me to build a lexer and parser for the language and delve into the clojure source would be a great way to

Something hanging onto the head?

2010-09-23 Thread Jeff Palmucci
I have a very simple test case in clojure 1.2: (def * 1* (count (range 0 1))) I have a loop running in another thread that periodically causes a full gc and then prints the amount of used memory every 2 seconds. Evaluating the above form, I get: Used memory: 0.079951296 G Used

Error message that could be more helpful

2010-09-23 Thread Jason Baker
I have a project that consists of playhaven.downloader.run and playhaven.downloader.core. Run is defined like this (for brevity's sake, I've left out a lot of the code; let me know if I missed something important): ;; run.clj (ns playhaven.downloader.run (:use playhaven.downloader.core

Re: Error message that could be more helpful

2010-09-23 Thread Jason Baker
Also, one thing I just thought about: I got this error when running lein jar. Is it possible this is a leiningen problem rather than a clojure problem? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Clojure 1.3 Alpha 1

2010-09-23 Thread ataggart
Fixing subject. On Sep 23, 1:25 pm, Jeff Palmucci jpalmu...@gmail.com wrote: I have a very simple test case in clojure 1.2: (def * 1* (count (range 0 1))) I have a loop running in another thread that periodically causes a full gc and then prints the amount of used memory

Re: Clojure for VS2010

2010-09-23 Thread Shawn Hoover
On Thu, Sep 23, 2010 at 4:20 PM, Will Kennedy parset...@gmail.com wrote: Some background: I've been spending some of my free time providing by basic Clojure support in VS 2010. To be honest, I'm a bit of a Clojure newbie, so I figured something that would require me to build a lexer and

Re: Clojure 1.3 Alpha 1

2010-09-23 Thread Sean Corfield
On Thu, Sep 23, 2010 at 10:23 AM, Stuart Halloway stuart.hallo...@gmail.com wrote: Clojure 1.3 Alpha 1 is now available at Thank you! For maven/leiningen users, your settings to get the beta from build.clojure.org/releases are:   :dependencies [[org.clojure/clojure 1.3.0-alpha1] Are there

Re: Little LISPer and Ten Commandments

2010-09-23 Thread Julian
I concur - that book is amazing. Steve Yegge mentions he worked through the whole book in Scheme and then Common LISP. http://steve-yegge.blogspot.com/2006/06/shiny-and-new-emacs-22.html (and he mentioned recently he was taking a look at Clojure.) It looks like there is a blog or two online that

Building from source - error in contrib/accumulators?

2010-09-23 Thread Sean Corfield
As of yesterday, I built Clojure and Contrib from source successfully and was able to run some Clojure programs. That was on my laptop. Today I tried to do the same thing on my desktop and I'm hitting a failure in mvn install during the test for monads.clj (if I'm reading the output of Maven

Re: Building from source - error in contrib/accumulators?

2010-09-23 Thread Andy Fingerhut
Yep, I got the same thing yesterday. See my message in the thread Re: building new contrib against a specific clojure jar from last night for a patch that corrects this, and causes 1.3.0-master-SNAPSHOT version of clojure to be used for compilation everywhere in contrib instead of 1.2.0

Re: Building from source - error in contrib/accumulators?

2010-09-23 Thread Sean Corfield
Thanx. I saw your message but didn't look at the patch in detail. I notice you have 1.3.0-master-SNAPSHOT but when I built Clojure and mvn install'd it, it created 1.3.0-SNAPSHOT instead...? On Thu, Sep 23, 2010 at 5:21 PM, Andy Fingerhut andy.finger...@gmail.com wrote: Yep, I got the same

Re: Building from source - error in contrib/accumulators?

2010-09-23 Thread Sean Corfield
BTW, to feed changes back to the core/contrib team, what's the preferred approach? i.e., is the information on these pages up-to-date: http://clojure.org/contributing http://clojure.org/patches On Thu, Sep 23, 2010 at 5:34 PM, Sean Corfield seancorfi...@gmail.com wrote: Thanx. I saw your

Re: ANN: Durable refs with ACID guarantees - Phase I

2010-09-23 Thread Dragan Djuric
What is the performance penalty? On Sep 23, 5:21 am, Alyssa Kwan alyssa.c.k...@gmail.com wrote: This is in reference tohttp://groups.google.com/group/clojure/browse_frm/thread/d6deac0c34d0 Hi everyone! I have hacked the Clojure core to add durability to refs.  The syntax to create

Re: Genetic Algorithm Example

2010-09-23 Thread Lee Spector
On Sep 19, 2010, at 9:41 AM, Goran Jovic wrote: Anyway, being a Clojure newbie myself, I had a huge benefit from freely available code examples, so I decided to share my own project with other folks who are learning Clojure. It's hosted on: http://code.google.com/p/genetic-my-number/

ANN: textmate-clojure, SLIME for TextMate (sorta)

2010-09-23 Thread David Nolen
First off Acknowledgements: Aria Haghighi, did much of the heavy lifting on this project! Stephen Roller, created the first version of the bundle in 2008 Mark McGranaghan, expanded Stephen Roller's version Justin Balthrop Lance Bradley, core developers of Cake http://github.com/ninjudd/cake - if

Re: ANN: Durable refs with ACID guarantees - Phase I

2010-09-23 Thread Per Vognsen
On Thu, Sep 23, 2010 at 8:16 PM, Alyssa Kwan alyssa.c.k...@gmail.com wrote: There's no need for any transaction boundary; you just have to make sure that compareAndSet does a durable swap. I had the chance to read your code today. You have a transaction boundary in DRef.set() which is called by

Re: ANN: Durable refs with ACID guarantees - Phase I

2010-09-23 Thread Alyssa Kwan
I haven't benchmarked... I don't have much experience with benchmarking. Assistance would be greatly appreciated! On Sep 23, 9:09 pm, Dragan Djuric draga...@gmail.com wrote: What is the performance penalty? On Sep 23, 5:21 am, Alyssa Kwan alyssa.c.k...@gmail.com wrote: This is in

Is ClojureCLR converging toward a release?

2010-09-23 Thread Mike K
It was mentioned about six weeks ago that ClojureCLR was mostly 1.2 compatible with a few outstanding issues and a couple dozen failing tests. What is the status now? Is there still an intention of an official binary release with 1.2 level functionality, or has that target been dropped?

Re: ANN: Durable refs with ACID guarantees - Phase I

2010-09-23 Thread Alyssa Kwan
Ah. I thought we were discussing prefs, or datoms (durable atoms), as I would call them. Because datoms are only synchronous but not coordinated, there's no transaction boundary. (More accurately, the swap! is the transaction boundary, much like auto-commit.) dosync has no effect on datoms.

Re: ANN: Durable refs with ACID guarantees - Phase I

2010-09-23 Thread Per Vognsen
This probably comes back to divergent requirements. Strict durability is much too expensive for what I need to do. For me the more important thing is that whatever authoritative data lives on disk is consistent with the application transaction boundaries. This means that I need to tag persistent

Re: ANN: textmate-clojure, SLIME for TextMate (sorta)

2010-09-23 Thread Greg
Awesome! Great job on this, I was hoping the TM Clojure bundle would get some much needed loving. :-) Quick question: how does this bundle get clojure.jar and clojure-contrib.jar (and any additional dependencies), and is there a way to tell it to use a specific clojure[-contrib].jar file(s)?

Re: ANN: textmate-clojure, SLIME for TextMate (sorta)

2010-09-23 Thread David Nolen
On Thu, Sep 23, 2010 at 11:55 PM, Greg g...@kinostudios.com wrote: Awesome! Great job on this, I was hoping the TM Clojure bundle would get some much needed loving. :-) Quick question: how does this bundle get clojure.jar and clojure-contrib.jar (and any additional dependencies), and is

Byte Literals

2010-09-23 Thread HiHeelHottie
Is there a way to create a vector of byte literals eg. [64 69 72] as bytes? -- 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

Re: Byte Literals

2010-09-23 Thread David Sletten
I'm not quite sure what you're asking. Clojure doesn't have byte literals, but you can use the function 'byte' to coerce an int literal: (map class [2 3 4]) = (java.lang.Integer java.lang.Integer java.lang.Integer) (map class (map byte [2 3 4])) = (java.lang.Byte java.lang.Byte java.lang.Byte)

Building from source - great improvements today! Thank you!

2010-09-23 Thread Sean Corfield
I just pulled the latest clojure and contrib and was able to build them with one little glitch which I suspect is due to something I did wrong... Building Clojure seems to install 1.3.0-SNAPSHOT but by default Contrib seems to expect 1.3.0-master-SNAPSHOT ? A little bit of experimentation and I

Re: ANN: textmate-clojure, SLIME for TextMate (sorta)

2010-09-23 Thread Greg
Thanks! What about single files though? (i.e. no project.clj) On Sep 23, 2010, at 9:22 PM, David Nolen wrote: On Thu, Sep 23, 2010 at 11:55 PM, Greg g...@kinostudios.com wrote: Awesome! Great job on this, I was hoping the TM Clojure bundle would get some much needed loving. :-) Quick

Re: ANN: textmate-clojure, SLIME for TextMate (sorta)

2010-09-23 Thread David Nolen
On Fri, Sep 24, 2010 at 1:06 AM, Greg g...@kinostudios.com wrote: Thanks! What about single files though? (i.e. no project.clj) cake has a global project.clj - ~/.cake/project.clj. Change this and single files will get access to those dependencies. David On Sep 23, 2010, at 9:22 PM, David

Re: Byte Literals

2010-09-23 Thread Rasmus Svensson
There's also 'bytes', 'byte-array' and 'into-array': (byte-array (map byte [1 2 3])) (into-array Byte/TYPE (map byte [1 2 3])) // raek -- 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