bug affecting clojure.core/bean?

2009-02-18 Thread Rob
Hi, I'm wondering if I found a bug. I have the latest source from svn (r1291). user=> (bean 1) java.lang.IllegalArgumentException: Wrong number of args passed to: core$bean--5161$fn--5179$thisfn It used to show the bean properties of the java.lang.Integ

Re: how to learn clojure ?

2009-02-18 Thread rob
hat uses the Scheme dialect of Lisp. Also, check out Doug Hoyte's new advanced book on macros once you get through these others. That's an awesome book. It's kind of a sequel to On Lisp, though by a different author. Rob On Feb 18, 7:53 am, MarisO wrote: > All documentation I

Re: how to learn clojure ?

2009-02-18 Thread rob
hat uses the Scheme dialect of Lisp. Also, check out Doug Hoyte's new advanced book on macros once you get through these others. That's an awesome book. It's kind of a sequel to On Lisp, though by a different author. Rob On Feb 18, 7:53 am, MarisO wrote: > All documentation I

Re: compiling a GUI app and also: interference of Java's built-in architechture

2009-02-20 Thread rob
What do you mean when you say there is no need to compile your program to distribute it? Doesn't that require end users to set up a clojure environment? And how would you deploy a web-based application without compiling it? On Feb 19, 6:51 pm, Kevin Albrecht wrote: > I can vouch for using SWT

Re: compiling a GUI app and also: interference of Java's built-in architechture

2009-02-20 Thread rob
under "worse is better" and move on making use of all the really awesome things about Cljojure. On Feb 16, 11:45 am, David Nolen wrote: > On Mon, Feb 16, 2009 at 10:27 AM, rob levy wrote: > > So if I am right about these two facts, it seems like Clojure should > > include a n

Re: compiling a GUI app and also: interference of Java's built-in architechture

2009-02-20 Thread rob
The tip on compilation is really useful. Thanks! On Feb 16, 11:08 am, levand wrote: > If you have a Clojure namespace that uses gen-class, and if there is a > method called '-main' within that namespace, then the resultant > *.class file is equivalent to a Java class with a 'main' method, and

suggestion for resultset-seq and duplicate column names

2009-02-22 Thread Rob
Hi, How about having this function call .getColumnLabel instead of .getColumnName. That way, you can do a join with duplicate column names and rename them in the SQL query... select name name1, name name2, ... from ... and resultset-seq won't throw an exception. ?

Re: suggestion for resultset-seq and duplicate column names

2009-02-23 Thread Rob
On Feb 23, 8:33 am, Rich Hickey wrote: > Sounds good to me - any drawbacks to this? Does it require that the > columns be named explicitly? I can't think of any drawbacks. When the column is not named explicitly, getColumnLabel returns the same thing as getColum

Re: compiling a GUI app and also: interference of Java's built-in architechture

2009-02-25 Thread rob
Someone mentioned the "application context" pattern in a recent post on this list. I think that would be a great way to functionally implement GUIs in general. The idea is that new states are generated from previous ones and passed as a parameter instead of having a globally defined state that y

Re: filter1 interesting?

2009-03-10 Thread Rob
quot;predicate" returns it's argument instead of true. Rob --~--~-~--~~~---~--~~ 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 To uns

Re: android app development with clojure

2009-03-11 Thread rob
Hi Remco, If you've written up anything, or plan to, on your progress on getting Clojure going on the Android platform I'm very interested in learning more. Thanks! Rob On Feb 6, 12:29 pm, "Remco van 't Veer" wrote: > Got startup time down to 5 seconds by complet

Re: android app development with clojure

2009-03-11 Thread rob
That is exciting! Have you posted any code or advice/instruction on how one could repeat what you did with Clojure on the Android phone? Rob On Feb 6, 12:29 pm, "Remco van 't Veer" wrote: > Got startup time down to 5 seconds by completely eliminating the use > of lisp

Re: android app development with clojure

