aot resolve question

2015-01-20 Thread bob
Hi, I have a function (defn load-sym [s] (require (symbol (namespace s))) (resolve s)) There is no problem if not using the uberjar. when using the uberjar, (common/load-sym 'web/app-routes) // it can work {:route web/app-routes} //an edn file I read the edn file and put the value o

Re: [ANN] aprint (awesome print) released

2014-09-08 Thread bob
Cool On Friday, September 5, 2014 5:50:10 AM UTC+8, Vladimir Bokov wrote: > > Hi folks, I got just tired to gazing into big amount of data and scroll > 3-4 screens of my 13' laptop to grasp the structure, > so I used pprint's pretty printer, but add colors and changed indentation > *by default*

Re: [ANN] Async Ring 0.1.0

2014-09-09 Thread bob
Great, I just wonder how you evaluate the performance, how many concurrences? how many requests? On Tuesday, September 9, 2014 11:25:04 PM UTC+8, dgrnbrg wrote: > > Announcing the release of Async Ring! Ring is a great foundation for > building HTTP servers in Clojure. However, Ring fails to sol

Re: ANN: ClojureScript 0.0-2341, Improved Analysis & Transducers

2014-09-18 Thread bob
It would be better that the jira issues have links. On Thursday, September 18, 2014 8:23:45 PM UTC+8, David Nolen wrote: > > ClojureScript, the Clojure compiler that emits JavaScript source code. > > README and source code: https://github.com/clojure/clojurescript > > New release version: 0.0-2

Question about Reagent

2014-02-11 Thread bob
Hi All, I am new to react and reagent, the state is hard coded in the demo and tutorials, I am not sure how to retrieve data from server side and set to reagent? Thanks -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

pretty-exception middleware for ring

2014-02-13 Thread bob
Hey, a simple exception middle-ware for ring, maybe useful for some,maybe none. it catch exceptions and print, meanwhile the source code produced the exception will be print as well. - The demo will stay here (click me) . - The source code is here

Re: [ANN]: Buddy 0.1.0-beta3: Authentication, Authorization & Signing library for Clojure.

2014-02-15 Thread bob
Good library! On Monday, February 10, 2014 12:54:59 AM UTC+8, Andrey Antukh wrote: > > Hi! > > Buddy is an authentication, authorization and signing library for clojure, > designed with simplicity in mind. > > Features / Sub libraries: > * Modular Authentication (implemented using protocols). >

Want a game? let's refactor in the functional way

2014-02-21 Thread bob
Hi, I have a lab project called raiseup to play clojure , event though I have used clojure more than one year, but I still do not know how to write functional program,how to change my mind, therefore I plan to make a feature branch to refactor the project

Re: Want a game? let's refactor in the functional way

2014-02-21 Thread bob
I make a changeto refactor, is it more functional? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clo

Question about map destrustures

2014-02-24 Thread bob
Hi, There is a function a (defn a [ & {:as m}] (println m)) it accepts pair of params , for example (a :k 1 :j 2), however now I have a map {:k 1 :j 2}, the question is how to convert the map to be accepted by a? Thanks -- You received this message because you are subscribed to the Goog

Re: Question about map destrustures

2014-02-24 Thread bob
m)). > > Thanks, > Ambrose > > > On Mon, Feb 24, 2014 at 10:34 PM, bob >wrote: > >> Hi, >> >> There is a function a >> >> (defn a >> [ & {:as m}] >> (println m)) >> >> it accepts pair of params , for example (a :k

Re: A faster clojure startup

2014-02-28 Thread bob
Great, will it impact the runtime performance? On Friday, February 28, 2014 11:16:44 PM UTC+8, Gal Dolber wrote: > > Here're some notes on the lean compiler I've been working on for > clojure-objc > > http://galdolber.tumblr.com/post/78110050703/reduce-startup > > Feedback's welcome > -- You r

Clojure performance question

2014-02-28 Thread bob
Hi, Can I ask a newbie question about clojure performance? What make clojure performance slow than java?, it seems clojure has the 1/4 performance compared to java in general, according to tests, some cases it might be 1/10. the reasons I can think out are - the byte code is not efficient so

Re: Clojure performance question

2014-03-01 Thread bob
Case : clojure verison: (time (dotimes [n 1000] (str n "another word"))) ;; take about 5000msec java version long time = System.nanoTime(); for(int i=0 ; i<1000 ;i++){ String a=i+"another word"; } System.out.println(System.nanoTime()-time);

Re: Clojure performance question

2014-03-01 Thread bob
Good point, Thanks a lot. Shall we improve the str fn in the core lib? From my point of view, the core fns should be performance sensitive. On Sunday, March 2, 2014 12:03:21 AM UTC+8, Shantanu Kumar wrote: > > > > On Saturday, 1 March 2014 15:32:41 UTC+5:30, bob wrote

Re: Clojure performance question

2014-03-02 Thread bob
Cool, Kiss. >From my 2 cent, the solid is important to the clojure, and the core team is making any change carefully, but looks to me that the `radical` idea is important to the community and clojure as well, might that we need a branch of clojure to do some `radical` attempt and experiment, it

Re: Proposing a new Clojure documentation system (in Clojure)

2014-05-13 Thread bob
Any Result? Talk is cheap On Sunday, April 27, 2014 12:39:04 AM UTC+8, Val Waeselynck wrote: > > Hello to all, > > *Short version :* I think Clojure needs a documentation system in > Clojure, I would like to know if some efforts exist in that direction, and > I am willing to create it / contribu

Question regarding core.async

2013-11-19 Thread bob
Hi, There are two fn, one is to spawn the channel and the other is to send the message to the channel, The problem is that if the time to handle the message(or command) is more than the specified timeout time, and then another messages are emitted to the channel before the channel finish h

Re: Question regarding core.async

2013-11-19 Thread bob
I write a test to produce it,just run the fact several times quickly, and we can see that (println "3" v (java.util.Date.) only be executed one time. (defn handler [c] (go (let [] (loop [] (when-let [v (! c "hello")) (alts!! [c (timeout 3000)]) (println "4" (java.util.Dat

Type hint using protocol

2014-01-12 Thread bob
Hi, Is it possible to add type hint (the type is protocol) to funs? for example: (defprotocol IProtocol (f1 [])) can we define fn like this? (defn ftest [^IProtocol arg] (.toString arg)) -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: Type hint using protocol

2014-01-12 Thread bob
> ":foo" > > So, yes the compiler will let you do it but it won't actually enforce > it! May I ask why would you want to do this? Are you hitting any > reflection? > > Jim > > > > On 12/01/14 12:38, bob wrote: > > Hi, > > >

Re: Type hint using protocol

2014-01-12 Thread bob
Sure, here has a protocol named Store , and will be used in this file at line #14, the compiler tells me the warnings, forgo

Re: Type hint using protocol

2014-01-12 Thread bob
If I remove the dot, it cannot be compiled. can you give an example? On Sunday, January 12, 2014 9:22:00 PM UTC+8, Jim foo.bar wrote: > > I am suspecting you are calling the protocol implementations via the `.` > form, whereas you should be going via the protocol itself (whatever > namespace tha

Re: Type hint using protocol

2014-01-12 Thread bob
Thanks for the big help, I treated the protocol as interface. :) On Sunday, January 12, 2014 9:38:12 PM UTC+8, Jim foo.bar wrote: > > It is not compiling because it cannot find the function...either fully > qualify it like in my previous email or change your ns declaration to > something like:

Re: Type hint using protocol

2014-01-12 Thread bob
Cool! learn a lot from you. thanks again. On Sunday, January 12, 2014 10:22:30 PM UTC+8, Jim foo.bar wrote: > > or even nicer: > > (map [this f] > (let [^DBIterator iterator (doto (.iterator db) .seekToFirst)] > (clojure.core/map #(apply f %) (iterator-seq iterator > > Ok I will stop n

Re: [ANN] tools.analyzer(.jvm) 0.1.0-alpha1

2014-01-15 Thread bob
It seems tools.analyzer is to copy the analyzer of compiler from clojure, actually it is time to improve the error message and so on. On Saturday, January 11, 2014 9:23:56 AM UTC+8, Nicola Mometto wrote: > > > Today I released the first version of the tools.analyzer[1] and > tools.analyzer.jvm[

standard indentation tool

2014-01-27 Thread bob
Hi All, Should clojure have a standard format tool like go lang, it will waste time. Thanks -- -- 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

classpath issues

2012-03-06 Thread Bob
I am new to clojure. I am just trying to install and use feedparser- clj. I ran "lein install" and it said it completed ok. >git clone git://github.com/scsibug/feedparser-clj.git >cd feedparser-clj/ >lein install ... Compiling feedparser-clj.core Compilation succeeded. Created /Users/bstewart/fe

clojurescript: how do i copy one input text field to another?

2011-12-16 Thread bob
I new to clojurescript and i thought i would take a simple example like http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onclick it has javascript that does the following: Copy Text i created the following clojurescript (defn ^:export copytext [] (let [e (dom/getElement "field2")]

Re: clojurescript: how do i copy one input text field to another?

2011-12-17 Thread bob
; > On Thu, Dec 15, 2011 at 5:12 PM, bob wrote: > > > I new to clojurescript and i thought i would take a simple example > > likehttp://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onclick > > > it has javascript that does the following: > > >

Re: regex literal syntax

2008-10-08 Thread Bob
Yes, I like this. The double backslashing is really a pain and confused me at first. Get off that road now while clojure is still pretty new. Bob On Oct 8, 9:03 am, Chouser <[EMAIL PROTECTED]> wrote: > On Wed, Oct 8, 2008 at 8:08 AM, Rich Hickey <[EMAIL PROTECTED]> wrote: >

Re: GUIs in Clojure

2008-10-08 Thread Bob
map well to the functional style. What am I missing? Does anyone have a non-trivial example of a Swing program done the Clojure way? Thanks much, Bob On Oct 8, 2:07 pm, Mitch <[EMAIL PROTECTED]> wrote: > I'm interested in doing a GUI program in clojure, but the functional > style

How can I create Java generic classes from Clojure?

2009-09-29 Thread Bob Shock
If I have a Java function that uses List or Map, is there anyway to create these in Clojure the same way I can create vectors or maps? For example, if a function signature is: void foobar(List x, Map y) I can pass standard vectors and maps to it, but I can't figure out how to do the same for th

Re: How can I create Java generic classes from Clojure?

2009-09-30 Thread Bob Shock
Sorry, that was TOO easy. Too many years as a Java programmer have rotted my brain!. --~--~-~--~~~---~--~~ 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

The new deftype and multimethod dispatching

2009-12-06 Thread Bob Hutchison
eal namespace name, not to mention making re-naming the namespace harder than it should be. If someone could help me out I'd appreciate it. Thanks, Bob Bob Hutchison Recursive Design Inc. http://www.recursive.ca/ weblog: http://www.recursive.ca/hutch -- You received this mess

Re: The new deftype and multimethod dispatching

2009-12-06 Thread Bob Hutchison
x27;ve got a common situation where I'd like to dispatch on two arguments. In something like Ruby this requires a double dispatch, but in CL it doesn't. Cheers, Bob Bob Hutchison Recursive Design Inc. http://www.recursive.ca/ weblog: http://www.recursive.ca/hutch -- You received

Re: The new deftype and multimethod dispatching

2009-12-06 Thread Bob Hutchison
On 6-Dec-09, at 3:46 PM, Meikel Brandmeyer wrote: > Hi, > > Am 06.12.2009 um 21:29 schrieb Bob Hutchison: > >> It turns out that dispatching on play.foo.Foo is the only way that >> works. I was hoping ::f/Foo or f/Foo would work too (maybe my alias >> is >&

Re: The new deftype and multimethod dispatching

2009-12-07 Thread Bob Hutchison
On 7-Dec-09, at 12:17 PM, Laurent PETIT wrote: > 2009/12/6 Bob Hutchison > >> >> On 6-Dec-09, at 3:46 PM, Meikel Brandmeyer wrote: >> >>> Hi, >>> >>> Am 06.12.2009 um 21:29 schrieb Bob Hutchison: >>> >>>> It turns out

Re: The new deftype and multimethod dispatching

2009-12-07 Thread Bob Hutchison
On 7-Dec-09, at 4:16 PM, ataggart wrote: > On Dec 7, 12:37 pm, Bob Hutchison wrote: >> On 7-Dec-09, at 12:17 PM, Laurent PETIT wrote: >>> 2009/12/6 Bob Hutchison >> >>>> Yes! Thanks! The dispatch on type rather than class is the trick. I >>>>

Re: The new deftype and multimethod dispatching

2009-12-07 Thread Bob Hutchison
On 7-Dec-09, at 4:05 PM, Meikel Brandmeyer wrote: > Hi, > > Am 07.12.2009 um 21:37 schrieb Bob Hutchison: > >>> Please note that in clojure, it's the dispatch on the class that's >>> the >>> "trick", not on the type ;-) >> >&

Question about 'chains' of derefs a request for better ideas

2010-04-04 Thread Bob Hutchison
te the ref with another delay, kind of like: (dosync (ref-set my-thing (delay my-updated-thing))) Is the the way to do it? Is there something better I could be doing? Something deref-able that I'm missing that is better suited than delay? Some kind of deref-all-the-way function? Thanks, Bo

Re: Question about 'chains' of derefs a request for better ideas

2010-04-04 Thread Bob Hutchison
of space > leaks, delayed side effects, etc. That's really interesting. Thanks so much! Now I'll go think about it some more :-) Cheers, Bob > > -Per > > On Sun, Apr 4, 2010 at 9:35 PM, Bob Hutchison > wrote: >> >> Hi, >> >> I have a sit

Re: Question about 'chains' of derefs a request for better ideas

2010-04-04 Thread Bob Hutchison
er and ref-set that will dispatch properly, and so only alter/ref-set are needed (it's an illusion maybe, but useful) Anyway, looks like this'll work well. Cheers, Bob > > -Per > > On Sun, Apr 4, 2010 at 9:35 PM, Bob Hutchison > wrote: >> >> Hi, >>

Re: Question about 'chains' of derefs a request for better ideas

2010-04-05 Thread Bob Hutchison
unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > > To unsubscribe, reply using "remove me" as the subject. Bob Hutchison Recursive Design Inc.

Re: Sequential conditional transforms of an argument

2013-07-08 Thread Bob Hutchison
ng for here. Do you mean *in-line* with only core features? I suppose that's the same as asking if core already deals with this somehow? I don't think it does. And, for what it's worth, I see this pattern regularly as well, and I've used something somewhere between Thomas'

Re: Workflow: cljx, cljsbuild & tdd in one process

2014-06-22 Thread Bob Hutchison
Thanks for the tip, works nicely. I was doing the same thing Michal was doing. Cheers, Bob On Jun 20, 2014, at 11:07 AM, Michael Griffiths wrote: > There's also a Leiningen plugin called lein-pdo that lets you run tasks in > parallel: https://github.com/Raynes/lein-pdo > &

Re: Local variable

2014-07-08 Thread Bob Hutchison
:chain :frog :pole :dummy])) (println (f [:whiskey :bucket :chain :frog :pole])) (println (f [:whiskey :bucket :chain :frog1 :pole]))) I hope you can make sense of that :-) Cheers, Bob > > -- > Cecil Westerhof > > -- > You received this message because you are subsc

Re: Local variable

2014-07-08 Thread Bob Hutchison
On Jul 8, 2014, at 7:08 PM, Cecil Westerhof wrote: > 2014-07-08 23:11 GMT+02:00 Bob Hutchison : > > On Jul 8, 2014, at 9:40 AM, Cecil Westerhof wrote: > > > In Clojure you can define a local constant with let, but I need a variable > > (I think). > > > >

Re: unexpected behavior of clojure.core/empty

2014-07-18 Thread Bob Hutchison
(mapv (fn [[k v]] [k v]) {:foo 5}))) clojure.lang.PersistentVector => (empty (first (mapv (fn [[k v]] [k v]) {:foo 5}))) [] by mapping identity over the map you're returning a vector of MapEntries (which print/deconstruct like a two element array). Cheers, Bob > > What just happ

Re: Is this behavior with recur and pre/post a bug?

2014-07-25 Thread Bob Hutchison
ug, file the ticket. At the very least it can be documented. Cheers, Bob -- 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 - pleas

Re: Help Getting Sente to Work

2014-07-26 Thread Bob Hutchison
remembering it quite right. Cheers, Bob On Jul 26, 2014, at 12:33 AM, Timothy Washington wrote: > Hi all, > > I'm using [com.taoensso/sente "0.15.1"], and having trouble connecting the > client to the server. I'm sure it's something simple, but not obvious,

Re: [ANN] durable-queue: an in-process disk-backed queue

2014-02-07 Thread Bob Hutchison
at keeps coming up is: - take a single task from the queue - execute the task, which might generate a set of new tasks to be queued on the same queue (and likely on other queues too) - signal completion, and put the new tasks Cheers, Bob > > Zach > > P.S. If this sort of wo

Re: My experiments with concurrent programming

2014-04-13 Thread Bob Hutchison
g the benchmark (pre-running isn't what they call it... but anyway, if a run takes too long, criterium will take a long time -- as it is, it takes a minute or two for each benchmark). When done Criterium will report mean execution time, standard deviation and lower & upper quintiles. It&#

Re: Do not understand why loop takes 3 arguments who are all the same

2014-05-03 Thread Bob Hutchison
lution you've come up with, you might want to try using reduce to do this. It'll be both shorter and much easier to understand. If you look carefully at your code the only part that isn't boiler-plate is the (assoc result-map key default) -- the boiler-plate corresponds closely to

Re: Do not understand why loop takes 3 arguments who are all the same

2014-05-03 Thread Bob Hutchison
ook at a reduce solution but then I have to look which reduce I have > to use. > I know reduce + and reduce - which does calculations on the collection. This reduce: http://clojuredocs.org/clojure_core/clojure.core/reduce is what you need. Cheers, Bob > > Roelof > > > -- &g

Re: Clojure equivalent of special common lisp vars: still looking for that zen place...

2014-05-03 Thread Bob Hutchison
using binding to provide a thread-local value for the var, or putting a ref or agent in the var and using transactions or actions for mutation." in the docs at http://clojure.org/special_forms#def which is roughly what you did with the atom. But it'll work. You can also just write it:

implicit :required behavior in Tools.cli is deceptive

2014-05-15 Thread Bob Larrick
A single element in the cli-options can be as brief as ["-p" "--port" "A port number"] What is non-obvious is that specifying "--port PORT" has entirely different semantics than specifying "--port" In the first case the command "lein run -p 3000" will result in an options map of {:options

Re: "in Clojure I rarely find myself reaching for something like the state monad, as I would in Haskell"

2014-05-19 Thread Bob Hutchison
then applying a sequence of operations to an updated state. You don't have to mention the state in your code again. The functions called in the -> and ->> macros have either their first or last argument 'receiving' the state and returns the updated state. This is like a simpl

Re: "in Clojure I rarely find myself reaching for something like the state monad, as I would in Haskell"

2014-05-19 Thread Bob Hutchison
On May 19, 2014, at 1:44 PM, Ben Wolfson wrote: > I wouldn't say that I *often* find myself reaching for monads, or the state > monad in particular, but I certainly have found them useful on occasion (and > would have sometimes refrained from using them where I'd naturally lean to > doing so

Re: "in Clojure I rarely find myself reaching for something like the state monad, as I would in Haskell"

2014-05-19 Thread Bob Hutchison
On May 19, 2014, at 1:50 PM, Ben Wolfson wrote: > On Mon, May 19, 2014 at 7:48 AM, Bob Hutchison > wrote: > > Haskell's STM transactions can be thought of as a form of IO action (like > reading a file is an IO action) that modify refs (there are no atoms in >

Re: "in Clojure I rarely find myself reaching for something like the state monad, as I would in Haskell"

2014-05-19 Thread Bob Hutchison
On May 19, 2014, at 2:45 PM, Ben Wolfson wrote: > On Mon, May 19, 2014 at 11:28 AM, Bob Hutchison > wrote: > > I badly miss the Maybe and Either monads, but would want the syntactic > support Haskell provides (which I can't see will ever be available in Clojure) > &

Re: Clojure:Lisp :: LSD:Meditation

2014-06-13 Thread Bob Hutchison
On Jun 13, 2014, at 6:58 AM, Jonas wrote: > I found this post from 2011 which probably is still relevant: > https://groups.google.com/d/msg/clojure/t0pGIuoyB7I/RQtuuAOhes8J And just for fun, from that thread... Rich Hickey wrote: "There will be times, yes, when the most considerate thing will

Re: is PG's "imperative outside-in" advice any good?

2013-10-15 Thread Bob Hutchison
self going against this > advice all the time He's not talking about intermediate names for values, he's talking about imperative assignments using setq, setf, and friends. Clojure's nearest equivalent, that I can think of, is shadowing in a let statement, and I think you'll

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Bob Hutchison
() * (Math.pow(4, response.collisionCount() - 1) * 100)), serviceStackRestConfig.maxDelayBetweenRetries Cheers, Bob On Nov 16, 2013, at 1:21 PM, Rob Day wrote: > Hi all, > > I've just published the first working version of a Ring middleware that some > of you might find useful. It&#

Re: [ANN] Slamhound 1.5.0 + screencast + Vim plugin

2013-11-30 Thread Bob Hutchison
nd it doesn’t terminate either. However, the changes it makes to the namespaces are excellent! I tried updating both fireplace and clojure-static but that made no difference. Cheers, Bob -- -- You received this message because you are subscribed to the Google Groups "Clojure" group

Re: [ANN] Slamhound 1.5.0 + screencast + Vim plugin

2013-11-30 Thread Bob Hutchison
On Nov 30, 2013, at 10:59 AM, guns wrote: > On Sat 30 Nov 2013 at 09:29:30AM -0500, Bob Hutchison wrote: > >> This is a great idea… but I’m having an awful time getting it to work. > > Hello Bob, > > I'm sorry to hear that setup is problematic. If it's t

library development

2013-12-20 Thread Bob Hutchison
it. I do not care if every developer on my team has to execute that command. I don’t care about sharing. I don’t care about naming. I just want to work on my library, install it, and use it in my other four projects. Running “cp -r” will do it, but it’s a bit crude. Thanks, Bob -- -- You

Re: library development

2013-12-20 Thread Bob Hutchison
discovered that myself. I nice cup of tea and thinking “there’s no way these leiningen guys didn’t do something so obvious” led be to suck it up and poke around my maven repository to see what I could see. Maven’s getting pretty quick isn’t it? Cheers, Bob > > On Friday, December 20,

Re: Effects of diving into Clojure

2014-01-14 Thread Bob Hutchison
. Isolating yourself from demonstrably successful ideas is another. Not to mention abandoning everything you’ve attained through the learning of Ruby. Keep going back and forth until all that’s left is preference. Sorry for the pontificating :-) Cheers, Bob > > gvim > > -- >

Re: Effects of diving into Clojure

2014-01-14 Thread Bob Hutchison
On Jan 14, 2014, at 3:46 PM, gvim wrote: > No, you're probably right. It's just that there never seem to be enough hours > in a day/life :( You’re not alone there either :-) Cheers, Bob > > gvim > > > On 14/01/2014 20:26, Bob Hutchison wrote: > >&g

Re: core.async count in a channel

2014-01-21 Thread Bob Hutchison
On Jan 21, 2014, at 11:56 AM, Paul Viola wrote: > I think this is all well and good for a particular use of channel. > > So perhaps I am misusing channels?? > > To repeat: in one case I have workers pulling from a channel of real work. > For various reasons this channel might get filled rat

Re: Clojure web server benchmarks

2013-01-25 Thread Bob Hutchison
(I hope so), I think you'll be 'amused' by what you see. Cheers, Bob -- -- 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: [ANN] jenkins-leiningen

2013-02-10 Thread Bob Foster
Is this version obsolete, i.e., replaced by your leiningen-plugin at https://github.com/jenkinsci/leiningen-plugin? I've seen several old broken links referring to it, and it is still in the Jenkins update center as jenkins-leiningen. Bob On Wednesday, July 18, 2012 7:23:50 AM UTC-7, P

Re: Clojure + Web Services + Web Sockets

2013-02-11 Thread Bob Hutchison
On 2013-02-11, at 6:12 PM, Ryan T. wrote: > Unless someone has to suggest something better, it seems that the best way to > achieve what i want is to use aleph which allows you to initialize it with a > wrapped ring handler. You might have a look at http://http-kit.org/ Ch

Re: Why is this so difficult?

2013-02-15 Thread Bob Hutchison
oints. Good luck, but you'll get there :-) Cheers, Bob > > -- > -- > 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 member

Re: how would you implement sending out a verification email?

2013-02-21 Thread Bob Hutchison
asier, all you have to do is make sure the email request is received by the service -- there's a protocol for that. A decent service will do much better than you can do at making sure the email is sent. Cheers, Bob -- -- You received this message because you are subscribed to the Googl

Re: how would you implement sending out a verification email?

2013-02-21 Thread Bob Hutchison
ing but I'd think it depends on when/if locks are set. Cheers, Bob -- -- 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 b

Re: What's the point of -> ?

2013-03-11 Thread Bob Hutchison
(f3 p7 p8 p9)) vs (f3 (f2 (f1 foo p1 p2 p3) p4 p5 p6) p7 p8 p9) (assuming I cut and pasted correctly) and you can see a little better where this is going, especially if you tried putting real names in there. Is it imperative? Is it declarative? Who cares? Cheers, Bob > > -- > -- >

Re: usage examples in clojure api docs

2010-07-02 Thread Bob Tolbert
I'm very new here but I have to say I really like this. These kind of usage examples are the most helpful resource for newcomers. I'll be happy to contribute once I learn more. Bob On Jul 2, 2010, at 16:46, Justin Kramer wrote: > Partly in response to this issue and partly to ge

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-15 Thread sponge bob
On 14 авг, 14:19, Steve Purcell wrote: > > A while ago I hooked Slime's completion and documentation features into the > popular Emacs auto-completion framework "auto-complete" > (http://www.emacswiki.org/emacs/AutoComplete). > > Since it may be of interest to others, I've released the completi

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-16 Thread sponge bob
On 15 авг, 23:18, Steve Purcell wrote: > > Could you share your nice color theme, please? > > Sure: > > http://github.com/purcell/emacs.d/blob/master/site-lisp/color-theme-s... > > There are light and dark versions, and I switch between them with "M-x light" > and "M-x dark" depending on how my

Re: Thinking in Clojure

2010-09-03 Thread Bob Hutchison
ou are going to feel pain when working with Java :-) I strongly second the recommendation of the book "Joy Of Clojure" as a next thing to read (it's from Manning and you can get from their MEAP in pdf/epub formats) Cheers, Bob > > On Sep 3, 4:55 am, David Nolen wrote:

Re: Why so?

2010-09-05 Thread Bob Shock
I've been programming in large OO applications since about 1993. One problem is that a lot of useful code gets buried way deep in an OO class hierarchy, where you are forced to create lots of intermediate objects just to get to the useful functions. This really hurts the re-usability, unit testab

Re: examples of clojure code

2010-09-28 Thread Bob Shock
Looking at the api code helped me a lot, for what it's worth. On Sep 28, 7:28 am, Timothy Washington wrote: > There is the "ANN: Clojure Cookbook" thread that Dave Sletten just posted, > where he points out a new Clojure Cookbook he's working > on:http://www.gettingclojure.com/cookbook:clojure-c

Re: Fighting with Emacs ;-)

2010-10-05 Thread Bob Hutchison
and show the prompt... but it'll be running from the wrong place. What is this lisp program? How do I bring up a repl that uses the swank I'm connected to? Is this even possible? Thanks *so* much in advance. Cheers, Bob > > In particular, SWANK/SLIME prints the value of the las

Re: Fighting with Emacs ;-)

2010-10-05 Thread Bob Hutchison
version incompatibilities which are answered by me with a 'y', then a success message. The only buffer created is *slime-events*. I'm on OSX with three versions of emacs that I can use, all three do exactly the same thing. That version incompatibility thing I've googled, n

Re: Fighting with Emacs ;-)

2010-10-05 Thread Bob Hutchison
On 2010-10-05, at 3:51 PM, Phil Hagelberg wrote: > On Tue, Oct 5, 2010 at 11:57 AM, Bob Hutchison > wrote: >> What do you mean by 'switch to the repl', in fact, how do you do that? >> >> I'm using lein swank, I can connect to it, I can evaluate express

Re: Creating a map algorithmically

2011-08-09 Thread Bob Shock
user=> (def n 5) #'user/n user=> (zipmap (range 2 (inc n)) (repeat true)) {5 true, 4 true, 3 true, 2 true} user=> As a start... On Aug 9, 10:50 am, Kevin Sookocheff wrote: > Hi, > > I have a question regarding the map data structure. I'm trying to program a > Sieve of Eratosthenes using the algo

Re: Modelling for DAG with identity map - or not?

2012-09-18 Thread Bob Hutchison
lues and computations in cells… you can see the mapping between them in your application (where the mapping doesn't work or is hard might be pointing at something quite interesting). There's also something called 'Cells' in Common Lisp that might be interesting. I'm

Re: Replacing nested let statements with assignments

2012-10-19 Thread Bob Hutchison
le/let-else Hmmm, I can see how that might be very handy… like having guards on each binding. Thanks. Cheers, Bob > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojur

Re: [ANN] sublime-lispindent, clojure indenting for sublime text 2

2012-11-25 Thread Bob Hutchison
d that too. You need to put it in: /Applications/Sublime Text 2.app/Contents/MacOS/Pristine Packages Cheers, Bob > > Also, will this work with the built in 'reindent' command? If not, will it > work with vintage mode (you can reindent blocks with =ab from Vim)? I really >

clojure for the java noob(while experienced functional programmers)?

2013-01-08 Thread bob zhang
Hi List, * * I am interested in learning clojure these days(mainly for the JVM), I am a long-term functional programmer(one of the maintainers of the ocaml compiler, designing my language Fan (a variant of ocaml which has the similar macro mechanism as clojure), quite familiar with common lisp)

Re: [ANN] nrepl-transcript

2013-01-15 Thread Bob Hutchison
On 2013-01-14, at 3:58 PM, Jonas wrote: > Hi > > I created a middleware for nrepl that saves a transcript of your repl > interactions so you can go back and see what you did. > > https://github.com/jonase/nrepl-transcript > > Feedback welcome! Oh! Tha

Re: [ANN] Formative - render, parse, and validate web forms

2013-01-16 Thread Bob Hutchison
. Or possibly just a new field type that created an index entry… I'll have a muck about and see what I can come up with. Cheers, Bob > > Justin > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To

Re: [ANN] Formative - render, parse, and validate web forms

2013-01-16 Thread Bob Hutchison
o be easy enough to do this by adding new field types (extending the render-field and parse-input multimethods). Is that how you'd approach the problem? While I think of it, do you provide a way to validate that a value corresponds to one of the :options? Cheers, Bob > > J

Re: is there a 4Clojure forum anywhere?

2011-08-26 Thread Bob Shock
Is there a recovery group for 4clojure.com addicts? Stop now! Don't go further before it's too late and you are checking the website every five minutes waiting for the next problem, obsessing over every character in your code so you can get one of the best code golf scores, etc. But seriously, o

Re: is there a 4Clojure forum anywhere?

2011-08-27 Thread Bob Shock
Hint: use the take function. On Aug 27, 8:45 pm, Shree Mulay wrote: > yeah, i'm stuck on the nth without cheating problem myself...  would be cool > if there were forums for this site! :) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to th

Re: How To Empty A Tree or Returning The Skelton of A Tree Without Leaves

2011-09-07 Thread Bob Shock
I am confused by your question. If you are looking for help on a 4clojure problem, you may post to the new Google 4clojure group (http://groups.google.com/group/4clojure). If not, please give more details on the skeleton of a tree problem and I'm sure someone here can help. On Sep 7, 3:38 pm, oct

Re: Newbie help in pitching in

2011-10-19 Thread Bob Shock
I would recommend adding examples to clojuredocs.org and adding new problems to 4clojure.com. On Oct 19, 4:32 pm, Rett Kent wrote: > Hi all, > > Now that I have my shiny new, clojure-dev membership, I'd like to pitch > in.  I took a look at the pages describing how to contribute. > > http://cloju

Re: All subsets of a vector

2011-11-09 Thread Bob Shock
Or my current favorite take-while iterate combo: C:\clojure-1.2.0>java -jar clojure.jar Clojure 1.2.0 user=> (take-while seq (iterate rest [1 2 3 4])) ([1 2 3 4] (2 3 4) (3 4) (4)) user=> (take-while seq (iterate butlast [1 2 3 4])) ([1 2 3 4] (1 2 3) (1 2) (1)) user=> On Nov 9, 4:52 pm, Alex Ba

  1   2   >