Re: Helper functions for accessing properties in clojure-clr 1.2.0

2011-02-02 Thread Matthew D. Swank
On Feb 1, 6:10 pm, "Matthew D. Swank" wrote: > AFAIK clojure-clr doesn't have built-in support for accessing > properties.   Ok David Miller let me know off list the existing interop handle properties. -- You received this message because you are subscribed to the Google G

Helper functions for accessing properties in clojure-clr 1.2.0

2011-02-01 Thread Matthew D. Swank
AFAIK clojure-clr doesn't have built-in support for accessing properties. Something like this has probably been posted before, but I've been playing with Windows.Forms, and I found the following useful. (import '(System Type Array Exception) '(System.Reflection PropertyInfo MethodInfo)) (

yet another clojure clr thread

2009-04-26 Thread Matthew D. Swank
Given the recent dust-up on c.l.l about the platform independence of clojure, I was wondering anyone was still hacking on the CLR code base. The stuff in contrib doesn't seem to have changed since it was checked in February. Matt --~--~-~--~~~---~--~~ You received

conditions in monad comprehensions

2009-03-02 Thread Matthew D. Swank
in clojure.contrib.monad expressions handling conditions in the monad comprehension are generated by: (defn- add-monad-step "Add a monad comprehension step before the already transformed monad comprehension expression mexpr." [mexpr step] (let [[bform expr] step] (if (identical? bform

Re: Weighted Edge Representation

2008-10-30 Thread Matthew D. Swank
On Oct 30, 8:57 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > On Oct 29, 6:27 pm, ccahoon <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I'm wondering what would be a good way to represent a mincut, maximum > > flow problem in Clojure. A set of weighted edges makes sense to me, > > but I am not sure

ILC 2009

2008-10-29 Thread Matthew D. Swank
Are people going to ILC this spring? Rich, do you have any plans to do anything Clojure related there? Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojur

Re: Clojure ant target version

2008-10-26 Thread Matthew D. Swank
On Oct 26, 7:47 pm, verec <[EMAIL PROTECTED]> wrote: > Even us in OS X > land have had access to 1.6 for nearly as long as clojure has been > made public :-) > -- > JFB Not if you are using OS-X on a PPC mac. Matt --~--~-~--~~~---~--~~ You received this message be

Re: Currying for Clojure

2008-10-25 Thread Matthew D. Swank
On Oct 23, 8:12 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > On Oct 22, 6:45 pm, André Thieme <[EMAIL PROTECTED]> wrote: > > > On 23 Okt., 00:28, wwmorgan <[EMAIL PROTECTED]> wrote: > > > > You can get most of the functionality you're looking for with partial > > > Yes sure. The thing is that curr

patch to add character? to boot

2008-10-25 Thread Matthew D. Swank
It's a small thing, but all the other basic types have dedicated predicates. character-p-patch adds this. Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cl

enforced keyword constraints

2008-10-25 Thread Matthew D. Swank
Keywords are like symbols, except: o They can and must begin with a colon, e.g. :fred. o They cannot contain '.' or name classes. The last requirement does not seem to be enforced by the reader: user> (keyword? :java.lang.Character) true user> (keyword? :Character) true user>

Non Local Exits

2008-10-16 Thread Matthew D. Swank
So, I'm trying to clear up some flow control issues in my head, and I want to confirm that my thinking is at least in the right direction. Let's say I implement a very simple restart facility with the following style: (def current-handler) (def current-restart nil) In some code I want to handle

Re: Preliminary AOT support and swank-clojure startup times

2008-10-15 Thread Matthew D. Swank
On Oct 14, 6:35 pm, "Matthew D. Swank" <[EMAIL PROTECTED]> wrote: > On Oct 14, 4:48 pm, Randall R Schulz <[EMAIL PROTECTED]> wrote: > > > > > On Tuesday 14 October 2008 14:17, Matthew D. Swank wrote: > > > > Just a data-point: > > > O

Re: Can't find swank/core/DebugQuitException under rev. 1068

2008-10-15 Thread Matthew D. Swank
On Oct 15, 10:45 am, "Matthew D. Swank" <[EMAIL PROTECTED]> wrote: > Picking the abort restart in the slime debugging window causes an > exception: > java.lang.NoClassDefFoundError: swank/core/DebugQuitException > (NO_SOURCE_FILE:0) >   [Thrown class clojure.

Can't find swank/core/DebugQuitException under rev. 1068

2008-10-15 Thread Matthew D. Swank
Picking the abort restart in the slime debugging window causes an exception: java.lang.NoClassDefFoundError: swank/core/DebugQuitException (NO_SOURCE_FILE:0) [Thrown class clojure.lang.Compiler$CompilerException] Restarts: 0: [ABORT] Return to SLIME's top level. 1: [CAUSE] Throw cause of this

Re: emacs-cvs and swank-clojure under os-x 10.4

2008-10-15 Thread Matthew D. Swank
On Oct 15, 6:47 am, "Fredrik Appelberg" <[EMAIL PROTECTED]> wrote: > On Tue, Oct 14, 2008 at 9:49 PM, Matthew D. Swank < > > > > [EMAIL PROTECTED]> wrote: > > > swank-clojure seems to work fine; it just seems that java is ignoring > > 's

Re: Preliminary AOT support and swank-clojure startup times

2008-10-14 Thread Matthew D. Swank
On Oct 14, 4:48 pm, Randall R Schulz <[EMAIL PROTECTED]> wrote: > On Tuesday 14 October 2008 14:17, Matthew D. Swank wrote: > > > Just a data-point: > > OS: Windows-XP > > CPU: Pentium-IV 2.8 Ghz > > Mem: 504 MB > > > JDK:1.6u10rc > > > Sta

Preliminary AOT support and swank-clojure startup times

2008-10-14 Thread Matthew D. Swank
Just a data-point: OS: Windows-XP CPU: Pentium-IV 2.8 Ghz Mem: 504 MB JDK:1.6u10rc Startup time of swank-clojure rev. 1064: 6 s. Startup time of swank-clojure rev. 1068: 120 s! When I get home, I can see if the difference is as dramatic in Linux x68_64 and OS-X PPC32. --~--~-~--~~--

emacs-cvs and swank-clojure under os-x 10.4

2008-10-14 Thread Matthew D. Swank
swank-clojure seems to work fine; it just seems that java is ignoring 'swank-clojure-extra-classpaths. in slime: user> (require 'clojure.contrib.zip-filter) java.io.FileNotFoundException: Could not locate Clojure resource on classpath: clojure/contrib/zip_filter/zip_filter.clj (NO_SOURCE_FILE: 0

Re: "Invalid this class index..." exception

2008-10-14 Thread Matthew D. Swank
On Oct 14, 1:09 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: > On Oct 14, 1:55 pm, "Paul Stadig" <[EMAIL PROTECTED]> wrote: > > > I'm getting the following error message when trying to load a 12MB clojure > > file that is basically just a big hashmap of fundamental types (i.e. > > strings, numbers

Re: Anonymous function syntax in R1053

2008-10-07 Thread Matthew D. Swank
On Oct 7, 12:32 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > On Oct 7, 2008, at 1:21 AM, Matthew D. Swank wrote: ... > Here's a similar question and answer from the list archive that   > includes a cool tip for seeing the effect of reader macros: > >

Associating metadata with keywords

2008-10-07 Thread Matthew D. Swank
This seems strange: (with-meta :foo {:type 'id}) causes: java.lang.IncompatibleClassChangeError (NO_SOURCE_FILE:0) [Thrown class clojure.lang.Compiler$CompilerException] Restarts: 0: [ABORT] Return to SLIME's top level. 1: [CAUSE] Throw cause of this exception Backtrace: 0: clojure.lang.C

Anonymous function syntax in R1053

2008-10-06 Thread Matthew D. Swank
Typing #(nil) at a repl gives me: java.lang.NullPointerException (NO_SOURCE_FILE:1) [Thrown class clojure.lang.Compiler$CompilerException] Restarts: 0: [ABORT] Return to SLIME's top level. 1: [CAUSE] Throw cause of this exception Backtrace: 0: clojure.lang.Compiler.analyzeSeq(Compiler.ja

swank-clojure chokes reading definitions after update to svn 1053

2008-10-06 Thread Matthew D. Swank
In the *inferior-lisp* after typing a form: Exception in thread "Read Loop Thread" java.lang.RuntimeException: clojure.lang.LispReader$ReaderException: java.lang.Exception: Invalid token: swank::*load-path* at clojure.lang.AFn.run(AFn.java:42) at java.lang.Thread.run(Thread.java:

Re: Good Introductory materials to the Java ecosystem.

2008-10-04 Thread Matthew D. Swank
On Oct 5, 12:12 am, "Matthew D. Swank" <[EMAIL PROTECTED]> wrote: > I thinks there is a happy medium in there somewhere. Evidently I'm Smeagol: which, by the way, would be a wonderful name for a programming language. Matt --~--~-~--~~~---~--

Re: Good Introductory materials to the Java ecosystem.

2008-10-04 Thread Matthew D. Swank
On Oct 4, 2:54 pm, Stuart Sierra <[EMAIL PROTECTED]> wrote: > On Oct 3, 11:06 pm, "Matthew D. Swank" <[EMAIL PROTECTED]> > wrote: > > > I Googled a bit, but I was wondering if anyone here had any > > recommendations.   ... > Hi Matt, >

Good Introductory materials to the Java ecosystem.

2008-10-03 Thread Matthew D. Swank
I Googled a bit, but I was wondering if anyone here had any recommendations. I am somewhat familiar with the .NET and the CLR. However I am pretty green on the JVM operations and semantics, and the various tools and platforms that make development and deployment go along swimmingly. Thanks, Mat