Yet another web framework for Clojure.

2009-06-18 Thread Matt
es of Conjure so far: http://wiki.github.com/macourtney/Conjure/hello-world-tutorial I realize the model and view code leave much to be desired, and there are a few good libraries for both out right now. I plan on adding some of those libraries in the next release. Any other suggestions

Re: Yet another web framework for Clojure.

2009-06-19 Thread Matt
I've taken a look at Ring's Github pages, but I still don't fully understand it. Is there a good tutorial on how to use it, or is it best just to look at example code? On Jun 18, 7:48 pm, James Reeves wrote: > On Jun 18, 10:11 pm, Matt wrote: > > > I've also add

Re: Yet another web framework for Clojure.

2009-06-19 Thread Matt
I do plan on continuing it's development longer term. I have a couple projects which Conjure would work great with. On Jun 19, 7:47 am, rb wrote: > On Jun 18, 11:11 pm, Matt wrote: > > > > > Hi all, > > > I was recently introduced to Clojure by a coworker,

Re: Yet another web framework for Clojure.

2009-06-19 Thread Matt
8:07 am, Matt wrote: > I've taken a look at Ring's Github pages, but I still don't fully > understand it. Is there a good tutorial on how to use it, or is it > best just to look at example code? > > On Jun 18, 7:48 pm, James Reeves wrote: > > > On Jun 18, 10

Conjure 0.2 released.

2009-09-14 Thread Matt
and would appreciate any help. I hope you enjoy this release, Matt Courtney --~--~-~--~~~---~--~~ 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

Re: Conjure 0.2 released.

2009-09-15 Thread Matt
That's my plan for the next release. Unfortunately, the change to test- is came out right before I finished the release. After reviewing what it would take to update, I decided to wait. If you make the changes on your fork, I'll be happy to merge them in. -Matt On Sep 14, 11:31 

Re: Conjure 0.2 released.

2009-09-15 Thread Matt
Fixed in the main branch. Stu made the change on his fork, and I merged it in. -Matt On Sep 14, 2:52 pm, Jim Menard wrote: > Matt, > > There's a missing double quote on line 11 of lancet.sh. After adding > that, I had no problem compiling Conjure. Looking forward to try

Re: Conjure 0.2 released.

2009-09-15 Thread Matt
I'll make a note on the wiki to chmod the scripts in Unix. I'm not sure what else I can do. I swear I tested all of this on my Mac. -Matt On Sep 15, 10:17 am, Stuart Halloway wrote: > The bigger problem here is that the ant jar task loses file   > permissions, so after Conjure

Re: question on last page of Conjure tutorial

2009-09-28 Thread Matt
Try: (deftest test-add (add { :controller controller-name :action "add" })) Let me know if that works. In the tutorial, I guess I should be more clear on what to change. -Matt Courtney On Sep 27, 9:50 am, Warren wrote: > I worked through the Conjure tutorial.  Very cool.

An exception when updating to the latest version of Clojure and Clojure Contrib.

2009-09-28 Thread Matt
) [java] at clojure.lang.Compiler.eval(Compiler.java:4532) [java] ... 31 more [java] Java Result: 1 >From what I can tell, it doesn't like the import statement in java- utils. Has anyone seen this issue and/or know what I'm doing wrong? -Matt Courtney --~--~-~--~~-

Re: An exception when updating to the latest version of Clojure and Clojure Contrib.

2009-09-28 Thread Matt
Thanks, I'll try it out. However, that's a bad sign, and may mean I'll have to wait until the libraries are updated before I move to the new version of Clojure. :( On Sep 28, 9:32 am, Meikel Brandmeyer wrote: > Hi, > > I got this error, because a jar with an old clojure (or was it > contrib?) ve

Timing, JIT, Heisen-code

2009-09-29 Thread Matt
ytime1. Why is this? Does the JIT optimize differently with all those println's when using mytime2? (Kind of "quantum mechanics-y" - observing what's going on changes it.) thanks for any insight here! Matt System specs: MacBook Pro, Core2Duo 2.33GHz, 2GB RAM OSX 10.5.8 Leo

Re: An exception when updating to the latest version of Clojure and Clojure Contrib.

