Re: ArithmeticException while using unchecked-multiply

2015-10-26 Thread Andy Fingerhut
While waiting to see what becomes of that ticket, if someone felt energetic enough to document the gotchas with the unchecked functions, and recommend how to get the desired results, e.g. either ^long type hints, or if (long x) type conversions on the arguments work (I haven't checked), Reid

Re: ArithmeticException while using unchecked-multiply

2015-10-26 Thread Andy Fingerhut
I created this ticket: http://dev.clojure.org/jira/browse/CLJ-1832 I don't know what will become of it, e.g. perhaps a change in behavior to the unchecked functions, perhaps a clarification to the documentation, perhaps nothing. I wouldn't be surprised if the Clojure core team judged the

how to speedup lein uberjar?

2015-10-26 Thread Sunil S Nandihalli
Hi Everybody, My lein uberjar takes about 2 minutes to run. It also recompiles all the clj files everytime. Is there a way to speedup lein-uberjar .. Or may be make it incremental? Thanks, Sunil. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Examples of core.async usage in production?

2015-10-26 Thread Robin Heggelund Hansen
I have used core.async in production on the backend. Works great, but it does involve a bit more work, as you need to make sure that all io (database) and middleware supports core.async. But it works well. There are postgres.async for async db, and fink-nottle for sending sms/push

Re: compojure/http-kit redirection

2015-10-26 Thread James Reeves
On 26 October 2015 at 20:47, JvJ wrote: > I would like to have one request redirect to another page, but I'm not > sure how: > > (defroutes app > (GET "/ws" ws-handler) ; Websocket connection > (GET "/user/:id" [id] ;; I want to redirect to index.html?user=id >

Re: Processing futures and promises asynchronously

2015-10-26 Thread Leonardo Borges
Hi Daniel, Since you're used to Scala futures, you might find this library easy to get started with: https://github.com/leonardoborges/imminent (A composable Futures library for Clojure) The next release will also include ClojureScript support. Cheers, Leonardo Borges www.leonardoborges.com

Re: [ANN] prismatic/schema 1.0 adds automatic test data generation

2015-10-26 Thread Jason Wolfe
Thanks! Just fixed the warning, will go out with the next release. -Jason On Mon, Oct 26, 2015 at 5:44 PM, Jason Felice wrote: > It works great. All I did was updated project.clj, replaced s/both with > s/constrained and removed the s/pred around the arguments, and

compojure/http-kit redirection

2015-10-26 Thread JvJ
Hi, I'm starting a web app with compojure and http-kit. I would like to have one request redirect to another page, but I'm not sure how: (defroutes app (GET "/ws" ws-handler) ; Websocket connection (GET "/user/:id" [id] ;; I want to redirect to index.html?user=id ) (resources "/"))

Re: ArithmeticException while using unchecked-multiply

2015-10-26 Thread Gary Fredericks
Thanks andy! On Monday, October 26, 2015 at 1:25:42 AM UTC-5, Andy Fingerhut wrote: > > While waiting to see what becomes of that ticket, if someone felt > energetic enough to document the gotchas with the unchecked functions, and > recommend how to get the desired results, e.g. either ^long

Re: Examples of core.async usage in production?

2015-10-26 Thread Moe Aboulkheir
I've used core.async in production a bunch with AWS. On Mon, Oct 26, 2015 at 7:24 PM, Robin Heggelund Hansen wrote: There are > postgres.async for async db, and fink-nottle for sending sms/push > notifications/email etc. using core.async. In addition to those services

Re: [ANN] prismatic/schema 1.0 adds automatic test data generation

2015-10-26 Thread Jason Felice
It works great. All I did was updated project.clj, replaced s/both with s/constrained and removed the s/pred around the arguments, and it all worked. One little weird thing: It now complains: WARNING: atom already refers to: #'clojure.core/atom in namespace: schema.core, being replaced by:

Re: Need help setting up Emacs for Clojure on Windows 8

2015-10-26 Thread Tina Ramsey
That Reddit post did help, thanks. I have a HOME environment variable set up on Windows so I can use ~ anywhere, so that wasn't the problem, but when I opened my clojure project and ran M-x cider-jack-in it opened the repl. I guess the configs did run properly, even though I didn't get any

Re: Processing futures and promises asynchronously

2015-10-26 Thread Matching Socks
See also: Zach Tellman's "Manifold" http://aleph.io/manifold/rationale.html http://aleph.io/manifold/deferreds.html -- 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

Re: Processing futures and promises asynchronously

2015-10-26 Thread Chris Murphy
Here are some discussions around the issue: http://stackoverflow.com/questions/31832599/future-failure-in-clojure ~ Chris On 27/10/2015 9:46 AM, Daniel Hinojosa wrote: I am looking for a functional, non-blocking way to process the return of a future. In the Scala world, you can use map,

Processing futures and promises asynchronously

2015-10-26 Thread Daniel Hinojosa
I am looking for a functional, non-blocking way to process the return of a future. In the Scala world, you can use map, flatMap, and foreach to process the return values of a future asynchronously. In Clojure, dereferencing blocks, so that makes it kind of rough since we have to set up our

Re: safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-10-26 Thread Georgi Danov
Just for the record, there is one more relevant thread https://groups.google.com/d/topic/clojure/0AgUIiY8BQ8/discussion On Tuesday, September 29, 2015 at 12:08:16 AM UTC+2, Georgi Danov wrote: > > Hi, > I am integrating clojure into java micro container. It has hierarchical > classloaders and

Re: [ANN] prismatic/schema 1.0 adds automatic test data generation

2015-10-26 Thread Jason Felice
Thanks! I'll try it out this week and let you know. On Sun, Oct 25, 2015 at 8:28 PM, Jason Wolfe wrote: > FYI -- we just released Schema 1.0.2, which adds `s/constrained` for > postconditions. > > -Jason > > On Thursday, September 3, 2015 at 3:05:29 PM UTC-3, Jason Felice

New Functional Programming Job Opportunities

2015-10-26 Thread Functional Jobs
Here are some functional programming job opportunities that were posted recently: Clojure Engineer at Ride On Consulting https://functionaljobs.com/jobs/8863-clojure-engineer-at-ride-on-consulting Clojure Engineer at MixRadio

Onyx Cheat Sheet

2015-10-26 Thread Michael Drogalis
Onyx [https://github.com/onyx-platform/onyx] is a distributed, fault tolerant, high performance data processing platform for Clojure that supports batch and streaming workloads. The majority of the surface area of its API is data-driven. We've documented the information model in several ways,

Need help setting up Emacs for Clojure on Windows 8

2015-10-26 Thread Tina Ramsey
I'm trying to follow the *Clojure for the Brave and True* instructions for installing Emacs and setting it up with clojure-mode, CIDER, etc. I can't get it working on Windows. This is my work machine so there isn't really a choice what OS to use. With the same instructions I had little trouble

Examples of core.async usage in production?

2015-10-26 Thread juan.facorro
Hi all, >From what I've seen/heard/understand core.async has been mostly used in production on the *client side* or UI programming, since it frees us from the dreaded callback hell. There are some instances where *core.async* is used on the *server side* to provide asynchronous communication

Re: Need help setting up Emacs for Clojure on Windows 8

2015-10-26 Thread David Powell
(There shouldn't actually be any problem using ~ from within emacs in Windows though - emacs will automatically handle it - I do it all the time. It is probably related to emacs using "C:\Users\jason\AppData\Roaming" as its home directory though.) On Mon, Oct 26, 2015 at 6:09 PM, Daniel

Re: Need help setting up Emacs for Clojure on Windows 8

2015-10-26 Thread Daniel Higginbotham
Sorry you're having trouble! Does this help? https://www.reddit.com/r/Clojure/comments/3pn3fo/clojure_for_the_brave_and_true_updated_to_match/cw8h8qy On Monday, October 26, 2015 at 1:56:15 PM UTC-4, Tina Ramsey wrote: > > I'm trying to follow the *Clojure for the Brave and True* instructions >