Re: lein discovery issues

2015-01-30 Thread Stephen Lester
Hey there Andrea,

So, when I do 'lein search', it caches the index. I don't have anything special 
in my setup (lein version 2.5.1 on Java 1.8.0_25).

Likewise, you can do searches for specific version headers, like

lein search id:clojurescript version:0.0-2* to find all the ones in the 
2000s. To get the latest version, you just have to get the last page of your 
query and look at the version number, or go to the specific library's page.


 Le 2015-01-30 à 08:37, andrea crotti andrea.crott...@gmail.com a écrit :
 
 Noone on the topic?
 
 Any smarter ways to lookup and try out new stuff with lein otherwise?
 
 2015-01-26 14:22 GMT+00:00 andrea crotti andrea.crott...@gmail.com:
 Hello everyone
 
 A couple of questions about Lein and how to find templates/libraries.
 
 I found out now that lein search allows me to search for the last
 stable version of a library, however every time I run it it takes
 forever downloading the index:
 
 Downloading 
 https://repo1.maven.org/maven2/.index/nexus-maven-repository-index.gz
 
 Is that normal and if yes how can I make it usable?
 
 Then if I want to find out the correct version of clojurescript I go to 
 Clojars:
 https://clojars.org/search?q=clojurescript
 
 And there I find a lot of things but  none of them seems the correct
 thing, this is probably not the right thing:
 https://clojars.org/clojurescript
 
 I also noticed that many things in clojars don't have code available or
 links to the project, how am I supposed to know what they are actually
 useful for if there is no Readme/Source code or any other information?
 
 And the last thing is that it would be interesting to see all the
 possible project templates that can be used with a lein new, but from
 what I can understand it depends on the plugins that are currently
 installed with lein, is that correct?
 
 Thanks a lot,
 Andrea
 
 -- 
 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/d/optout.

-- 
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/d/optout.


New ring middleware: browser-caching

2015-07-26 Thread Stephen Lester

Hello everyone,

I just wrote my first ring middleware (I'm pretty much a newbie to 
functional programming and Clojure in general), and I'd appreciate if 
someone wants to give me some tips or constructive criticism (and it can 
be off-list as well).


The goal is to enable per-file-type browser caching hints. I had found 
some other plugins that either set it to 0 (no-cache) or did it based on 
server response code, but none that took into account filetype. I was 
inspired by a similar thing Apache can do.


A big thank you to this community! #clojure on Freenode has been 
amazing, and most of the time this list is a very interesting read.


https://github.com/slester/browser-caching

--
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/d/optout.


Re: Java like static typing for Clojure?

2016-10-17 Thread Stephen Lester
Hi there!

There is an 'optional type system' for Clojure in 'core.typed':

https://github.com/clojure/core.typed

But it also seems like others who were using such a type system have
stepped away from it:

https://circleci.com/blog/why-were-no-longer-using-core-typed/


On 10/15/2016 03:14 PM, Didier wrote:
> I know a lot of people like to say how unhelpful Java like static
> typing is, and only more powerful type systems of the ML family add
> value, but I've been wondering recently if for Clojure it wouldn't
> make more sense to simply extend the type hints to enable an optional
> Java like static typing scheme.
>
> It is my understanding that ML style static typing is incredibly
> difficult to add properly and without compromise to a dynamic
> language. That doing so limits the scope of type inference, rendering
> the task of adding type info more tedious then in ML languages themselves.
>
> ML style static typing provide enhanced safety grantees, but seem to
> add too much complexity to Clojure to be practical. What about a Java
> like static typing scheme though?
>
> I haven't found in practice that the safety of Clojure was an issue,
> as the REPL workflow tend to promote quite a lot of testing. So I'm
> not too worried about needing the state of the art of provable
> correctness for my programs. What has been a biggest cause of issue to
> me was refactoring and shared code base across a team. Those last two
> use cases are actually pretty well handled by Java like static type
> checking. Is it a powerful type checker, not really, but it enables
> most trivial type errors to be caught early, and it allows easier
> integration points for other devs to follow, as well as documentation
> for functions, better tools support and easier refactoring, while also
> enabling performance optimizations.
>
> I have limited knowledge in typing systems, and have no idea how easy
> it is to implement them, but as a user of Clojure, I feel like I would
> find an optional Java like static typing a great addition, one that I
> am more willing to use and benefit from then Typed Clojure's more
> complex ML style type checking.
>
> What do other think?
> Can anyone with better knowledge tell me if this would be feasible or
> if adding such gradual typing system is effectively as hard as adding
> ML style type checking?
> -- 
> 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/d/optout.

-- 
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/d/optout.


signature.asc
Description: OpenPGP digital signature