trolltech QT opengl SLIME REPL mac os x

2008-12-18 Thread chris
l wrappers when I am not working on gl as it is unless I can get slime to play nice with gl. Clojure is the shit! Unfortunately, java still sucks. Not that it will stop me using clojure. Thanks! oh, the code is at: http://github.com/cnuernber/lambinato

Re: trolltech QT opengl SLIME REPL mac os x

2008-12-18 Thread chris
7;t clojure as much as it was jar, jni, dylib, mac hell. Luckily I work in c++ so I am used to all this shit. Thanks for the reply! Chris On Dec 18, 10:17 am, AA wrote: > Generally speaking, there are complications with using OpenGL from > multiple threads, I wonder if the calls you make

multiple sets on one item - is this a good idea?

2008-12-19 Thread chris
newb, so please feel free to be quite explicit. Chris --~--~-~--~~~---~--~~ 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 unsubscribe

Re: Persistent storage

2008-12-20 Thread chris
know. Chris On Dec 19, 9:44 pm, Mon Key wrote: > Hans Hubner's BKNR framework for CL explores this in a very > interesting way - while relying on CLOS meta-object protocol the ideas > could prob. be extended to Clojure. With some ABCL interaction this > would make CL -> Clojure

Re: multiple sets on one item - is this a good idea?

2008-12-20 Thread chris
? Import, require don't seem to do what I want... Chris On Dec 20, 12:28 am, Christophe Grand wrote: > chris a écrit : > > > Hello, I am gearing up to write some swing code, specifically some > > stuff where I want to use the grid bag layout system, and I remember

Re: multiple sets on one item - is this a good idea?

