Re: ANN: I wrote a beginner datomic tutorial I wanted to share with y'all, constructive feedback welcome

2017-03-20 Thread Luke Burton
> On Mar 19, 2017, at 2:34 PM, Fenton Travers > wrote: > > https://www.reddit.com/r/Clojure/comments/5zu1oc/my_datomic_tutorial_feedback_sought/ > > My feedback: this is re

Re: Startup time of standalone .jar executable

2017-03-21 Thread Luke Burton
There isn't enough information here to really recommend a fix. But here are some general thoughts: * If you're wondering whether there's a magic --fast-mode flag to make this problem go away, no, there is not. * Can you make this a whole lot faster? Probably, yes, but it will involve a lot o

Re: off-topic: stackof developer survey

2017-03-22 Thread Luke Burton
> On Mar 22, 2017, at 2:26 PM, Gregg Reynolds wrote: > > very interesting stuff, esp. the sociological bits: > > http://stackoverflow.com/insights/survey/2017 > > > sadly, clojure does not even rank in popularity. but it's number 1 in pay > wo

Re: Clojure resume tips?

2017-03-23 Thread Luke Burton
> On Mar 23, 2017, at 10:10 AM, Jason Basanese wrote: > > Attached is a fairly bad resume that I am using. Any tips on how I might > change it to appeal to more places that are looking for functional developers? Couple of general tips … based on a few decades of looking at these things :) Sor

Re: Clojure resume tips?

2017-03-23 Thread Luke Burton
> On Mar 23, 2017, at 11:59 AM, Mark Engelberg wrote: > > On Thu, Mar 23, 2017 at 11:24 AM, Luke Burton <mailto:luke_bur...@me.com>> wrote: > > * So … if I was in your position, knowing what I know now, if I couldn't find > companies that had very progressiv

Re: [ANN and RFC] Bifurcan: impure functional data strucures

2017-03-27 Thread Luke Burton
I'm not well versed enough in these data structures to know this without asking (apologies if it's really obvious to some people): is there opportunity to improve Clojure's built-in data structures with Bifurcan rather than trying to wrap Bifurcan's structures in Clojure? As an aside, I want

Re: I can not find any function that might give rise to this StackOverflow error

2017-04-01 Thread Luke Burton
I'm away from a Clojure REPL to poke at this but I think trapping this in a debugger would trivially reveal the source of recursion. Set a breakpoint at the start of the loop and step through. If using Cursive / IntelliJ set a breakpoint to detect StackOverflow and inspect the call stack. >

Re: [ANN] New Clojure story pages on clojure.org

2017-04-06 Thread Luke Burton
Where's Azerbaijan? Seriously, this was a fantastic story: https://www.youtube.com/watch?v=-zM5fDN_AHY > On Apr 6, 2017, at 11:46 AM, Gregg Reynolds > wrote: > > > > On Apr 6, 2017 7:12 AM, "Jon Pither" mailto:j...@

Re: [ANN] New Clojure story pages on clojure.org

2017-04-06 Thread Luke Burton
> On Apr 6, 2017, at 12:12 PM, Gregg Reynolds wrote: > > > > On Apr 6, 2017 2:10 PM, "Gregg Reynolds" <mailto:d...@mobileink.com>> wrote: > > > On Apr 6, 2017 2:08 PM, "Gregg Reynolds" <mailto:d...@mobileink.com>> wrote: &

Hexing the Technical Interview

2017-04-06 Thread Luke Burton
YES. https://aphyr.com/posts/341-hexing-the-technical-interview -- 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 po

Re: What sorcery is this? (`reduced`, `reduced?`)

2017-04-25 Thread Luke Burton
To add to Ivh's answer, the source code isn't too hard to follow here. Cursive makes this really easy because you can follow the source right into clojure.lang.RT, but you don't need to go that far to see how `reduced?` is used. You can see that all implementations of `reduce` in clojure.core.

Re: What to read after 3 dozen "introduction to transducers" blog posts

2017-05-10 Thread Luke Burton
> On May 6, 2017, at 10:56 AM, Matching Socks wrote: > > This one. https://tech.grammarly.com/blog/building-etl-pipelines-with-clojure > > "To be honest, this is a somewhat advanced usage of the transducers > machinery," says the Grammarly Engineering Blog, right after shoehorning a > Buffer

Re: Functional Pattern to Replace Temp Var

2017-05-13 Thread Luke Burton
You can also memoize “expensive-calculation” … https://clojuredocs.org/clojure.core/memoize > On May 13, 2017, at 1:26 PM, Kevin Kleinfelter > wrote: > > How would one convert the following procedural logic into functional/Clojure? > x = expensive-calculation > return (f1(x), f2(x), f

Clojure Discord server

2017-05-19 Thread Luke Burton
Hi all, After reading about some of the hassles people had with Slack, I posted earlier today in /r/clojure A Discord for Clojurians . We've had about 50 people pass through the Discord so far. Please drop by and see

Re: slackpocalypse? next steps?

2017-05-25 Thread Luke Burton
I put together this "survey" a few days ago in the hope of starting to collect some structured feedback on the pros and cons of each service. Very much along the lines of what you're saying – I expect the end result would be "people have diverse needs and each service satisfies a different need

Re: slackpocalypse? next steps?

2017-05-25 Thread Luke Burton
> On May 25, 2017, at 3:09 PM, Sean Corfield wrote: > > On 5/25/17, 12:43 PM, "Luke Burton" luke_bur...@me.com> wrote: >> I've added the Discord invite link in this document > > I gather that requires an app installed, not just a web browser? I cli

