Re: Clojure with Tensorflow, Torch etc (call for participation, brainstorming etc)

2016-10-08 Thread jeff
stractions and apis. Give us a couple days to do some house keeping, and then we'll open source it. -Jeff On Thursday, October 6, 2016 at 8:08:41 PM UTC-6, kovasb wrote: > > On Thu, Oct 6, 2016 at 9:20 PM, Mikera > wrote: > >> Hi Dragan, >> >> We hav

Re: Clojure with Tensorflow, Torch etc (call for participation, brainstorming etc)

2016-10-12 Thread jeff
Hi, We've made cortex public: https://github.com/thinktopic/cortex Fork away, and we hope that this contributes to a growing ML community in Clojure. Thoughts, ideas, feedback are welcome! Cheers, Jeff On Saturday, October 8, 2016 at 6:00:21 PM UTC-6, je...@thinktopi

Re: Serializing Clojure objects

2008-12-02 Thread Jeff Rose
e protocol definition phase. Hopefully that helps. -Jeff Tayssir John Gabbour wrote: > Hi! > > How should I approach serialization? I made a little test function > which serializes and deserializes Clojure objects. It works for > strings, integers, symbols, LazilyPers

Clojure template library

2008-12-03 Thread Jeff Rose
ll probably add some configuration options for handling whitespace and trimming newlines too. Any other ideas or patches welcome. Cheers, Jeff ;; Here is a short example of creating an HTML template and then ;; instantiating it under a binding to generate the string output. ;; Define an HTML pag

Re: Clojure template library

2008-12-03 Thread Jeff Rose
Ok, that makes sense. I'll do it. What about the other options available in erb though? Do we use this: * Will '' pass for valid xml? -Jeff Stuart Sierra wrote: > On Dec 3, 1:04 pm, Jeff Rose <[EMAIL PROTECTED]> wrote: >> I've just pushed a t

Re: Clojure template library

2008-12-05 Thread Jeff Rose
Rich Hickey wrote: > > > On Dec 3, 1:04 pm, Jeff Rose <[EMAIL PROTECTED]> wrote: >> I've just pushed a template library for Clojure up onto github for >> public use. You can find it here: >> >> http://github.com/rosejn/clj-libs/tree/master >>

Re: function args question

2008-12-05 Thread Jeff Rose
uses destructuring to decompose the vector and call foo explicitly. I think the problem you are having has to do with wanting to apply arguments to a function inside a doto, the java interop stuff. From what I can tell you won't be able to do it currently. In ruby the foo(*args) synta

Re: function args question

2008-12-05 Thread Jeff Rose
should be the same: user=> (def index-of (memfn indexOf substr)) #'user/index-of user=> (def mystr "foobar") #'user/mystr user=> (apply index-of [mystr "ba"]) 3 Where the "foobar" string is the instance that is getting the indexOf called, like this in j

Implementing .toString from Clojure

2008-12-08 Thread Jeff Rose
t would be cool if all the Java methods behind Clojure were implemented using multi-methods that dispatch on the type of the first argument, and then probably use some proxy on the Java side to be able to call into Clojure. -Jeff --~--~-~--~~~---~--~~ You receiv

re-find

2009-01-07 Thread Jeff Foster
I'm not understanding re-find. (re-find #"bar" "bar") => "bar" whereas (re-find #"(foo)|(bar)" "foo bar") => ["foo" "foo" nil] Why does one return a vector and one just the result directly? Looking at the code, re-find uses re-groups which explicitly says that it either returns a vector or a

Re: What is a LISP dialect?

2009-01-12 Thread Jeff Rose
built-in functions, how macros work, etc. You should do a bit of wikipedia reading and googling though, because this is a rich, interesting topic that is worth exploring, and it is probably too general a question for this list. Cheers, Jeff HB wrote: > Hey, > Clojure is described as a

Re: Amsterdam.clj

2009-02-02 Thread Jeff Rose
Oh, cool! I'll be at the library next Monday then. Thanks for letting me know. -Jeff Remco van 't Veer wrote: > Great idea! Maybe you would like to join ACK: > > > http://groups.google.com/group/amsterdam-rb/browse_thread/thread/2a38b6b85f3e7bbb > > A sma

Amsterdam.clj

