Re: [ANN] Reagi 0.7.0 with ClojureScript support

2013-12-25 Thread Ruslan Prokopchuk
I've just posted pull request to make streams pluggable, allowing to plug 
another stream as source to current. What are caveats of doing things in 
such way? I ask this question in general, not only as related to reagi 
functionality. May be it makes streams <>?

четверг, 26 декабря 2013 г., 1:15:57 UTC+2 пользователь James Reeves 
написал:
>
> Happy Holidays and Merry Christmas,
>
> Reagi 0.7.0 has been released, now with support for ClojureScript.
>
> Reagi is an FRP library that introduces two new reference types: behaviors 
> and event streams. Behaviors model continuous change, and work a little 
> like delays, while events represent discrete changes, and work a little 
> like promises. More information is available on the project page:
>
>   https://github.com/weavejester/reagi
>
> It's my opinion that Reagi provides a very clean and idiomatic 
> implementation of FRP for Clojure. It's only dependency is core.async, so 
> it doesn't need to make the compromises that a wrapper of an existing Java 
> or Javascript library might need.
>
> I've been using Reagi for Clojure for a while now, but the ClojureScript 
> code is still rather new, and may exhibit problems I haven't anticipated.
>
> - James
>

-- 
-- 
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: [ANN] Reagi 0.7.0 with ClojureScript support

2013-12-25 Thread Ruslan Prokopchuk
Real gift to community, thank you!

четверг, 26 декабря 2013 г., 1:15:57 UTC+2 пользователь James Reeves 
написал:
>
> Happy Holidays and Merry Christmas,
>
> Reagi 0.7.0 has been released, now with support for ClojureScript.
>
> Reagi is an FRP library that introduces two new reference types: behaviors 
> and event streams. Behaviors model continuous change, and work a little 
> like delays, while events represent discrete changes, and work a little 
> like promises. More information is available on the project page:
>
>   https://github.com/weavejester/reagi
>
> It's my opinion that Reagi provides a very clean and idiomatic 
> implementation of FRP for Clojure. It's only dependency is core.async, so 
> it doesn't need to make the compromises that a wrapper of an existing Java 
> or Javascript library might need.
>
> I've been using Reagi for Clojure for a while now, but the ClojureScript 
> code is still rather new, and may exhibit problems I haven't anticipated.
>
> - James
>

-- 
-- 
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: Is Clojure right for me?

2013-12-25 Thread Devin Walters
http://hoplon.io/#/home/ 
http://caribou.github.io/caribou/docs/outline.html

-- 
Devin Walters


On Thursday, December 26, 2013 at 12:26 AM, tao wrote:

> http://pedestal.io/
> http://www.luminusweb.net/
> 
> 
> -- 
> tao
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
> 
> 
> On Thursday, December 26, 2013 at 5:06 AM, Massimiliano Tomassoli wrote:
> 
> > Hi,
> > I'm not sure if Clojure is the right language for me. I'd like to use 
> > Clojure mainly for web development but I don't know if it's already mature 
> > enough to be productive. For instance, Scala has Play, Groovy has Grails, 
> > etc... If I'm not wrong, Clojure doesn't have a well-established framework 
> > for web development. I'm intrigued by Clojure because I like functional 
> > programming, but I need to be productive and, alas, I don't have time to 
> > learn Clojure just for my pleasure.
> > -- 
> > -- 
> > 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 
> > (mailto: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 
> > (mailto: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 
> > (mailto:clojure+unsubscr...@googlegroups.com).
> > For more options, visit https://groups.google.com/groups/opt_out.
> 
> -- 
> -- 
> 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 
> (mailto: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 
> (mailto: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 
> (mailto:clojure+unsubscr...@googlegroups.com).
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
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: Is Clojure right for me?

2013-12-25 Thread tao
http://pedestal.io/
http://www.luminusweb.net/


-- 
tao
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Thursday, December 26, 2013 at 5:06 AM, Massimiliano Tomassoli wrote:

> Hi,
> I'm not sure if Clojure is the right language for me. I'd like to use Clojure 
> mainly for web development but I don't know if it's already mature enough to 
> be productive. For instance, Scala has Play, Groovy has Grails, etc... If I'm 
> not wrong, Clojure doesn't have a well-established framework for web 
> development. I'm intrigued by Clojure because I like functional programming, 
> but I need to be productive and, alas, I don't have time to learn Clojure 
> just for my pleasure.
> -- 
> -- 
> 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 
> (mailto: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 
> (mailto: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 
> (mailto:clojure+unsubscr...@googlegroups.com).
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
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.


Is Clojure right for me?

2013-12-25 Thread Massimiliano Tomassoli
Hi,
I'm not sure if Clojure is the right language for me. I'd like to use 
Clojure mainly for web development but I don't know if it's already mature 
enough to be productive. For instance, Scala has Play, Groovy has Grails, 
etc... If I'm not wrong, Clojure doesn't have a well-established framework 
for web development. I'm intrigued by Clojure because I like functional 
programming, but I need to be productive and, alas, I don't have time to 
learn Clojure just for my pleasure.

-- 
-- 
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] Reagi 0.7.0 with ClojureScript support

2013-12-25 Thread James Reeves
Happy Holidays and Merry Christmas,

Reagi 0.7.0 has been released, now with support for ClojureScript.

Reagi is an FRP library that introduces two new reference types: behaviors
and event streams. Behaviors model continuous change, and work a little
like delays, while events represent discrete changes, and work a little
like promises. More information is available on the project page:

  https://github.com/weavejester/reagi

It's my opinion that Reagi provides a very clean and idiomatic
implementation of FRP for Clojure. It's only dependency is core.async, so
it doesn't need to make the compromises that a wrapper of an existing Java
or Javascript library might need.

I've been using Reagi for Clojure for a while now, but the ClojureScript
code is still rather new, and may exhibit problems I haven't anticipated.

- James

-- 
-- 
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: get rid of reflection in proxy-super?

2013-12-25 Thread Colin Fleming
Right, it doesn't fix your original problem of the reflection warning.
Thinking about it, there's no way to get rid of that warning since in the
end all interop (unless it uses a built in form) must expand to the dot
form, which has no way to call a protected method. The only solution I can
see would be to derive a Java class from JPanel and just override
paintComponent and make it public, then you can proxy that class.


On 25 December 2013 23:14, Jim - FooBar();  wrote:

>  Thanks Colin, I did vote for it but its title implies something
> different...something  restoring original binding on exception...
>
> Jim
>
>
>
> On 25/12/13 04:06, Colin Fleming wrote:
>
> That is indeed the same issue, and it even includes a patch with a test!
> I've voted for this one, please consider doing the same if this issue has
> caught you. Link: http://dev.clojure.org/jira/browse/CLJ-983
>
>
> On 25 December 2013 13:22, Matching Socks  wrote:
>
>> (Re Colin's note that a proxy gets damaged if super throws - goodness
>> gracious!  Is it the same matter as Clojure Jira issue No.983?  It's marked
>> as "minor" and affecting Clojure 1.3, and no one has voted for it.)
>>
>>
>>   --
>> --
>> 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.
>>
>
>  --
> --
> 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.
>
>
>  --
> --
> 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.
>

-- 
-- 
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.


Core.async, Rules for passing clojure vals to go block

2013-12-25 Thread Timothy Washington
Hi there,

For core.async, what are the rules for, *i)* having vals from a function
closure, *ii)* passed into a go block. In the example below, I cannot pass
in the system-atom to the handle function. The call will just die silently,
without throwing any exception. Instead, I have to pass in a nil for the
function to be invoked.

Is this expected behaviour? Is it a bug? I would've expected an exception
to be thrown if that's forbidden.

  (fn [system-atom handlefn]
(println "sanity check: " system-atom)
(go (loop [msg (http://interruptsoftware.com>

-- 
-- 
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: How do I serve clojure pages with nginx

2013-12-25 Thread James Reeves
I currently serve a web app on a Ubuntu server. Here's the configuration I
use:

In "/etc/nginx/sites-available/":

server {
listen 80;

location / {
proxy_set_header  X-Real-IP$remote_addr;
proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;
proxy_set_header  Host $http_host;
proxy_redirectoff;
proxy_passhttp://127.0.0.1:4000;
}
}


Then I enable this configuration by adding a symbolic link:

cd /etc/nginx/sites-enabled
ln -s  ../sites-available/


Then I create an upstart job to run the server in
"/etc/init/.conf:

description ""
author ""

start on startup
stop on shutdown

setuid deploy
chdir /deploy
console log

env PORT=4000
exec java -jar .jar


The jar file I place in "/deploy", a directory I've added in at the top
level.

If all goes according to plan, then I can reload nginx and start my server:

reload nginx

start 


Hope that helps.

- James



On 25 December 2013 11:42, Zeynel  wrote:

> Ok, I worked through the tutorial referenced
> http://clojure-doc.org/articles/tutorials/basic_web_development.html#build-and-run-itand
>  I created a jar file and ran it with $ java -jar -my-webapp.jar. This
> works. But my understanding is that this is would not work for production.
> I need to use nginx as proxy to jetty (or immutant?). I am trying to figure
> out the correct configuration for jetty and nginx. Each tutorial appears to
> be different and so far I couldn't make it work.
>
>
> On Friday, December 20, 2013 9:39:07 AM UTC-4, David Della Costa wrote:
>
>> Hi Zeynel,
>>
>> I don't know if setting things up the way I've laid out there is such a
>> great idea.  What I would do instead is set the port and whatnot in the
>> jetty configuration inside of ring, assuming that's what you're using
>> (this assumes a lot about how your app is set up, so let me know if this
>> doesn't match your setup):
>>
>> http://ring-clojure.github.io/ring/ring.adapter.jetty.html
>>
>> Then, I would compile an uberjar with lein, like so:
>>
>> $ lein uberjar
>>
>> In your startup script, as Curtis laid out, call the jar file using
>> something like:
>>
>> /path/to/java -jar /path/to/uberjar
>>
>> That will be much simpler than what I have in my tutorial...which I
>> should really update, now that you mention it!
>>
>> DD
>>
>> (2013/12/19 9:28), Zeynel wrote:
>> > I am following your tutorial, but I am stuck with Jetty configuration.
>> > My installation does not seem to have a /contexts directory. Where is
>> it?
>> >
>> > On Tuesday, December 17, 2013 9:02:19 AM UTC-4, David Della Costa
>> wrote:
>> >
>> > I have not done this specifically with Nginx but I suspect you
>> probably
>> > want something like what I set up with Apache + Jetty:
>> >
>> > https://github.com/ddellacosta/Clojure-under-
>> Jetty-and-Apache#setting-up-jetty-with-apache-httpd
>> > > Jetty-and-Apache#setting-up-jetty-with-apache-httpd>
>> >
>> >
>> > That is, set up Nginx to act as a proxy for Jetty:
>> >
>> > http://nginx.org/en/docs/beginners_guide.html#proxy
>> > 
>> >
>> > One difference with how I would do it these days (vs. what I wrote
>> in
>> > the piece above) is that I would probably simply push out an
>> uberjar
>> > with lein which I would run with Java via an init script--for
>> example,
>> > if using Ubuntu:
>> >
>> > http://upstart.ubuntu.com/cookbook/#run-a-java-application
>> > 
>> >
>> > So, I would imagine the basic construction would be something like:
>> > ring
>> > app w/jetty or http-kit, packaged as an uberjar (lein uberjar),
>> then
>> > set
>> > up to run via an init script (via upstart in your case) on an
>> > alternative port, which is proxied by Nginx as in the link above.
>> >
>> > Hope this helps--
>> >
>> > DD
>> >
>> > (2013/12/17 21:44), Zeynel wrote:
>> > > I've set up a home server with ubuntu and nginx and I can serve
>> > static
>> > > pages. Now I want to add clojure but I am not sure what I need to
>> > do. I
>> > > asked the same question in StackOverflow but for some reason it
>> is
>> > voted
>> > > to be
>> > > closed:
>> > http://stackoverflow.com/questions/20632987/how-to-
>> serve-clojure-pages-with-nginx
>> > > serve-clojure-pages-with-nginx>
>> >
>> > >
>> > > Can you please direct me to documentation where I can read about
>> > this?
>> > > Some issues that I don't understand are: how do I tell nginx that
>> > I am
>> > > using clojure? Where do I install clojure, in the server? Where
>> do I
>> > > create the clojure files? Thanks.
>> > >
>> > > --
>> > > --
>> > > You received this message because you are subscribed to the

Re: [ANN] Clojure.Joda-Time 0.1.0

2013-12-25 Thread dm3
Oops, sorry about that... Fixed now.

On Wednesday, 25 December 2013 13:53:10 UTC+2, Michael Klishin wrote:
>
>
> 2013/12/25 dm3 >
>
>> There's quite a comprehensive README on github: 
>> https://github.com/dm3/clojure.joda-time
>>
>
> which could use some very visible dependency/installation info ;)
>
>
> -- 
> MK
>
> http://github.com/michaelklishin
> http://twitter.com/michaelklishin
>  

-- 
-- 
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: [ANN] Clojure.Joda-Time 0.1.0

2013-12-25 Thread Michael Klishin
2013/12/25 dm3 

> There's quite a comprehensive README on github:
> https://github.com/dm3/clojure.joda-time
>

which could use some very visible dependency/installation info ;)


-- 
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin

-- 
-- 
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: How do I serve clojure pages with nginx

2013-12-25 Thread Zeynel
Ok, I worked through the tutorial 
referenced 
http://clojure-doc.org/articles/tutorials/basic_web_development.html#build-and-run-it
 
and I created a jar file and ran it with $ java -jar -my-webapp.jar. This 
works. But my understanding is that this is would not work for production. 
I need to use nginx as proxy to jetty (or immutant?). I am trying to figure 
out the correct configuration for jetty and nginx. Each tutorial appears to 
be different and so far I couldn't make it work.

On Friday, December 20, 2013 9:39:07 AM UTC-4, David Della Costa wrote:
>
> Hi Zeynel, 
>
> I don't know if setting things up the way I've laid out there is such a 
> great idea.  What I would do instead is set the port and whatnot in the 
> jetty configuration inside of ring, assuming that's what you're using 
> (this assumes a lot about how your app is set up, so let me know if this 
> doesn't match your setup): 
>
> http://ring-clojure.github.io/ring/ring.adapter.jetty.html 
>
> Then, I would compile an uberjar with lein, like so: 
>
> $ lein uberjar 
>
> In your startup script, as Curtis laid out, call the jar file using 
> something like: 
>
> /path/to/java -jar /path/to/uberjar 
>
> That will be much simpler than what I have in my tutorial...which I 
> should really update, now that you mention it! 
>
> DD 
>
> (2013/12/19 9:28), Zeynel wrote: 
> > I am following your tutorial, but I am stuck with Jetty configuration. 
> > My installation does not seem to have a /contexts directory. Where is 
> it? 
> > 
> > On Tuesday, December 17, 2013 9:02:19 AM UTC-4, David Della Costa wrote: 
> > 
> > I have not done this specifically with Nginx but I suspect you 
> probably 
> > want something like what I set up with Apache + Jetty: 
> > 
> > 
> https://github.com/ddellacosta/Clojure-under-Jetty-and-Apache#setting-up-jetty-with-apache-httpd
>  
> > <
> https://github.com/ddellacosta/Clojure-under-Jetty-and-Apache#setting-up-jetty-with-apache-httpd>
>  
>
> > 
> > 
> > That is, set up Nginx to act as a proxy for Jetty: 
> > 
> > http://nginx.org/en/docs/beginners_guide.html#proxy 
> >  
> > 
> > One difference with how I would do it these days (vs. what I wrote 
> in 
> > the piece above) is that I would probably simply push out an uberjar 
> > with lein which I would run with Java via an init script--for 
> example, 
> > if using Ubuntu: 
> > 
> > http://upstart.ubuntu.com/cookbook/#run-a-java-application 
> >  
> > 
> > So, I would imagine the basic construction would be something like: 
> > ring 
> > app w/jetty or http-kit, packaged as an uberjar (lein uberjar), then 
> > set 
> > up to run via an init script (via upstart in your case) on an 
> > alternative port, which is proxied by Nginx as in the link above. 
> > 
> > Hope this helps-- 
> > 
> > DD 
> > 
> > (2013/12/17 21:44), Zeynel wrote: 
> > > I've set up a home server with ubuntu and nginx and I can serve 
> > static 
> > > pages. Now I want to add clojure but I am not sure what I need to 
> > do. I 
> > > asked the same question in StackOverflow but for some reason it is 
> > voted 
> > > to be 
> > > closed: 
> > 
> http://stackoverflow.com/questions/20632987/how-to-serve-clojure-pages-with-nginx
>  
> > <
> http://stackoverflow.com/questions/20632987/how-to-serve-clojure-pages-with-nginx>
>  
>
> > 
> > > 
> > > Can you please direct me to documentation where I can read about 
> > this? 
> > > Some issues that I don't understand are: how do I tell nginx that 
> > I am 
> > > using clojure? Where do I install clojure, in the server? Where do 
> I 
> > > create the clojure files? Thanks. 
> > > 
> > > -- 
> > > -- 
> > > You received this message because you are subscribed to the Google 
> > > Groups "Clojure" group. 
> > > To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com . 
> > > For more options, visit https://groups.google.com/groups/opt_out 
> > . 
> > 
> > -- 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Clojure" group.

[ANN] Clojure.Joda-Time 0.1.0

2013-12-25 Thread dm3
Hello,

I would like to announce the first release of 
Clojure.Joda-Time - 
an ambitiously named wrapper for the Joda-Time date and time library.

Main goals of Clojure.Joda-Time:

* Provide a consistent API for common operations with instants, date-times, 
periods, partials and intervals.
* Provide an escape hatch from Joda types to clojure datastructures and 
back where possible.
* Avoid reflective calls (this is a problem, because many types in 
Joda-Time have similar functionality hidden under similarly named and 
overloaded methods with no common interfaces).
* Provide an entry point into Joda-Time by freeing the user from importing 
most of the Joda-Time classes.

Compared to clj-time , this library 
is not DateTime-centric. If you tend to use local dates in most of your 
projects, meaning you don't care about time zones, there's no purpose in 
using DateTime at all. You should be using various Partials provided by 
Joda-Time, most common being LocalDate and LocalDateTime. This also means 
that date-times created through Clojure.Joda-Time are not converted to the 
UTC timezone by default, as they are in clj-time.

There's quite a comprehensive README on github: 
https://github.com/dm3/clojure.joda-time
as well as the API-docs: http://dm3.github.io/clojure.joda-time/

This is pretty much an experiment, albeit a very elaborate one (and time 
consuming). Feel free to suggest improvements/rant about deficiencies :)

Fun facts:
* first release may be treated as a Christmas present
* while testing the library with simple-check ~10 bugs were identified 
(most of them already fixed) in the Joda-Time itself
* library contains an implementation partial intervals (e.g. interval of 
LocalDates)

-- 
-- 
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: get rid of reflection in proxy-super?

2013-12-25 Thread Jim - FooBar();
Thanks Colin, I did vote for it but its title implies something 
different...something restoring original binding on exception...


Jim


On 25/12/13 04:06, Colin Fleming wrote:
That is indeed the same issue, and it even includes a patch with a 
test! I've voted for this one, please consider doing the same if this 
issue has caught you. Link: http://dev.clojure.org/jira/browse/CLJ-983



On 25 December 2013 13:22, Matching Socks > wrote:


(Re Colin's note that a proxy gets damaged if super throws -
goodness gracious!  Is it the same matter as Clojure Jira issue
No.983?  It's marked as "minor" and affecting Clojure 1.3, and no
one has voted for it.)


-- 
-- 
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.


--
--
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.


--
--
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.