Re: Reduce + merge-with error on lazy sequence of maps

2016-02-11 Thread James Reeves
There are a couple of errors in your code: 1. You have no initial value for the reduce, yet your output seems different to your input 2. prioritized-courses returns a seq, but merge-demand expects a map My guess is that you only get the error when you hit data in your input sequence with the same

Reduce + merge-with error on lazy sequence of maps

2016-02-11 Thread Nathan Smutz
Hi all, I've had a case where reduce with merging operations throws errors on lazy sequences. I thought I should check in for insight before logging a bug. Maybe using maps as keys has something to do with it. too (I've since refactored) (reduce merge-student-demand everybody) Throws: Il

ANN: Suchwow 5.0.0

2016-02-11 Thread Brian Marick
Suchwow is my grab-bag library of Clojure functions. 5.0.0 is a major version bump because I dropped support of Clojure 1.5. Otherwise, it adds a few new functions plus one potentially significant new namespace. In two jobs, I've wanted to slurp in tabular data (CSV or relational queries) an

conditional logic implemented as pattern-matching and restructuring in the signature of the function

2016-02-11 Thread Colin Taylor
Defm does this too though I've never got round to fully finishing it. (defm file-or-string-fn [] ([File] (println "It's a file")) ([s :- String] (println "It's a string " s)) (["magic"] (println "It's magic")) ([_] (println "It's a " (type _1 -- You received this message because you

Re: Scripting with Clojure / "slow" boot time

2016-02-11 Thread Alex Miller
Nice! I have some stuff similar to this I use, but this is nicely packaged. On Thu, Feb 11, 2016 at 2:30 PM, Ryan Fowler wrote: > On Tue, Feb 9, 2016 at 12:36 PM, Alex Miller wrote: > >> I'm doing some research on slow Clojure boot time and would be interested >> in collecting info about exampl

Re: [ANN] Ticket - an encrypted ticket/cookie library

2016-02-11 Thread Michael Ball
I haven't, but definitely will look into macaroon for ideas. On Thursday, February 11, 2016 at 11:44:42 AM UTC-8, Ghadi Shayban wrote: > > Btw, ever looked at Macaroons? Apparently Google uses them internally. > > http://research.google.com/pubs/pub41892.html > http://hackingdistributed.com/2014

Re: “compiling” stacktrace error

2016-02-11 Thread Sean Corfield
Scaramaccai wrote on Thursday, February 11, 2016 at 8:32 AM: >I'm learning Clojure, and I find difficult to understand where a specific >compiler error happens: The stacktraces can be pretty daunting at first, unfortunately. How are you compiling / running the code? That will have some bearing o

Re: Scripting with Clojure / "slow" boot time

2016-02-11 Thread Ryan Fowler
On Tue, Feb 9, 2016 at 12:36 PM, Alex Miller wrote: > I'm doing some research on slow Clojure boot time and would be interested > in collecting info about example use cases where it's been a problem for > people. > ​The following snippet helps me visualize load times. It might be helpful to othe

Re: [ANN] Ticket - an encrypted ticket/cookie library

2016-02-11 Thread Ghadi Shayban
Btw, ever looked at Macaroons? Apparently Google uses them internally. http://research.google.com/pubs/pub41892.html http://hackingdistributed.com/2014/05/21/my-first-macaroon/ Ghadi On Thursday, February 11, 2016 at 1:29:56 PM UTC-5, Michael Ball wrote: > > Thanks! Yes I looked at JWE, but it

Re: [ANN] Ticket - an encrypted ticket/cookie library

2016-02-11 Thread Michael Ball
Thanks! Yes I looked at JWE, but it just seemed a bit heavy for the need to only store a simple identifier. Interoperability isn't a concern, as tickets rarely if ever shared. I just wanted a simple self contained and easy to use way to package and retrieve identifiers with appropriately chosen

“compiling” stacktrace error

2016-02-11 Thread Scaramaccai
I'm learning Clojure, and I find difficult to understand *where* a specific compiler error happens: java.lang.ClassCastException: java.lang.Long cannot be cast to clojure.lang.IPersistentCollection, compiling:(fwpd/core.clj:100:1) Line 100 is just: (fib-seq3 5) So it says nothing, becau

Welcome the new maintainer of Loom: Paul Snyder

2016-02-11 Thread Aysylu Greenberg
I'm pleased to announce that Paul Snyder (@pataprogramming, pataprogramming on Github ) has joined me in maintaining Loom. I'm excited for the coming year for Loom , with more excellent contributions accepted faster. Cheers, A

Re: [ANN] Ticket - an encrypted ticket/cookie library

2016-02-11 Thread Andrey Antukh
Hi Michael! Firstly: nice work! Do you know about JWE? It does just the same thing but in a standarized/interoperable way: https://funcool.github.io/buddy-sign/latest/#introduction Andrey On Thu, Feb 11, 2016 at 8:21 AM, Michael Ball wrote: > Ticket helps create and read encrypted tickets/coo

Re: [ANN] Leiningen 2.6.0

2016-02-11 Thread Jean Niklas L'orange
On Wednesday, February 10, 2016 at 9:18:04 PM UTC+1, Avi Flax wrote: > > Does this mean that those who manually installed will not experience these > improvements? If so, I’m curious as to why? > Ah, good question: People who installed manually will already have the performance improvements that