clojure repl quits after calling static java method

2009-01-17 Thread larry
I'm calling a java static method Play.midi in JMusic from Clojure REPL. After it plays the notes and says: "completed MIDI playback", the Clojure REPL quits. How do I keep the Clojure REPL from quitting after making this call to Java? --~--~-~--~~~---~--~~ You rec

clojure.contrib.str-utils in counterclockwise

2011-03-27 Thread larry
In installed counterclockwise plugin for eclipse. clojure.contrib is supposed to be installed with this but when I try: (require 'clojure-contrib.str-utils) I Could not locate clojure_contrib/str_utils__init.class or clojure_contrib/str_utils.clj on classpath: (test.clj:2) How do I fix this? T

why can't string functions be part of standard clojure lib?

2011-05-21 Thread larry
Let's say you're a new user and you want to split a string on a delimiter in clojure. Okay, I google "string split" in clojure. I find this at http://clojure.github.com/clojure/clojure.string-api.html (ns your.namespace.here (:require '[clojure.string :as str])) and see there is a "split" f

question about partial

2012-04-16 Thread larry
I trying to grok partial and -> so I have the following example. (defn f[x y] (+ x y)) ((partial f 2) 3) works as expected , returning 5 but if I try to use -> (-> 3 (partial f 2)) I get # But if I first define (def fp (partial f 2)) then (-> 3 fp) returns 5 as expected What's going on ?

Re: question about partial

2012-04-16 Thread larry
On Monday, April 16, 2012 10:02:48 AM UTC-7, Cedric Greevey wrote: > > (-> 3 ((partial f 2))) should also work. > I just wrote that it DOESN'T WORK. That's the point of the question.I should get 5 instead I get t# -- You received this message because you are subscribed to the Google Group

Re: question about partial

2012-04-17 Thread larry
Oops , thanks for pointing it out. Sorry Cedric, gotta learn to read more closely. On Monday, April 16, 2012 10:22:50 PM UTC-7, Ambrose Bonnaire-Sergeant wrote: > > Compare the number of brackets in Cedric's example to yours. > > Ambrose > > > >> >> On Monday, April 16, 2012 10:02:48 AM UTC-7, C

closure example doesn't need let?

2012-05-12 Thread larry
I saw this example of a simple closure in Joy of Clojure and on some Clojure tutorial page. (defn adder[n] (let [x n] (fn[y] (+ y x Is the let necessary? It seems redundant. I tried it like this and it seems to work fine. (defn adder[n] (fn[y] (+ y n)) -- You received this me

Re: Game of Life

2009-03-03 Thread Larry Sherrill
ead, using a Java idiom. I'll read up on binding. Thank again! Larry On Mar 3, 1:30 pm, Phil Hagelberg wrote: > lps540 writes: > > I've written a small example of Conway's Game of Life using Clojure > > and Swing. Comments/critiques are welcome. > > Interestin

Re: Game of Life

2009-03-03 Thread Larry Sherrill
Thanks everyone for the suggestions. Very helpful. On Mar 3, 2:03 pm, "Stephen C. Gilardi" wrote: > On Mar 3, 2009, at 3:03 PM, lps540 wrote: > > > I've written a small example of Conway's Game of Life using Clojure > > and Swing. Comments/critiques are welcome. > > Very nice example! > > Here's

Re: Game of Life

2009-03-03 Thread Larry Sherrill
Mar 3, 4:53 pm, Laurent PETIT wrote: > Hello Larry, > > is there a reason why the code of this port of Game of Life does not seem to > be under an open source license (e.g. EPL, etc.) ? > > I was interested in playing with your code, but I'm a bit reluctant when I > s

Re: Game of Life

2009-03-04 Thread Larry Sherrill
_CLOSE) (. pack) (. setVisible true)) (. b addActionListener (proxy [ActionListener] [] (actionPerformed [evt] (toggle-thread panel b)) (main) Thanks for everyone. Very good learning experience. Larry http://lpsherrill.blogspot.com --~--~---

Re: Parallel Game of Life

2009-03-16 Thread Larry Sherrill
It would be interesting to throw gridgain (http://www.gridgain.com/) into the mix and let people register their machines as part of a CA grid. Not sure the remote overhead would pay for itself but it would be interesting. On Mar 16, 3:03 am, bOR_ wrote: > Nice! A few more days of work and I've t

Re: Game of Life

2009-03-16 Thread Larry Sherrill
Very cool. Thanks for the tip. I didn't know a type hint would make that much difference. Another possible speedup would be to use send/actor to take advantage of multiprocessor machines. Would be curious if the overhead would pay for itself in this situation. Thanks, Larry On Mar 14, 8:

Re: Parallel Game of Life

2009-03-16 Thread Larry Sherrill
Hi Kyle, I added life-conway.clj to the files section last week. It has rand, clear, and bounded buttons, and the ability to use your mouse to draw the pattern rather than rely on rand. It's a good way to experiment with different automata such as gliders. Larry Sherrill On Mar 16, 9:

Enclojure plugin Netbeans

2010-02-24 Thread Larry Wykel
Anyone!!! . Anyway if your using Enclojure etc in Netbeans let me describe exactly what happens when I attempt to install plugin Latest MacOS Snow Leopard NetBeans 6.8 with just Ruby Enclojure plugin from Git File came down with a .zip extention

Posting

2010-02-24 Thread Larry Wykel
I just joined, got confirm, the clicked link. Posted msg to group. got email back confirming but is not showing up in messages Lar -- 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 tha

D&D + Clojure?

2018-03-27 Thread Larry Christensen
for people who might want to contribute to building some cool features for a fun app! -Larry Christensen a.k.a RedOrc Supreme Leader OrcPub -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: D&D + Clojure?

2018-03-27 Thread Larry Christensen
think I used this app the other day when working on a campaign and > didn't know it was using Clojure. I'd be open to contribute in my spare > time. What's the process for getting involved? > > Timothy Baldridge > > On Tue, Mar 27, 2018 at 2:03 PM, Larry Christens

lazy maps in Clojure?

2013-01-20 Thread Larry Travis
explicit use of refs? Lazy-seqs don't give me what I want because the arguments to be given to f don't occur in any kind of predictable sequence. --Larry -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: lazy maps in Clojure?

2013-01-21 Thread Larry Travis
I will look into it. --Larry On 1/21/13 1:55 AM, Jozef Wagner wrote: Or maybe https://bitbucket.org/kotarak/lazymap ? On Monday, January 21, 2013 7:38:01 AM UTC+1, Alex Baranosky wrote: memoize, or delay maybe On Sun, Jan 20, 2013 at 10:29 PM, AtKaaZ > wrote: memoize? On

functions as return values

2013-02-23 Thread Larry Travis
way that I can suppress the evaluation of this expression? --Larry -- -- 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

Re: functions as return values

2013-02-23 Thread Larry Travis
until values for their open variables become available. --Larry On 2/23/13 5:50 PM, Michael Klishin wrote: 2013/2/24 Larry Travis mailto:tra...@cs.wisc.edu>> Is there some way that I can suppress the evaluation of this expression? ((fn [a] '(fn [b] (+ (inc a) (* b

Need help getting Snow Leopard, Aquamacs, Clojure, and Slime to work

2010-06-20 Thread Larry Travis
lime/, I also get an error message but a different one, viz. "Searching for program: No such file or directory, lisp". I hope somebody has an answer for me w.r.t. Aquamacs, but I will be happy if I can get either version of Emacs to work with clojure and slime. Thanks. --Larry T

Re: Need help getting Snow Leopard, Aquamacs, Clojure, and Slime to work

2010-06-22 Thread Larry Travis
figure it out with some exploration. --Larry Travis -- 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 f

Re: Need help getting Snow Leopard, Aquamacs, Clojure, and Slime to work

2010-06-22 Thread Larry Travis
s -- adapting them to Aquamacs if I can. --Larry Travis -- 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 yo

Re: Need help getting Snow Leopard, Aquamacs, Clojure, and Slime to work

2010-06-23 Thread Larry Travis
Thanks again. I have to be away from home and my iMac for the next ten days so it will be some time before I can work through your suggestions, but I will certainly give them a try. I'll let you know what kind of success I have. I very much appreciate your help. --Larry Travis Joost

Re: A newbie's summary - what worked, what didn't

2011-03-28 Thread Larry Travis
create such a setup for the Aquamacs version of emacs that many of us Mac Os X users prefer (because it gives us the power and versatility of emacs without having to learn dozens of non-obvious key chords). Thanks. --Larry On 3/28/11 12:46 AM, Kasim wrote: Hi, I am the guy who

can't set up Clojure 1.2.1

2011-07-14 Thread Larry Travis
01) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) I don't know how to find my way around in the Java world. What should I do differently? Thanks for your help. --Larry -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: can't set up Clojure 1.2.1

2011-07-14 Thread Larry Travis
Jonathan: Thanks. When the instructions said "the directory in which you expanded clojure.zip" I took that to mean the directory I was in when I expanded clojure.zip, not the directory that was created to hold the zip-file contents. --Larry On 7/14/11 10:05 PM, Jonathan Car

Re: can't set up Clojure 1.2.1

2011-07-15 Thread Larry Travis
ecome proficient in it. Of course, the best response to such a criticism is "Don't just criticize. Write such a book." It will be a while before I know enough to do so! --Larry On 7/15/11 9:16 AM, Sergey Didenko wrote: Larry, it seems that the current folder "." is not in y

Re: can't set up Clojure 1.2.1

2011-07-16 Thread Larry Travis
uter science -- at least, for the very important areas of programming multi-processor systems and of experimental programming (so important, for example, for artificial intelligence research). --Larry On 7/16/11 10:10 AM, Phil Hagelberg wrote: On Fri, Jul 15, 2011 at 11:29 PM, Larry Travi

Re: What's the efficient functional way to computing the average of a sequence of numbers?

2012-03-30 Thread Larry Travis
] (average3 /mill-float-numbs/))) "Elapsed time: 405.484 msecs" user=> (time (dotimes [i 10] (average4 /mill-float-numbs/))) "Elapsed time: 394.31 msecs" --Larry On 3/30/12 1:31 AM, Benjamin Peter wrote: I think this topic is interesting. My guess would be, that the sequence wou

Leiningen-noobie question

2012-04-28 Thread Larry Travis
REPL running for the project (or maybe insert them all into the /src/core.clj/ file of the project and do a single /load-file/ on it)? That question is surely complicated enough to indicate how badly confused I am! Thanks for help. --Larry -- You received this message because you are subscrib

Re: Leiningen-noobie question

2012-04-28 Thread Larry Travis
when I create a new project prjctTwo, I can't figure out what dependency declaration for it gives a prjctTwo Slime REPL access to the functions in prjctOne. That is, what would correspond to the [utilities "0.0.1-SNAPSHOT"] vector in your example? --Larry On 4/28/12 4:46 AM, Sea

Re: Leiningen-noobie question

2012-04-28 Thread Larry Travis
programs to work than on getting my programming environment to work. If you get any more ideas about how I might try to solve my problem, let me know. Thanks. --Larry On 4/28/12 5:07 PM, Sean Corfield wrote: On Sat, Apr 28, 2012 at 2:41 PM, Larry Travis wrote: That is, what would cor

Re: Leiningen-noobie question

2012-04-28 Thread Larry Travis
Neale: Indeed, that's exactly the dependency vector I needed. I'm impressed by your expertise. Thanks very much to both you and Sean. --Larry On 4/28/12 7:01 PM, Neale Swinnerton wrote: leiningen relies on maven dependency resolution... the dependency entry is of the form

Re: Leiningen-noobie question

2012-04-30 Thread Larry Travis
Phil, Neale, Sean: You guys are all way ahead of me as to why I am getting the results I am getting, but it is only Neale's advice that works. That is [prjctOne/prjctOne "1.0.0-SNAPSHOT"] works, but [prjctOne "1.0.0-SNAPSHOT"] does not. --Larry On 4/30/12

Re: Leiningen-noobie question

2012-05-02 Thread Larry Travis
robably already knew that they would!) --Larry On 5/1/12 11:22 AM, Phil Hagelberg wrote: On Mon, Apr 30, 2012 at 9:28 PM, Larry Travis wrote: Phil, Neale, Sean: You guys are all way ahead of me as to why I am getting the results I am getting, but it is only Neale's advice that works.

Why doesn't doc work in clojure-jack-in slime-repl?

2012-05-04 Thread Larry Travis
A command like user> (doc hash-map) in the slime-repl created by clojure-jack-in results in Unable to resolve symbol: doc in this context [Thrown class java.lang.RuntimeException] Can this be fixed or do I have to do my doc requests someplace else? --Larry -- You received this mess

Re: Why doesn't doc work in clojure-jack-in slime-repl?

2012-05-04 Thread Larry Travis
Thank you, Roberto. Works like a charm. --Larry On 5/4/12 2:32 PM, Roberto Mannai wrote: You should "use" it: user> (use 'clojure.repl) nil user> (doc doc) ... On Fri, May 4, 2012 at 9:27 PM, Larry Travis <mailto:tra...@cs.wisc.edu>> wrote: A command

Re: Why doesn't doc work in clojure-jack-in slime-repl?

2012-05-04 Thread Larry Travis
Roberto: This indeed looks like it will be useful. Thanks. Your require-all-snippet.clj script loaded OK except for: Attempting to require clojure.parallel : couldn't require clojure.parallel Exception #java.lang.ClassNotFoundException: jsr166y.forkjoin.ParallelArray> --Larry

Re: Why doesn't doc work in clojure-jack-in slime-repl?

2012-05-04 Thread Larry Travis
Phil: Thanks. I obviously need to start doing my Clojure programming with a Slime cheatsheet in front of me! --Larry On 5/4/12 4:00 PM, Phil Hagelberg wrote: Another way to do it is just use C-c C-d C-d for docs lookup. -Phil -- You received this message because you are subscribed to

Re: Best Clojure Learning Resource for Lisper

2012-05-07 Thread Larry Travis
d, "Clojure Programming".) Unfortunately, none of them contain a chapter that has yet to be written by somebody: "Everything a Clojure programmer who has never used Java needs to know about it." I hope this helps. --Larry On 5/7/12 9:34 AM, Lee Spector wrote: On May

Re: Best Clojure Learning Resource for Lisper

2012-05-07 Thread Larry Travis
it (whether or not it is one of the goals they have explicitly in mind). --Larry On 5/7/12 10:40 PM, Sean Corfield wrote: On Mon, May 7, 2012 at 8:21 PM, Lee Spector wrote: My recollection was that Aquamacs had more support for Mac OS native menus and other GUI elements too... Probab

How do I set jvm options for a lein repl

2012-05-20 Thread Larry Travis
How do I set jvm options for a /lein repl/ initiated independently of a project? In particular, I want the heap expansion that results from doing "M-x clojure-jack-in" in an emacs /project.clj/ buffer with ":jvm-opts [ "-Xms4G" "-Xmx4G"]" in its defp

Re: How do I set jvm options for a lein repl

2012-05-21 Thread Larry Travis
I should be switching over to Leiningen 2 shortly in any case, but I am curious. How does one "set JVM_OPTS as an environment variable"? --Larry On 5/21/12 11:42 AM, Phil Hagelberg wrote: On Mon, May 21, 2012 at 5:28 AM, Raju Bitter wrote: How do I set jvm options for a

Re: How do I set jvm options for a lein repl

2012-05-21 Thread Larry Travis
immingly. They work for both bash and eshell. Thanks much to you all. --Larry On 5/21/12 6:16 PM, Softaddicts wrote: The bash example is export JVM_OPTS=-Xms4G ... missed the = ... Luc If you are running in a unix shell, something like JVM_OPTS=-Xms4G ... Followed by export JVM_OPTS

Re: General subsequence function

2012-06-27 Thread Larry Travis
function you don't need to worry about how simple or pretty might be its internal details. --Larry On 6/27/12 3:24 PM, Warren Lynn wrote: Thanks, but this does not keep the concrete type. On Wednesday, June 27, 2012 3:42:25 PM UTC-4, Ulises wrote: > I'd forgotten that 'i

Can I examine the state of a Clojure lazy sequence?

2012-07-08 Thread Larry Travis
ss so far of alternative solution paths being simultaneously pursued by an AI algorithm. Thanks in advance for any relevant advice. --Larry -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Meaning of "="

2012-10-02 Thread Larry Travis
should not be considered "equal" just because they contain the same elements in the same order. --Larry -- 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 tha

What is this function?

2012-10-09 Thread Larry Travis
([a b c d & more] (cons a (cons b (cons c (cons d (spread more))) -- What is the function _spread_? It is not in the Clojure API -- and the definition of _list*_ seems to me to be complete without it. --Larry -- You received this message because you are subscri

Re: What is this function?

2012-10-09 Thread Larry Travis
Mark, Andy, Tassilo: Very helpful, gentlemen. You are kind and skillful tutors. Thank you much. --Larry -- 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 n

Re: What is this function?

2012-10-09 Thread Larry Travis
925 msecs" Here is the comparable timing for Ben's list+ alternative: user> (time (dotimes [_ 10] (list+ 1 2 3 4 5 6 7 [8 9]))) "Elapsed time: 84.891 msecs" --Larry On 10/9/12 5:57 PM, Ben Wolfson wrote: I took Larry's comment to mean that one could implement l

Using functions from Java packages

2012-12-16 Thread Larry Travis
#(Math/sqrt %) [5 6 16]) (2.23606797749979 2.449489742783178 4.0) Thanks for helping me understand. --Larry -- 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

Re: Using functions from Java packages

2012-12-16 Thread Larry Travis
site crash course in Java concepts. (I hope it isn't necessary for him actually to learn Java programming skills. Reserving programming-skill learning for Clojure is a lot more fun!) Anybody have any recommendations of a book that could be used for such a crash course? --Larry On 1

Re: Macro tutorials?

2011-10-10 Thread Larry Johnson
how it relates to my learning of clojure (assuming that it isn't deemed off-topic noise). Regards, Larry On Mon, Oct 10, 2011 at 7:33 AM, Nicolas wrote: > A good book to learn lisp macros, is On Lisp from Paul Graham. This > book really cover advanced topics and concepts, and has ma

Re: Literate programming

2011-10-27 Thread Larry Johnson
I'm a bit reluctant to get into this, because I'm new to clojure (and don't know the backstory of this post), but an old hand at literate programming (I recently did a podcast interview with Donald Knuth on LP). I'll be interested in the results of your survey. Larry On We

Re: Literate programming

2011-10-27 Thread Larry Johnson
as that given the array of tools for rendering Docbook "weaving" was a piece of cake, and perl had a good range of modules for doing the "tangle". As I stated, I'm very new to clojure, but I've always been fascinated with LP, and I'm very happy to see this discussion

Re: Literate programming

2011-10-28 Thread Larry Johnson
On Thu, Oct 27, 2011 at 11:52 PM, daly wrote: > > Any means of publication can be the medium for literate programming. > As I rule I prefer Latex but anything will do. > > All you need is a distinguished means of quoting and naming the > chunks. In html this could be as simple as: > > you

Re: Clojure Conj extracurricular activities spreadsheet

2011-10-31 Thread Larry Johnson
Damn, Damn, Damn. I'm very new to clojure, and joined this forum just a few weeks ago. The fact that there are sessions at Clojure Conj on two of my passions (Go and Literate Programming), and that I'm unable to attend, frustrates me to no end. I assume that the session on Go refers to the Asia

Re: Clojure Conj extracurricular activities spreadsheet

2011-10-31 Thread Larry Johnson
Ahh. Yes, it is really, really hard. I may have misunderstood the nature of the session. Larry On Mon, Oct 31, 2011 at 5:18 PM, Gary Trakhman wrote: > I think we're just playing it, no? :-) Isn't it really really hard > to solve go? > > On Mon, Oct 31, 2011 at

Re: Overused phrases in the Clojure community

2011-11-16 Thread Larry Johnson
On Tue, Nov 15, 2011 at 11:05 PM, Carl Cotner wrote: > In general, I agree that it's annoying to continue seeing certain words > used over and over. But the use of the word "idiomatic" in particularseems to > be very idiomatic in the Clojure community, so I don't mind it. > > :-) > > > On Tue, N

Re: Literate programming

2011-12-22 Thread Larry Johnson
d in the form of an article. If it can't be describe in human language it's probably terrible code. Larry -- 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

Re: Literate programming

2011-12-22 Thread Larry Johnson
Probably the most effective way to really hammer the benefits of literate programming into the clojure community would be to take a manageable but serious and well known clojure program, module, or library, and render it into literate form. As a clojure programmer, I'm not even there. But as some

How can I make this kind of error message more useful?

2012-01-03 Thread Larry Travis
uations of defn expressions in the REPL, so that such error messages would always give me a useful line number like the 323 in the first example? Thanks for your help. --Larry -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gro

Re: How can I make this kind of error message more useful?

2012-01-03 Thread Larry Travis
:5045) the REPL line which resulted in the error message was 15392, not 5045. So where does the 5045 come from? --Larry On 1/3/12 12:59 PM, Meikel Brandmeyer wrote: Hi, Am 03.01.2012 um 18:24 schrieb David Nolen: On Tue, Jan 3, 2012 at 12:09 PM, Larry Travis wrote: But my error messages are

Re: Any demand for ClojureCLR support under slime / emacs?

2010-12-15 Thread Larry Coleman
I don't know enough emacs Lisp to be much help with coding, but I can help test. -- 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

Why won't leiningen install for me?

2011-01-22 Thread Larry Travis
ut I don't think I would know what to do with it if I could! I am a Java tyro (who knows some other lisps reasonably well) trying to use clojure under Mac Os X and Emacs, but I am having a lot of problems getting clojure to run conveniently in that environment. Thanks for your help. -

Re: Why won't leiningen install for me?

2011-01-25 Thread Larry Travis
ire x86_64, then the library cannot be loaded." But also, from a different commentator: "This issue was fixed in a later version of MacPorts with better 10.6 x86_64 compatibility." Is there some way to determine if the installation process is indeed expecting an x86_64 arch

Re: Why won't leiningen install for me? (NOW IT DOES!)

2011-01-25 Thread Larry Travis
az -- but right now I don't need either, and I want to spend my time digging more deeply into how Clojure enables one to utilize multi-core processors. And the Clojure IDE I've got running to support that digging is just beautiful: Snow Leopard + Aquamacs + Slime. Thanks again. --La

Question about the Clojure load-file command

2011-03-12 Thread Larry Travis
":867" to the file's name and then tell me that the changed name is an unresolvable symbol? Thanks for any advice any of you might have. I hope the question isn't impossibly dumb. --Larry Travis -- You received this message because you are subscribed to the Google

Re: Question about the Clojure load-file command

2011-03-12 Thread Larry Travis
Ken: The cause of my difficulty indeed was a corrupted file. I was looking for it in a completely different direction, and I clearly don't know how to correctly parse Java error messages! Thank you very much for sharing your cleverness and your expertise. --Larry On 3/12/11 7:39 PM

Re: Question about the Clojure load-file command

2011-03-13 Thread Larry Travis
start can quickly be caught and corrected, but I suspect that in this case I made such a false start and didn't fully correct for it. --Larry On 3/12/11 9:09 PM, Ken Wesson wrote: On Sat, Mar 12, 2011 at 9:46 PM, Larry Travis wrote: Ken: The cause of my difficulty indeed was a corr

Re: Clojure load-file command (+ Aquamacs, Bluefish)

2011-03-14 Thread Larry Travis
x27;t found it yet but I haven't looked very hard. If for some reason I ever do want to change editors, I'm tempted to try Bluefish. It was recommended for Clojure editing by ramsa...@comcast.net on this mailing list just yesterday. --Larry On 3/13/11 3:23 PM, Ken Wesson wrote:

is there a naming convention for the directory with java in it?

2013-05-28 Thread larry google groups
I started a project with "lein new". I had a jar file I needed to include in this project (a recommended class from a company that has an API that we are using -- it would be pointless for me to re-write their code, so I simply grabbed the class they offered and compiled it as a jar). I ended up

idiot question about macros

2013-06-07 Thread larry google groups
I am very stupid and I am having trouble figuring out how to read this: (defmacro match-func [& body] `(fn [~'x] (match [~'x] ~@body))) ((match-func [q :guard even?] (+ 1 q) [z] (* 7 z)) 33) ;; 231 What? Why 231? The article is here: http://java.dzone.com/articles/my-first-clojure-macro I es

How does "

2013-09-13 Thread larry google groups
I am stupid and recursion is clearly beyond my intellect. Martin Trojer has a great blog post here which I learned a lot from but I don't understand why the final example works: http://martintrojer.github.io/clojure/2013/07/17/non-tailrecursive-functions-in-coreasync/ He offers this as an exam

What is current "best practice" regarding exceptions?

2015-04-20 Thread larry google groups
I'm curious, how are people in the Clojure community currently dealing with exceptions? I have a diverse set of questions on this topic. 1.) How many have adopted an Erlang "die fast and restart" strategy? 2.) How many use something like Supervisor to spin up new JVMs? If not Supervisor, then

What are favored Redis-backed queues?

2015-04-24 Thread larry google groups
I'm looking at this old post from Github, that lists the features they were looking for in a message queue: - Persistence - See what's pending - Modify pending jobs in-place - Tags - Priorities - Fast pushing and popping - See what workers are doing - See what workers ha

Re: Clojure needs a web framework with more momentum

2015-05-03 Thread larry google groups
The industry has been moving against frameworks for 15 years now. The peak of the monolithic framework craze was Struts, back in 2000. After that, people started craving something less bloated. That's why the whole industry was so excited when Rails emerged in 2004. Bruce Eckel summed up the su

Re: Clojure needs a web framework with more momentum

2015-05-03 Thread larry google groups
This can be read in a manner opposite to what you intended: > There's one factor missing from this discussion which is framework > community. I think there's immense value in the community factor which > emerges when a web framework gains a lot of mindshare. From what I've > read in this threa

Re: Clojure needs a web framework with more momentum

2015-05-03 Thread larry google groups
o the product of not needing or wanting anybody else's help to do something." On Sunday, May 3, 2015 at 9:51:15 AM UTC-4, g vim wrote: > > On 03/05/2015 14:39, larry google groups wrote: > > The industry has been moving against frameworks for 15 years now. The > > pe

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread larry google groups
nobody wanted anyway or split them up into smaller > pieces. > > > On Sunday, May 3, 2015 at 8:25:22 PM UTC+2, larry google groups wrote: >> >> >> > The web development industry as reflected in job postings at >> > Indeed.co.uk is still dominated by the like

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread larry google groups
> While I agree that g vim's metrics aren't terribly meaningful, the conclusion he's arriving at is an important one. I think g vim's metrics have some impact with management. Certainly, its worth talking about. A few months ago I was talking to the woman at the New York Times who overseas th

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread larry google groups
> Someone earlier in the thread wrote about how Ruby was the abstraction in contrast to PHP where libraries > were tied to a framework. I've never worked with Rails seriously, but I find it hard to believe that libraries > such as shopping carts intended for Rails will work out of the box with

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread larry google groups
> Very interesting discussion going on here. As a beginner, what I'd like to see is not something > like Django or Rails, but something like Flask. Flask started off as a sort of joke -- a few Python programmers, responding to criticism of bloat in Django, said it should be possible to create a

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread larry google groups
> I've taken a couple of long lived Rails apps from Rails 1 to Rails 4 and while there have been breaking changes with > each major version change (and some minor versions) in general it's pretty easy to keep up with the latest > versions and there are copious docs (even whole ebooks in some ca

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread larry google groups
> I read several comments about how easy it is to upgrade Rails. > Either things have been improving at the speed of light or I am > a complete idiot. My last upgrades from 2.x to 2.y have been > nightmares, dependency hell multiplied by an unknown factor > above 100... I strongly agree. I t

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread larry google groups
> My guess is that over the next 2-3 years we will see some clojure frameworks emerge but > they will not be like "traditional" frameworks. Or the space for "web framework" will always default to Rails. Clojure certainly has some great frameworks in other areas, such as distributed data pro

What is "best practice" regarding transducers

2015-05-06 Thread larry google groups
I would like to write a detailed blog post about how developers are actually using transducers. If you have a public project on Github that is using transducers, would you please point me to it? I would like to see what you did. If you are not using transducers, but you plan to in the near fut

Re: Clojure needs a web framework with more momentum

2015-05-06 Thread larry google groups
> Maybe I don't entirely understand what a web framework is, but it seems to me > like Immutant is an example of something that might fit into a lot of the buckets. I agree. Perhaps people feel that it lacks the auto-generation of scaffolding for CRUD? Though I imagine that would be easy to f

Re: Clojure needs a web framework with more momentum

2015-05-06 Thread larry google groups
>Also, most of the time you do not need any complex "framework" to build a basic webservice with Clojure. True. Also, what is a basic web service? I have a friend who just got done with the 12 week crash-course in Rails that is offered by DevBootcamp in New York City. In 12 weeks he had to lea

What is a real example of the Observer pattern?

2015-05-06 Thread larry google groups
I am looking here: https://strange-loop-2012-notes.readthedocs.org/en/latest/monday/functional-design-patterns.html I read: Observer Pattern - Register an observer with a

Re: Clojure needs a web framework with more momentum

2015-05-06 Thread larry google groups
This is certainly true: "Docs are about empathy, which means discussions should show empathy." I am not sure what you mean by "That response does not respect people’s limited time." I think you mean that Pull Requests are often a waste of time, because you can not be certain if the Pull Request

Re: Clojure needs a web framework with more momentum

2015-05-07 Thread larry google groups
I assume most people here would agree with this: "Nothing is merely a pull request; it is someone's valuable time spent in contemplation and action." At the same time, I assume most people who would use Clojure will also know something about Git, and I think this applies even to fairly new pr

how do I clojure.string/replace regex characters? Escaping gives me StringIndexOutOfBoundsException

2014-08-04 Thread larry google groups
I'm working on a website with a frontender who asked to be able to save JSON maps that contain field names such as: "$$hashKey" : "00C" The dollar signs are a violation of MongoDB limits on field names, so i need to convert to something else and then convert back. So I thought I would convert

Can I compare ::logging from one namespace with ::logging from another?

2014-08-09 Thread larry google groups
Please forgive this stupid question, but I'm still trying to understand exactly what the double "::" means. I have read that I can use (derive) to establish a hierarchy and I can imagine how this would be useful for things like throwing errors and catching them and logging, but I've also read th

Re: Can I compare ::logging from one namespace with ::logging from another?

2014-08-09 Thread larry google groups
to :ns2/foo, nor to just :foo. >> :: >> is used in cases where you want to exploit this important property of >> keywords, so that your keyword won't e.g. clash with other keywords in a >> collection, contents of which you don't know. >> >> Jozef >

Re: Can I compare ::logging from one namespace with ::logging from another?

2014-08-09 Thread larry google groups
n't have to the current or > even a real one. > > Jozef > > On Saturday, August 9, 2014 9:49:58 PM UTC+2, larry google groups wrote: >> >> Thank you for the responses. However, when I look here: >> >> http://clojure.org/multimethods >> >> I see tha

Re: Can I compare ::logging from one namespace with ::logging from another?

2014-08-09 Thread larry google groups
efmulti speak identity) > > If you require this namespace, you can use the alias instead of the fully > qualified name in keywords: > > (ns example.core > (require [example.other :as o])) > > (defmethod o/speak ::o/dog [_] "bark") > (defmetho

  1   2   3   4   5   >