2009-03-12 Thread rob
_from_Clojure Rob On Mar 11, 2:22 pm, rob wrote: > That is exciting!  Have you posted any code or advice/instruction on > how one could repeat what you did with Clojure on theAndroidphone? > > Rob > > On Feb 6, 12:29 pm, "Remco van 't Veer" wrote: > >

Re: filter1 interesting?

2009-03-18 Thread Rob
How about using "find", and renaming the current "find" to "get- entry"? I haven't used the current `find' function much. Does anyone? I don't see it used once in the .clj files in Clojure itself.

Re: What makes Clojure an easier Lisp?

2009-03-23 Thread rob
I don't think anyone would claim that Clojure is an easier Lisp, if anything it is harder. Programming in Common Lisp or Scheme is very simple. Clojure on the other hand is like CL or Scheme with additional cognitive demands on the programmer to think about functional and concurrent programming

PermGen OutOfMemory error

2009-06-11 Thread Rob
ure, or in Tomcat; or a limitation of the JVM? thanks, Rob Here is the entire barfage from my Tomcat log: Jun 11, 2009 12:01:57 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet ClojureServlet threw exception java.lang.NullPointerException

Re: PermGen OutOfMemory error

2009-06-12 Thread Rob
" command. It copies .clj files into the classpath and they then get compiled at runtime. When I deploy to the live server, I have an Ant target that compiles the clj files to class files, packages them with everything else in the WAR file, and copies the WAR to the server. Rob --~--~-

javafx

2009-06-20 Thread Rob
't have to learn yet another scripting language to build these GUIs... but anyway, before I start decompiling class files I wanted to ask if anyone else has been playing with this, or maybe knows about some documentation that I haven't found. thanks, Rob --~--~-~--~~

Re: javafx

2009-06-20 Thread Rob
ks. I'll post again if I find out more, or reverse engineer enough to have some usable clojure code. Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

Re: javafx

2009-06-22 Thread Rob
Sorry, but I'd like to correct the record here. :) It's not Swing -- it's a completely new GUI toolkit. And interop with Clojure may necessary if you want to use Clojure to write web apps with video or animations in the near future. Some animations are &q

Re: Clojure vectors

2009-07-13 Thread Rob
ng page says that 'count' for lists is O(1) http://clojure.org/data_structures Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@

Re: Clojure as a CGI language?

2009-07-20 Thread rob
It sounds like you want to avoid the approach of Apache Tomcat and Clojure servelets (why not do it that way by the way?) CGI allows you to operate any program via the web, but it will be alot slower if you have load everything every time a request is received by the server. My guess is that it w

New Lisp book involving Clojure

2009-07-22 Thread rob
FYI, The latest post on Planet Lisp discussing Nick Levine's upcoming book "Lisp outside the Box" (to be published by O'Reilly from what I understand) mentions it will involves some words on interaction between CL and Clojure. http://enlivend.livejournal.com/12770.html --~--~-~--~~

source locations in error messages from macros

