Re: Is Korma still a good current choice for DB backend?

2014-07-22 Thread Craig
+1 On Tuesday, July 22, 2014 11:08:21 PM UTC+10, tbc++ wrote: > > Also, read the rationale behint yesql: > https://github.com/krisajenkins/yesql IMO, it hits the nail on the head. > ORMs are both crappy object systems and crappy DB DSLs. With a library like > yesql you write your queries in pur

Re: [ANN] Silk, an isomorphic routing library for Clojure and ClojureScript

2014-08-04 Thread Craig
How would you position Silk in relation to Bidi? Thanks for any insights. -- 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 patien

Re: [ANN] Silk, an isomorphic routing library for Clojure and ClojureScript

2014-08-06 Thread Craig
Hi Dom, Thanks! The comparison is much appreciated, as is the contribution to the community. regards, Craig On Wednesday, August 6, 2014 6:27:44 PM UTC+10, DomKM wrote: > > Hi Craig, > > Great question! Bidi <https://github.com/juxt/bidi> is a fantastic > library and wa

Error using core.async version of into

2014-05-19 Thread Craig
port 60959 on host 127.0.0.1 REPL-y 0.2.1 Clojure 1.6.0 Docs: (doc function-name-here) (find-doc "part-of-name-here") Source: (source function-name-here) Javadoc: (javadoc java-object-or-class-here) Exit: Control+D or (exit) or (quit) p1.core=> (into [:a] (list :b :c)

Re: Error using core.async version of into

2014-05-20 Thread Craig
Juan, I saw your reply and then noticed the clear warning ("...being replaced by: #'clojure.core.async/into") as well. Many thanks for the quick response. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@

Re: road map for clojure?

2013-10-31 Thread Craig
As Alan Kay said: "Lisp isn't a language, it's a building material." So we might ask: What other properties do we builders require from this material? -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@

Re: [ANN] overload-middleware 0.1.1

2013-11-16 Thread Craig
Very interesting. I have a similar requirement, but not in serving web requests. I haven't looked under the covers of your module, but wonder if it could be decoupled from web/ring? Craig -- -- You received this message because you are subscribed to the Google Groups "Clojure&

Re: CloudFormation template generation with Clojure

2013-11-25 Thread Craig
ndition (= (-> my-mapping :first-level-key-one :second-level-key-one) my-parameter)) (resource my-instance aws.ec2/instance :image-id "ami-79fd7eee") (output my-first-output (:instance-type my-instance)) (output my-second-output my-parameter)) Craig On Tuesday, Novem

Re: CloudFormation template generation with Clojure

2013-11-26 Thread Craig
) rgds Craig On Tuesday, November 26, 2013 7:11:42 PM UTC+11, Kevin Bell wrote: > > Hey Craig, > > Thanks for the input. Forgive my naiveté, but I gather you're implying > that the DSL-ishness is desirable? That makes sense, and it seems to be > inline with what I'm lea

Re: [ANN] manners 0.2.0 released

2013-11-27 Thread Craig
Looks interesting. I've come to Clojure from Java, and validation of arbitrary data is important for my applications. Thanks for the contribution. On Wednesday, November 27, 2013 7:15:43 PM UTC+11, Ryan McGowan wrote: > > A validation library built on using predicates properly. > > I just relea

Re: Web App structure on server?

2014-01-24 Thread Craig
My current approach accords with Mikera's suggestion, and using a single package allows me to easily leverage other components (management, database etc). I have an open mind on the future use of isolated scripts (in python or whatever), but at the moment I am enjoying the simplicity of develo

java.jdbc delta update examples

2013-04-08 Thread Craig
I am looking for example(s) of using clojure java.jdbc to perform delta update eg SALARY = SALARY + 1000. Links appreciated. 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 No

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Craig
I'm happy to now be aware of this issue. In amongst other (software, hardware) changes, I migrated a reasonably sized clojure application from 1.2 and 1.3 and compile times ballooned. It took me a while to realise it was a clojure issue. On Jul 17, 6:26 am, Andy Fingerhut wrote: > There are link

Re: ANN: Korma - a SQL DSL for Clojure

2011-11-02 Thread Craig
Hi Chris, Nice website :-) The HN thread mentions ClojureQL. Does it have limitations that made it unsuitable for you? Or were you keen to roll your own? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: LCUG: 17th January 2012, Malcolm Sparks - Reflections on a real-world Clojure application