2009-09-30 Thread Matt
Well, after removing all jars except clojure and clojure-contrib, I still get the exact same error. Apparently, it doesn't like the import statement in java_utils.clj in clojure-contrib. Very weird. I think I'll revert back to clojure 1.0 for now, and try again at a later date. -Mat

Re: Latest news on ClojureQL

2009-12-14 Thread Matt
I've implemented Migrations in Conjure. They don't use ClojureQL, but it might be a good place to start (steal code). After looking over ClojureQL, I'm definitely interested in pulling it into Conjure in a future release. -Matt -- You received this message because you are su

Any interest in a Nova Clug?

2009-12-16 Thread Matt
I'm looking into setting up a Northern Virginia Clojure User Group and would like to know who is interested. I know there is a DC clojure study group, but it seems to not be as active recently. DC is also hard for me to get to during the week. We have a couple of other user groups which meet once

Re: Any interest in a Nova Clug?

2009-12-18 Thread Matt
I've started a meetup for a National Capital Area Clojure Users Group: http://www.meetup.com/Cap-Clug/ The meetings will be held in Reston, but another user group organizer in the area suggested I go with National Capital Area instead of northern Virginia so it be more inclusive. Our first meeti

Re: Lift equivalent

2010-01-02 Thread Matt
start is the ability to build servlets, and those can > be grafted into whatever larger framework the user wants, but another > two days of wading through documentation could change my mind. Conjure uses the following libraries, you may find some of them useful if you create your own fr

Re: Rails-like database migrations for use with clojure.contrib.sql

2010-02-26 Thread Matt
tabase flavors: http://github.com/macourtney/Conjure/tree/master/file_structure/default/db/flavors/ I hope that helps. -Matt Courtney On Feb 26, 10:35 am, Rick Moynihan wrote: > I've made a stab at implementing rails-like database migrations for > use with clojure.contrib.sql. > > Th

ANN: Conjure 0.4

2010-03-04 Thread Matt
clojure.contrib.logging already set up using java.util.logging. You can, of course, change the backend logging library to anything clojure.contrib.logging supports. And more... A full list of new features can be found at: http://wiki.github.com/macourtney/Conjure/conjure-04-features -Matt Courtney

Re: filter sequence until false result

2010-03-13 Thread Matt
I think what you want is take-while instead of filter: (take-while %(< % 20) primes) -Matt -- 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: filter sequence until false result

2010-03-13 Thread Matt
Hmm.. I should re-read messages before sending them. The correct code is: (take-while #(< % 20) primes) -- 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: Web Programming with clojure

2010-03-16 Thread Matt
ion on the wiki: http://wiki.github.com/macourtney/Conjure/getting-started http://wiki.github.com/macourtney/Conjure/hello-world-tutorial-2 http://wiki.github.com/macourtney/Conjure/how-to I hope that helps. -Matt -- You received this message because you are subscribed to the Google Groups "

Re: Sequential vs. "divide and conquer" algorithm

2010-03-20 Thread Matt
e2: 4950 "Elapsed time: 809.912 msecs" "Elapsed time: 829.039 msecs" "Elapsed time: 823.197 msecs" "Elapsed time: 820.383 msecs" "Elapsed time: 821.239 msecs" I have a 5 year old dual core computer. It would be interesting to see if someone wit

Re: Getting started with open source Clojure projects

2010-03-30 Thread Matt
cript/server.clj 5. Point your browser at http://localhost:8080/ 6. Profit! There is a tutorial for Conjure at: http://wiki.github.com/macourtney/Conjure/hello-world-tutorial-2 -Matt Courtney -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: Examples of Clojure in production?

2010-04-19 Thread Matt
al software and isn't expected to see much volume. -Matt Courtney -- 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: Pack and unpack

2010-05-07 Thread Matt
You could try str and read-string functions. Though I'm not sure if that is the safest way to do that. (str my-structure) (read-string my-string) -Matt Courtney On May 7, 11:55 am, Michael Jaaka wrote: > Hi! > > I was searching for function which converts to and back all clojur

Re: Clojure web app + js libraries - any suggestions?

2010-05-17 Thread Matt
; to start a local server on port 8080. -Matt On May 16, 10:13 am, Base wrote: > Thanks much Saul.  This is exactly what I am looking for!  Let the > webapps begin! > > On May 16, 7:15 am, Saul Hazledine wrote: > > > > > On May 15, 5:23 pm, Base wrote: > > > &

ANN: Conjure 0.6 Released

2010-06-11 Thread Matt
ogle group mentioned above. -Matt Courtney -- 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.

Re: ANN: Conjure 0.6 Released

2010-06-11 Thread Matt
I'll check out clout, but I have the routing like I want it. I've made it flexible enough to use the Rails like routing (older version) and still allow people to create their own routing. Actually, looking at clout just now, I think I can just drop it in. -Matt Courtney On Jun 11, 3:35

Re: ANN: Conjure 0.6 Released

2010-06-13 Thread Matt
> I was in much the same position as you a few months ago. Refactoring > Compojure to use the Ring libraries took a lot of work, so I have an > idea of the amount of effort involved :) I've added the latest version of Ring to Conjure, but I haven't updated the cookies or parameters yet. Otherwise,

