Re: Datomic notifications ?

2013-10-04 Thread Robert Stuttaford
http://docs.datomic.com/clojure/index.html#datomic.api/tx-report-queue !

On Friday, October 4, 2013 11:40:23 AM UTC+2, Roman Yakovlev wrote:
>
> Hi 
> I wonder if there any notifications system in Datomic, that notify about 
> changes in DB ? 
>

-- 
-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: IDE feature

2013-08-08 Thread Robert Stuttaford
Lee has a valid point. Lee's point is: let me decide. Put paredit in, but 
let me turn it off if I want. 

I agree that paredit is the only sane way for me and for anyone who doesn't 
have Lee's muscle memory to overcome. But for Lee, paredit is 'doing it 
wrong', because he doesn't enjoy it and he's unproductive that way. And 
that trumps any particular language, tool, paradigm, what-have-you.

I mean, there are some people who are perfectly productive and happy in 
C++. If that's possible, then anything is :-)

On Thursday, August 8, 2013 4:58:32 AM UTC+2, Lee wrote:
>
>
> On Aug 7, 2013, at 2:06 PM, Norman Richards wrote: 
> > Structural editing, like paredit, is really the only sane way to do 
> Clojure code.  I honestly thing anyone who manually balances parenthesis or 
> edits Clojure functions in a way that doesn't preserve the structural 
> integrity of your expressions is just doing it wrong.  (not just doing it 
> poorly - but doing it wrong) 
>
> What a spectacularly annoying thing to say. 
>
> I've been coding in Lisp for close to 30 years and teaching Lisp off and 
> on for about 20. I have used paredit many times over these decades but I 
> dislike it intensely, both for my own coding and for my teaching. I have my 
> reasons for this, which I could explain, but I have no interest in 
> discouraging you or anyone else who finds it useful from using it. But I 
> don't want to use it, and I don't see where you get off saying that I'm 
> "doing it wrong" on account of this. 
>
> > So, of course, my advice to the original poster is to just jump in and 
> learn paredit.  It will probably seem awkward at first, but if you invest 
> the effort (and it honestly doesn't take that much) to learn a better way 
> to edit expressions, you'll be so much better off. 
>
> Your mileage may vary! 
>
> > In fact, I've sold several people on Clojure just by showing them how 
> paredit makes it significantly easier to lisp-style expressions than to 
> edit C-style languages with their irregular syntax.  I would jumped on lisp 
> years ago if I had realized how easy it was to edit instead of remembering 
> those painful university lisp assignments where I spent all my time 
> balancing parenthesis and being afraid to make simple structural changes 
> for fear of getting my code all messed up. 
>
> In my own experience bracket-matching and auto-reindentation are indeed 
> essential, and they make balancing parentheses and seeing the structure of 
> the code almost effortless. I would personally have a hard time coding in 
> any environment without these tools. But Paredit takes things further by 
> interfering with the typing/cutting/pasting/sketching/brainstorming 
> skills/habits that I've developed over my whole life and which I use in 
> every other text-based application and environment, preventing me from 
> treating programs as text -- which is how I sometimes really want to think 
> of them, especially when I'm playing with ideas and sketching out code 
> roughly. 
>
> Your mileage may vary! But that doesn't mean that either of us is doing it 
> wrong. 
>
>  -Lee 
>
>
> -- 
> Lee Spector, Professor of Computer Science 
> Cognitive Science, Hampshire College 
> 893 West Street, Amherst, MA 01002-3359 
> lspe...@hampshire.edu , http://hampshire.edu/lspector/ 
> Phone: 413-559-5352, Fax: 413-559-5438 
>
>

-- 
-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: which one would you prefer (instantiate vs. new-instance)?

2013-07-04 Thread Robert Stuttaford
Looks like the tradeoffs are composability vs avoiding reflection. I 
personally would go for the function until performance becomes a concern. 
Being able to use it in HOFs is a big deal!

On Thursday, July 4, 2013 12:57:32 PM UTC+2, Jim foo.bar wrote:
>
>  (defmacro instantiate 
> "Returns an instance of the given class. Depending on the argument list will 
> invoke the corresponding constructor." 
> [cl-name & args]
>  `(eval (list 'new ~cl-name ~@args)))
>  
> (defn new-instance "Create a new instance of the specified class using 
> reflection."
>  [^Class c & args]
>   (if (empty? args) (.newInstance c)
> (.newInstance
>   (.getConstructor c (into-array (map class args)))
>   (to-array args
>
>
> any particular preference? 
>
> Jim
>
>  

-- 
-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Clojure in production

2013-06-11 Thread Robert Stuttaford
We use Clojure full-stack at www.cognician.com. Clojure, ClojureScript, 
Datomic. Still under 20k loc. Loving it!

On Monday, June 10, 2013 11:47:25 PM UTC+2, Plinio Balduino wrote:
>
> Hi there 
>
> I'm writing a talk about Clojure in the real world and I would like to 
> know, if possible, which companies are using Clojure for production or 
> to make internal tools. 
>
> Thank you 
>
> PlĂ­nio Balduino 
>

-- 
-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Improving visibility of clojure-doc.org

2013-03-11 Thread Robert Stuttaford
Has this effort started up yet? Is there a github url?

I'd really love to see clojuredocs.org showing the 1.5 apis. Willing to 
help make that happen!

On Tuesday, March 12, 2013 12:03:22 AM UTC+2, Phil Hagelberg wrote:
>
>
> Devin Walters writes: 
>
> > I assume this has been discussed to death already, but isn't there some 
> way 
> > to get clojure-doc and clojuredocs to live under the same umbrella? 
>
> I believe this is the plan; it's just blocked on not having the manpower 
> to port clojuredocs.org's web UI off Rails and build a Clojure HTML 
> interface for it. 
>
> Volunteers welcome. 
>
> -Phil 
>

-- 
-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[ANN] Clojure Meetup in Cape Town, South Africa

2012-12-05 Thread Robert Stuttaford
I am hosting a Clojure meetup in Cape Town on the 15th of December. If there 
are any Cloders down here that want to attend, please contact me off list for 
details!

-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: what should I use for my webapp?

2012-11-20 Thread Robert Stuttaford
I reckon you can have this going in a couple hundred lines of code.

webnoir.org: http, routing, html generation. pick it up, tell it what you 
want. couldn't be simpler.

sqlkorma.com: sql query dsl.
clojuremongodb.info: mongodb query dsl.

Probably the most sticky bit is the Google auth, but perhaps by now there 
is code available.

github.com/cemerick/friend should get you started.

or if you're feeling adventurous, you could grab Datomic Free and have some 
fun with it.

We (a team of 3) are currently building a production stack with Datomic and 
Noir. I listed SQL and Mongo just in case :-) Feel free to ask me more here 
or off-list if you like!

On Tuesday, November 20, 2012 3:29:19 PM UTC+2, John Lawrence Aspden wrote:
>
> Hi Guys, 
>
> I haven't used Clojure for a year or so (I was busy in C and Verilog), 
> but I still love it and would like to use it. 
>
> I'm going to write a web app. I want to ask users to answer multiple 
> choice questions and time their responses. I'd like them to be able to 
> easily make accounts (the sign-in with google id feature of Stack 
> Overflow is really neat, I think) and store their performance data so 
> they can watch themselves improve. 
>
> I'd like to develop and test it on my own machine, but deploy it to a 
> virtual server somewhere, which I hope will not be hideously 
> expensive. 
>
> I hope it will be popular, but I think it's better to get a prototype 
> working than to worry about scaling in advance. However it would be 
> silly to prototype using a method that is unscalable. 
>
> My intutition is telling me to use Python and Flask, but my heart is 
> telling me to use Clojure and some framework, but I don't know what is 
> best. Or should I just write the whole server from scratch? The less 
> code the better, as far as I'm concerned, but I don't like using 
> things I don't understand. 
>
> Do you have any advice? Even comparisons of 'cgi scripts hacked up in 
> perl vs framework in continuously running VM' are welcome. I'm out of 
> my depth writing web apps, and will welcome any wisdom from those who 
> have actually done this sort of thing. 
>
> I don't need language comparisons. I've used most languages and 
> already have opinions on them all. 
>
> Thanks in advance, 
>
> John. 
>
>

-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [ANN] 4x library v1 releases, and a new A/B testing library

2012-11-05 Thread Robert Stuttaford
Thanks for your contributions, Peter!

Tower is of particular interest to me. Are you planning any support for 
ClojureScript with Tower, at all? Either way, I know we'll almost certainly 
make use of Tower. We will need to bring what Tower does into our cljs app 
as well. Perhaps we can contribute!

On Monday, November 5, 2012 6:28:08 PM UTC+2, Peter Taoussanis wrote:
>
> Hi all!
>
> I've just put out a number of new releases today. All libraries are up on 
> Clojars. Features & other info on the relevant GitHub pages.
>
> v1.0.0 releases
> ===
> *Carmine* - Redis client & message queue - 
> https://github.com/ptaoussanis/carmine
> *Timbre* - (sane) logging & profiling - 
> https://github.com/ptaoussanis/timbre
> *Tower* - internationalization & translation - 
> https://github.com/ptaoussanis/tower
> *Nippy* - serialization - https://github.com/ptaoussanis/nippy
>
> New releases
> ==
> *Touchstone* - split (A/B) testing - 
> https://github.com/ptaoussanis/touchstone
>
>
> Thanks to all of you that contributed input. As always, am very happy to 
> hear from anyone with problems/ideas/pull-requests/whatever!
>
> Cheers! :-)
>
> Peter Taoussanis,
> ptaoussanis at gmail.com
> https://twitter.com/ptaoussanis
>

-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Starting a new ClojureScript project, where to start?

2012-10-04 Thread Robert Stuttaford
You might find this quick-start I put together handy:

https://github.com/robert-stuttaford/demo-enfocus-pubsub-remote/

On Friday, September 28, 2012 8:30:12 PM UTC+2, Daniel Glauser wrote:
>
> Hi folks,
>
> Where would you point someone if they wanted guidance starting a new 
> ClojureScript project?  I friend who's big into 
> CoffeeScript/Backbone/Require and is looking to kick off a side project 
> with ClojureScript.  He's sold on Clojure but looking for some guidance. 
>  We checked out Pinot which is now broken up:
> https://groups.google.com/d/msg/clj-noir/wsCVajG0-YE/CaFa3FTU7B0J
>
> Are there any sample apps with the new libraries?
>
> I cruised by ClojureScriptOne which is the most expansive ClojureScript 
> sample I've seen.  The last commit was eight months ago and some of the 
> libs look a bit stale in project.clj. Is ClojureScriptOne still a good 
> sample to point folks at or have things changed significantly?
>
> On a separate note I finally have Clojure in production!  It's working 
> great and development is moving forward.  It's currently a Noir app. 
>  Looking to roll in Friend and Datomic shortly.  From there I hope to 
> publish a sample app, with all these well written disconnected libraries it 
> seems like we could use more examples of how to put them together.  Ping me 
> if you'd like to help.
>
> If any Clojure folks are coming through Denver and would be willing to 
> lead a topic at the Den of Clojure we would love to have you.  We do accept 
> presenters but encourage folks to focus on leading a topic and keeping the 
> meetings more hands on.
> http://www.meetup.com/Denver-Clojure-Meetup/
>
> Cheers,
> Daniel
>

-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Clojure Bee iPhone app updated

2012-05-19 Thread Robert Stuttaford
Awesome, Kyle, thank you. I'm looking forward to the iPad version with
great anticipation!

On 19 May 2012 16:19, Kyle Oba  wrote:

> Hi Robert,
>
> Thanks for the feedback.  Also, thank you for using the app.  I'm
> flattered.
>
> Doc strings and source code are only available (via Clojure for some of
> the items).  As far as doc strings go, that's a limitation based on whether
> the author of the library attached that metadata to their code.
>
> As for source code, I'm currently pulling that from the
> clojure.repl/source-fn function.  For some items, the source code cannot be
> found.  It seems I can find the source for all the org.clojure/clojure, but
> nothing else.  I'm open to suggestions here, or perhaps I'm doing it wrong?
>  I have some ideas on how to get around this, but don't want to make any
> promises for updates here yet.
>
> An iPad version may materialize at a later date.  But, there are a few
> things on my todo list before then.  As for the returning from the source
> code view, that's something I'm working on and the interaction here will
> probably change in the future.  Sorry that's vague, but I'm working through
> it at the moment.
>
> Thanks again for the feedback.  It's great to hear how things are working,
> or not, as the case may be.
>
> Best,
> Kyle
>
> On Saturday, May 19, 2012 1:42:04 AM UTC-10, Robert Stuttaford wrote:
>>
>> Hey Kyle,
>>
>> I bought this, it looks great. However, browsing around I get a lot of
>> "Sorry, (doc string|Clojure source) not available" messages. Was this
>> intentional? If so, why? If not, will it be fixed sometime soon?
>>
>> Also, could I ask you a huge, massive favour and make the app universal?
>> I'd be completely happy if all you did was allow the app to fill the iPad
>> screen and nothing else. Bonus points for setting up a left-menu,
>> right-detail view configuration on iPad.
>>
>> Lastly, when I viewed a method in landscape, (it was on my iPad, resting
>> on its LapLog), it wasn't clear how to get out of it back to the menus. I
>> realised I had to rotate the device to get out. Providing an X button, or
>> even better, supporting a tap or a pinch gesture to cancel out of that view
>> would be great.
>>
>> This is a great effort, and I'm certain I'm going to be using it a lot.
>>
>> Thanks!
>> Robert
>>
>> On Thursday, May 17, 2012 2:45:26 AM UTC+2, Kyle Oba wrote:
>>>
>>> Just a quick announcement that the Clojure Bee iPhone app was just
>>> updated.  This release eliminates crashiness and updates the font for
>>> the source code view.
>>>
>>> More info on the app here:
>>> http://itunes.apple.com/us/**app/clojure-bee-api-**
>>> documentation/id524862532?ls=**1&mt=8<http://itunes.apple.com/us/app/clojure-bee-api-documentation/id524862532?ls=1&mt=8>
>>>
>>> Anyone interested in a free copy, please email me directly (it's $1).
>>> I'm more than happy to give free copies to the Clojure community.
>>>
>>> Thanks!
>>> Kyle
>>>
>>> PS - It's called Clojure *Bee* because there is a quiz component, yet
>>> to be released (coming soon!).
>>
>>  --
> 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 to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Clojure Bee iPhone app updated

2012-05-19 Thread Robert Stuttaford
Hey Kyle,

I bought this, it looks great. However, browsing around I get a lot of 
"Sorry, (doc string|Clojure source) not available" messages. Was this 
intentional? If so, why? If not, will it be fixed sometime soon?

Also, could I ask you a huge, massive favour and make the app universal? 
I'd be completely happy if all you did was allow the app to fill the iPad 
screen and nothing else. Bonus points for setting up a left-menu, 
right-detail view configuration on iPad.

Lastly, when I viewed a method in landscape, (it was on my iPad, resting on 
its LapLog), it wasn't clear how to get out of it back to the menus. I 
realised I had to rotate the device to get out. Providing an X button, or 
even better, supporting a tap or a pinch gesture to cancel out of that view 
would be great.

This is a great effort, and I'm certain I'm going to be using it a lot.

Thanks!
Robert

On Thursday, May 17, 2012 2:45:26 AM UTC+2, Kyle Oba wrote:
>
> Just a quick announcement that the Clojure Bee iPhone app was just 
> updated.  This release eliminates crashiness and updates the font for 
> the source code view. 
>
> More info on the app here: 
>
> http://itunes.apple.com/us/app/clojure-bee-api-documentation/id524862532?ls=1&mt=8
>  
>
> Anyone interested in a free copy, please email me directly (it's $1). 
> I'm more than happy to give free copies to the Clojure community. 
>
> Thanks! 
> Kyle 
>
> PS - It's called Clojure *Bee* because there is a quiz component, yet 
> to be released (coming soon!).

-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Multiple ClojureScript (sub)projects with shared CLJS libraries per single clojure project

2012-05-13 Thread Robert Stuttaford
I'm planning a base app which loads and unloads cljs mini-apps into the 
main app, one at a time. The problem domain is such that there are simply 
too many mini-apps to load upfront.

Is lein-cljs build clever enough to generate exports and externs so that 
these modules can talk to each other? For second prize, is it possible to 
metadatum stuff and have lein-cljs generate an appropriate externs file?

On Friday, March 30, 2012 8:45:18 PM UTC+2, Evan Mezeske wrote:

> I can confirm Mark Rathewell's note; that's part of what lein-cljsbuild is 
> meant to do.
>
> With his configuration, the script1.js and script2.js files would both be 
> built, and each would only contain the code from the project1 or project2 
> directories, respectively (unless they require code from outside 
> namespaces, then that would be included too).
>
> Running "lein cljsbuild once" would build both cljs subprojects in 
> parallel, and "lein cljsbuild auto" would watch both for modifications and 
> rebuild them as needed.
>
> -Evan
>
> On Friday, March 30, 2012 10:49:29 AM UTC-7, Mark Rathwell wrote:
>>
>> I haven't tried yet, but lein-cljsbuild [1] is meant to support
>> multiple builds, and I believe something like the below config would
>> be what you are looking for:
>>
>> :cljsbuild {
>> :builds
>> [{:source-path "src/cljs/project1"
>>   :compiler {:output-to "resources/public/cljs/script1.js"
>>   :externs ["externs/jquery.js"]
>>   :optimizations :advanced
>>   :pretty-print true}}
>>  {:source-path "src/cljs/project2"
>>   :compiler {:output-to "resources/public/cljs/script2.js"
>>   :externs ["externs/jquery.js"]
>>   :optimizations :advanced
>>   :pretty-print true}}]}
>>
>> [1] https://github.com/emezeske/lein-cljsbuild
>>
>>

-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

ClojureScript and Google Closure Type Annotations

2012-05-02 Thread Robert Stuttaford
Forgive me if this has been asked before.

I am writing a GClosure app at the moment (using the long-form java-style 
Google Closure javascript *blecch*), and I'm using JSDoc type-annotations 
for everything:

/** @type {number} */
var x = parseInt( data['foo'], 10 );

These annotations allow ADVANCED_MODE Closure compilation to type-check and 
also more tightly compress the resultant Javascript 'binary'. 

Looking at the size of the ClojureScript One production 'binary', it's 
187kb big.

I'm wondering if there's any plans or work underway to work on reducing 
this size, both in terms of having the ClojureScript backend include JSDoc 
style type annotations and in other ways?

Related question: 

As I already have a large GClosure codebase, I would like to use CLJS to 
build out the backend of this app, and bring the CLJS binary in as a module 
for my app to use.  I know I can export symbols in CLJS, and I'm guessing 
it can't be that hard to generate an externs.js containing all those 
exported symbols for use in my main app? If anyone is doing, this, please 
let me know how!

-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en