2012-01-05 Thread Craig
On Jan 5, 11:56 am, Kevin Lynagh wrote: > Any chance the talk will be filmed and posted online? +1. Or slides posted? -- 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 fro

Classpath issue using new main method from jar?

2008-12-03 Thread Craig McDaniel
The classpath specified on the command line seems to be ignored for case #3 (using SVN Rev 1142): 1. Using clojure.lang.Repl java -cp /home/kreg/src/clojure/trunk/clojure.jar:/another/class/path clojure.lang.Repl Clojure user=> (.getProperty System "java.class.path") "/home/kreg/src/clojure/tru

Re: Classpath issue using new main method from jar?

2008-12-03 Thread Craig McDaniel
o ago that you can't use -jar > together with -cp. That means you can't get around specifying the name > of the main class you want to run. > > > > On Wed, Dec 3, 2008 at 9:05 AM, Craig McDaniel <[EMAIL PROTECTED]> wrote: > > > The classpath specified on

New Tracing Library

2008-12-05 Thread Craig McDaniel
ns] (defn untrace-ns "untrace everything in the namespace ns" [ns] (defn untrace-all "untrace everything and clean out traced-map" [] I'm pasting the code to http://paste.lisp.org/display/71652. -Craig --~--~-~--~~~---~--~~ You received

Re: New Tracing Library

2008-12-05 Thread Craig McDaniel
Correction: http://paste.lisp.org/display/71656 --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send emai

Trace Tools

2008-12-15 Thread Craig McDaniel
Here is a minor update to what I posted previously (but this time as an attachment). This is just a small library that allows you turn on tracing for all functions in a namespace all at once, or toggle tracing for individual functions. --~--~-~--~~~---~--~~ You rece

Re: Clojure's code has moved to Google Code

2008-12-18 Thread Craig Andera
Does it makes sense to subscribe this group to those? I.e. to have commit messages appear here. I've done it both ways on my own projects, and I'm of split mind about it. On Wed, Dec 17, 2008 at 9:33 AM, Rich Hickey wrote: > > > > On Dec 17, 8:22 am, Rich Hickey wrote: >> I've moved Clojure's s

Fibonacci sequence

2008-12-28 Thread Craig Marshall
lper 0 1)) ; This doesn't work either: (defn fib (fib- helper '(0 1))) (println (take 5 fib)) Thanks in advance, Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: Fibonacci sequence

2008-12-29 Thread Craig Marshall
hm work in python (and then translate), but failed at the first hurdle. I've since tried to go for the single function recursive algorithm. Thanks, Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: Fibonacci sequence

2008-12-29 Thread Craig Marshall
fib 9)) I had to start with the python equivalent: def fib(n): if n <= 1: return n n_1 = fib(n-1) n_2 = fib(n-2) return n_1 + n_2 print fib(9) # Should be 34 and translate to clojure, which hopefully is something I won't have to do forever as I understand clojure more. Thanks,

Re: what does -> mean?

2008-12-30 Thread Craig Marshall
or it could be better advertised? Cheers, Craig On Tue, Dec 30, 2008 at 4:25 AM, Timothy Pratley wrote: > > On Dec 30, 2:49 pm, wubbie wrote: >> Very criptic for newbie. >> What does "Threads the expr through the forms." mean? > > Shameless plug, if yo

Re: File organization & bootstrapping

2009-01-07 Thread Craig McDaniel
ime- disconnect" (or from the REPL, "," then "disconnect") to leave your process running. In addtion, including swank in your running production app is a real benefit since you can connect to it from emacs at any later time for diagnosis, debugging, etc... -Craig --

Another socket repl

2009-01-19 Thread Craig McDaniel
In case this is of use to anybody else, I thought I'd share my version of a socket REPL: http://clojure.googlegroups.com/web/socket-repl.clj Unlike the socket repl on the Wiki Example page, it does the following: - uses the repl from clojure.main - keeps track of connections, closing the sockets

Re: Another socket repl

2009-01-19 Thread Craig McDaniel
Correction: http://clojure.googlegroups.com/web/socket-repl+(2).clj --~--~-~--~~~---~--~~ 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 To unsubscribe from t

Re: Another socket repl

2009-01-19 Thread Craig McDaniel
les) and I'll be happy to check it in. > Sure, I posted an updated version that includes the EPL license header: http://clojure.googlegroups.com/web/socket-repl.clj Thanks, Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Another socket repl