Re: ANN: Conjure 0.6 Released

2010-06-13 Thread Matt
I swear I tried just that and it didn't work. I'll try again when I have Conjure working again. It's currently all sorts of screwed up as I switch over to Leiningen. -Matt Courtney -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Conjure / Compojure Docs etc

2010-06-29 Thread Matt
nal release sometime next week. -Matt Courtney On Jun 27, 4:56 pm, "john.holland" wrote: > I've seen a lot of mentions of Compojure on the group. I found the > documentation a little lacking. Am I missing something obvious? > > Also, Conjure (sort of Rails done in Cloj

Re: State of Clojure web development

2010-06-29 Thread Matt
> If I had a full-stack, well-documented clojure framework, I'd jump to that. Have you looked at Conjure? http://github.com/macourtney/Conjure Docs: http://wiki.github.com/macourtney/Conjure/ It's not as fully featured as Django, but it's a good start and it's in Clojure. Conjure doesn't have an

Re: State of Clojure web development

2010-06-29 Thread Matt
> 1. Have you written, or are you writing, a web application that uses > Clojure? What does it do? We are currently writing a web interface for the project I'm on. The project, IMSMA, keeps track of landmines in war-torn countries so humanitarian efforts can clean them up. The main program is a ja

Re: State of Clojure web development

2010-06-29 Thread Matt
which are already there. -Matt Courtney On Jun 25, 10:33 am, Luc Préfontaine wrote: > Were not using Clojure yet for our > Web based GUIs. > The main reason being that we jumped > on Rails last year. Most of our needs > are to display/edit database data and > the ActiveScaffol

Re: Aleph and Conjure

2010-07-19 Thread Matt
I don't have any experience with aleph, node.js, or express.js. But assuming you can use those technologies with Ring, then you should be able to do it with Conjure. -Matt Courtney On Jul 18, 8:26 pm, Victor S wrote: > Can conjure be used to build web app over aleph? Or what does it t

[ANN] Conjure 0.7.0 released

