CUFP 2016 Call For Tutorials

2016-06-13 Thread roman
Hi all, The Commercial Users of Functional Programming (CUFP) 2016 has its Call for Tutorials open for submission. CUFP 2016 is being held in the historic city of Nara, Japan. The conference is devoted to showcase the state of the art of Functional Programming on industrial settings. This co

[ANN] cljsee 0.1.0

2016-06-13 Thread Alex Engelberg
https://github.com/aengelberg/cljsee Cljsee is a Leiningen plugin that applies the idea of cljx to the new cljc reader conditional format. In other words, as a build step, it parses .cljc files and outputs .clj and/or .cljs files with only the relevant code. The purpose of this library is to en

Re: [ANN] Clojure 1.9.0-alpha5

2016-06-13 Thread Jason Wolfe
The warning should be fixed in schema 1.1.2. -Jason On Monday, June 13, 2016 at 10:46:09 AM UTC+8, Josh Tilles wrote: > > On Sunday, June 12, 2016 at 10:29:56 PM UTC-4, Alan Thompson wrote: >> >> I would have expected the namespaces to avoid this kind of conflict. Why >> don't they? >> > > Becau

Re: instrumenting clojure.core

2016-06-13 Thread Alistair Roche
Oh, I see what you mean now, Leon. Apologies for not reading more closely! Yours is a much more interesting puzzle. Here's an attempt I made , groping towards it using reflection, but I couldn't even get that to work. Would be curio

[ANN] mustache.clojure 0.3.0

2016-06-13 Thread Bill Robertson
Hello, I've released 0.3.0 of mustache.clojure. It's a Clojure adapter for mustache.java, which performs well and has good adherence to the mustache spec (with the exception of whitespace). Version 0.3.0 adds mustache spec compliance equal to mustache.java. https://github.com/billroberts

Re: cljsbuild hangs with foreign-libs using letsencrypt

2016-06-13 Thread Elric Erkose
I downloaded cljs.jar, but I don't know how to specify :dependencies which currently reside in project.clj. The documentation seems to only address compiler options. The build failed because it couldn't locate dependencies. On Monday, June 13, 2016 at 12:46:32 PM UTC-7, Daniel Compton wrote: > >

Re: lazy-cat's memoization obscuring runtime exceptions