2009-01-19 Thread Craig McDaniel
Well, somehow that link points to an old version. I guess the delete and rename functions in Google groups do some strange things. Just look for the file in the Files section. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Another socket repl

2009-01-19 Thread Craig McDaniel
I am a registered contributor...even though I haven't contributed anything so far. I opened an issue on clojure-contrib and attached the file. Let me know if that is not the correct procedure. -Craig --~--~-~--~~~---~--~~ You received this message because yo

Re: Another socket repl

2009-01-19 Thread Craig McDaniel
s library if instead of calling (repl) it could > take an optional argument for a different function to use? Thanks, that's a good point. I'm posting a new file server-socket.clj that is more generic and includes the REPL as an example case. -Craig --~--~-~--~~~

Re: Another socket repl

2009-01-21 Thread Craig McDaniel
> I wonder if it wouldn't be a good idea to move the call to binding > fromsocket-replinto accept-fn. It seems like a reasonable default to rebind > *in* and *out* for the duration of the accepting function; the example > uses this as does my application. I'm not sure that rebinding *in* and *ou

Symbol to Namespace Qualified y

2009-02-01 Thread Craig McDaniel
git://github.com/kreg/traceme.git --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to clojure

Symbol to Namespace Qualified Symbol

2009-02-01 Thread Craig McDaniel
. See git://github.com/kreg/traceme.git Thanks for any suggestions. -Craig --~--~-~--~~~---~--~~ 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 To unsubsc

Re: Symbol to Namespace Qualified Symbol

2009-02-01 Thread Craig McDaniel
Make that http://github.com/kreg/traceme/tree/master to just view the project. --~--~-~--~~~---~--~~ 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 To unsubscr

Re: Symbol to Namespace Qualified Symbol

2009-02-01 Thread Craig McDaniel
Thanks Steve. I'm going with your suggestion to use the var itself rather than the symbol as the key. It simplifies things. -Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: Got a Clojure library?

2009-02-01 Thread Craig McDaniel
Name: clojure.contrib.server-socket.clj URL:http://code.google.com/p/clojure-contrib/ Author: Craig McDaniel Category: net License: ECL Description: An enhancement of Rich's original socket-server example that keeps track of client connections, closing them when the go away. It also inc

Re: My SLIME installation diary

2009-02-04 Thread Craig McDaniel
/classes")) to (setq swank-clojure-extra-classpaths (list "/Users/stuart/Projects/clj/contrib/clojure- contrib.jar")) -Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure"

Re: Multimethod Reflection Question

2009-02-06 Thread Craig Andera
> (methods multifn) > > Returns a hash-map where the keys are vectors if the dispatch values of the > multimethods were vectors, weird and cool :) > How does one check for the existence of a key in a hash-map if the key is > vector? I tried several things and nothing obvious seemed to work. Vecto

A Clojure documentation browser

2009-02-10 Thread Craig Andera
One of the challenges with learning any new platform is learning the libraries. As a way to improve both that an my knowledge of Clojure itself, I whipped together doc-browse, a Clojure library that will spit out an HTML page that contains documentation for a set of Clojure libs. You can see an ex

Re: A Clojure documentation browser

2009-02-10 Thread Craig Andera
> I see that "show source" links are missing on your page for some > functions -- does this indicate a failure of repl-utils/get-source? I think so. But I'm willing to believe that the error is elsewhere. It's just hard for me to see where it could be. > These seem to work fine for me: > > user=

Re: A Clojure documentation browser

2009-02-10 Thread Craig Andera
> When I was writing it, > it sure seemed like I was missing a call to resolve somewhere, but > when it worked for some symbols, I got a) excited, and b) confused. :) Yep, that was basically it: I was calling get-source on the symbol that named the member, but I wasn't bothering to namespace-qual

Re: A Clojure documentation browser

2009-02-11 Thread Craig Andera
> I like it a lot. I think it would be very cool if such an HTML file covering > clojure-rooted and clojure-contrib-rooted namespaces were to become an > output of building clojure-contrib. I like that idea a lot. > Please consider whether or not you'd like to send in a Contributor Agreement > t

Re: A Clojure documentation browser

2009-02-11 Thread Craig Andera
As I mentioned previously, I'm going to see if I can get time this week to set it up to go through clojure.contrib.prxml. If I don't run into any issues, that will remove the dependency on the javax stuff I'm importing. It will have the additional benefit of cutting the code in half. I'll update h