2008-12-20 Thread chris
nm, I need to use 'use'. I am unclear as to the difference between refer, import use, and require. Chris On Dec 20, 9:15 am, chris wrote: > That helped, thanks Christophe. > > I have one more problem: > > I put it in a util file, under a util namespace: > > (ns

Re: for FAQ: what are use/require/import/refer?

2008-12-20 Thread chris
ave* to use (import and (use, and I can't use :import or :use, correct? The documentation for in-ns didn't indicate that the keyword options were viable or I missed that piece of info. An answer to 4 would make 5 irrelevant. Again, thanks to everyone for their replies! Chris On Dec 2

Behavior of equals (==) w/r/t keywords

2008-12-21 Thread chris
the 8 different equals you find in CL. Which is wonderful. Also, is there a way to get the numeric value from equals? Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: Behavior of equals (==) w/r/t keywords

2008-12-21 Thread chris
Ah, user> (= :float :float) true Chris On Dec 21, 10:33 am, chris wrote: > This is not what I would expect: > > user> (== :test :test) > false > > I am trying to use keywords as enumerations to texture types.  I want > to know if two textures are comparable, thus

Re: Behavior of equals (==) w/r/t keywords

2008-12-21 Thread chris
*ns*, but I am not super clear about single-colon keywords. They seem like global keywords which is really what I want for enumerations, but I need to be able to take a string and turn it into the same keyword. Is there a keywords namespace that single colon keywords go into? Chris On Dec 21

How to encapsulate local state in closures

2008-12-21 Thread chris
osure (with-local-vars [one 1] (fn [] (var-get one #'user/test_closure user> (test_closure) ; Evaluation aborted. The var is null when I call the closure. Thanks, Chris --~--~-~--~~~---~--~~ You received this message because you are

Re: Behavior of equals (==) w/r/t keywords

2008-12-21 Thread chris
e keyword is global. Pass in a namespace, and the keyword is in that namespace. I will definitely consider using the clojure printer/reader; that is a really really good idea, thanks! I am doing graphics work, so I may have to externalize certain data (like images and data buffers), but as long as

Re: In core structure editor, anyone?

2008-12-30 Thread chris
f the system. We can't really save the state of the jvm, but we could re-jar any files with changed code, or perhaps (maybe a better idea) create add-on jars that overrode old code with new code? Chris On Dec 30, 6:46 am, Chouser wrote: > On Tue, Dec 30, 2008 at 1:24 AM, falcon wrote

Could not find the main class clojure.lang.Repel. Program will exit.

2009-01-04 Thread chris
I was wondering if anyone else had a problem with this. I am trying to run clojure on Vista. I think that the problem might be with my environmental variables but I am not sure which ones to changes or where to point them too. Thank you for your help. --~--~-~--~~~---

Re: Could not find the main class clojure.lang.Repel. Program will exit.

2009-01-04 Thread chris
SWEET! That did it. I knew that I had to be doing something stupid. That won't be the first time I am sure. Thank you for the help. On Jan 4, 12:13 pm, "Stephen C. Gilardi" wrote: > On Jan 3, 2009, at 7:57 PM, chris wrote: > > > I was wondering if anyone else ha

Re: why two list comprehensions are different?

2009-01-05 Thread chris
difficult would it be to extend defmethod such that it checked the dispatch function and ensured that the dispatch function had at least the arity of the defmethod function? Chris On Jan 5, 12:38 pm, Chouser wrote: > On Sat, Jan 3, 2009 at 6:20 PM, Olov Lassus wrote: > > >> The 'le

Re: Clojure blog post about laziness

2009-01-08 Thread chris
x27;s assessment that the vast majority of the sequences in his program are either only used once or so cheap to create that caching is pointless. This matches my world that has an update-render loop where a lot of the information just doesn't matter after the rendering engine gets to it.

Re: when performance matters

2009-01-13 Thread chris
eople like to waste lots of time on. Using specialized tools in the right situation will increase your speed by orders of magnitude, not factors. I would highly recommend, if something taking a couple days is costing you any money, to take a serious look at one of the four options listed above.

Re: when performance matters

2009-01-14 Thread chris
just read the framebuffer back after the render call and you can work with the next step of your iteration. You want this for a game engine anyway; do it in opengl or directx using shaders. Chris On Jan 14, 1:04 pm, Chouser wrote: > On Wed, Jan 14, 2009 at 11:27 AM, Asbjørn  Bjørnstad

Re: QT Jambi and the Repl

2009-01-17 Thread chris
etting emacs and slime to work together, and I would say that my overall experience with the JVM system is very mixed. /rant Chris On Jan 16, 7:05 pm, Brian Carper wrote: > On Jan 16, 5:38 pm, levand wrote: > > > > > Has anyone here had success in using Clojure with QT Jambi? &

Re: pmap memory hogging

2009-01-21 Thread chris
Is the mmap interface a possibility? You could bulkget an array for each thread. I guess that would probably not gain much against just copying an array for each thread. I couldn't find a way to create a subvector of a java array. Chris On Jan 21, 12:20 pm, "Mark H." wrote:

Re: Streams work

2009-01-23 Thread chris
acts if I can't disable it. So streams fit the bill *much* better than lazy seqs. I am apparently someone who loves doing stream processing. Chris On Jan 23, 10:34 am, e wrote: > people who love doing stream processing would attack an extra allocation. > > On Fri, Jan 23, 20

slime connect problems

2009-01-25 Thread chris
nil (swank). Continue? (y or n) error in process filter: ad-Orig-error: No inferior lisp process error in process filter: No inferior lisp process Emacs is still connected but I get no slime repl. Is everything working and is there a command that starts the slime repl?

Re: slime connect problems

2009-01-25 Thread chris
I figured out that I can run the command 'slime-repl' and get a valid repl. So the code I posted is all that is required to allow emacs to connect to your running process. Amazingly short. Chris On Jan 25, 10:35 am, chris wrote: > I have embedded clojure-swank in my pr

Re: My SLIME installation diary

2009-02-04 Thread chris
o dump all of its communication (both ways, not just sending) to a file? Chris On Feb 4, 12:14 pm, Phil Hagelberg wrote: > Seeing all these complicated steps that need to be reproduced made me > wonder if it couldn't be automated. I've added an M-x clojure-install > command to

Re: My SLIME installation diary

2009-02-04 Thread chris
Also, I would love to get some more debugging support into slime. I was wondering how difficult it would be to use the java debugging API, embedded in the swank module, and send debug commands across? Chris On Feb 4, 2:36 pm, chris wrote: > (defun get-classpath-list () >   (if >

Re: Type hint Java array of your own Java class

2009-02-04 Thread chris
Sorry for jumping in, but "#^#=" doesn't make any sense to me. Where did this come from? Chris On Feb 4, 2:55 pm, Chouser wrote: > On Wed, Feb 4, 2009 at 12:49 PM, Christophe Grand > wrote: > > > David Nolen a écrit : > >> (defn foobar [#^MyClass[] my

Re: My SLIME installation diary

2009-02-05 Thread chris
e pain of java right to the forefront in my case. Chris On Feb 5, 11:21 am, Tom Emerson wrote: > On Wed, Feb 4, 2009 at 4:36 PM, chris wrote: > > [snip] > > > My slime setup currently fails completely on windows, however.  The > > slime repl never starts; is the

Re: CLJOS -> Spinoza, 3X faster than struct-map ;)

2009-02-05 Thread chris
check out: http://en.wikipedia.org/wiki/Metaobject http://en.wikipedia.org/wiki/Common_Lisp_Object_System Chris On Feb 5, 5:36 am, Laurent PETIT wrote: > Hello, > > Please accept my apologizes if the following remarks/questions sound stupid > or silly to you, but I can't res

Denver/Boulder Clojure users

2009-02-05 Thread chris
Are there any existing clojure users in the Denver/Boulder area (other than me)?. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: My SLIME installation diary

2009-02-05 Thread chris
http://bitbucket.org/shoover/clojure-box-swank-clojuremq/src/11bec919b978/hack-repl-hang This might fix it for your windows box. Check this thread: http://groups.google.com/group/clojure/browse_thread/thread/6c195c35ae9a7eb8/29dec28f8e8fafd5?lnk=gst&q=windows+slime+hang#29dec28f8e8fafd5 C

Re: Getting a result from a swing JDialog

2009-02-09 Thread chris
asynchronous dialog. Chris On Feb 8, 6:12 pm, Jeffrey Straszheim wrote: > A JDialog is going to run on the GUI thread and you can't change that. > > There are various concurrency tools in Java that will give you what you > want.  The easiest is to wait create a SynchronousQueue.  C

Re: cljc?

2009-02-13 Thread chris
s the system as it needs it and then writes out what you request written out. Is this an accurate characterization of the situation? Chris On Feb 13, 2:10 pm, Mark Volkmann wrote: > On Fri, Feb 13, 2009 at 3:00 PM, Stephen C. Gilardi wrote: > > > > > On Feb 13, 2009, at 3:47 PM, M

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

2009-02-16 Thread chris
a function (wrap the proxy generation) and such, as well as various macros I have written for dealing with GridBagLayout etc. If you decide to go this way you should let me know as I would like to show some of them to you and perhaps we could start the process of formalizing them into clojure.con

Re: New lazy branch of clojure-contrib

2009-02-16 Thread chris
. Chris On Feb 16, 10:23 am, Stuart Sierra wrote: > I created a lazy branch of clojure-contrib to track patches to contrib > that are needed in the lazy branch of Clojure. > > For clojure-contrib hackers: > svn checkouthttps://clojure-contrib.googlecode.com/svn/branches/lazy > cl

Re: Contributing

2009-02-20 Thread chris
ation automatically propogated both back and forward in the form of Hindley Milner. This would be perhaps a ph.d level problem depending on how you did it. Chris On Feb 19, 7:54 am, Joshua wrote: > Yep, I needed to get the ok from my professor. He thinks its a good > idea, so I'

Re: challenge: best fibo implementation under the new laziness?

2009-02-23 Thread chris
As the sequence is very cheap to calculate it is difficult to see the benefit of keeping it in memory under any circumstances. I would replace the one in contrib with Christophe's short, easy to understand implementation. Caching values isn't getting you anywhere; just wasting resourc

Re: transposing a small java class in clojure

2009-03-10 Thread chris
ction perhaps; change the 'def logger' to 'defn logger []' and work out the resulting details. This would make the clojure example a little closer to your java example and at least eliminate one possible problem. Chris On Mar 10, 7:35 am, rb wrote: > Hi, > > I'm e

Re: Static type guy trying to convert

2009-03-10 Thread chris
http://www.mindview.net/WebLog/log-0025 I am not actually as in favor of untyped programming as this article is, but I can see the points and I agree with most of them. Chris On Mar 10, 10:34 am, zoltar wrote: > On Mar 10, 10:03 am, Vincent Foley wrote: > > > With Clojure you d

Re: Static type guy trying to convert

2009-03-11 Thread chris
systems like ML, Haskell, and F# to Clojure while keeping the very beautiful and clean syntax and minimal mental overhead of using a LISP derivative. Chris On Mar 11, 2:12 pm, Jon Harrop wrote: > On Wednesday 11 March 2009 18:35:46 Cosmin Stejerean wrote: > > > On Wed, Mar 1

Re: How to compile in AquaMacs without slime? classpath problem for classes

2009-04-12 Thread chris
ropped new jars you could kill slime and restart and you would be good (although emacs insta-starts on my mac so it isn't a big deal). Anyway, most likely I am off topic at this point Chris On Apr 12, 9:25 pm, billh04 wrote: > I can compile in NetBeans with enclojure and I can com

Possible contrib contribution: clojure.contrib.timing

2009-04-15 Thread Chris
ew and possible inclusion. Is anyone interested? How do I get my changes out there for people to review? Thanks! Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this grou

Re: Possible contrib contribution: clojure.contrib.timing

2009-04-15 Thread Chris
Done: git://github.com/cconstantine/clojure.contrib.git Please feel free to be brutal on the code review. The last thing I want is for clojure to get dirtied up with bad code. Thanks, Chris On Apr 15, 10:45 am, Sean Devlin wrote: > Start by putting your code on github or something simi

Re: Possible contrib contribution: clojure.contrib.timing

2009-04-15 Thread Chris
You work appears to be geared less toward measuring timing, and more towards putting bounds on memory and time. I like it :) On Apr 15, 2:52 pm, Jason Wolfe wrote: > I have some related contributions ... if clojure.contrib.timing is > created, maybe some of these would be useful too: > > http:/

Re: Possible contrib contribution: clojure.contrib.timing

2009-04-16 Thread Chris
It should and it does now. Thanks, Chris On Apr 16, 1:16 am, Baishampayan Ghose wrote: > Chris wrote: > > Done: git://github.com/cconstantine/clojure.contrib.git > > > Please feel free to be brutal on the code review.  The last thing I > > want is for clojure to get

Re: The Path to 1.0

2009-04-16 Thread chris
possible for Rich or anyone else to provide this guarantee. So the question is, what level of documentation and what level of test coverage is important for a 1.0 release? What would you like to see documented and tested? I would like to see the datastructures' memory and performance bounds tes

Re: Code generation at runtime

2009-06-23 Thread chris
You could generate a file and call 'load-file'. Then if it didn't work the way you expect you have an artifact you can debug with. I think eval is really making your life a bit more difficult and I am not following your eval'd code very well. Chris On Jun 23, 4:12 am,

Re: generating java classes at runtime

2009-06-24 Thread chris
Yes that is feasible. You might consider just writing out a file and calling "load-file". Then you have an artifact should you wish to debug later. This will do the necessary compilation step before giving you access to any contents. Chris On Jun 24, 9:35 am, RD wrote: > I wont

Re: Pong!

2009-09-13 Thread Chris
Got some attention here on Hacker News: http://news.ycombinator.com/item?id=819630 --~--~-~--~~~---~--~~ 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 t

LISP like DSLs

2009-11-30 Thread chris
reads to a datastructure before doing symbol lookups and such. Chris -- 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 b

[ANN] Opencv bindings for clojure

2018-10-29 Thread chris
http://techascent.com/blog/opencv-love.html Enjoy :-). If we would have had this earlier then a lot of our projects would have taken considerably less time. Also note at the end where we do some vector math in unsigned byte space using the opencv image as the backing store. Chris -- You

New home for clojure.contrib.combinatorics?

2011-06-09 Thread Chris
With the deprecation of contrib, are there plans to migrate clojure.contrib.combinatorics to a new stand-alone module? I wasn't able to find anything on this on either the wiki or mailing list, and was curious. Thanks, Chris -- You received this message because you are subscribed to the G

Clojurescript: google.visualization

2011-09-20 Thread chris
Hello, I want to use clojurescript in my application and need some nice buttons, sortable grids [1] and filters [2] and so on. As far as I have seen in the samples, basic browser stuff like dom manipulation or XHR is implemented. The Google Clojure library provides buttons, autocomplete, toolti

Images in autodoc?

2010-10-25 Thread Chris
Is it possible to add images to autodoc-generated pages like javadoc can? I'm interested in adding explanatory diagrams to function documentation as opposed to adding things like logos to the HTML pages. Thanks, Chris -- You received this message because you are subscribed to the Google G

Re: Images in autodoc?

2010-10-26 Thread Chris
ah blah blah blah. [Figure 1]: /doc-files/figure-1.png" (+ x y)) Basically, have all the image file addresses as footnotes. If you're reading the docs in the REPL, for instance, you don't have big URL-ish strings distracting you from the documentation, but all the info is

Re: Images in autodoc?

2010-10-26 Thread Chris
Come to think of it, it might be cool to write doc strings in a kind of "Clojure-flavored Markdown"... that'd give us images, links, lists, formatting, etc. It's also got the benefit of being a familiar format, and easy to read in unprocessed form. Chris On Oct 26, 6:05 am

Re: Images in autodoc?

2010-10-26 Thread Chris
On Oct 26, 9:54 am, Andrew Gwozdziewycz wrote: > I like that idea, especially if it could be extended to reference other code: Agreed. So now that's links to images, web pages, Clojure vars... anything else? Chris -- You received this message because you are subscribed to the Googl

Function Design: sequence or "&" argument?

2010-11-15 Thread Chris
performance? Aesthetics? Composability concerns? Not having to call "apply" all the time? Thanks, Chris -- 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 n

Re: Enhanced Primitive Support Syntax

2011-01-16 Thread chris
e problem as possible (thus giving a lot of leeway for implementation and extension)? Use clojure. Chris -- 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 mem

Re: Enhanced Primitive Support Syntax

2011-01-17 Thread chris
Yeah yeah! http://www.google.com/search?q=lisp+type+inference Chris On Jan 17, 5:55 am, "nicolas.o...@gmail.com" wrote: > On Mon, Jan 17, 2011 at 3:10 AM, chris wrote: > > Is it insane to suggest that perhaps clojure should work with scala > > such that we can write b

Are variadic protocol functions supposed to work?

2011-02-09 Thread Chris
ecall seeing it documented anywhere that variadic functions weren't supported. Thanks, Chris [1] http://groups.google.com/group/clojure/browse_frm/thread/a232a8db6c78d0eb -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: gen-class questions

2008-12-10 Thread Chris Turner
t] void]])) (defn -m [this o] (println (.. o getClass getName))) Hope that helps, Chris On Wed, Dec 10, 2008 at 10:17 PM, Michiel de Mare <[EMAIL PROTECTED]> wrote: > > I'm trying to generate a Java class from Clojure with gen-class, but > without much success. I've go

find returns symbol keys without their metadata

2008-12-18 Thread Chris Kent
d s1 'k) [k 1] user=> ^(first (find s1 'k)) nil Would it make more sense for find to return an entry containing the key from the map? Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure"