2016-06-13 Thread Fluid Dynamics
On Monday, June 13, 2016 at 4:38:47 PM UTC-4, Gary Trakhman wrote: > > What's surprising about this? Maybe you want the promoting *' variant: > > > (def expexp (lazy-cat [2] (map #(*' % %) expexp))) > #'sandbox21201/expexp > > (take 100 expexp) > Execution Timed Out! > > Seems like it's a big numb

Re: [ANN] core.async 0.2.382

2016-06-13 Thread Fluid Dynamics
On Monday, June 13, 2016 at 4:14:25 PM UTC-4, Alex Miller wrote: > > core.async 0.2.382 is now available. > > Try it via: [org.clojure/core.async "0.2.382"] > > 0.2.382 includes the following changes: > > - Change default dispatch thread pool max size to 8. > - Add Java system property clojure.cor

Re: lazy-cat's memoization obscuring runtime exceptions

2016-06-13 Thread Gary Trakhman
Ah, sorry I missed that the first time around. There's something similar going on with lazy-seq. user=> (defn the-seq #_=> ([] (the-seq 2)) #_=> ([a] (cons (* a a) (lazy-seq (the-seq (* a a)) user=> (def s (the-seq)) #'user/s user=> (take 100 s) ArithmeticException integer overflow

Re: lazy-cat's memoization obscuring runtime exceptions

2016-06-13 Thread Sebastian Oberhoff
What's surprising is that I executed a pure function twice in succession and got different results. Furthermore the second execution papers over an exception. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

Re: lazy-cat's memoization obscuring runtime exceptions

2016-06-13 Thread Alex Miller
I'm not aware of a ticket on it, feel free to file one. tryclj dumps your session periodically and you'll lose any vars you've defined. On Monday, June 13, 2016 at 3:27:54 PM UTC-5, Sebastian Oberhoff wrote: > > The following lines are copied straight from tryclj.com > > > (def expexp (lazy-cat

Re: lazy-cat's memoization obscuring runtime exceptions

2016-06-13 Thread Gary Trakhman
What's surprising about this? Maybe you want the promoting *' variant: > (def expexp (lazy-cat [2] (map #(*' % %) expexp))) #'sandbox21201/expexp > (take 100 expexp) Execution Timed Out! Seems like it's a big number :-) On Mon, Jun 13, 2016 at 4:27 PM Sebastian Oberhoff < oberhoff.sebast...@gm

lazy-cat's memoization obscuring runtime exceptions

2016-06-13 Thread Sebastian Oberhoff
The following lines are copied straight from tryclj.com > (def expexp (lazy-cat [2] (map #(* % %) expexp))) #'sandbox20298/expexp > (take 100 expexp) java.lang.ArithmeticException: integer overflow > (take 100 expexp) (2 4 16 256 65536 4294967296) I'm wondering if this behavior is known, because

[ANN] core.async 0.2.382

2016-06-13 Thread Alex Miller
core.async 0.2.382 is now available. Try it via: [org.clojure/core.async "0.2.382"] 0.2.382 includes the following changes: - Change default dispatch thread pool max size to 8. - Add Java system property clojure.core.async.pool-size to override the dispatch thread pool max size - ASYNC-152 - d

Re: cljsbuild hangs with foreign-libs using letsencrypt

2016-06-13 Thread Daniel Compton
AFAICT cljsbuild doesn’t do anything special with the :foreign-libs key and passes it straight to the compiler. Can you reproduce this issue against the bare ClojureScript compiler? On Tue, Jun 14, 2016 at 4:58 AM Elric Erkose wrote: > Recently I switched my local cdn from http to https with let

cljsbuild hangs with foreign-libs using letsencrypt

2016-06-13 Thread Elric Erkose
Recently I switched my local cdn from http to https with letsencrypt. I had to provide a trust store ( :jvm-opts ["-Djavax.net.ssl.trustStore=...) because java won't support letsencrypt until "JDK 8u102 is scheduled to be released in July 2016". After changing the protocol from "http" to "https"

Re: What I'm missing in my Instaparse rules?

2016-06-13 Thread Hussein B.
Oh my ... You saved my hair! :) Thanks a lot for your help and time. On Monday, June 13, 2016 at 12:03:54 PM UTC+2, puzzler wrote: > > Looks like you left off a + in your regular expression for String. > > On Mon, Jun 13, 2016 at 2:59 AM, Hussein B. > wrote: > >> Thanks for your help. >> >> I t

Re: What I'm missing in my Instaparse rules?

2016-06-13 Thread Mark Engelberg
Looks like you left off a + in your regular expression for String. On Mon, Jun 13, 2016 at 2:59 AM, Hussein B. wrote: > Thanks for your help. > > I tried this new grammar to match characters only: > > " > > TEST = OBJECT > > = <#'\\s+'> > > OBJECT = CURLY_OPEN WHITESPACE* STRING WHITESPACE* (WH

Re: What I'm missing in my Instaparse rules?

2016-06-13 Thread Hussein B.
Thanks for your help. I tried this new grammar to match characters only: " TEST = OBJECT = <#'\\s+'> OBJECT = CURLY_OPEN WHITESPACE* STRING WHITESPACE* (WHITESPACE* OBJECT WHITESPACE*)* CURLY_CLOSE = <'{'> = <'}'> STRING = #'[a-zA-Z]' " (parse "{harden {James}}") Parse error at lin

Re: clojure.spec and the rest of clojure

2016-06-13 Thread Patrick Kristiansen
Hi For your first question, have a look at this thread: https://groups.google.com/forum/#!topic/clojure/d_3V9MfLZmY - Patrick On Monday, June 13, 2016 at 8:18:30 AM UTC+2, Philip Markgraf wrote: > > Rich's session on the Cognicast brought up interesting questions for me. > > - Is Clojure.spec b

Re: why is it so annoying to run clojure code

2016-06-13 Thread hiskennyness
I do not know if I have the right direction*, but qooxdoo was the low-hanging fruit for me because I have a ton of experience wrapping its so-called "Desktop" variant (Web RIAs) so... it is now pretty easy to build a mobile** app in CLJS/qx.Mobile***. * I will look at ReactNative next, though m

Re: instrumenting clojure.core

2016-06-13 Thread Leon Grapenthin
Thank Alistair, but that does not really address my question. Alex suggested using :fn of fspec to check arity of a higher-order argument. But I could not find a tool to check function arity. Also I doubt :fn is going to work since I'd expect it to be invoked /after/ the call - i. e. the call w

Re: why is it so annoying to run clojure code

2016-06-13 Thread hiskennyness
On Saturday, June 11, 2016 at 6:19:06 AM UTC-4, Cornelius Goh wrote: > > Just for curiosity. What mobile phone (Android or iOS) did you port your > CommonLisp libraries onto ? I did Andoid since Cordova said it could not build for iOS on Linux, but up soon on my do-list is dusting off my Mac