2010-07-20 Thread Matt
they end up. 7. Routing was switched to use clout (http://github.com/weavejester/ clout) which should make it easier to add and remove routes. I hope you enjoy the latest version of Conjure. -Matt Courtney -- You received this message because you are subscribed to the Google Groups "Cl

Re: Simple things should be simple

2010-09-09 Thread Matt
le App Engine nearly as easy. Unfortunately, Google App Engine doesn't like all of the reflection stuff in Conjure. Obviously, Conjure is much slower and a lot more overhead than most of the other solutions mentioned in this thread. -Matt Courtney On Sep 9, 2:16 pm, Brenton wrote: > Mike

[ANN] Drift-db version 1.1.0 released

2012-07-07 Thread Matt
Drift-db version 1.1.0 released Drift-db is a library and companion project to Drift which gives you a standard interface for updating databases from migrations. In version 1.1.0: 1. Added support for Postgresql 2. Added offset and order-by as parameters to sql-find 3. Added an update-column fu

Re: [ANN] Drift-db version 1.1.0 released

2012-07-07 Thread Matt
Forgot the link: https://github.com/macourtney/drift-db On Saturday, July 7, 2012 9:38:03 AM UTC-4, Matt wrote: > > Drift-db version 1.1.0 released > > Drift-db is a library and companion project to Drift which gives you a > standard interface for updating databases from mig

Re: Clojure Editor

2012-07-16 Thread Matt
Bluefish version 2.2.3 fresh install. Document --> Language Mode - no clojure on the list.. has support for Clojure been dropped? On Sunday, March 13, 2011 2:09:52 PM UTC+2, WoodHacker wrote: > > If you are looking for a very good editor for Clojure try Bluefish. > It's been around for ever,

Re: Clojure web framework

2012-09-28 Thread Matt
njure into its own library, I broke Conjure into a group of libraries for the next release. If you do make your own web framework, you may want to use some parts of Conjure. -Matt On Friday, September 28, 2012 3:36:20 AM UTC-4, goracio wrote: > > Hi > So i'd like to point to the p

clojure.java.jdbc create-table

2012-10-05 Thread Matt
exception - java.lang.ClassCastException: clojure.lang.ArraySeq$ArraySeq_int cannot be cast to clojure.lang.IFn. The exception is received even though the table had been seemingly perfectly created. I'm probably missing something basic. What do you think can it be? Thanks, Matt -- You received this mess

Handling exceptions (subject renamed)

2012-10-05 Thread Matt
the source line that made the code break? Thanks! On Friday, October 5, 2012 5:15:18 PM UTC+2, Matt wrote: > > Hi, > > I'm relatively new to Clojure. This must be easy. > I am trying to write a function that creates a table with a name passed as > argument, and this natural

Re: Full stack Clojure web/REST framework - is there any mileage in it?

2013-01-11 Thread Matt
Though the Clojure community has traditionally gone with smaller libraries rather than large frameworks, there is a full-stack web framework for Clojure called Conjure: https://github.com/macourtney/Conjure On Friday, January 11, 2013 11:52:05 AM UTC-5, Paul Umbers wrote: > > I've been experime

[ANN] Drift 1.4.0 released.

2011-11-24 Thread Matt
Drift is a Rails like migration library for Clojure. I've recently released version 1.4.0 of Drift which includes: A new Java interface. You can now run Drift migrations, find out the database version, or determine the highest migration number from java. User generated migration numbers and time

[ANN] Drift DB

2011-11-24 Thread Matt
Drift DB is a clojure database library focused on migration functions. With Drift DB you can create tables, drop tables, add columns to tables, remove columns from tables, query tables, and, though it is not the focus of Drift DB, you can insert, update, delete and select rows from tables. The on

Re: Drift 1.4.0 released.

2011-11-26 Thread Matt
oke(RestFn.java:408) >         at clojure.core$load_one.invoke(core.clj:5200) >         at clojure.core$load_lib.doInvoke(core.clj:5237) >         at clojure.lang.RestFn.applyTo(RestFn.java:142) >         at clojure.core$apply.invoke(core.clj:602) >         at clojure.core$load_libs.doInvok

Re: Drift 1.4.0 released.

2011-11-27 Thread Matt
flavor to mysql. -Matt On Nov 27, 9:25 am, Edmund wrote: > Bingo!  Thanks for that, version 1.3.0 incompatibility it is. > -- 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

Re: Drift 1.4.0 released.

2011-11-29 Thread Matt
1.4.2 is out now and should work with both Clojure 1.2.1 and 1.3.0. However, Leiningen currently doesn't work with Clojure 1.3.0. At work, I actually have a project.clj with Clojure 1.3.0 in the dependencies, and a Clojure 1.2.1 in the dev-dependencies to make Leiningen work. -Matt On N

Re: Drift DB

2011-11-29 Thread Matt
That looks like a bug. I'll take a look at it, and get a fix in as soon as possible. -Matt On Nov 29, 12:03 am, Luc Prefontaine wrote: > Hi Matt, > > working with this stuff... pretty sure I can make rake obsolete pretty soon :) > > However I am struggling with the a

Re: Drift DB

2011-11-30 Thread Matt
This should now be fixed in version 1.0.6. -Matt On Nov 29, 12:03 am, Luc Prefontaine wrote: > Hi Matt, > > working with this stuff... pretty sure I can make rake obsolete pretty soon :) > > However I am struggling with the auto increment column attribute... > > (create-tab

Re: Supporting protected fields in genclass

2008-12-02 Thread Matt Revelle
4 PM, Rich Hickey wrote: > > > > On Dec 1, 2:57 pm, Matt Revelle <[EMAIL PROTECTED]> wrote: >> Yes, this again. Now that we have AOT, I wanted to revisit >> supporting >> the exposing of inherited protected fields that originate from >> fa

Calling superclass methods from implemented methods

2008-12-08 Thread Matt Revelle
: (. super/MethodFoo this args). One issue is that using super/MethodFoo to refer to the superclass' method means that (.super/MethodFoo this args) wouldn't work without more Parser changes. I'm close to finishing this, but would like to get feedback before spending mor

Re: Calling superclass methods from implemented methods

2008-12-08 Thread Matt Revelle
The original plan was to use the super keyword to signal that invokespecial should be used. Now that you mention the lack of type relationship, that problem is obvious. I suppose adding a :supers is what I'll do. -Matt On Dec 8, 2008, at 10:59 AM, Rich Hickey wrote: > > >

Re: Calling superclass methods from implemented methods

2008-12-08 Thread Matt Revelle
, invokes the method, and returns the result. An example can be viewed here: http://gist.github.com/33787 I haven't done extensive testing, but seems to work. -Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Calling superclass methods from implemented methods

2008-12-09 Thread Matt Revelle
On Dec 9, 2008, at 10:03 AM, Rich Hickey wrote: > > > > On Dec 9, 12:24 am, Matt Revelle <[EMAIL PROTECTED]> wrote: >> The attached patch adds :super-methods option to generate-class as a >> map, {local-name [name [param-types] return-type], ...}. The >> me

Re: trolltech QT opengl SLIME REPL mac os x

2008-12-18 Thread Matt Revelle
On Dec 18, 2008, at 4:35 PM, Michael Reid wrote: > > For what its worth, I've had a similar setup working on Mac OS X 10.5: > > Aquamacs > SLIME > jogl-1.1.1 > > I'm pretty sure I'm running Java 1.6 (can't check now). I had no > issues with hangs. Perhaps QT is the bad ingredient. I'm thinking t

