Re: How to attach debugger on clojure's repl ?

2011-12-04 Thread George Jahad
I think the problem is no one has used both of them enough to really understand the differences. Here is my understanding as of now, but I'm not that familiar with Ritz yet. Functionally, they both do basically the same thing: set breakpoints, catch exceptions, step through code, and eval

Re: Using goog.Timer from ClojureScript leads to compile error in advanced mode

2011-12-04 Thread Paul Richards
I don't understand why, but changing to a 'require' instead of a 'use' fixed my problem: (ns hello (:require [goog.Timer :as Timer] [goog.dom :as dom] [goog.events :as events] [goog.events.EventType :as EventType] [goog.events.KeyCodes :as KeyCodes]

Re: on lisp and scheme macros

2011-12-04 Thread Joop Kiefte
Em 12/04/11 03:16, Razvan Rotaru escreveu: Wow. I didn't thought this was possible. You know, I have seen a lot of people saying that scheme macros are more powerfull, citing the fact that scheme also has lisp macros, while it's not possible to do it the other way around. Of course it's

Re: FYI: problem I had with namespace, defrecord, and import, or Hyphen characters in namespaces considered harmful

2011-12-04 Thread Don Jackson
On Dec 2, 2011, at 1:29 PM, Phil Hagelberg wrote: I was using defrecord for the first time, to create a type that I wanted to throw+ via slingshot to signal errors from a library. For what it's worth, the main point of slingshot is removing the necessity of creating custom classes for

Unexpected behaviour in unchecked-multiply when using vars as arguments

2011-12-04 Thread Linus Ericsson
I try to do multiplication where overflowing is expected and the result should be handled modulo ie the multiplication results in a truncated long. user (unchecked-multiply (Long/MAX_VALUE) (Long/MAX_VALUE)) 1 ;;is ok and expected also classificator.fnvhash (unchecked-multiply Long/MAX_VALUE

Re: Avout: Distributed State in Clojure

2011-12-04 Thread Glen Stampoultzis
On 3 December 2011 01:44, David Edgar Liebke lie...@gmail.com wrote: Hi Glen, The init-stm step is still referenced in the documentation as being required BTW. Thanks, I'll remove the reference. I had a couple of questions. I noticed that when I create a reference (zk-ref) I

Re: A few enhancements

2011-12-04 Thread Kevin Downey
On Sat, Dec 3, 2011 at 9:58 AM, Stuart Sierra the.stuart.sie...@gmail.com wrote: A matter of curiosity: What are you doing that requires so much symbol manipulation? -S macros mostly. most recently a macro that registers a cache with a name to make it available for flushing via a command

Re: on lisp and scheme macros

2011-12-04 Thread Brian Goslinga
You might be interested in the paper 'Fortifying Macros': http://www.ccs.neu.edu/scheme/pubs/icfp10-cf.pdf syntax-parse is very cool and can give good error messages if the user makes a mistake when using the macro. About a year ago I tried making an implementation of a system like syntax-parse

Re: Avout: Distributed State in Clojure

2011-12-04 Thread David Edgar Liebke
A related question. If I wanted to do a once-off initialization of the value (ie, the first VM to create the distributed ref will set the value) how would I go about it? I would just create the Ref without an initial value, and if the current value is non-nil, you know that it has

ANN: Seesaw 1.2.2

2011-12-04 Thread Dave Ray
Hi, Seesaw 1.2.2 has been released. It includes several enhancements, most notably SwingX support and some tools to make debugging exceptions in the UI thread easier. The full release notes can be found here: https://github.com/daveray/seesaw/wiki/Release-Notes. Cheers, Dave -- You received

Google chart library

2011-12-04 Thread thenwithexpandedwingshesteershisflight
Has anyone tried using the google chart library in Clojurescript ? http://code.google.com/apis/chart/interactive/docs/quick_start.html - it uses a dynamically-loaded-from-the-web api that I cannot work out quickly how to deal with. It's not google closure-style javascript by the looks of things.

Idiomatic way to include doc-string for multimethods.

2011-12-04 Thread mmwaikar
Hi, I've seen this particular discussion - https://groups.google.com/d/topic/clojure/Ia9uBDGuLmM/discussion I am talking specifically about multimethods here. So if you do - (defmulti my-method some doc string identity) then this particular doc-string is not visible in emacs (like in an