Random Number Generation Issues

2008-12-23 Thread Chris Bunch
I've got the newest version of Clojure and wrote a simple program to generate a list of 100 random numbers, but I seem to get a lot of duplicate numbers (especially when I pick a large upper bound for rand-int). My code is pretty similar to an example in the Programming Clojure book: (defn ge

Example Server in Clojure

2009-04-29 Thread Chris McClellen
I wanted to write an example server in clojure to show some folks at the office what a full from the ground up application might look like in clojure. I wanted a non-trivial example, but not one so complex that a new clojure user wouldn't understand it. I had ported some decent algorithms we us

Re: Example Server in Clojure

2009-04-29 Thread Chris McClellen
Thanks for the replies so far. Phil, I'll look into mire - I like that it is broken into steps to show the progression. Laurent - Thanks for the info I'll put that change in tonight when I'm out from behind this firewall. On Apr 29, 12:25 pm, Phil Hagelberg wrote: > Chris

Re: HTTP clients in clojure

2009-05-06 Thread Chris Dean
p://google.com";)) => 4675 Cheers, Chris Dean --~--~-~--~~~---~--~~ 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 unsubscribe from th

Launching apps

2009-05-08 Thread Chris Dean
them and use swank to get a repl, but we eventually stopped doing that in favor of the above solution. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Re: Launching apps