Re: making code readable

2008-12-29 Thread Matt Revelle
On Dec 29, 2008, at 10:45 AM, Mark Volkmann wrote: > > On Mon, Dec 29, 2008 at 5:44 AM, Mark Volkmann > wrote: > >> I would like to produce a version of the snake code that could serve >> as an example of the kind of code that the Clojure community thinks >> is >> "good". Unless it's part of a

Re: REPL Subtleties. Emacs inferior-mode.

2008-12-30 Thread Matt Revelle
On Dec 30, 2008, at 5:53 PM, CuppoJava wrote: > > Hi, > I'm just noticing some subtle threading problems when running a Jme > application from the REPL within inferior-lisp mode Emacs. > > For instance this works: > > (. jmetest.renderer.TestArrow main nil) > > But this doesn't: (attempting to e

Re: REPL Subtleties. Emacs inferior-mode.

2008-12-30 Thread Matt Revelle
On Dec 30, 2008, at 9:13 PM, CuppoJava wrote: > > Thanks Matt, > I was actually hoping for you to reply. I found one of your earlier > posts mentioning that you got JME working properly interactively with > the REPL. > > Unfortunately, your solution didn't seem to

Re: Clojure blog post about laziness

2009-01-08 Thread Matt Revelle
On Jan 8, 2009, at 8:55 AM, Rich Hickey wrote: > > > > On Jan 8, 7:26 am, Konrad Hinsen wrote: >> On 08.01.2009, at 11:22, Mark Engelberg wrote: >> >>> So my blog post has a dual purpose. First, I explain the "gotcha" >>> that Stuart and I discussed. Second, I report back to the community >

Re: Example Java oriented SWT GUI application in Clojure

2009-01-12 Thread Matt Revelle
http://clojure.org/vars#toc1 On Jan 12, 2009, at 9:42 PM, e wrote: > what is "set!"? I don't see that in the api > > On Mon, Jan 12, 2009 at 5:24 PM, BerlinBrown > wrote: > > Here is an example SWT application. It is a 'search' tool. Open a > file and the search term is highlighted. It has

Re: [ANN] Ring: A Web application library for Clojure.

2009-01-12 Thread Matt Revelle
Mark, This looks great! Thanks for writing and sharing. -Matt On Jan 12, 2009, at 11:45 PM, Mark McGranaghan wrote: > > Hi All, > > I'm happy to announce the alpha release of 'Ring', a library inspired > by Python's WSGI and Ruby's Rack for developing

Re: command-line in clojure.contrib suggestions

2009-01-15 Thread Matt Revelle
On Jan 15, 2009, at 10:51 AM, Chouser wrote: > > On Mon, Jan 12, 2009 at 10:58 PM, aria42 wrote: >> >> Couldn't it have access to the other bindings so far like let? And >> then just have the order of options reflect the partial order induced >> by dependency? So is this possible... >> >> (with

Re: Possible minor bug in gen-class: method name character escaping?

2009-01-16 Thread Matt Revelle
On Jan 16, 2009, at 2:46 PM, Greg Harman wrote: > > As I chew on this, a couple of things don't sit right with me > regarding use cases: > > 1. IMHO gen-class should fail with an appropriate message/exception > rather than trying to "fix" the signature. This is what the Java > compiler would do

Re: clojure repl quits after calling static java method

2009-01-17 Thread Matt Revelle
On Jan 16, 2009, at 9:40 PM, larry wrote: > > I'm calling a java static method Play.midi in JMusic from Clojure > REPL. > After it plays the notes and says: "completed MIDI playback", the > Clojure REPL quits. > How do I keep the Clojure REPL from quitting after making this call to > Java? JMus

Re: Common backend project?

2009-01-17 Thread Matt Revelle
On Jan 17, 2009, at 1:47 PM, Peter Wolf wrote: > > Sure, good idea. I'm in! > > As a first cut, I think we need to separate those tools written in JVM > languages (Clojure/Java) and those written in something else. > > I certainly think the JVM based projects can, and should, share > components.

Re: swank-clojure license

2009-01-17 Thread Matt Revelle
On Jan 17, 2009, at 5:03 PM, Stuart Sierra wrote: > > On Dec 31 2008, 5:16 am, lpetit wrote: >> I re-read my original post, and it seems clear to me : I stated I >> wish >> to embed swank-clojure files into clojure-dev plugin. > > I do not see a conflict here, provided you do not modify swank

Re: Basic about setting upp Clojure and editor enviroment

2009-01-21 Thread Matt Clark
If you're not already an emacs user, I found it can be quite the learning curve getting into it. So I'd recommend you also give the eclipse clojure-dev plugin a shot. It now has a REPL, namespace browser, syntax highlighting, etc and works fine on windows. http://code.google.com/p/clojure-dev/ O

Re: Basic about setting upp Clojure and editor enviroment

2009-01-21 Thread Matt Revelle
On Jan 21, 2009, at 11:33 AM, Tom Ayerst wrote: > If you are an emacs fan I am told Clojurebox, no contest. If you already use Emacs but aren't sure how to get Clojure support setup, Bill Clementson has plenty of helpful posts: http://bc.tech.coop/blog/081023.html http://bc.tech.coop/blog/0812

Any way we can get this in clojure-contrib?

2009-01-22 Thread Matt Moriarity
Under the suggestion of some people in the #clojure channel, I started working on a date library for Clojure since the built-in Java one is kind of a mess. It's not totally complete, but I think it could be quite useful. It supports getting the current date and time, and creating dates based on in

Re: Any way we can get this in clojure-contrib?

2009-01-22 Thread Matt Moriarity
By the way, I'm in the process of sending in my contributor agreement. Just so you 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

Re: Any way we can get this in clojure-contrib?

2009-01-22 Thread Matt Moriarity
a quick search, it looks like Mark McGranaghan is working on a > Clojure wrapper for Joda Time > herehttp://github.com/mmcgrana/clj-garden/tree/masterunder clj-time. > > On Thu, Jan 22, 2009 at 11:51 PM, Matt Moriarity > wrote: > > > > > By the way, I&#

Re: reader macros

2009-01-23 Thread Matt Revelle
On Jan 23, 2009, at 4:18 PM, Mark Volkmann wrote: > > On Fri, Jan 23, 2009 at 3:00 PM, Chouser wrote: >> >> On Fri, Jan 23, 2009 at 2:17 PM, Mark Volkmann >> wrote: >>> >>> Are all of these considered "reader macros"? >> [snip] >>> Is it correct that these are not considered "reader macros"?

Re: namespace concept

2009-01-23 Thread Matt Moriarity
1) "use" and "require" differ in that use does what require does, loads a library, but it also refers to the symbols in that lib in the current namespace. So essentially if you want to use clojure.contrib.def/defvar, if you (require 'clojure.contrib.def), you would have to say (clojure.contrib.def

Re: pretty-printing?

2009-01-28 Thread Matt Moriarity
I say go for it. maybe swank could use it for macroexpansions and stuff. the lack of pretty-print drives me crazy! On Jan 27, 10:56 am, Mike DeLaurentis wrote: > Hi, > > Is anyone aware of a pretty-print function for Clojure? I saw there > was some discussion about it on this thread a while ago,

Re: def vs. intern

2009-01-28 Thread Matt Moriarity
yes, that is why. On Jan 27, 9:55 am, Mark Volkmann wrote: > On Mon, Jan 26, 2009 at 8:19 PM, James Reeves > > > > wrote: > > > On Jan 27, 2:08 am, Mark Volkmann wrote: > >> Let's see if I've got this straight. > > >> (def foo 1) creates a Var in the default namespace with a value of 1. > > >>

test-expect functional mocking library

2009-02-06 Thread Matt Clark
Hi all, I hope I'm not reinventing the wheel with this, but I put together a function mocking library to allow for functional test isolation. At this point it handles return values, argument expectations, and invocation counts. I've just put together a core for it so far, but I intend to add som

Re: Clojure + Slick - "stylistic" questions

2009-02-09 Thread Matt Clark
the game grew and I separated it into various files, so I wouldn't worry about that too much. Personally, I've always been a fan of explicit imports so I know what's going on when I reference a class name :) -Matt On Feb 9, 9:14 am, phtrivier wrote: > Hi everyone > >

Re: calling Clojure functions from Java

2009-02-13 Thread Matt Revelle
clojureFn) { ... Object result = clojureFn.invoke(arg1, arg2); ... } That's just a rough example and IFn may not be the correct abstraction to use. -Matt On Feb 13, 2009, at 2:19 PM, Chas Emerick wrote: > > Mark, > > If you use the #^{:static true} metadata on a :method