Re: A Clojure documentation browser

2009-02-12 Thread Craig Andera
> Nice work! Thanks. > Two things related to 'strcat'. > > 1) This is already implemented as clojure.core/str (and is more > efficient than concat'ing) > 2) This function is never called :) Yeah, that code was cut and pasted from some older work I did. It was removed when I started using prxml.

generated class with overloaded methods

2009-02-12 Thread Craig McDaniel
For the benefit of others, since this took me a while to understand... When using gen-class to extend or implement a superclass with overloaded methods, use a single multi-arity function to override the overloaded methods in the superclass: expmeth/ClassA.java: package expmeth; public class Clas

Re: A stupid beginners question about Compile

2009-02-12 Thread Craig McDaniel
Have a look at how the clojure-contrib project is compiled. The build.xml file will help. --~--~-~--~~~---~--~~ 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

Re: generated class with overloaded methods

2009-02-13 Thread Craig McDaniel
I just tried it out to be sure. Overloaded methods with the same arity work as expected. Clojure picks the right method to call via reflection. package expmeth; public class ClassA { public void hello() { System.err.println("hello from Java!"); } public void hello(int x) {

Re: generated class with overloaded methods

2009-02-13 Thread Craig McDaniel
Christophe, you're right. I tried it and that method also works. I didn't know about that secret feature. (ns expmeth.TestMe (:gen-class :extends expmeth.ClassA :exposes-methods {hello helloSuper})) (defn -hello [this] (.helloSuper this) (println "hello from clojure!")) (defn

Re: generated class with overloaded methods

2009-02-13 Thread Craig McDaniel
hat method for you. -Craig --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to clojure+

Re: generated class with overloaded methods

2009-02-13 Thread Craig McDaniel
Both my method (multi-arity) and Christophe's method (overridden method names contain arguments) do work. I tested them both with the code posted. -Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: generated class with overloaded methods

2009-02-13 Thread Craig McDaniel
I guess I don't understand. In the Clojure code below, the double arity method does in fact override all three of the methods from the superclass (two of which have the same name and same arity). Isn't that what you're looking for? Try it out. |-- build.xml |-- go.clj |-- src | `-- expmeth |

Re: generated class with overloaded methods

2009-02-13 Thread Craig McDaniel
n and manually check the type of the argument inside the function--as Stuart mentioned earlier in the thread, but that's not as clean as Christophe's example. -Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: A Clojure documentation browser

2009-02-13 Thread Craig Andera
> Please consider whether or not you'd like to send in a Contributor Agreement > to enable that. If you hurry you could become the first registered Clojure > contributor whose last name begins with A. :-) (clojure.org/contributing) OK, I've added the things I want to add, and sent in the agreemen

Re: A Clojure documentation browser

2009-02-14 Thread Craig Andera
> Github is fine. Once I see your name on clojure.org/contributing, I'll > commit this to clojure.contrib. For changes going forward, once you're happy > with some update on github, just let me know and I'll pull it into contrib. > For bug reporting, I recommend you add a section to the comments a

Re: A Clojure documentation browser

2009-02-14 Thread Craig Andera
> clojure-contrib/build.xml is where the change I talked about would go. If > you're up for giving it a try, that'd be great. I plan to look at it this > weekend unless someone beats me to it. If I did give it a shot, it likely wouldn't be until late next week, so knock yourself out. :) --~--~--

Re: A Clojure documentation browser

2009-02-16 Thread Craig Andera
> I think a problem with the current layout is that once you jump to one > of the library sections you have to manually scroll back up to the > index. There are a few different ways this could be solved. > > a) You could just add a "top" link to each library section banner. > > b) Only show the c

Re: Clojure on CLR/DLR

2009-02-17 Thread Craig Andera
> I'm up for suggestions on the name. The obvious ones: > > - Clojure.net > - ClojureCLR > - IronClojure (paralleling IronPython/IronRuby, unless MS has Iron > trademarked.) > - CLjR (too cute) > > Perhaps Rich will have a preference. He'll have to live with it > longer than anyone and has

Re: Clojure on CLR/DLR

2009-02-17 Thread Craig Andera
> As far as I understood, the rules are that it should be derived from Clojure > and sports either an N or a CLR. So I suggest Conjure > > It looks like clojure, sounds pleasing, and sounds lispish (conj). And Lisp > to me sounds like magic (in the Arthur C. Clarke meaning that it is a > techno

Re: Clojure documentation for offline use?

2009-02-18 Thread Craig Andera
If you're just looking for the API documentation, then you could use this file [1]. If you're looking for the rest of the stuff on the site, then I'm not sure. [1] http://clojure.googlegroups.com/web/clj-libs%20(3).html On Wed, Feb 18, 2009 at 11:18 AM, Oliver wrote: > > Hi, > > I'm wondering i

Re: filter1 interesting?

2009-03-14 Thread Craig Andera
What about overloading first to accept a predicate? (first even? (iterate inc 1)) => 2 On Sat, Mar 14, 2009 at 8:58 AM, e wrote: > >> >> Christophe Grand suggest (seek ...), which I personally like. >> > IMHO > seek is pretty good for a number of reasons: short, implies first result. > Minor ob

Wrapper function for slime

2009-04-20 Thread Craig McDaniel
Using something like this run-slime wrapper to start slime may be useful to others. It helps me avoid some issues when moving from project to project without restarting emacs. Assuming jar files reside in each separate project's own "lib" directory, Clojure source in its "src" directory, and compi

Re: Wrapper function for slime

2009-04-21 Thread Craig McDaniel
Correction: (defun reset-swank () "Because changing swank-clojure-extra-classpaths is not enough to force a new instance of slime to use it." (interactive) (setq slime-lisp-implementations (assq-delete-all 'clojure slime-lisp-implementations)) (add-to-list 'slime-lisp-implementati

Re: Wrapper function for slime

2009-04-22 Thread Craig McDaniel
Thanks Phil. I'll try it out. It's about time I started learning about Maven anyway. --~--~-~--~~~---~--~~ 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 To u

Adding dependent jars without restarting your repl

2009-04-22 Thread Craig McDaniel
about the deprecated add-classpath function. -Craig --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, se

Re: Best practices for Slime with Clojure

2009-05-17 Thread Craig McDaniel
swank-clojure- init) t)) (defun run-slime (dir) (interactive "DProject directory: ") (cd dir) (when (not (file-directory-p "classes")) (make-directory "classes")) (setq swank-clojure-extra-classpaths '("src"

Re: What's the function that checks if an object is "sequence-able"?

2009-06-03 Thread craig mcmillan
user=> (seq? (seq [1])) true On 3 Jun 2009, at 17:53, CuppoJava wrote: > > Hi, > Is there a function that will return true iff calling seq on it's > argument will not throw an error? I thought it was seq?, but (seq? [1 > 2 3]) returns false. > > -Patrick > > --~--~-~--~~--

Re: What's the function that checks if an object is "sequence-able"?

2009-06-03 Thread craig mcmillan
oops, sorry, that's not what u meant On 3 Jun 2009, at 17:56, craig mcmillan wrote: > user=> (seq? (seq [1])) > true > > On 3 Jun 2009, at 17:53, CuppoJava wrote: > >> >> Hi, >> Is there a function that will return true iff calling seq on it's >

Clojure Concurrency Screencast Available

2010-04-09 Thread Craig Andera
I've recorded a screencast on Clojure concurrency primitives. It's available at http://link.pluralsight.com/clojure. Thought some here might find it useful. It's in six parts, the first four of which are up now. The last two will be up by the middle of next week. Feedback welcome! -- You received

Re: Clojure Concurrency Screencast Available

2010-04-10 Thread Craig Andera
Right, good point: I should have seen that coming given the target audience. :) Within a few hours, a "mobile download" link will appear with wmvs and mp4s in a variety of resolutions so you can watch these offline on the device of your choosing. The conversion lags the rest of the process a littl

Re: Clojure Concurrency Screencast Available

2010-04-10 Thread Craig Andera
Mobile downloads are available now. Sorry about the delay. The refs module is also up, so that's five of six. Part six by mid next week. On Sat, Apr 10, 2010 at 9:26 AM, Craig Andera wrote: > Right, good point: I should have seen that coming given the target > audience. :) > > W

Re: Clojure Concurrency Screencast Available

2010-04-12 Thread Craig Andera
That's typing-speed-mode. I wrote it. :) Available here [1]. You'll probably also want this [2] in your .emacs. [1] http://www.pluralsight-training.net/community/blogs/craig/archive/2008/10/07/typing-speed-mode-emacs-minor-mode.aspx <http://www.pluralsight-training.net/communit

Re: Clojure Concurrency Screencast Available

2010-04-13 Thread Craig Andera
contact me off-list and I'll hook you up with the right people for that conversation. On Tue, Apr 13, 2010 at 4:30 AM, Hasan Hasan wrote: > Hi, > > Is downloading and copying the videos free? > > > On Tue, Apr 13, 2010 at 1:10 AM, Craig Andera wrote: > >> That&#x

Re: Clojure Concurrency Screencast Available

2010-04-13 Thread Craig Andera
Glad you've enjoyed them! 2010/4/13 Pelayo Ramón > I have seen the first 2, and as a clojure noobie I have to say that > they are great. Thanks a lot. > > On Tue, Apr 13, 2010 at 3:10 PM, Craig Andera > wrote: > > If you mean "downloading and viewing on

Re: Clojure Concurrency Screencast Available

2010-04-16 Thread Craig Andera
One final update: all six parts are now available, including the "mobile" downloads for offline viewing. http://link.pluralsight.com/clojure On Tue, Apr 13, 2010 at 9:40 AM, Craig Andera wrote: > Glad you've enjoyed them! > > 2010/4/13 Pelayo Ramón > > I have seen

Re: Clojure Concurrency Screencast Available

2010-04-20 Thread Craig Andera
> > I enjoyed you presentations, but I have a bit of a tangent question. > > I'm still new to slime, so it's not a comfortable environment for me > > yet.  What I am wondering is how exactly, when operating with the > > split code and repl buffers, you are getting code buffer expressions > > to eva

Re: labrepl updated

2010-05-05 Thread Craig Andera
> I have updated the labrepl [1] to use the latest clojure 1.2 and contrib 1.2 > snapshots. Also, most of the dependencies are now frozen to specific > snapshot timestamps (the project.clj file may be of interest to people living > on the development edge). > > After a "lein clean;  lein deps" ever

Re: labrepl updated

2010-05-06 Thread Craig Andera
Update: Using the latest labrepl commit (fa89411ae "use private compojure snapshot"), I'm now able to pull in incanter and use it (albeit with tons of warnings about group-by and flatten from both incanter and swank)...but only if I use script/repl via inferior-lisp. I still can't get swank to work

Re: labrepl updated

2010-05-06 Thread Craig Andera
So if someone produces a fork of incanter that doesn't have the warning (or David fixes up Incanter), then the problem goes away? Because the other place I see the warnings coming out of is swank itself. On Thu, May 6, 2010 at 9:33 AM, Stuart Halloway wrote: > This is another variant of the "Swan

Re: labrepl updated

2010-05-08 Thread Craig Andera
> Changed my mind and fixed this on the Clojure side [1]. Now you should be > able to bind *err* to any old Writer you like. > > Stu > > [1] > http://github.com/richhickey/clojure/tree/c4eb5719b0f30ea4c113e6e98a1c171c43a01abe Just checked this out. Working fine now. Thanks! I'll let you know if I

Re: code review:replace-first

2010-05-08 Thread Craig Andera
> Hi,there! > > I need a function that replaces a first found element of list. > like that, > >>(replace-first :a :b [:c :c :a :c :a] > [:c :c :b :c :a] >       ~~ > ;replace first :a to :b An interesting problem for a Sunday morning when I ought to be cleaning the house. :) Here are my (admittedl

Re: Is group-by lazy?

2010-05-25 Thread Craig Andera
> I've noticed that there is group-by in clojure 1.2. However it uses > reduce and conj. > Doesn't it consume all sequence at once? Yes. But then, it would have to: - clojure.contrib.seq/group-by ([f coll]) Returns a sorted map of the elements of coll keyed by the result

Re: Announcing Clojure/core

2010-05-25 Thread Craig Andera
> I'm happy to announce Clojure/core, a joint endeavor between myself > and Relevance, Inc. Congratulations to everyone involved! Very exciting! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: Function Size

2010-05-30 Thread Craig Andera
You can bind functions inside a let, which can help if you're just trying to make code less nested. The thread-first and thread-last macros help here too. But if you're looking for the equivalent of the "private" keyword (sort of) check out defn-. Note the dash at the end. On Sunday, May 30, 2010

David Nolen's logic programming readling list

2013-06-08 Thread Craig Ching
I was looking for David Nolen's old blog at posterous where he had posted a reading list for logic programming, but that blog is no longer available. Does anyone have that list? Or, David, if you could repost it on your new blog, I'm sure others would appreciate it too! Che

Re: David Nolen's logic programming readling list

2013-06-08 Thread Craig Ching
Thanks David! -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, s

Translating simple path finding problem from prolog to core.logic

2013-06-30 Thread Craig Ching
th2 ;-) What happens, though, is that both of these end up in an infinite loop. Any hints about what I'm doing wrong? I'm sure I'm missing something fundamental here. Is there some sort of debugging I can do to figure this out? Or some way to trace execution? Thanks for any help!

Re: Translating simple path finding problem from prolog to core.logic

2013-06-30 Thread Craig Ching
Thanks Norman! Not sure how I didn't realize that was happening, but it's working exactly as you describe. Thanks much for your help! Cheers, Craig On Sunday, June 30, 2013 2:40:48 PM UTC-5, Norman Richards wrote: > > Just like the prolog, you are generating an infinite num

ThreatGRID/Cisco Looking for Clojure Hackers

2015-03-18 Thread Craig Brozefsky
[ Full disclosure: I am the technical lead on this product and the hiring manager in this case. Feel free to contact me with questions, and to pass this around. We are also looking for Go hackers on another team, if you are of that persuasion. ] Clojure Developer for Malware Analysis Product The

Re: 2 way transform in single definition ? unification ?

2015-07-12 Thread craig worrall
You may have already discounted Java versions, but just in case ... http://www.javacodegeeks.com/2013/10/java-object-to-object-mapper.html Craig On Monday, July 13, 2015 at 3:53:19 AM UTC+10, Jules wrote: > > Guys, > > I have an external and an internal data representation. &

Re: Testing and infrastructure management for large Clojure app - how are you doing it?

2014-10-27 Thread Craig Brozefsky
On our non-trivial application, we have broken our testing into the following sets: * Unit Tests -- written by devs, run as part of our integration builder and when doing dev * Integration Tests -- automated, hitting our external APIs, written in clojure, maintained by the devs mostly, run as part

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-11-02 Thread craig worrall
I hit this error when moving to a new box that had an encrypted FS. Might be related to your case as well. Good luck. On Wednesday, October 29, 2014 1:34:28 AM UTC+11, Stefan Kamphausen wrote: > > Hi, > > have there been any changes how fns with a name and recursion are > compiled? One of my pr

Re: Tiny web app illustrating WebSocket duplex communication.

2021-06-05 Thread Daniel Craig
Sounds cool! I’ll check it out > On Jun 5, 2021, at 5:53 AM, Deyan Yotsov wrote: > > Hello! > > I've been trying to understand WebSockets, and created a tiny web app in > Clojure+ClojureScript that uses them. It was more of a journey of discovery, > and I tried to keep the code as minimal a

Reader macro not ignoring form?

2016-09-17 Thread craig worrall
-0ubuntu4~14.04-b14 Docs: (doc function-name-here) (find-doc "part-of-name-here") Source: (source function-name-here) Javadoc: (javadoc java-object-or-class-here) Exit: Control+D or (exit) or (quit) Results: Stored in vars *1, *2, *3, an exception in *e user=> #_

Re: Reader macro not ignoring form?

2016-09-19 Thread craig worrall
Many thanks Alex. Craig -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubs

Re: off-topic: stackof developer survey

2017-03-25 Thread craig worrall
Yes, if you have a 'product' perspective, but others will have a service provider perspective and would like to see employers committed to Clojure and looking to engage with practitioners.+ On Sunday, March 26, 2017 at 4:49:45 AM UTC+11, Dragan Djuric wrote: > > > Isn't it advantageous in some

Re: core.async buffered channel behavior

2018-06-26 Thread craig worrall
I guess the interrupt doesn't really obliterate the fourth put attempt, and that put proceeds in background when you first take. On Wednesday, June 27, 2018 at 5:12:45 AM UTC+10, jonah wrote: > > Hi folks, > > It's been a while since I've used core.async. Documentation suggests that > > (chan n)

Re: Decomplecting Clojure

2015-08-15 Thread Craig Brozefsky
After working for several years in a large clojure code-base, and having been bitten by laziness a few times, I think I am still a fan of "lazy by default". I have not been bitten by issues related to agents and laziness. Mostly it's resources going out of scope because I was using a dynamic bin

Re: clj-time/do-at not workin as expected

2016-05-19 Thread craig worrall
Chime? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email t

  1   2   >