Re: Confused by Clojure floating-point differences (compared to other languages)

2014-02-05 Thread Bruce Adams
Modern JVM's pick default heap sizes based on the physical memory in your machine. With more than 1GB of physical memory, initial heap is 1/64 and maximum heap is 1/4 of physical memory.[1] For OpenJDK and Oracle, this command: java -XX:+PrintFlagsFinal -version | grep HeapSize will show the

Re: Trying to use Heroku and Postgresql

2013-10-05 Thread Bruce Adams
(System/getenv DATABASE_URL) is returning nil. This will happen when the system environment variable DATABASE_URL is not defined. - Bruce On Sat, Oct 5, 2013, at 04:54 PM, Zeynel wrote: I am going through this Heroku tutorial [1]https://devcenter.heroku.com/articles/clojure-web-applicati

Re: Error - Clojure

2013-10-21 Thread Bruce Adams
Your project.clj file contains (defn -main ([] (-main )) ([port] (run-jetty app {:port (Integer. port)}))) near the end of the defproject form. That's not right. I'm not quite sure what question to ask here. The (defn -main ...) belongs in a source file, not in the project.clj.

Re: StackOverflowError

2013-11-08 Thread Bruce Adams
In this line: (if TRACE (do (println [:OFACTS (count ofacts)]) (clojure.stacktrace/e))) the StackOverflowError must be occurring in the evaluation of ofacts. The error breaks out of the evaluation, preventing (clojure.stacktrace/e) from being evaluated. The error sends you back to the

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Bruce Adams
Even for a web site used exclusively by people, fail fast when overloaded can be good. You would rather give an error (one hopes a gee, so sorry, we having some trouble right now page) to some users rather than be extremely slow for many users. What do I do when I get a slow web page? I hit

Re: Support for IBM JVM?

2015-03-19 Thread Bruce Adams
Some fun (for some value of fun) vaguely related history: A fix has gone into IBM Java 1.7 for a crash triggered by Leiningen. see: http://www-01.ibm.com/support/docview.wss?uid=swg1IV32629 (where Clojure is misspelled) and https://github.com/technomancy/leiningen/issues/954. - Bruce