Re: Dynamically Changing Functions in Compiled Code

2009-09-05 Thread Kevin Downey
http://gist.github.com/163140 for example this code creates a repl on port 4445 you can interact with via telnet. so you would have the plugin evaluate this code (to start the repl) you can then telnet in, and past new definitions for the functions On Sat, Sep 5, 2009 at 8:23 PM, Seth Burleigh w

RE: Dynamically Changing Functions in Compiled Code

2009-09-05 Thread Seth Burleigh
How is this supposed to work? I use AOT compilation to produce the class files, and I have tried to recompile the functions but it doesn't appear to have an effect. I'm including the clojure as class files, are you saying that all I have to do is recompile the clojure functions? Of course, I ha

Re: Dynamically Changing Functions in Compiled Code

2009-09-05 Thread Kevin Downey
gen-class generates a stub java class that dispatches to clojure functions, you can re-def the clojure functions that back the stubbed out class. On Sat, Sep 5, 2009 at 12:10 PM, Gorsal wrote: > > I am trying to add clojure code to an eclipse plugin. To do so, the > code i compiled into class fil

Re: STM implementation questions

2009-09-05 Thread Rich Hickey
On Sat, Sep 5, 2009 at 5:30 PM, Krukow wrote: > > > > On Sep 5, 8:18 pm, Rich Hickey wrote: >> Given sufficient history, readers will not be retried due to the >> activity of writers. It is true that while history is being >> dynamically acquired there may be retries. Unless you have some >> path

Re: STM implementation questions

2009-09-05 Thread Krukow
On Sep 5, 6:55 pm, Mark Volkmann wrote: > I have lots of detail on this in my article > athttp://ociweb.com/mark/stm/article.html. Yes, it's bookmarked in the "TO READ" group :-) I just want to be precise in my presentation. > I'd say it means "block" as in wait until the other finishes. Bu

Re: STM implementation questions

2009-09-05 Thread Krukow
On Sep 5, 8:18 pm, Rich Hickey wrote: > Given sufficient history, readers will not be retried due to the > activity of writers. It is true that while history is being > dynamically acquired there may be retries. Unless you have some > pathological transaction relationships, that history acquisi

Re: Confusion with namespaces and SLIME

2009-09-05 Thread Mathias Dahl
Okay, one of my usual habits seems to be to answer my own questions... I figured this out. In the quest to get emacs talking to a separately started swank-server I made a too light emacs setup and totally skipped the swank-clojure.el and swank-clojure-autoload.el files. In them was the solution.

Dynamically Changing Functions in Compiled Code

2009-09-05 Thread Gorsal
I am trying to add clojure code to an eclipse plugin. To do so, the code i compiled into class files via the clojure-dev plugin. I have a generate class, ParenMatcher, which i use ever so often. This class has a function which i would like to change dynamically while debugging it. In other words,

Re: Confusion with namespaces and SLIME

2009-09-05 Thread Mathias Dahl
I have the same problem and I have the latest version of all involved components. I run Emacs 23.1 on Ubuntu. Any ideas on how to resolve it? The trick of using `ns' and `use' separately does not seem to solve the problem for me. It feels like there are two or even more environments behind the s

Re: STM implementation questions

2009-09-05 Thread Rich Hickey
On Sep 5, 10:30 am, Krukow wrote: > I am digging somewhat into Clojure internals for a talk I'm doing. Now > I've reached the LockingTransaction class, and have a few questions, I > hope someone can answer. > > In some of the Clojure presentations it says that  "Readers never > impede writers/r

Re: STM implementation questions

2009-09-05 Thread Mark Volkmann
On Sat, Sep 5, 2009 at 9:30 AM, Krukow wrote: > > I am digging somewhat into Clojure internals for a talk I'm doing. Now > I've reached the LockingTransaction class, and have a few questions, I > hope someone can answer. I have lots of detail on this in my article at http://ociweb.com/mark/stm/ar

Re: maplocalleader & vimclojure

2009-09-05 Thread ronen
Ok, iv done two steps, iv cleared my .vim & started from scratch (i guess that i had some old version laying around there) & iv noticed an error in my classpath (iv added clojure jar twice instead of clojure- contrib), The main thing that i would add to the docs is a trouble shooting section that

Re: Fixing production systems on-the-fly

2009-09-05 Thread ronen
Not Clojure specific, the Spring framework has "refreshable beans" support which enables partial code swap on production systems (http:// tiny.cc/3zctU), its much more limited than Erlang but still might proove to be useful. On Sep 4, 9:30 pm, tmountain wrote: > I just put together some example

Re: Fixing production systems on-the-fly

2009-09-05 Thread ronen
Not Clojure specific, the Spring framework has "refreshable beans" support which enables partial code swap on production systems (http:// tiny.cc/3zctU), its much more limited than Erlang but still might proove to be useful. On Sep 4, 9:30 pm, tmountain wrote: > I just put together some example

STM implementation questions

2009-09-05 Thread Krukow
I am digging somewhat into Clojure internals for a talk I'm doing. Now I've reached the LockingTransaction class, and have a few questions, I hope someone can answer. In some of the Clojure presentations it says that "Readers never impede writers/readers, writers never impede readers". What does

Re: Starting swank separately and connecting to it works almost but no REPL

2009-09-05 Thread Mathias Dahl
> This wouldn't just be because SLIME no longer includes the REPL by > default, would it? Yes it would indeed :) > Does adding: > (require 'slime-fancy) > > to your emacs setup help at all? No (because the contrib dir was not in my load-path I assume), but the following works: (slime-setup '

Re: Starting swank separately and connecting to it works almost but no REPL

2009-09-05 Thread Mark Triggs
Hi Mathias, This wouldn't just be because SLIME no longer includes the REPL by default, would it? Does adding: (require 'slime-fancy) to your emacs setup help at all? Cheers, Mark Mathias Dahl writes: > Hi! > > I am trying to start swank separately so that I can connect to it from > a

Starting swank separately and connecting to it works almost but no REPL

2009-09-05 Thread Mathias Dahl
Hi! I am trying to start swank separately so that I can connect to it from a separate emacs instance. It works almost all the way but I never get a REPL. Here are the details: Shell: $ java -cp /home/mathias/tmp/clojure-1.0/clojure-1.0.0.jar:/home/ mathias/clj/swank-clojure clojure.lang.Repl C

Re: maplocalleader & vimclojure

2009-09-05 Thread Meikel Brandmeyer
Hi, Am 04.09.2009 um 00:00 schrieb ronen: Im also not getting Clojure when calling :nmap, n * /<+.\{-1,}+>c/+>/e n \gp * :GitPullRebase n \gc * :GitCommit n \gA * :GitAdd n \ga * :GitAdd n \gl * :GitLog n \gs * :GitStatus n \gD

Re: Another Clojure Box - Version 1.4

2009-09-05 Thread Shantanu Kumar
I tried again following your checklist. My response is inline. > Be sure that: > - the REPL it's working fine (if it let you work normally then it's > fine). I am not sure if I have found the REPL in the ACB yet. Is it the WinCommand "Clojure 1.0" tab you are talking about? How do I setup ACB th

Re: maplocalleader & vimclojure

2009-09-05 Thread Meikel Brandmeyer
Hi, Am 03.09.2009 um 23:01 schrieb Bokeh Sensei: Really, the question is, what should we assume the user should know/ doesn't know/shouldn't know. Yes. This can be a problem. What should be clear to everyone: VimClojure is not intended to hide the complexity of Vim in any form. If you don