Re: Are strings expensive for memory on the JVM?

2013-01-04 Thread Matt Hoyt
emit-str to store the XML as > a string in the atom recent-activity. > > That leads to 2 questions: > > 1.) are strings expensive on memory? > > 2.) what are the simplest profiling tools I can use to compare the memory > use of emit-str versus what I was doing previously? > &

Re: ClojureScript: Correct way to call an instance method with parameters?

2011-11-17 Thread Matt Hoyt
(.setDate (goog.date.fromIsoString "2010-12-31") 1)   Matt Hoyt From: Base To: Clojure Sent: Thursday, November 17, 2011 2:26 PM Subject: ClojureScript: Correct way to call an instance method with parameters? HI I am attempting to manipulate a goog

Re: Downloading the documentation?

2011-11-12 Thread Matt Hoyt
Checkout the gh-pages branch from github.  The branch has all of the documentation for clojure in it.   Matt Hoyt From: Kyle Cordes To: clojure@googlegroups.com Sent: Saturday, November 12, 2011 8:25 PM Subject: Downloading the documentation? Is there a

Re: JavaScript `debugger' statement

2011-11-10 Thread Matt Hoyt
try (js* "debugger()")   Matt Hoyt From: Stuart Campbell To: Clojure Sent: Thursday, November 10, 2011 9:16 PM Subject: JavaScript `debugger' statement I'm trying to enter the Firebug debugger when an exception is caught: (try   ; ...

Re: Newbie question on OO/records

2011-11-05 Thread Matt Hoyt
Protocols are a way to achieve polymorphism.  Clojure protocols are similar to Haskell types classes.  Here is a video that explains clojure protocols: http://vimeo.com/11236603   Matt Hoyt From: stevelewis To: Clojure Sent: Saturday, November 5, 2011 6:40 PM

Re: -> vs ->> and names vs anonymous function

2011-11-02 Thread Matt Hoyt
e as the last parameter. Second question: I think what you mean is (->> "hi" println) .   If you wanted to give the function multiple arguments you could do this: (-> "hello" (println "world!")) and the other form it would be (->> "world!" (print

ClojureScript: Emacs Inferior Lisp Windows Batch Script

2011-10-24 Thread Matt Hoyt
I modified the repljs.bat to include the current directory src/clj, src/cljs, lib/, test/cljs, and test/clj to use with emacs inferior lisp mode in Windows. https://gist.github.com/1310468 Matt Hoyt -- You received this message because you are subscribed to the Google Groups "Clojure&q

ClojureScript: Map to ExtJS/Sencha Touch Config Object

2011-10-23 Thread Matt Hoyt
I wrote some functions to convert a map into an  ExtJS/Sencha Touch config object.  It converts nested list and vectors into javascript arrays. https://gist.github.com/1307273   Matt Hoyt -- You received this message because you are subscribed to the Google Groups "Clojure" group.

AMQP

2011-10-15 Thread Matt Hoyt
se for clojure.   Is there anything I should look at for creating a dsl for distributed messaging?  Is there a better way for dealing with optional arguments when its key/val pairs than (apply hash-map opts)?   Matt Hoyt -- You received this message because you are subscribed to the Google

Re: Are futures garbage-collected?

2011-09-28 Thread Matt Hoyt
It won't get GC until it finishes running unless the thread throws an unhandled Exception or the application is terminated.   Matt Hoyt From: Jan Rychter To: clojure@googlegroups.com Sent: Wednesday, September 28, 2011 3:38 PM Subject: Are futures ga

Re: beginner question

2011-09-24 Thread Matt Hoyt
Both of them are java objects.  Records has more default functionality like implementing equals, hashcode, etc.  You can read more about the differences here: http://clojure.org/datatypes assoc for records sets the value of the property for the record.  Matt Hoyt

Re: beginner question

2011-09-24 Thread Matt Hoyt
in clojure like map.  It will only execute when you ask a value for it.    Matt Hoyt From: Dennis Haupt To: clojure@googlegroups.com Sent: Saturday, September 24, 2011 2:36 PM Subject: beginner question -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 in java, i w

Re: confusion with map and dosync

2011-09-14 Thread Matt Hoyt
You only need the do sequence in queue-copy-fetch but not in process-indexes should be "You only need the dosync in queue-copy-fetch but not in process-indexes."   Matt Hoyt ____ From: Matt Hoyt To: "clojure@googlegroups.com" Sent: Thursday,

Re: confusion with map and dosync

2011-09-14 Thread Matt Hoyt
Map is lazy so it only gets called when you need something from the sequence.   To force it to be called you use doall so it would be (doall (map queue-copy-fetch fetches-seq)). You only need the do sequence in queue-copy-fetch but not in process-indexes.   Matt Hoyt

Re: Native compiler on Clojure

2011-07-10 Thread Matt Hoyt
tions you can view the whole list here http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html Someone did post in the mail list earlier this week or last week about a project that translate clojure code into C++.   Matt Hoyt From: cran198

Re: How to setup IntelliJ with Leiningen?

2011-06-06 Thread Matt Hoyt
Run: lein pom Then in intellij goto file->open project and goto the directory of the project and click on the pom.xml file. -- 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 pos

Using Enum Qt.AlignmentFlag ClassNotFoundException

2010-09-21 Thread Matt Hoyt
I trying to use QtJambi and I'm having problems using the enums that have this format Qt.. Error: error: java.lang.ClassNotFoundException Code: (ns collab-web-qt.dialog.connect (:import (com.trolltech.qt.gui QDialog QWidget QVBoxLayout QFormLayout QLineEdit) (com.trolltech.qt.core