Long response time after a clojure process was inactive for some time

2012-12-13 Thread Trastabuga
A while ago I created a small web site based on Clojure. I noticed that when there was no requests to the site for some period of time (a few hours) it may take up to 20-30 seconds to process an incoming request. I only thought that it has something to do with a particular web framework, but rec

java.lang.StackOverflowError when calling function name instead of recur

2011-08-02 Thread Trastabuga
I just came across the issue of getting the StackOverflowError in the function reading long file and recursively building a list of data. After I replaced function name with "recur" the problem went away. Hence a couple of questions. It's the programmer's responsibility to put recur instead of func

Re: Using slime with remote clojure image

2011-07-08 Thread Trastabuga
ith a remote image using emacs/tramp in an uncommon scenario in Clojure community? On Jul 8, 11:35 am, Trastabuga wrote: > Hi > > When I run "java -jar project-standalone.jar" running swank server in > it on a remote PC. > Then when I open my remote *.clj file using tram

Using slime with remote clojure image

2011-07-08 Thread Trastabuga
Hi When I run "java -jar project-standalone.jar" running swank server in it on a remote PC. Then when I open my remote *.clj file using tramp, connect to the image with Emacs's M-x slime-connect - everything works well until I try to go to the function definition (M . or M-x slime-edit- definition

Re: How to defer name resolution till run-time?

2011-05-16 Thread Trastabuga
The (@(resolve 'swank.swank/start-repl) 4006) works well! Thank you, Andrei On May 14, 1:49 pm, Meikel Brandmeyer wrote: > Hi, > > Am 14.05.2011 um 00:35 schrieb Trastabuga: > > > I(defn -main [& args] > >  (do > >    (require 'swank.swank) >

Re: How to defer name resolution till run-time?

2011-05-16 Thread Trastabuga
k you, Andrei On May 14, 1:49 pm, Meikel Brandmeyer wrote: > Hi, > > Am 14.05.2011 um 00:35 schrieb Trastabuga: > > > I(defn -main [& args] > >  (do > >    (require 'swank.swank) > >    (swank.swank/start-repl 4006)) > >  (run-jetty main-routes {:

How to defer name resolution till run-time?

2011-05-13 Thread Trastabuga
I am trying to compile a project with lein uberjar. My main function looks like: (defn -main [& args] (do (require 'swank.swank) (swank.swank/start-repl 4006)) (run-jetty main-routes {:port 8080 :join? false}) ) The compiler complains about swank.swank/start-repl because the swank sym

Lein uberjar hangs when swank is required in the namespace.

2011-05-06 Thread Trastabuga
Hi I got a problem including swank into the project. I created a simple test project with "lein new test" And modified the project.clj and core.clj files so they look like: project.clj: (defproject test "1.0.0-SNAPSHOT" :description "FIXME: write description" :main test.core :dependencies [

Latest clojure + contrib

2011-05-05 Thread Trastabuga
Hi How do I get latest clojure and clojure-contrib? I understand now there is no a single contrib lib, but if you go to http://dev.clojure.org/display/design/Contrib+Projects and click on xml project you'll an empty git project. I tried to use clojre + contrib 1.2 but it lacks support for javax.xm

User defined extensions with Xpath

2011-03-01 Thread Trastabuga
Hi I am eager to try out Clojure for my new web site. But for that I need XSLT support, like I used to have on Common Lisp (Xuriella XSLT) and also XPath support (like Plexippus XPath). I saw the saxon wrapper among the Clojure libraries but in its docs I couldn't find how they define user extensio