Re: Clojure on CLR/DLR

2009-02-17 Thread Matt Revelle
All other implementations are also Clojure. Leaving out Clojure from the implementation name may encourage a "one language, many implementations" notion. Not saying that's desirable, only pointing it out. -Matt > > --~--~-~--~~~---~--~~

Re: General Question Clojure(Lisp) Idiom, cross cutting? What is the terminology

2009-02-20 Thread Matt Revelle
Higher-order functions (HOFs), are functions that use "lower" functions to perform a task. The map and reduce functions are both HOFs. On Feb 20, 2009, at 10:16 AM, Jeffrey Straszheim wrote: > The OO folks call this an "internal iterator" or "visitor". > However, I'd recommend against ad

Re: alternate syntax

2009-02-23 Thread Matt Revelle
On Feb 23, 2009, at 1:21 PM, MarkH wrote: > > Yes, clojure needs an alternative surface syntax for obvious reasons. > And anybody that brings up Dylan as a counter-example doesn't know > what they're talking about. Dylan died because Apple killed it. > It may be more productive to help newcomer

Re: "Adding" strings

2009-02-26 Thread Matt Revelle
On Feb 26, 2009, at 2:01 PM, Peter Wolf wrote: > > Thanks all. > > I think appending a bunch of strings is a pretty common operation. > > Is there any reason that str is limited to 2 arguments? It would be > nice to do (str "foo" "bar" "baz") --> "foobarbaz". It does. Try it out. =) > > > Is