2009-07-27 Thread Rob
s. I was imagining something like this... (defmacro something [a ...] (if (not (symbol? a)) (let [loc (get-source-location a)] (throwf "file: %s line: %s a should be a symbol" (loc :file) (loc :line) ... Th

Re: source locations in error messages from macros

2009-07-28 Thread Rob
#x27;d like to experiment with this simpler way of doing it, and see if I can generate "good enough" error messages by having the location of only the compound/list expressions sent to the macro. But, I don't see a filename anywhere. Why isn'

Re: source locations in error messages from macros

2009-07-28 Thread Rob
On Jul 28, 11:02 am, Meikel Brandmeyer wrote: > Hi, > > On Jul 28, 3:47 am, Rob wrote: > > > (defmacro something [a ...] > >   (if (not (symbol? a)) > >       (let [loc (get-source-location a)] > >          (throwf "file: %s line: %s  a shoul

Re: source locations in error messages from macros

2009-07-28 Thread Rob
On Jul 28, 2:19 pm, Mike Hinchey wrote: > My example only had a :line because it was in the repl.  I'm sure if it was > in a .clj, it would have the source, too. I'm testing with .clj files, and it still only has :line. Rob --~--~-~--~~~---~--~--

the point of next vs rest?

2009-08-09 Thread Rob
n abstract immutable sequence with a java interface like: public interface FunctionalListyThing { Object first(); FunctionalListyThing rest(); boolean isEmpty(); } Why does one need the 4th method, "next()" ? thanks, Rob --~--~-~--~~~---~--~---

Re: the point of next vs rest?

2009-08-09 Thread Rob
ne of it's methods. Or it could return a simple cons cell. But maybe using it for both things leads to an ugly implementation somewhere. Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" gro

Re: How to write a macro that writes another macro?

2009-08-11 Thread rob
Let Over Lambda by Hoyte contains a very lucidly well-written discussion of quotation levels in macros. It also includes a pretty useful technique for being explicit about variable capture. The code is in Common Lisp, but will mostly only differ syntactically from the Clojure code (for the basic

Re: Can Clojure be as fast as Java?

2009-08-13 Thread rob
ecessarily testy considering how friendly the Clojure community is in general. Rob On Aug 12, 5:25 am, Piyush Ranjan wrote: > This is a troll question. I have seen similar questions posted on other > forums about languages like ruby, CL, Haskell, Prolog, C, C++, fortran, > bigloo(?) etc

Re: Is knowing Java a prerequisite for using Clojure?

2009-09-17 Thread rob
My experience so far is that most of the annoying things that get in the way of doing cool Clojure things are due to Java. Things like how classpaths work for example, and permissions. My experience with Java comes from college courses I took about 10 years ago, so the Java level of Clojure can

Re: apply for macros?

2009-10-03 Thread Rob
e false true false) user=> (eval code) false user=> (macroexpand code) (let* [and__3981__auto__ true] (if and__3981__auto__ (clojure.core/and false true false) and__3981__auto__)) Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Clojure Applets: Tutorial

2009-10-14 Thread rob
Clojure. This compiles to a class file, which you then use. I had the same security issues as you though, so I'm going to look over what you did to get around that (type declarations you say?). The compile script: #!/bin/sh -e base=/home/rob/bin/authored/games/clojure cd $base echo "(c

Re: Newcomer's question about Clojure's compatibility with common lisp

2009-10-30 Thread rob
Clojure is actually an entirely different language in the Lisp family of languages. In addition to ABCL (Common Lisp on the JVM), there are also 2 or 3 Scheme implementations on the JVM. On Oct 29, 8:09 am, "bal...@gmail.com" wrote: > Hello, > > First let me congratulate the clojure team on thi

Re: Is it possible to implement break or return in Lisp?

2009-11-03 Thread rob
I'm pretty sure there was an example of this using continuations in Dybvig's book on Scheme. I just flipped through it and didn't readily find it, but I think that is where I saw it. On Nov 1, 8:04 pm, CuppoJava wrote: > Hi, > For the purposes of a DSL that I'm writing, it would be very > conve

Re: eval performance

2009-12-21 Thread rob
It sounds like your use of evals might be something that could be done better using a more idiomatic clojure approach. What are you trying to do that re On Dec 21, 2:32 pm, Gabi wrote: > Hi > I have this program that needs to do many eval's to same expression > (eval '(some-list-to-execut..)) >

Re: eval performance

2009-12-21 Thread rob
It sounds like your use of evals might be something that could be done better using a more idiomatic clojure approach. What are you trying to do that re On Dec 21, 2:32 pm, Gabi wrote: > Hi > I have this program that needs to do many eval's to same expression > (eval '(some-list-to-execut..)) >

Re: eval performance

2009-12-21 Thread rob
Sorry, I somehow accidentally sent it before I was done typing. The rest of my sentence was "what are you trying to do thar requires the use of evals in that way". On Dec 21, 4:22 pm, rob wrote: > It sounds like your use of evals might be something that could be done > bet

Jython interop

2010-01-24 Thread rob
it. However I wonder if it would be possible to somehow call individual python functions from Clojure. Like I said, I have not tried this yet, so it might actually be straightforward and obvious. I'm just wondering if anyone has tried doing this. Thanks, Rob -- You received this message be

Re: Jython interop

2010-01-25 Thread rob
Thank you for these good ideas! I'm going to try it. My goal is to use the Natural Language Toolkit in Clojure. I also posted the same question here: http://stackoverflow.com/questions/2129253/clojure-jython-interop Rob On Jan 24, 7:08 pm, Eric Lavigne wrote: > > I was wonderin

Re: Jython interop

2010-01-25 Thread rob
Thanks again Marc, I made a note of it on the StackOverflow thread. On Jan 25, 2:41 pm, Marc Downie wrote: > On Mon, Jan 25, 2010 at 5:34 PM, rob wrote: > > Thank you for these good ideas!  I'm going to try it.  My goal is to > > use the Natural Language Toolkit in Clojure.

Re: Jython interop

2010-03-06 Thread rob
google.com/p/clojure-python/source/browse/trunk/ http://code.google.com/p/clojure-python/source/browse/trunk/src/python.clj Let me know what you think, feedback, suggestions, contributions, etc. Rob On Jan 25, 6:31 pm, rob wrote: > Thanks again Marc, I made a note of it on the StackOverflow t

Re: where to find clojure gigs?

2016-07-15 Thread rob
We're (http://www.Omnypay.net) looking for Clojurians to work short term with the eventual possibility of long term. Drop me a note (j...@omnypay.net or direct if you know my direct email) and let me know what you are looking for and your experience. Thanks! Rob On Wednesday, July 13,

Re: [ANN] Clojure 1.9.0-alpha20

2017-09-08 Thread rob
Relatedly, what is the rationale for this requiring or benefiting from new syntax, versus using tagged literals for things like Inf & -Inf. Is it a compiler performance optimization or something like that? On Friday, September 8, 2017 at 12:27:02 PM UTC-7, Alex Miller wrote: > > > On Fri, Sep 8

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread rob
If ClojureScript repl integration works smoothly out of the box then that's already one reason to use it over Cider... (This is not a jab at Cider, just a statement of fact that Cider's support for ClojureScript development has so far been lacking, IME) On Thursday, July 5, 2018 at 10:51:02 AM

Re: Basic toolset for non-Java programmer

2010-06-18 Thread rob
My attitude toward debugging is decidedly non-Java, but I find the best thing to do is break your problem into small enough pieces that you can experiment with them rapidly in the REPL. For certain stuff that is hard to test in the repl (such as aspects of applet development for example and other

leiningen-war

2010-08-08 Thread rob
As far as I can tell, based on using it so far, the war plugin for leiningen requires writing a web.xml file. I was just wondering why it doesn't generate that xml file for you based on the information you've specified already in leiningen. Would that be a good contribution to make, or are there

error in clojurescript dom.cljs?

2012-05-01 Thread Rob
[this] (log "Vector (-element " this ")") ... Is "Vector" not the right type name? Rob -- 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

what is "js/" in clojurescript?

2012-05-02 Thread Rob
Hi, Syntax like this doesn't work in normal Clojure, right? js/document.body.style It just did in a ClojureScript repl. Is there something magic about "js/" ? What is it? thanks, Rob -- You received this message because you are subscribed to the Google Groups "Clo

Re: what is "js/" in clojurescript?

2012-05-02 Thread Rob
On Thursday, May 3, 2012 12:17:03 AM UTC-4, Tamreen Khan (Scriptor) wrote: > > > However, doing the form (MyClass/MyStaticMethod arg1 arg2 ...) *does* > exist in Clojure. It's a way of calling static Java methods or accessing > static fields. See http://clojure.org/java_interop for more info.

In clojurescript (extend-protocol undefined ...) should be error?

2012-05-02 Thread Rob
as I find them, or not ... whatever you developers prefer. I don't know enough Clojure to be fixing them myself yet. ) Rob -- 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

require without :as in clojurescript?

2012-05-03 Thread Rob
ght take a shot at fixing that. (The contributors agreement is in the mail :). Rob -- 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 -

Re: ANN: contrib-repl

2012-12-03 Thread rob
That was my first thought, and considered also generating a project.clj, but after thinking about it I decided I didn't want to encourage this type of behavior beyond REPL experimentation, so I preferred to do it in a way that focuses on the REPL. On Tuesday, December 4, 2012 2:24:38 AM UTC-5,

Re: Trying to make an applet with clojure

2008-11-27 Thread rob
in this context (NO_SOURCE_FILE:3) java.lang.Exception: Unable to resolve symbol: import in this context (NO_SOURCE_FILE:3) I'm using the code that Bill Robinson posted earlier, and getting this error. Does anyone know what might be the cause of this? Thanks, Rob On Feb 23, 9:58 am, William Robins

Re: Trying to make an applet with clojure

2008-11-27 Thread rob
Actually, this is an issue with qualified names, apparently it was necessary to explicitly invoke the clojure.core namespace. On Nov 27, 12:18 pm, rob <[EMAIL PROTECTED]> wrote: > Any news on this?  I'm also interested in getting clojure to work in > an applet.  Right now, I&

compiling a GUI app and also: interference of Java's built-in architechture

2009-02-16 Thread rob levy
ng Java to call it (it seems like Clojure should replace Java, not perpetuate it, other than to build on its vast libraries, IMHO). What do you think (and is there something I'm understanding wrong here)? Rob --~--~-~--~~~---~--~~ You received this message

Re: swank-clojure + slime

2009-03-08 Thread Rob Wolfe
/core.clj But I couldn't find description of this macro in official API: http://clojure.org/api. Maybe somebody could explain what is the reason of this confusion about "lazy-seq"? Br, Rob --~--~-~--~~~---~--~~ You received this message because you

with-open and java interoperability

2009-06-06 Thread Rob Wolfe
rt (java.io StringReader))) (def x (with-open [s (-> (StringReader. "abc") (clojure.lang.LineNumberingPushbackReader.))] (binding [*in* s] (read (println x) $ clojure test2.clj abc I thougth that "StringReader." and "new StringReader" are equivalent, right? So why these progr

Re: with-open and java interoperability

2009-06-06 Thread Rob Wolfe
Meikel Brandmeyer napisał(a): > Hi, > > Am 06.06.2009 um 21:40 schrieb Rob Wolfe: > > > I'm trying to understand why this program throws an exception: > > It doesn't work because > > > (-> (new StringReader "abc") > > (new cloj

Re: Solving memory problems with Clojure code

2009-06-22 Thread Rob Wolfe
2fMB, reserved: %.2fMB, max: %.2fMB", totalUsed / MB, totalReserved / MB, totalMax / MB)); return sb.toString(); } public static void main(String[] args) throws IOException { TestIO test = new TestIO(); test.testOpenFile(args[0]); } } Br, R

Re: Build error in latest clojure checkout

2009-08-05 Thread Rob Wolfe
-to-date. $ git log HEAD^! commit 2098f5d57ecf3affb09a4cdaf2e01ad4de861eef Author: Rich Hickey Date: Wed Aug 5 14:29:32 2009 -0400 replace copyOf with arrayCopy $ java -version java version "1.5.0_09" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-26 Thread Rob Wolfe
org.apache.maven.plugins maven-clean-plugin clean-clojure clean clean . ${clojure_jar}.jar

Re: vs. Python

2009-08-30 Thread Rob Wolfe
understanding it. The problem begins when it comes to understand algorithms written in functional style. For example using "reduce" for Clojurians seems to be very straightforward and common. For people coming from imperative world it is not so easy to use and understand. It would be

Re: Order of keys within a map?

2009-09-01 Thread Rob Lachlan
As, Patrick Sullivan, said, the built-in sorted-map guarantees that the keys will be in order. I'm probably missing something here, but wouldn't that fit the bill? http://clojure.org/api#sorted-map Rob Lachlan On Aug 27, 12:35 pm, Howard Lewis Ship wrote: > Is the order of

third party libraries and agents shutdown

2009-10-12 Thread Rob Wolfe
haven't added "shutdown-agents" call. What do you do in such case: a) take a look at the library code to find out if there are used agents b) take a look at the library docs, where should be explicitly required "shutdown-agents" call c) add "shutdown-a

Re: Writing binary data using http.agent and duck-streams

2009-10-24 Thread Rob Wolfe
tp]) (:import [java.io FileOutputStream])) (await (http/http-agent "http://clojure.googlecode.com/files/clojure_1.0.0.zip"; :handler (fn [agnt] (with-open [w (FileOutputStream. "clojure.zip")] (ds/copy (http/stream agnt) w) (shutdown-agents)

Re: Clojure contrib http-agent hangs when making a POST request

2009-10-30 Thread Rob Wolfe
(let [a @http-agnt] + (if (= (::state a) ::receiving) + (string http-agnt (or (.getContentEncoding + #^HttpURLConnection (::connection @http-agnt)) + duck/*default-encoding*)) + (string http-agnt duck/*default-en

Re: FileNotFoundException (Access is denied)

2009-11-26 Thread Rob Wolfe
ot;with-open [rdr (reader file)]" is the problem, but why? I guess "reader" does not work for directories. Try to change your "for" loop like this: (for [file (file-seq dir) :when (.isFile file)] HTH, Rob -- You received this message because you are subscribed to the Goog

Re: Leiningen in Python

2009-12-12 Thread Rob Wolfe
main if __name__ == '__main__': if len(sys.argv) > 1 and sys.argv[1] == 'self-install': download_lein_jar() elif len(sys.argv) > 1 and sys.argv[1] == 'repl': start_repl(sys.argv[2:]) else: run_leiningen(sys.argv[1:]) ### EOF >

Re: what is the correct way to "mvn install" clojure-contrib

2009-12-14 Thread Rob Wolfe
. ${jarfile}.jar ${slimjarfile}.jar false HTH, Rob -- You received this message because you are subscribed to the

Re: Leiningen in Python

2009-12-15 Thread Rob Wolfe
Phil Hagelberg napisał(a): > Rob Wolfe writes: > > > Yes, there are some escaping problems on Windows. I changed a little bit > > "lein.py" and this worked for me on Windows and Linux: > > Can I include this in Leiningen 1.1.0+ with a note saying it's only

Re: Leiningen in Python

2009-12-19 Thread Rob Wolfe
(fn [project jar-os spec] (:type spec))) (defmethod copy-to-jar :path [project jar-os spec] (doseq [child (file-seq (file (:path spec)))] (when-not (.isDirectory child) - (let [path (str child) -path (re-sub (re-pattern (str "^" (:root project))) "" p

Re: Leiningen in Python

2009-12-20 Thread Rob Wolfe
John writes: > Hi Rob, > > I made the changes src/leiningen/jar.clj that you suggested. > Then issued the commands: > > E:\etc\clojure\Leiningen\lein.py clean > E:\etc\clojure\Leiningen\lein.py deps > E:\etc\clojure\Leiningen\lein.py compile > E:\etc\clojure\Lei

Re: seeking rudimentary defprotocol + deftype help

2009-12-29 Thread Rob Lachlan
I'm also looking for some help on deftype, and rather than start another thread, I thought I'd toss it in here. Basically, how do I type hint for a deftype. For example, suppose I want a nested type, something that looks like this: (deftype A [#^somePrimitive someField]) (deftype B [#^

Re: leiningen javac plugin

2009-12-30 Thread Rob Wolfe
ool for Clojure designed to not set your hair on fire." was inspired by tools being "smarter" than developer. ;) If you mean explicit joining of commands, e.g.: $ lein clean compile-java compile jar or somehow in project.clj then I'm all in favour of this approach. Br, Rob -

Status of bounded search on sorted-map?

2009-12-30 Thread Rob Lachlan
gory details of PersistentTreeMap, so I don't know how difficult this would be to do. Intuitively though, since we have the keys are in a sorted tree, I thought that it would be possible to have a bounded search in something like O(log n). Rob p.s. I asked a related question on stackoverf

Re: seeking rudimentary defprotocol + deftype help

2009-12-30 Thread Rob Lachlan
Thanks alot guys! On Dec 30, 1:41 pm, Raoul Duke wrote: > p.p.s. i was using -alpha- and changed to -new- (and pulled today) and > now i get a slightly different error. am i just flubbing the syntax in > some way i can't see for the trees?! > > user=> (defprotocol P (foo [x])) > P > user=> (defty

Re: Status of bounded search on sorted-map?

2009-12-30 Thread Rob Lachlan
f, too.  Send me a note if you need more than > this. > > Sean > > On Dec 30, 5:37 pm, Rob Lachlan wrote: > > > > > About a year and a half ago, there was some discussion about having a > > function that would enable some kind of bounded search on a sorted > > map:

Re: Status of bounded search on sorted-map?

2009-12-30 Thread Rob Lachlan
I should have said: since the keys are already in a tree. If they were in a linked list, I'd expect to have to iterate over most of the list. On Dec 30, 3:10 pm, Rob Lachlan wrote: > This would work, but would require iterating over the keys, for > something like O(n) performance.

Re: Status of bounded search on sorted-map?

2009-12-30 Thread Rob Lachlan
gt; On Dec 30, 6:10 pm, Rob Lachlan wrote: > > > > > This would work, but would require iterating over the keys, for > > something like O(n) performance.  I'm hoping that we can do better, > > since the keys are already in an ordered collection. > > > On De

Re: Status of bounded search on sorted-map?

2009-12-30 Thread Rob Lachlan
ley wrote: > 2009/12/31 Rob Lachlan : > > > About a year and a half ago, there was some discussion about having a > > function that would enable some kind of bounded search on a sorted > > Does this exist, currently?  I haven't looked at the gory details of > >

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Rob Wolfe
re in Slime" (interactive) (slime 'clojure)) And now "M-x run-clojure" starts slime with working completion. For example after writing "w-o" and hitting TAB key I can see this: user> (w-o Completion:Flags: Score: -- --

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Rob Wolfe
"Steven E. Harris" writes: > Rob Wolfe writes: > >> I did it like this (I assume that clojure-mode.el has been installed): > > Thanks, Rob. I followed your instructions after not being able to get > Clojure to cooperate with my normal Swank/SLIME installation

Re: Clojure/SLIME/Emacs questions

2010-01-02 Thread Rob Wolfe
Phil Hagelberg writes: > Rob Wolfe writes: > >> Stefan Tilkov writes: >> >>> Two quick Emacs/Clojure questions I can't seem to find the answer to: >>> >>> - In his screencasts, Sean Devlin moves the mouse over an item in his >>> REPL

Re: SLIME/Swank problem with swank.util.sys/get-pid and RuntimeMXBean

2010-01-02 Thread Rob Wolfe
user> (map #(System/getProperty %) ["java.version" "java.vendor" "java.vm.version"]) ("1.5.0_17" "Sun Microsystems Inc." "1.5.0_17-b04") user> (map #(System/getProperty %) ["os.name" "os.version" "os.arch

Re: SLIME/Swank problem with swank.util.sys/get-pid and RuntimeMXBean

2010-01-03 Thread Rob Wolfe
) error in process filter: etypecase failed: defun, (number cons string) """ As a matter of fact *slime repl* still works for me, but I have different environment. HTH, Rob -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to th

Having difficulties with compilation in slime, emacs and clojure-project

2010-01-05 Thread Rob Lachlan
I've been trying to compile clojure files from emacs. The issue I run into is of my own clj files not being found on the classpath. (If I'm trying to compile a standalone file, which references only clojure core, there's no problem. It's when I have multiple files, and I'm trying to include a fi

Re: Having difficulties with compilation in slime, emacs and clojure-project

2010-01-05 Thread Rob Lachlan
stuck right at that spot. On Jan 5, 11:01 pm, Konrad Hinsen wrote: > On 06.01.2010, at 07:26, Rob Lachlan wrote: > > > but when I put it in .emacs, and invoked it, the function seemed to > > get stuck.  I'm asked in the mini-buffer for the project root, and I > >

Re: Having difficulties with compilation in slime, emacs and clojure-project

2010-01-06 Thread Rob Lachlan
 am, Phil Hagelberg wrote: > Rob Lachlan writes: > > I have src and test in the directory I'm passing in.  The problem > > however, seems to be on the emacs end.  In the mini-buffer when I > > enter in Project root: and press return, the cursor > > just moves to t

Re: Having difficulties with compilation in slime, emacs and clojure-project

2010-01-07 Thread Rob Wolfe
Rob Lachlan napisał(a): > Thanks for the help. I had initially installed slime, clojure-mode > and swank following the instructions at > http://riddell.us/tutorial/slime_swank/slime_swank.html > > I tried simply installing swank-clojure, but that seemed to conflict > with

Re: Having difficulties with compilation in slime, emacs and clojure-project

2010-01-07 Thread Rob Lachlan
Thanks Phil and Rob for your help. I got rid of everything in emacs.d, and tried reinstalling from the beginning. For some reason, elpa seems to get stuck halfway through with this message: trying to parse HTTP response code in odd buffer: *http tromey.com:80* But having installed swank

Re: C interop lib (JNA wrapper)

2010-01-08 Thread Rob Wolfe
-jna ? I'm using this one right now (it is really simple) and I'm wondering what will be the advantage of using your implementation? Br, Rob -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

Re: SLIME/Swank problem with swank.util.sys/get-pid and RuntimeMXBean

2010-01-09 Thread Rob Lachlan
I've reverted to the setup that you listed, Ramakrishnan. I spent quite a few hours trying to figure out how to use ELPA + the forked slime + the new swank clojure, but failed miserably (despite the kind assistance of Phil and others on another thread). I would agree that it would be nice to have

Re: newbie swank clojure emacs

2010-01-10 Thread Rob Wolfe
:188) >at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > Could not find

Re: Swing unit testing

2010-01-12 Thread Rob Wolfe
] http://www.marathontesting.com/Marathon.html HTH, Rob -- 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: compojure/defservlet

2010-01-19 Thread Rob Lachlan
I can't find it either. The closest thing seems to be the servlet macro: (definline servlet "Create a servlet from a sequence of routes. Automatically updates if the routes binding is redefined." [routes] `(proxy [HttpServlet] [] (~'service [request# response#] (request-handle

Re: Full Disclojure - I Need Topics!

2010-01-25 Thread Rob Wolfe
Sean Devlin napisał(a): > Rock, > Could you please proved a link to Alan Bawden's paper? I guess Rock meant "Quasiquotation in Lisp": https://eprints.kfupm.edu.sa/60346/1/60346.pdf BTW many thanks for your awesome videos. :) Br, Rob -- You received this message because

Re: building clojure-contrib without downloading clojure.jar from elsewhere

2010-02-02 Thread Rob Wolfe
r} and now this command: mvn -Denv=local -Dclojure.jar=/path/to/clojure.jar package started to work. This profile can be activate also like this: mvn -P env-local -Dclojure.jar=/path/to/clojure.jar package Br, Rob -- You received this message because you are subsc

Re: leiningen powershell script

2010-02-15 Thread Rob Wolfe
ding these jars you need to copy them on paths pointed by %CLOJURE_JAR% and %LEIN_JAR% variables respectively. HTH, Rob -- 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

  1   2   3   >