Re: New to Clojure

2017-01-16 Thread Gregg Reynolds
On Jan 16, 2017 5:25 PM, "Gregg Reynolds"  wrote:



On Jan 16, 2017 5:15 PM, "(hash-map :new "to clojure" :need "assistance")" <
nas@gmail.com> wrote:

Hi Gregg,

I had a look at Aleph - looks fantastic! Plus it seems to have good docs as
well. RE the bids, very special use case constraints set by the clients.

Many thanks

many welcomes!  you mentioned you have about a month.  if you do go with
clojure, I'm sure many of us would be interested in hearing how it goes -
please Doble us


that would be "do let us". ;)

know, good or bad.

g

-- 
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: New to Clojure

2017-01-16 Thread Gregg Reynolds
On Jan 16, 2017 5:15 PM, "(hash-map :new "to clojure" :need "assistance")" <
nas@gmail.com> wrote:

Hi Gregg,

I had a look at Aleph - looks fantastic! Plus it seems to have good docs as
well. RE the bids, very special use case constraints set by the clients.

Many thanks

many welcomes!  you mentioned you have about a month.  if you do go with
clojure, I'm sure many of us would be interested in hearing how it goes -
please Doble us know, good or bad.

g

-- 
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: New to Clojure

2017-01-16 Thread (hash-map :new "to clojure" :need "assistance")
Hi Gregg,

I had a look at Aleph - looks fantastic! Plus it seems to have good docs as 
well. RE the bids, very special use case constraints set by the clients.

Many thanks

On Saturday, January 14, 2017 at 10:08:53 PM UTC, Gregg Reynolds wrote:
>
>
>
> On Jan 9, 2017 5:06 PM, "(hash-map :new "to clojure" :need "assistance")" <
> nas...@gmail.com > wrote:
>
> Hi all!
>
> So, I'm new to Clojure! I'm coming in from a Java background and am 
> currently working on a project that has prompted me to have a look at 
> whether Clojure would be useful. 
> I have started by going through the "Brave Clojure" website and working 
> through the exercises and what I've seen has at many times just made me 
> smile at the (at least so far) intuitiveness, simplicity and power of the 
> language. My use case is this:
>
> A real time (sealed bid) auctioning system. We have a maximum number of 
> bids (example 100) that's set by the owner of the product. 
>
>
> just curious, I don't know this market, but why set a limit on bids?
>
> gregg
>

-- 
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: New to Clojure

2017-01-16 Thread (hash-map :new "to clojure" :need "assistance")
Hi Simon,

Many thanks for the advice - will have a look at HugSQL.

On Saturday, January 14, 2017 at 1:52:08 PM UTC, simon lomax wrote:
>
> As far as SQL libraries for Clojure are concerned I would highly recommend 
> HugSQL . Comprehensive documentation and a 
> pleasure to use.
>
> Good luck with your project.
>
> regards,
> Simon 
>
> On Monday, 9 January 2017 23:06:30 UTC, (hash-map :new "to clojure" :need 
> "assistance") wrote:
>>
>> Hi all!
>>
>> So, I'm new to Clojure! I'm coming in from a Java background and am 
>> currently working on a project that has prompted me to have a look at 
>> whether Clojure would be useful. 
>> I have started by going through the "Brave Clojure" website and working 
>> through the exercises and what I've seen has at many times just made me 
>> smile at the (at least so far) intuitiveness, simplicity and power of the 
>> language. My use case is this:
>>
>> A real time (sealed bid) auctioning system. We have a maximum number of 
>> bids (example 100) that's set by the owner of the product. Our clients then 
>> bid on the product. Once a bid is made, it's committed to a database and 
>> the counter increments. The next bid is processed, and so on. Once the 
>> maximum number of bids is reached, bidding stops. This auctioning system is 
>> for a mobile application however the main code for the real time system 
>> sits on a web server. The mobile app is a very thin client so simply makes 
>> a call to the app server via an API which then processes that request (and 
>> returns the result). 
>>
>> Requests are processed in order - so we're following a "first come first 
>> serve" approach. If at any time a request is due to be processed and the 
>> counter hits 100, all requests should gracefully "fail" and be blocked from 
>> bidding. Now this is obviously possible in Java, albeit with a lot more 
>> code and thinking about the different ways to make everything thread-safe, 
>> etc. This is a completely new project so there's no restriction on 
>> languages to be used, etc. PS: We're all Java developers.
>>
>> I was really attracted to Clojure because of a) the JVM b) the fact that 
>> it seems to be able to handle concurrency effortlessly c) our API needs to 
>> scale and so we want to ensure that we can handle the 100K+ connections 
>> easily when the project reaches that stage. Obviously this is more to do 
>> with the hardware, but the way we build the API is a definite factor. 
>> Finally, there seems to be less verbose codebases on Clojure and it might 
>> help to keep our overall codebase light and readable! 
>>
>> My questions therefore are these:
>>
>> With the time we have (around 1 month for this stage), is this something 
>> we can easily build in Clojure?
>> Is the movement from Java to Clojure easy for someone completely new to 
>> Clojure?
>> Are the libraries that we might use for this - I had a look at Ring 
>> briefly robust for our use case?
>> Does Clojure have good support for using AWS for example? (You can call 
>> Java from Clojure so I guess this wouldn't really be an issue.)
>> Does it interface well with MySQL?
>>
>> I'd be very grateful if someone could point me in the right direction on 
>> this - like I said, really really like what I'm seeing of Clojure but just 
>> want to be sure from the community before I recommend this as an action to 
>> take!
>>
>> (hash-map :many "thanks")
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are 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: Are there file watchers that can tell me when a file is done uploading?

2017-01-16 Thread Michael Wood
By "the different apps that are handling the actual upload", do you mean
the clients, or do you have different servers accepting the uploads?

What I meant was that the server (which could be a CGI script or a servlet
or an FTP server etc.) would know when the file has finished uploading, so
can do the rename whatever.

e.g. pureftpd can apparently run custom code when an upload has finished:
https://download.pureftpd.org/pub/pure-ftpd/doc/README
Search for "AFTER AN UPLOAD".

On 18 Dec 2016 02:12, "larry google groups" 
wrote:


Thank you. I do move and rename the file, though even knowing when to move
to it depends on knowing when it is fully uploaded.

In this case, we have many ways that the files might be uploaded, so I
prefer to deal with the file inside of Clojure, rather than trying to
customize each of the different apps that are handling the actual upload.


On Tuesday, December 13, 2016 at 8:25:41 PM UTC-5, Michael Wood wrote:

> Another option: Whatever accepts the upload (e.g. a cgi script) moves the
> file to where the clojure code expects to find it only when it is fully
> uploaded. the move should be an atomic operation.
>
> On 11 Dec 2016 21:47, "larry google groups"  wrote:
>
>>
>> I'm in a situation where we allow staff to upload Microsoft Excel files
>> to our servers, which we then parse and store the data in DynamoDB.
>>
>> I've only used file watchers once before, to watch for any change in a
>> directory. These seemed to trigger when a file was created in a directory
>> -- I recall I then tried to read from such files, but I got an error
>> because the file was still being written. I'm curious if there are file
>> watchers that I can have trigger when a file is fully uploaded, or fully
>> copied?
>>
>> My goal is to avoid the errors that occur when I try to read from a file
>> that is still being written to.
>>
>>
>>
>> --
>> 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/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.

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