Re: Clojure's syntax design: macros vs functions

2009-03-04 Thread Matt Revelle
On Mar 4, 2009, at 8:03 PM, Elena wrote: > > I wonder if Clojure does employ the same syntax either for macros and > functions by design or it's just a remainder of Lisp. I think that a > shared syntax for both macros and functions calls is a flaw in the > syntax of Lisps, because you can't tell,

Chrono date library

2009-03-05 Thread Matt Moriarity
This was posted about a little while ago, but a great deal more has happened. Basically, Phil Hagelberg and I have been working on a nice little date library for Clojure that doesn't rely on anything but the Java date APIs. Last time I posted about this, a few people brought up Joda time, which we

Re: fitness

2009-03-05 Thread Matt Moriarity
what about memoizing the fitness function? call fitness on your structs, and if it's memoized, it will return the cached value as long as the struct is the same value. if it's changed, then it will recompute. somebody correct me if this doesn't account for something, but it sounds like the right a

Re: mocking in clojure

2009-03-13 Thread Matt Clark
test-expect actually only depends on test-is for its own tests, and I'm planning on breaking the tests out into their own file. I thought it was an interesting idea having the tests and code in the same file, but in practice it ended up being less attractive than anticipated. - Matt On M

Annotations and gen-class

2009-03-24 Thread Matt Revelle
ata persistence. Being able to integrate a class generated by gen-class with, for example, a Java project using Guice would be handy. Thoughts? -Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure&quo

