Re: Are strings expensive for memory on the JVM?

2013-01-04 Thread Matt Hoyt
=en -- Matt Hoyt -- 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 posts from new members are moderated - please be patient with your first post. To unsubscribe from this group

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 basselh...@gmail.com To: Clojure clojure@googlegroups.com Sent: Thursday, November 17, 2011 2:26 PM Subject: ClojureScript: Correct way to call an instance method with parameters? HI I am

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 k...@kylecordes.com To: clojure@googlegroups.com Sent: Saturday, November 12, 2011 8:25 PM Subject: Downloading the documentation

Re: JavaScript `debugger' statement

2011-11-10 Thread Matt Hoyt
try (js* debugger())   Matt Hoyt From: Stuart Campbell stu...@harto.org To: Clojure clojure@googlegroups.com 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

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 spiritm...@gmail.com To: Clojure clojure

Re: - vs - and names vs anonymous function

2011-11-02 Thread Matt Hoyt
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! (println Hello))   Matt Hoyt From: Dennis Haupt d.haup

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 group

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. To post

AMQP

2011-10-15 Thread Matt Hoyt
.   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 Groups Clojure group

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 jrych...@gmail.com To: clojure@googlegroups.com Sent: Wednesday, September 28, 2011 3:38 PM Subject

Re: beginner question

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

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: confusion with map and dosync

2011-09-15 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: confusion with map and dosync

2011-09-15 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 mrho...@yahoo.com To: clojure@googlegroups.com clojure@googlegroups.com

Re: Native compiler on Clojure

2011-07-10 Thread Matt Hoyt
options 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: cran1988

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 posts

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.EnumName. Error: error: java.lang.ClassNotFoundException Code: (ns collab-web-qt.dialog.connect (:import (com.trolltech.qt.gui QDialog QWidget QVBoxLayout QFormLayout QLineEdit)