2009-02-02 Thread Jeff Rose
Anyone else hacking Clojure in Amsterdam? How about going for a beer and talking some shop? -Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

find first match in a sequence

2009-02-10 Thread Jeff Rose
Hi, Is there a built-in function that will return the first item in a collection that matches a predicate? (Something equivalent to Ruby's Enumerable#find...) Seems pretty basic, but I can't find it in the docs. Thanks, Jeff --~--~-~--~~~---~--

Re: find first match in a sequence

2009-02-10 Thread Jeff Rose
pred (rest coll) Cheers, Jeff On Feb 10, 5:18 pm, Jeff Rose wrote: > Hi, >   Is there a built-in function that will return thefirstitemin a > collection that matches a predicate?  (Something equivalent to Ruby's > Enumerable#find...)  Seems pretty basic, but I can'tf

Re: find first match in a sequence

2009-02-10 Thread Jeff Rose
Oh cool! I hadn't thought about this aspect of laziness before. I can see there is some zen here that is worth exploring... Thanks Mark and Stuart. -Jeff Mark Fredrickson wrote: > Filter is lazy: > > http://clojure.org/api#toc228 > > So you can implement find-first as

Re: Random elements

2009-02-11 Thread Jeff Valk
let it take a collection. It looked like "nth" without the index arg, so I called it "rand-nth". (defn rand-nth [coll] (nth (seq coll) (rand-int (count coll One more naming option anyway. - Jeff --~--~-~--~~~---~--~~ You received t

Re: Concurrency and file writing

2009-02-16 Thread Jeff Rose
ace could query the write-queue to get access to blocks that haven't even been written to disk yet. In that way it could sort of act as a persistent cache. -Jeff James Reeves wrote: > Hi folks, > > I've been having some difficulty coming up with a scheme for writing > to fil

Re: clojure and embedded derby

2009-02-17 Thread Jeff Valk
investigate. Calling (.close conn) doesn't remove the lock file, however causing a new connection to fail does. It seems the embedded Derby driver may have some locking clean-up logic in its connect call. Perhaps browsing the Derby source might show how to invoke the real "release lock&q

Re: Idiomatic Way to Write the Following:

2009-02-18 Thread Jeff Valk
t calling assoc on a vector is only valid for indexes <= count. Vectors aren't sparse. There's a section in the API docs listing functions to create, examine, and "change" each type of collection. Very nicely organized, worth checking out. http://clojure.org/data_structures#toc1

Re: Idiomatic Way to Write the Following:

2009-02-18 Thread Jeff Valk
Here's another. (defn remove-at [v & idxs] (vec (for [i (range (count v)) :when (not ((set idxs) i))] (v i)))) - Jeff On Wednesday 18 February 2009 12:07, Chouser wrote: > > On Wed, Feb 18, 2009 at 12:30 PM, Telman Yusupov wrote: > > No prettier, but a bit faster: &

Implementing the Associative interface

2009-02-21 Thread Jeff Rose
I'm building a storage layer where I'd like to access properties of an item as if it were a regular map. If I write a proxy that implements the Associative interface does this just work? Anyone know of some example Clojure code that is doing something similar? Th

Re: Directed Graphs for Contrib

2009-02-23 Thread Jeff Rose
it would also be cool if it could run over the in-memory graphs from your library. -Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googl

Re: Waterfront - The Clojure-based editor for Clojure

2009-02-25 Thread Jeff Rose
led jars: CLJ=$PROJECTS/clojure CLJ_DIR=$CLJ/jars CLJ_JARS=$(find $CLJ_DIR -name "*.jar" -exec printf {}: \;) SYS_DIR=/usr/share/java SYS_JARS=$(find $SYS_DIR -name "*.jar" -exec printf {}: \;) export CLASSPATH=$CLJ_LIBS:$HOME/sw/java:$SYS_JARS:$CLJ_JARS:. Seems to work pretty well. -Jeff

Re: Algebraic data types in clojure.contrib

2009-02-25 Thread Jeff Valk
gt; (make stuff 1 2) {:a 1, :b 2} user> (meta (make stuff 1 2)) {:type :user/stuff} -Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@go

Re: Algebraic data types in clojure.contrib

2009-02-25 Thread Jeff Valk
peX "hi"}) ; no worries (with-meta [] {:type "hi"}) ; stack overflow String representation obviously uses :type now in a very particular way. I'm not sure where this happens though. Can anyone shed some light on the details? -Jeff > > On Thu, Feb 26, 2009 at 7:08 AM,

Re: Algebraic data types in clojure.contrib

2009-02-26 Thread Jeff Valk
Thanks for the insight, Konrad. I know this is a sideshow to the larger discussion on types, but it does present an unexpected usability issue. On 26 February 2009 at 02:44, Konrad Hinsen wrote: > The fix is to provide a default implementation for print-method. Try > executing this: > > (def

Re: Early registration for International Lisp Conference (Cambridge, MA, 22-25 March 2009)

2009-03-01 Thread Jeff Rose
Anyone know if they will be filming the ILC 2009? I can't fly to Boston, but I'd pay to get a quality stream. -Jeff Stephen C. Gilardi wrote: > Rich will be presenting a "Clojure in Depth" tutorial session on Sunday, > 22 March 2009 at the International Lisp Conf

Re: Two quick questions on functions...

2009-03-10 Thread Jeff Rose
d educational to adapt yourself to the new culture. Try looking through core.clj in the clojure source and reading over stuff in clojure-contrib. When I'm wondering how to do something or what is typical in Clojure land the first thing I do is grep around in those two places, then google,

Re: VimClojure 2.0.0 released (merged with Gorilla)

2009-03-10 Thread Jeff Rose
ocket this could be done... * I've got the clojure.txt file inside $HOME/.vim/doc, but if I :h clojure it says no help for clojure... Thanks a lot for doing this. I use it daily, and I think it will help a lot of people get into Clojure as the language grows. -Jeff Meikel Brandme

Re: On the importance of recognizing and using maps

2009-03-12 Thread Jeff Rose
open any built-in class you want, like String, and add or modify any methods you want. In practice it happens rarely and almost never causes problems. -Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: On the importance of recognizing and using maps

2009-03-12 Thread Jeff Rose
Konrad Hinsen wrote: > On Mar 12, 2009, at 10:59, Jeff Rose wrote: > >>> My main conclusion is that Clojure's system is a lot more flexible >>> but also a lot more fragile. Any function can modify data of any >>> "type" (as defined by metadata)

Re: Mapping a function over a map's values

2009-03-22 Thread Jeff Valk
On 22 March 2009 23:14, Timothy Pratley wrote: > Golf time! > > (defn mapmap [f m] > (into {} (map (fn [[x y]] [x (f y)]) m))) Ah, golf... :-) (defn mapmap [f m] (into {} (for [[k v] m] [k (f v)]))) --~--~-~--~~~---~--~~ You received this message becaus

Re: Mapping a function over a map's values

2009-03-22 Thread Jeff Valk
On Sun, 22 Mar 2009 at 23:27, Jeff Valk wrote: > Ah, golf... :-) > > (defn mapmap [f m] > (into {} (for [[k v] m] [k (f v)]))) For the record, I think the original approach is the most clear. And it's actually shorter. (defn mapmap [f m] (zipmap (keys

Re: Mapping a function over a map's values

2009-03-23 Thread Jeff Valk
On Mon, 23 Mar 2009 at 03:29, Mark Engelberg wrote: > But it traverses m twice, which is likely to be less efficient. I wondered about this too, and actually no. Zipmap is efficient. It constructs its return map in a single loop from two lazy seqs. Performance is practically identical to the "

Re: Mapping a function over a map's values

2009-03-23 Thread Jeff Valk
On Mon, 23 Mar 2009 at 07:57, Christophe Grand wrote: > I prefer the into version which allows to write a mapmap that preserves the > map type (eg sorted or hash): > > (defn mapmap [f m] > (into (empty m) (for [[k v] m] [k (f v)]))) Agreed. If it were in contrib, this would make most sense.

Re: Mapping a function over a map's values

2009-03-23 Thread Jeff Valk
On Mon, 23 Mar 2009 at 10:48, Konrad Hinsen wrote: > It is already in clojure.contrib, with exactly that implementation, > and for exactly that reason: Well I'm glad we agree then. :-) And thanks for the pointer. -Jeff --~--~-~--~~~---~--~~ You re

Re: Mapping a function over a map's values

2009-03-23 Thread Jeff Valk
On Mon, 23 Mar 2009 at 20:10, David Sletten wrote: > I think Mark was referring to the call to 'keys'. But apparently > Clojure doesn't need to traverse the map to generate the keys? The call to keys just creates a seq. There's no traversal until you consume it. > Not sure what you mean here.

Re: The Path to 1.0

2009-04-17 Thread Jeff Heon
Strangely enough, for me version 1.0 would mean the version of Clojure described in the book "Programming Clojure" by Stuart Halloway. It would be a version that I could download directly even though newer versions would appear afterward so the book and the Clojure version are consistent with one

Re: The Path to 1.0

2009-04-19 Thread Jeff Heon
On Apr 17, 2:47 pm, revoltingdevelopment wrote: > Aside from that, I think you are right about the psychology of > language adoption and book-buying.  Declaring 1.0 to coincide with the > content and publication date of Stuart's book is just an excellent > idea, regardless of all the other issues

Re: The Path to 1.0

2009-04-19 Thread Jeff Heon
On Apr 17, 2:47 pm, revoltingdevelopment wrote: > Aside from that, I think you are right about the psychology of > language adoption and book-buying. Declaring 1.0 to coincide with the > content and publication date of Stuart's book is just an excellent > idea, regardless of all the other issue

Re: Clojure for high-end game development

2009-05-22 Thread Jeff Heon
> EA is a publisher, not a producer. And they did publish the videogame Abuse, which is made from a list variant: http://en.wikipedia.org/wiki/Abuse_(computer_game) Interestingly, there is a thread about video game programming using Lisp here: http://news.ycombinator.com/item?id=516778 And the

Re: ClojureCLR updated

2009-06-02 Thread Jeff Heon
On Jun 1, 1:57 pm, David Miller wrote: > It's important in that it means that the generated MSIL is not > completely junk, in that I'm not missing any important optimizations, > that I'm taking full advantage of type hints, avoiding reflection, > etc..  The JVM bytecodes are an important check fo

Re: (Simple) Neural Net Simulation

2009-06-09 Thread Jeff Foster
I'm playing around with neural networks and went for a functional approach. There's some code at http://github.com/fffej/ClojureProjects/tree/master in the neural-networks directory. See http://www.fatvat.co.uk/2009/06/back-propagation-algorithm-in-clojure.html for some explanation. Lack of mu

Re: No OO restrictions is good. why not still add dependency injection?

2009-06-16 Thread Jeff Heon
I've seen dependency injection used in choosing an implementation for an interface with a configuration file i.e. without having to modify the code. I've only seen it used in component frameworks with lifecycle (a lifetime ago with Jakarta Avalon and now with Spring.) Currently we're using it in

Exception trying to use a macro within proxy

2009-06-18 Thread Jeff Dik
o. I'm guessing the problem is that the create-print-method-call macro is not getting expanded before the proxy macro. I really have no idea though. I would really appreciate any pointers on how to get this to work. Thanks, Jeff Full stack trace java.lang.RuntimeException: java.lang.Unsupport

Re: Exception trying to use a macro within proxy

2009-06-18 Thread Jeff Dik
(println (str '~name > "(" > (str-join ", " (map (fn [arg#] (pr-str arg#)) > args#)) > ")"))) > ~...@body)) > > to remove the boilerplate from your proxy code. > Excellent! Thanks so much! I got the y

Re: loneclojurian at ICFP programming contest

2009-06-30 Thread Jeff Foster
ClojureProjects/tree/ 1494815e83febebe9af28b0cb08b812a63df9e96/icfp/uk/co/fatvat) and there's a write-up on my blog (http://www.fatvat.co.uk/2009/06/icfp- contest-this-time-its-functional.html). Again, I'd appreciate any guidance on anything that I could improve! Cheers jeff On Jun 30, 11:02 pm,

Re: Emacs clojure-mode home?

2009-07-01 Thread Jeff Valk
t clojure has moved to github? - Jeff --~--~-~--~~~---~--~~ 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 modera

Grails And Clojure

2009-07-19 Thread Jeff Brown
an interest in this. Thanks. Jeff -- Jeff Brown SpringSource http://www.springsource.com/ Autism Strikes 1 in 166 Find The Cause ~ Find The Cure http://www.autismspeaks.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Grails And Clojure

2009-07-19 Thread Jeff Brown
On Sun, Jul 19, 2009 at 7:42 AM, Mark Volkmann wrote: > > On Sat, Jul 18, 2009 at 10:58 PM, Jeff Brown > wrote: > > I have released version 0.1 of a plugin which provides support for easily > > accessing Clojure code in a Grails app. There are some docs available > >

Re: Grails And Clojure

2009-07-20 Thread Jeff Brown
will be new to most Grail developers. > Done. jb -- Jeff Brown SpringSource http://www.springsource.com/ Autism Strikes 1 in 166 Find The Cause ~ Find The Cure http://www.autismspeaks.org/ --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Clojure as a CGI language?

2009-07-21 Thread Jeff Marder
You could embed Jetty in your application and it will just work. If you want to get fancy later you could always run it behind Apache or lighttpd. I haven't done this myself with Clojure, but I've used an embedded Jetty for test cases in a plain Java application. It's very simple- probably much mo

RT and namespaces

2009-07-28 Thread Jeff Brown
this if the clojure script does not define a namespace. How would I manage that? Thanks. jb -- Jeff Brown SpringSource http://www.springsource.com/ Autism Strikes 1 in 166 Find The Cause ~ Find The Cure http://www.autismspeaks.org/ --~--~-~--~~~---~--~~ You r

Re: RT and namespaces

2009-07-28 Thread Jeff Brown
On Tue, Jul 28, 2009 at 11:18 AM, Stuart Sierra wrote: > > I think the compiler defaults to the "user" namespace. > -SS > Calling RT.var('user', 'myfunc') results in an exception that says user/myfunc is unbound. jb -- Jeff Brown SpringSource http

Re: RT and namespaces

2009-07-28 Thread Jeff Brown
On Tue, Jul 28, 2009 at 11:26 AM, Jeff Brown wrote: > > > On Tue, Jul 28, 2009 at 11:18 AM, Stuart Sierra < > the.stuart.sie...@gmail.com> wrote: > >> >> I think the compiler defaults to the "user" namespace. >> -SS >> > > Calling RT.v

Re: RT and namespaces

2009-07-28 Thread Jeff Brown
On Tue, Jul 28, 2009 at 4:17 PM, Laurent PETIT wrote: > > 2009/7/28 Meikel Brandmeyer > > Hi, >> >> Am 28.07.2009 um 19:08 schrieb Jeff Brown: >> >> Is that really the right thing to do? >>> >> >> Strongly opinion-flavoured answer: >&g

Clojure Math

2009-08-12 Thread Jeff Brown
ave a clearly defined problem and find the solution. The goal is to have some math fun with Clojure. I found Weiqi's analysis at http://www.weiqigao.com/blog/2009/08/03/jeff_browns_probability_quiz_what_are_the_chances.htmlinteresting. Jeff -- Jeff Brown SpringSource http://www.spring

Re: Clojure and SOAP

2009-09-10 Thread Jeff Sapp
code than I was hoping for, but I didn't write most of it. All in all, I'm reasonably happy with how the project is going. If you do find anything interesting, please let me know. ~jeff On Thu, Sep 10, 2009 at 8:49 AM, Adie wrote: > > Hello, > > I am looking to write

Issue with casting integers with clojure.lang.ifn's

2009-09-14 Thread Jeff Gross
I have a vector that I need to count the size of and do a simple math calculation with. Say for example: (defn vect1 [1 2 3 4]) Typing (count vect1) returns the size of 4 that I need. I thought that I could simply use (count vect1) in an a simple infix expression, ie: (* (count vect1) 5)howev

Re: Is knowing Java a prerequisite for using Clojure?

2009-09-25 Thread Jeff Heon
On Sep 17, 10:01 pm, Hugh Aguilar wrote: > I want to create a DSL for generating gcode for cnc milling machines Unrelated to Clojure, but on the subject of DSL, the July/August 2009 issue (vol. 26 no. 4) of IEEE Software is dedicated to domain-specific modeling. http://www2.computer.org/portal/

Re: in-smaller-lists

2009-09-25 Thread Jeff Valk
On Friday 25 September 2009 at 08:46 pm, Travis wrote: > > I'm doing some file streaming with a lazy list and I ran into a > problem where I had to process a whole chunk at a time, so I wrote > this function. Just posting to see if I'm reinventing something or if > it might be a good addition to

Re: Does OSGi make sense for Clojure?

2009-10-05 Thread Jeff Heon
There is this project going on: http://wiki.github.com/romanroe/ogee --~--~-~--~~~---~--~~ 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

Re: Proposal: New Reader Macro #s{ ... }

2009-10-12 Thread Jeff Valk
ideas mentioned, but deserving of mention. - Jeff --~--~-~--~~~---~--~~ 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 mod

clojure-mode patch for docstrings

2009-10-13 Thread Jeff Valk
to posting here, please let me know. Thanks! - Jeff diff --git a/clojure-mode.el b/clojure-mode.el index aab4389..61b2ff7 100644 --- a/clojure-mode.el +++ b/clojure-mode.el @@ -147,6 +147,8 @@ if that value is non-nil." "\\(\\(^\\|[^\n]\\)\\(\\)*\\)\\(;+\\|#|\\) *&quo

Re: clj-gradle – a Clojure Plugin for Gradle

2009-10-14 Thread Jeff Heon
On Oct 14, 9:27 am, rb wrote: > Just wondering: how does it compare to Lancet?   > (http://github.com/stuarthalloway/lancet I was just wondering the same thing after reading the following point in the Gradle doc 8) -Ant tasks and builds as first class citizens. Anybody out there using Lancet o

Re: clojure-mode patch for docstrings

2009-10-14 Thread Jeff Valk
On Wednesday 14 October 2009 at 12:16 pm, Phil Hagelberg wrote: > If you've got complicated changes you can create a github fork and ask > to pull from there, but for simple things email is fine. Though if you > want attribution for your patch you can use "git format-patch" to > generate your it;

Re: clojure-mode patch for docstrings

2009-10-15 Thread Jeff Valk
bit easier. It needs polish but it's functional. If you think it would be a worthwhile addition, give me a heads up when swank-clojure looks good to hack. - Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: clojure-mode patch for docstrings

2009-10-15 Thread Jeff Valk
s.google.com/group/swank-clojure ? will do! - Jeff --~--~-~--~~~---~--~~ 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 memb

Re: Clojure is two!

2009-10-16 Thread Jeff Heon
Link for clojure in action green paper http://www.manning.com/free/green_rathore.html On Oct 16, 3:59 pm, Wilson MacGyver wrote: > one is clojure in action, published by manning, written by Amit Rathore --~--~-~--~~~---~--~~ You received this message because you

function rebinding and logging

2009-10-20 Thread Jeff Sapp
e mentioned rebinding functions, and being able to use it for the purpose of logging. I think in my case, I'd need to do this globally some how to avoid using a macro like defn-logging. It's escaped me, how would I go about doing this? Is redef

Re: function rebinding and logging

2009-10-21 Thread Jeff Sapp
't be very helpful. I think I was just looking for an easy solution. I'll have to put more thought into my problem. Thanks for setting me straight! ~jeff On Wed, Oct 21, 2009 at 7:05 AM, Robert Lally wrote: > I'd be a little concerned about wholesale wrapping of functions, p

Re: How is Lisp compiled ahead of time?

2009-10-21 Thread Jeff Sapp
good. So I hear anyway, I haven't managed to finish it yet... Hope that helps. ~jeff On Wed, Oct 21, 2009 at 10:58 AM, CuppoJava wrote: > > Hi, > Clojure started my interest in programming languages, and I'm > wondering exactly how LISP-like languages get compiled ahead of t

Re: Slime and stuff

2009-10-21 Thread Jeff Straszheim
I haven't tried it yet. I've been very busy. If I have any trouble, though, I'll post here. On Wed, Oct 21, 2009 at 7:31 AM, Stuart Campbell < stuart.william.campb...@gmail.com> wrote: > Jeffrey, did this work for you? I followed the instructions on the > screencast and I couldn't get a REPL to

Clojure Job Opportunity

2009-10-22 Thread Jeff Straszheim
*ID 0020 - Clojure Developer* Velocitude, a provider in mobile web development and social media solutions, is looking for a Clojure Developer to assist in further developing the Velocitude Mobile Platform for mobile web services, for clients representing major US brands and other companies. *Resp

invoking macros from Java

2009-10-27 Thread Jeff Brown
uot; + result); I am not sure how to invoke even_sillier_adder. Any help would be appreciated. jb -- Jeff Brown SpringSource http://www.springsource.com/ Autism Strikes 1 in 166 Find The Cause ~ Find The Cure http://www.autismspeaks.org/ --~--~-~--~~~---~--~~ You rece

Re: ANN: Clojure live-repl

2009-10-30 Thread Jeff Rose
Awesome! Thanks a lot. I've been needing this. -Jeff P.S. Maven is annoying. On Oct 18, 6:53 pm, "David Powell" wrote: > Hi, > > I just posted a project at <http://github.com/djpowell/liverepl>. > > It uses the Java Attach API to let you connect a C

Re: Communication in a distributed system

2009-11-10 Thread Jeff Brown
one way of dealing with socket connections. The source code for the app is at http://github.com/technomancy/mire. jb -- Jeff Brown SpringSource http://www.springsource.com/ Autism Strikes 1 in 166 Find The Cause ~ Find The Cure http://www.autismspeaks.org/ -- You received this message because

Re: vimclojure indentation problem.

2009-11-12 Thread Jeff Rose
Yes, I also have the same issue. Sometimes if I re-indent the file it goes away, and other times I re-indent the file and all of a sudden half of the functions are 2 spaces over. (2 spaces is my tab width though, so I'm not sure if it's a tab or always 2 spaces...) -Jeff On Nov 1

Re: clojure event handling

2009-11-12 Thread Jeff Rose
is fired, maybe by using a promise that gets fulfilled when the event hits the pipeline? -Jeff -- 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

Re: A Clojure Highlife

2009-11-16 Thread Jeff Heon
Hi there, Unfortunately, I was unable to get it working. >From what I gather, I'm using the wrong clojure.jar and or clojure- contrib.jar. Could you tell me which version of theses files you are using? Anyway, I was wondering about the memoizing of the function surrounding-neighbors-seq. It's m

Re: JScheme

2009-11-17 Thread Jeff Heon
Well, what are your needs or objectives? If you just want to do Scheme on top of Java, JScheme will be fine. The rationale behind Clojure is functional programming and concurrency: http://clojure.org/rationale For a more comprehensive answer, I'll let the man himself speaks 8) Rich does a detail

Re: A Clojure Highlife

2009-11-17 Thread Jeff Heon
On Nov 16, 2:49 pm, John Harrop wrote: > For a real challenge, try implementing Hashlife using Clojure's immutable > data structures. :) This might help. http://www.ddj.com/hpc-high-performance-computing/184406478 To quote the author, Tomas G. Rokicki : "This decision lets you use a completely f

Re: A Clojure Highlife

2009-11-18 Thread Jeff Heon
Thanks. I got it working with the bundle. Arghh, I realized about half an hour after posting that I had misunderstood m-surrounding-neighbors-seq. I withdrew my post from the Google group, but like they say, nothing vanishes without a trace ;) I had not realized that since the grid is made out of

Re: Clojure development environments

2009-12-04 Thread Jeff Heon
I'm using LaClojure with IntelliJ IDEA Community Edition on a Vista box without problems. Not sure about before, but it works now 8) Also I just tried Clojure Box as mentioned above on an XP box and it works like a charm. On Dec 4, 10:30 am, David Hilton wrote: > Last I checked (2-3 months ago)

Re: how 'bout a debug-repl?

2009-12-09 Thread Jeff Rose
debug mode where exceptions automatically drop you into a repl with all of the associated environment for you to explore. I guess something ala Smalltalk systems... -Jeff On Dec 7, 9:37 pm, George Jahad wrote: > Every time I stick a println into some Clojure code to debug it, I > think to

Question about "The whole language is there, all of the time."

2009-12-09 Thread Jeff Dik
d as XML. The part "Running code at read-time lets users reprogram Lisp's syntax" caught my attention. Is this talking about reader macros? I believe I read that clojure doesn't have reader macros, so would it be more accurate to say "The whole language is there, _

Re: Question about "The whole language is there, all of the time."

2009-12-18 Thread Jeff Dik
On Wed, Dec 09, 2009 at 02:35:24PM -0800, Joost wrote: > On 9 dec, 17:03, Jeff Dik wrote: > > The part "Running code at read-time lets users reprogram Lisp's > > syntax" caught my attention.  Is this talking about reader macros?  I > > believe I read that cl

Re: Second Lisp to Learn

2009-12-20 Thread Jeff Heon
If you're going to try the straight Scheme avenue, you might try the Gambit implementation, which is touted as very fast. http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Main_Page A good way to good if you already use Emacs as your IDE. For something different but still Scheme based, there

Re: idiomatic way to use cond.

2009-12-28 Thread Jeff Rose
time, but I could be missing something too... Cheers, Jeff On Dec 28, 4:59 am, RD wrote: > Hello All, >       When every I write clj code that involves cond. It always involves a > "do" in almost all of the classes. > > somethiing like >    (cond >      

Re: peepcode screencasts

2010-01-06 Thread Jeff Heon
I would add the suggestion to buy the current screencast, as it is excellent and would go an extra mile than the vote 8) PS. I just loved the grue reference 8) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojur

Re: Recommendation for Clojure Indentation tool

2010-01-09 Thread Jeff Schwab
Gabi wrote: I really hate emacs. ... Any other way to format lisp/clojure ? http://www.vim.org/scripts/script.php?script_id=2501 -- 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 t

Re: I'm going to teach Clojure at university - suggestions/comments?

2010-01-14 Thread Jeff Rose
, but especially in a class that feels less traditional I think it's even more important to have this kind of stability for the students. It was definitely the more challenging part of teaching for us, but when we succeeded it was obvious. Good luck! -Jeff P.S. The great thing about the int

compojure/defservlet

2010-01-19 Thread Jeff Schwab
Hi: The compojure wikibook claims that compojure provides a defservlet function, along with other syntactic conveniences that I seem to be missing. Grepping the git log didn't turn up anything relevant, so I'm wondering: Is compojure supposed to provide defservlet, or should I fix the wikib

Re: compojure/defservlet

2010-01-20 Thread Jeff Schwab
James Reeves wrote: Compojure's documentation is generally not in the best of states; however, I'm holding off fixing it until I finish work on the next version in a couple of months. Fair enough, thanks. -- You received this message because you are subscribed to the Google Groups "Clojure" g

Re: Autodoc for the masses

2010-01-21 Thread Jeff Rose
Just add that, run "lein deps", and then autodoc will be an available lein command. Thanks! -Jeff On Jan 20, 6:51 pm, Tom Faulhaber wrote: > Now your project can have the same documentation as Clojure, clojure- > contrib, and Incanter! > > The standalone autodoc too

Re: Promise/Deliver use cases

2010-01-23 Thread Jeff Rose
s to talk OSC: http://github.com/rosejn/osc-clj -Jeff On Jan 21, 12:19 pm, Baishampayan Ghose wrote: > Hello, > > I am trying to understand the use-cases of the new promise/deliver > feature in Clojure. I have tried using them, and they seem to be > pretty straight-forward to use, but

Re: Announcement: Vijual Graph Layout Library for Clojure Version 0.1

2010-01-23 Thread Jeff Rose
Awesome! I tried it out quickly last night using leiningen. The text rendering worked great, but graphical seems to have a problem: user=> (use 'vijual.graphical) java.lang.Exception: Unable to resolve symbol: half in this context (graphical.clj:60) -Jeff On Jan 22, 11:06 pm, Conra

Re: Dependency management

2010-01-23 Thread Jeff Rose
I'm normally on Ubuntu but works under Cygwin also. -Jeff --- #!/bin/bash DEPS=lib SUBMODULES=src/lib CLASSPATH="./src:./test" # Add jar files for f in "$DEPS"/*.jar; do CLASSPATH=$CLASSPATH:$f done # Add sub

Re: Debugging in Clojure

2010-01-23 Thread Jeff Rose
On Jan 22, 1:40 pm, Krukow wrote: > Please don't top post. Seriously, people still complain about this? It's the default behavior in Google Groups, so I think you just have to live with it. Find a news reader that doesn't suck. -- You received this message because you are subscribed to the Goo

  1   2   3   4   >