Re: Annotations and gen-class

2009-03-24 Thread Matt Revelle
place. Generating classes usable in Java code is sometimes necessary and as gen-class' feature set becomes more complete the better it serves users. > > On Mar 24, 9:57 am, Matt Revelle wrote: > > > Support for using JVM annotations with Clojure code has come up > > s

Re: doseq vs. map

2009-04-02 Thread Matt Revelle
Were you in #clojure earlier? This came up there and pjstadig and I raced to implement "domap" and then slashus2 pointed out there was no need for it to be a macro. http://gist.github.com/89249 (defn domap "A map for side-effects. The argument order is the same as map, but unlike map the fun

[ANN] test-expect functional mocking/expectation library

2009-04-11 Thread Matt Clark
re interested in merging our efforts let me know. Is your latest code available? -Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googl

Re: Got a Clojure library?

2009-04-13 Thread Matt Clark
Name: test-expect URL: http://code.google.com/p/test-expect/ Author: Matt Clark Tags: testing, mocking, expectations, stubbing License: EPL Dependencies: none (optional dependency on test-is) Description: Supports setting up and validating expectations on mocked dependency functions. Informative

Re: Contribs with dependencies

2009-04-14 Thread Matt Clark
to satisfy dependencies, but I am far from an expert in this realm. I think buildr does something similar, but someone can correct me if I'm wrong. -Matt On Apr 14, 12:38 pm, Konrad Hinsen wrote: > On Apr 14, 2009, at 17:17, Laurent PETIT wrote: > > > The problem will then be th

Re: Is Clojure production ready?

2009-04-16 Thread Matt Revelle
with a footnote that minor changes are fair game. > > Also, if anyone has any thoughts on hiring Clojure people, it would be > greatly appreciated. There are several people on the list capable and interested in working on a Clojure codebase. > > Thanks, > > Aaron -Matt -

Re: The Path to 1.0

2009-04-17 Thread Matt Revelle
On Apr 17, 9:21 am, Rich Hickey wrote: *snip* >Git is not going to happen any time soon, great as it may > be, given the current lack of infrastructure (google code) and tools > support. Is there some respect in which this impacts the core? It > would seem dangerous to marry any single approach i

Re: Modifying data structures without changing their interface

2009-04-20 Thread Matt Clark
Maybe I'm missing something, but what is wrong with Stuart Sierra's solution? I quite like it, and it would probably be more appealing if it were encapsulated into a macro. (def-propholder person) (def me (person {:name "Matt Clark"})) (def-propholder person2 :name

Re: ns :use with :rename

2009-05-27 Thread Matt Clark
+1 for better info on :use/:require. I find I tend to go digging into the clojure-contrib source for decent examples just because I'm not sure where else to look. On May 27, 11:03 am, tsuraan wrote: > > Here's the correct syntax: > > > (ns namespace > >    (:use [other-namespace :rename {existin

Re: What books have helped you wrap your brain around FP and Clojure?

2009-06-06 Thread Matt Revelle
It may help to review the code and structure of open source Clojure projects, part of the mind-bend feeling could be coming from struggling to know where to begin when writing code and less from unfamiliarity with the theory of FP. I'd also recommend playing with Haskell and reviewing "Real World

  1   2   3   >