Stubbornly eager results in clojure.java.jdbc

2017-06-16 Thread Luke Burton
Riddle me this: https://gist.github.com/hagmonk/a75621b143501966c22f53ed1e2bc36e Wherein I synthesize a large table in Postgres, then attempt to lazily load the table, discarding each row as I receive it. I tried *many* permuta

Re: Stubbornly eager results in clojure.java.jdbc

2017-06-19 Thread Luke Burton
Anyone have any insights here? Really the most important thing I'm trying to learn is 2) how to identify when a lazy seq head is being retained, other than waiting for it to become bad enough that your program OOMs. > On Jun 16, 2017, at 6:14 PM, Luke Burton wrote: > > &g

Re: Stubbornly eager results in clojure.java.jdbc

2017-06-23 Thread Luke Burton
nnector-j-reference-implementation-notes.html> > > r0man > > On Saturday, June 17, 2017 at 3:15:13 AM UTC+2, Luke Burton wrote: > > Riddle me this: > > https://gist.github.com/hagmonk/a75621b143501966c22f53ed1e2bc36e > <https://gist.github.com/hagmonk/a75621b1435

Re: Stubbornly eager results in clojure.java.jdbc

2017-06-23 Thread Luke Burton
st rs))) > (map row-fn rs > (result-set-seq rset opts))) > > I'm wondering if this function holds onto the head of the seq, since it's > bound to "rs". > > On 20 June 2017 at 00:20, Luke Burton > wrote: > > Anyone have a

Re: Stubbornly eager results in clojure.java.jdbc

2017-06-23 Thread Luke Burton
> On Jun 23, 2017, at 2:26 PM, Sean Corfield wrote: > > This is excellent news as far as I’m concerned because it shows there’s no > specific bug in clojure.java.jdbc that is fundamentally causing the OOM > problem you’re seeing! I'm relieved too, given that I use clojure.java.jdbc extensivel

Re: JDBC Connection auto-commit?: [ANN] clojure.java.jdbc 0.7.0 Beta 1

2017-07-05 Thread Luke Burton
I've been meaning to chime in here … My take is that clojure.java.jdbc should not be responsible for providing options to the driver to guarantee streaming lazy results, as much as I understand how convenient that would be for users of the framework. It should of course support passing all of

Re: How to try/catch Let bindings?

2017-10-01 Thread Luke Burton
> On Sep 30, 2017, at 3:14 PM, Didier wrote: > > Is there another way to execute a set of complex steps which does not rely on > let and can be try/catched in the manner I describe? I can't emphasize enough the utility of the interceptor chain pattern, as employed heavily in pedestal. I use

Re: How to try/catch Let bindings?

2017-10-02 Thread Luke Burton
> On Oct 1, 2017, at 9:21 PM, Didier wrote: > > I can't emphasize enough the utility of the interceptor chain pattern, as > employed heavily in pedestal. > > Interesting... Its almost like a workflow framework, but for simpler in code > workflows. I'm reluctant to have a dependency on pedest

Re: [ANN] clj-async-profiler — embeddable profiler with flame graphs, based on Java's async-profiler

2017-12-11 Thread Luke Burton
> On Dec 11, 2017, at 6:42 AM, Alexander Yakushev wrote: > > I've just released a wrapper around > https://github.com/jvm-profiling-tools/async-profiler that allows controlling > the profiler directly from the REPL of the program you want to profile. The > JAR file ships the profiling agent a

Re: Tack scheduler

2018-04-17 Thread Luke Burton
There may be other games in town these days, but I've had some success with http://clojurequartz.info , although I think I ended up just using the Java Quartz library directly. Folks will chime (heh) in and recommend libraries like at-at, chime, or tick. However, onc

Re: [ANN] Schism, a set of CRDTs for Clojure and ClojureScript

2018-04-18 Thread Luke Burton
This is cool! There seems to be some room for a recommendation on how to apply these data structures effectively in practice, especially around the distribution mechanism. For instance, I can imagine storing these in an atom and using watchers to push changes out over zero-mq. Or is that the

Re: How to cache deps with deps.edn, to speed docker image builds?

2018-06-03 Thread Luke Burton
I have an outstanding pull request to add explicit copying of deps to a target folder (like lein libdir) to depstar: https://github.com/healthfinch/depstar/pull/3 (for esoteric reasons one of the places I deploy demands I use "thin jars" which is

Re: How to cache deps with deps.edn, to speed docker image builds?

2018-06-03 Thread Luke Burton
> On Jun 3, 2018, at 2:55 PM, Alex Miller wrote: > > On Sunday, June 3, 2018 at 2:18:05 PM UTC-5, Luke Burton wrote: > I have an outstanding pull request to add explicit copying of deps to a > target folder (like lein libdir) to depstar: > > https://github.com/healt

[ANN] depify - generate deps.edn from project.clj

2018-06-11 Thread Luke Burton
depify reads your Leiningen project.clj configuration file and produces a deps.edn file suitable for the Clojure CLI tools. GitHub: https://github.com/hagmonk/depify/ It's not meant to be an exhaustive replacement, just something to get you up-and-running w

[ANN] find-deps - quickly find and add dependencies to your deps.edn file

2018-06-17 Thread Luke Burton
find-deps helps you add dependencies to your deps.edn file by searching the Clojars and Maven APIs. By default, the top match is picked using a simple ranking algorithm that considers fuzzy text match, newness, and popularity of the coordinate's group ID. https://github.com/hagmonk/find-deps