Re: Clojure/flutter

2018-04-26 Thread Kees-Jochem Wehrmeijer
Flutter definitely looks interesting, but I guess to make it work with Clojure would require writing a 'ClojureDart', i.e. a Clojure that compiles to Dart code. Given Dart sits somewhere between Java and Javascript, this is maybe not undoable, but would certainly be a lot of work. On

overriding seq in defrecord

2011-02-05 Thread Kees-Jochem Wehrmeijer
Hi all, I'm playing around with defprotocol and defrecord and I ran into a problem when trying to provide my own seq method. I try to create a record like so: (defrecord Foo [bar] clojure.lang.Seqable (seq [this] (seq this))) but I get an error: error: java.lang.ClassFormatError: Duplicate

Re: overriding seq in defrecord

2011-02-05 Thread Kees-Jochem Wehrmeijer
Why do you want to override seq? The only reason that I can think of is that you are implementing some sort of custom data type. If that is the case, you should be using deftype instead; defrecord is a protocol- aware drop in replacement for normal maps. Well, my idea was for the type to hold

Re: Google App Engine - best workflow

2009-05-15 Thread Kees-Jochem Wehrmeijer
vict...@gmail.com wrote: On Wed, May 13, 2009 at 5:35 PM, Kees-Jochem Wehrmeijer henc...@gmail.com wrote: Hi everybody, I started playing with Clojure on Google App Engine. By following the experiences of others (http://elhumidor.blogspot.com/2009/04/clojure- on-google-appengine.html

Google App Engine - best workflow

2009-05-13 Thread Kees-Jochem Wehrmeijer
Hi everybody, I started playing with Clojure on Google App Engine. By following the experiences of others (http://elhumidor.blogspot.com/2009/04/clojure- on-google-appengine.html and http://www.fatvat.co.uk/2009/05/clojure-on-google-app-engine.html mostly) I was able to get something running

Re: Ring: A Web application library for Clojure.

2009-01-13 Thread Kees-Jochem Wehrmeijer
This looks really cool. I've actually been experimenting with exactly the same thing. One thing I thought about (but didn't implement), was using some kind of lazy hash map, for the request, so that it only calls the methods (like getServerPort) if you need them. I don't really know how hard or

Re: load-file within a do

2008-12-30 Thread Kees-Jochem Wehrmeijer
20:37 schrieb Kees-Jochem Wehrmeijer: I created a small file foo.clj with the following contents: (defn foo [] :bar) Then from a REPL I try the following: (do (load-file foo.clj) (foo)) but this gives an error message: java.lang.Exception: Unable to resolve symbol: foo

load-file within a do

2008-12-29 Thread Kees-Jochem Wehrmeijer
Hi everybody, I just got started with Clojure and I'm now trying to simultaneously learn Lisp and Java. My progress is slow, but I'm having a lot of fun. I hit a small roadblock though, because I can't figure out why calling load-file from within a do is behaving the way it is. I'm probably