2009-05-09 Thread Chris Dean
A repl is a requirement for us. For now I'm using hand written scripts that launch under screen. And that works for us. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. T

Re: Colored parentheses highlighting for Emacs Clojurians

2009-05-14 Thread Chris Stucchio
Very nice. See also hl-sexp, which highlights the entire sexp, rather than merely the parenthesis. http://edward.oconnor.cx/elisp/hl-sexp.el On May 13, 5:53 pm, David Nolen wrote: > This works really well:http://nschum.de/src/emacs/highlight-parentheses/ --~--~-~--~~~--

Re: performance concerns (again)

2009-06-05 Thread Chris Dean
on the JVM. Both used a lot of memory and we just took that into consideration when provisioning the machines. Finding a system with the best cpu-performance, memory use, libraries, community, etc is challenging and I for one am happy with the tradeoffs that Clojure has made. [1] Cheers, Chris

Re: Question for Clojure-Mode users.

2009-06-05 Thread Chris Dean
Does anyone know what the functional difference is between clojure-indent-function and common-lisp-indent-function ? Or even the cl-indent:function from slime ? I assume there is a difference, I just don't know what it is. Cheers, Chris

Re: (Potentially stupid) Question about recursion / trampoline

2009-06-10 Thread Chris Dean
(- iter 1) (+ result 1 (defn add-tail [n] (add-iter n 0)) ;; Another way (defn add-loop [n] (loop [n n acc 0] (if (zero? n) acc (recur (dec n) (inc acc) I generally use loop where I would use a named

Best way to augment core functions to support other data types?

2009-06-16 Thread Chris Dean
oper interfaces. Either using plain old Java or the Clojure proxy/gen-class functions. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Best way to augment core functions to support other data types?

2009-06-16 Thread Chris Dean
y easy. That sounds fine to me, thanks! I'm going to stick to the interfaces in clojure.lang and hope that's kosher. (For example, clojure.lang.Counted) Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

multimethods

2009-06-16 Thread Chris Dean
g logically be a method and take a performance penalty. For me it's a consistency and simplicity over performance argument, although not everyone will agree. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: multimethods

2009-06-16 Thread Chris Dean
o use the same names as are in the CL "core", almost no one does. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goog

Re: Code generation at runtime

2009-06-23 Thread Chris Dean
ile and run than to interpret, isn't it? Especially > in a tight loop executed millions of time.) BTW, Clojure doesn't have an interpreter - all the code is compiled. You could, of course write your own interpreter if that's what you mean. Cheers, Chris Dean --~--~-~--~

Emacs clojure-mode home?

2009-07-01 Thread Chris Dean
is so small. Cheers, Chris Dean diff --git a/clojure-mode.el b/clojure-mode.el index b7b2de0..f9fa8ec 100644 --- a/clojure-mode.el +++ b/clojure-mode.el @@ -192,6 +192,8 @@ if that value is non-nil." (lisp-mode-variables nil) (set-syntax-table clojure-mode-syntax-table) + (setq local-

Re: Emacs clojure-mode home?

2009-07-01 Thread Chris Dean
> It looks like your patch might be incomplete; I get a void-variable: > clojure-mode-abbrev-table when I run that. So it is. Looks like I had the defs in my private startup file for some reason. Here's a corrected patch. Cheers, Chris Dean diff --git a/clojure-mode.el b/cloj

surprising behaviour with do, ns and def

2009-07-13 Thread Chris Kent
ined in the original namespace. I thought that the do should make no difference. Is this the intended behaviour? user=> (do (ns a) (def foo "foo")) #'user/foo a=> Thanks Chris --~--~-~--~~~---~--~~ You received this message because you are s

Re: surprising behaviour with do, ns and def

2009-07-14 Thread Chris Kent
Hi Stuart Thanks for the explanation, that makes sense and I very much doubt I'd have figured that out by myself without a lot of head scratching. And you were right about the intern function, that does exactly what I was looking for. Cheers Chris On Jul 14, 3:04 am, Stuart Sierra

Re: Emacs clojure mode: how to set current directory & classpath

2009-07-20 Thread Chris Dean
init) ;; ... (ccl ("/usr/local/bin/ccl" The script makes many assumptions about what needs to be in the classpath, but it works well for me. I don't expect the script to be useful to anyone else, but you can look at it in http://github.com/ctdean/clojure-lau

Re: Can (genclass) be changed to operate when not compiling?

2009-07-21 Thread Chris Dean
Howard Lewis Ship writes: > It would be nice if (gen-class), when not in compile mode, would still > create a class in memory that could be referenced by class name > elsewhere in Clojure. +1 I would find this useful as well. Cheers, C

Keyword not serializable

2009-07-24 Thread Chris Kent
quests and this fails if the page refers to any Keywords. Using Keywords in maps is common in Clojure (and in clj-record in particular) and it would be a really useful change. I'd be happy to supply a (very small) patch if people think it's a

Re: REQUEST: Add seqable? to core

2009-07-29 Thread Chris Kent
I was thinking exactly the same thing. It feels like there should be a better way than instance? ...Sequable. Unless there's a reason that's a bad idea. Chris On Jul 27, 6:49 pm, Sean Devlin wrote: > Rich, > > There have been a few times in this thread that people have t

Re: Keyword not serializable

2009-07-31 Thread Chris Kent
ializable has other benefits, > specifically that a proper patch would ensure that deserialized > Keywords are interned as one would expect out. > > So, I may make a run at this sooner rather than later... > > - Chas > > On Jul 24, 7:06 pm, Chris Kent wrote: > > > Hi

Re: dynamic :use

2009-09-08 Thread Chris Kent
ard approach. Although maybe that's the years of OO programming clouding my thinking. Cheers Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Compressing / Decompressing strings in clojure

2009-10-14 Thread Chris McClellen
I apologize if this already exists somewhere, but I made a quick set of routines that will compress/decompress strings, using Deflate. This kind of thing was useful for compressing big xml documents into something manageable that could be stored as text in a db. The text string is compressed, t

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

2009-11-01 Thread Chris Dean
ld try Lisp in Small Pieces by Christian Queinnec. If I remember right he talks about exceptions in terms of continuations. Or you could just start reading up on continuations if you're not familiar with them. Wikipedia has a call/cc page at http://en.wikipedia.org/wiki/Call-with-current-continua

Re: Datatypes and Protocols - early experience program

2009-11-13 Thread Chris Kent
;t go away because reify's inability to extend an existing class is a show-stopper for some Java interop scenarios. Will the syntax be brought in line with reify so dots will be needed in front of method names? As things stand it's a potential source of confusion to have two such similar featu

Setting *warn-on-reflection* such that multiple threads can see it

2009-11-24 Thread Chris Jenkins
thout having to figure out how to make Swing call my function that sets *warn-on-reflection* before it does anything else. Cheers, Chris -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googleg

Re: Setting *warn-on-reflection* such that multiple threads can see it

2009-11-24 Thread Chris Jenkins
That's great - now why didn't I realise that :-) Thanks, Chris 2009/11/24 Christophe Grand > Hi, > > > On Tue, Nov 24, 2009 at 6:38 PM, Chris Jenkins wrote: > >> Is it possible to set *warn-on-reflection* such that it can be seen by >> multiple thread

Re: A Clojure Highlife

2009-11-26 Thread Chris Jenkins
Thanks for sharing this. Coincidentally, I just wrote my first Clojure program which was... an implementation of Conway's Game of Life :-) I took a different approach - I represented the board as a vector of vectors of integers (1 for alive, 0 for dead) and then implemented a new-board function tha

Re: A Clojure Highlife

2009-11-28 Thread Chris Jenkins
Cool - thanks. I didn't know about that function :-) 2009/11/27 John Harrop > On Thu, Nov 26, 2009 at 4:37 AM, Chris Jenkins wrote: >> >> (defn flip-cell [b x y] >> (let [row (nth b y) >> cell (nth row x) >> new-cell (- 1 cell) >> new-ro

Re: A Clojure Highlife

2009-11-29 Thread Chris Jenkins
Clojure-tastic? :-) Thanks for the doseq help. It should shave a few more LOCs off my implementation. Cheers, Chris 2009/11/28 Joseph Smith > Very cool. I had originally planned to add some stats keeping to my > implementation along with connected component coloring (hence the ref&#x

Re: Datatypes and protocols - update

2009-12-11 Thread Chris Kent
namespace using gen-class and that has no problem invoking the function when it's instantiated from Java. Thanks Chris -- 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 t

Re: Trouble with running in jline editor. (newbie question)

2010-01-10 Thread Chris Jenkins
Quick question: what operating system are you using? I would expect your command line to work fine on any *NIX platform. On Windows, you would need to replace the colon : with a semi colon ; 2010/1/10 piscesboy > I placed clojure.jar, jline.jar and jline-0.9.94.jar all in the same > directory.

Clojure Box 1.1

2010-01-11 Thread Chris Jenkins
ecause I'm rather new to all this. Anyone have any idea how I could investigate and figure out what's up? Cheers, Chris PS: FYI here's the full text that I see in my *inferior-lisp* buffer: (require 'swank.swank) (swank.swank/ignore-protocol-version nil) (do (.. java.net.In

Re: Clojure Box 1.1

2010-01-11 Thread Chris Jenkins
? 2010/1/11 Chris Jenkins > Hi, > > I downloaded Clojure Box 1.1 from here http://clojure.bighugh.com/, > installed it and tried running it on Windows XP. Emacs starts ok and I get > an *inferior-lisp* buffer but I see the following error message: > > user=> user=> java.

  1   2   3   4   5   6   >