Re: I can only get the first item of a lazyseq via a Manifold stream, and I can't get/find an Exception

2017-07-10 Thread lawrence . krubner
Okay, that was a deadend. After going through line by line, I could pretty well rule out any kind of Exception or Error. The first row from the database seems to go through all of the functions perfectly, without any errors. But the second row never gets called. Which takes me back to where I

Re: I can only get the first item of a lazyseq via a Manifold stream, and I can't get/find an Exception

2017-07-10 Thread lawrence . krubner
Once again, my lack of knowledge of Java trips me up. Manifold relies on Dirigiste, which relies on Java's Executor Service. I see a bit here: http://www.nurkiewicz.com/2014/11/executorservice-10-tips-and-tricks.html Nurkiewicz writes: "I got bitten by that too many times: it won't print

RE: Monitoring Clojure applications in production

2017-07-10 Thread Sean Corfield
We use New Relic. For our web apps, it automatically tracks request counts/times, database access for MongoDB and MySQL, plus external HTTP API access. We also trace certain aspects of the code – documented in this blog post:

Re: bots in closure

2017-07-10 Thread Alex Walker
Hi Frank, Chatbot is a bit of a loaded term, so could you please give a bit of clarification? 1. Are you expecting natural language (spoken or text), or rigid/regex-based commands for user input? - If NL, - do you want to leverage an existing service for intent

Re: I can only get the first item of a lazyseq via a Manifold stream, and I can't get/find an Exception

2017-07-10 Thread lawrence . krubner
By the way, this code works fine if I go into a (doseq) a level above enqueue, and then put each individual row onto the stream. Then the code loops over all of the rows. But that seems to defeat the whole point of using something like Manifold. I want to be able to put the whole lazy-seq on

I can only get the first item of a lazyseq via a Manifold stream, and I can't get/find an Exception

2017-07-10 Thread lawrence . krubner
I'm using Zach Tellman's excellent Manifold library, though I admit I don't fully understand it. My code queries a MySQL database and then needs to do some processing on each row retrieved. I copy-and-pasted some code from the documentation for Manifold: ;; 2017-07-10 -- we want a thread

Re: Evolve data / entities over time?

2017-07-10 Thread Gregg Reynolds
On Mon, Jul 10, 2017 at 1:35 PM, Luke Horton wrote: > This is probably not clojure specific, but it’s a problem for which i’ve > never really found a satisfying in other languages. Maybe clojure has a > better opinion on the matter? > > How does one evolve/change data

Re: Evolve data / entities over time?

2017-07-10 Thread Didier
In Domain Driven Design, the domain model is the part which should be made to change the least, which is why getting is right is important, and more design time should go into it (often it receives the least amount of thought). The whole concept of DDD is based around this axiom, that changing

Re: Clojure <--> LISP

2017-07-10 Thread Kevin Baldor
And for good and ill, being hosted means that some of the semantics are affected by the host language. There is a discussion of differences between Clojure and Clojurescript here https://www.clojurescript.org/about/differences and I'm sure there's a similar set for differences between Clojure on

New Features coming to ClojureScript

2017-07-10 Thread David Nolen
We have a series of blog posts in the queue that outline several major enhancements to the ClojureScript compiler that will be available in the next release. This is the first one in the series: https://clojurescript.org/news/2017-07-10-code-splitting Enjoy! David -- You received this message

Re: Clojure <--> LISP

2017-07-10 Thread Răzvan Rotaru
Hi, Here's how I would summarize it: - Common Lisp = big standard, very old, unlikely to change in the future, complex and powerful object system, several implementations, almost all mature and efficient, has some quirks with historical roots - Scheme = small standard, also very old, changing

Re: core.async vs continuations

2017-07-10 Thread Timothy Baldridge
Yes, calls to ! could be written with continuations, or call/cc, but they are not implemented that way. Instead the code inside the body of the `go` macro is rewritten into a statemachine. This sort of rewrite is a lot like the rewrites that C# does for yield, and Cython does much of the same sort

core.async vs continuations

2017-07-10 Thread Răzvan Rotaru
Hi, Pardon the ignorance, I was just rewatching Rich Hickeys talk about core.async, and realized that the await call is actually a continuation (like call/cc from scheme). And if I am not mistaken, you can't implement call/cc with macros, so I suspect there is a difference, but I fail to see

Re: Evolve data / entities over time?

2017-07-10 Thread Luke Horton
Per some recommendations on clojurians #clojure channel: - namespaced keys and addition over destruction - generally keep your data as flat as possible - finicky nested over "organized" data models are magnets for repeated restructures into a new "better, more organized" structure On Monday,

Re: [ClojureScript] [ANN] Orchestra 2017.07.04-1 (now supporting ClojureScript)

2017-07-10 Thread Didier
I find it funny that Clojure strongly believes that static types aren't worth the effort in most cases, but somehow the effort of adding generative testing is. I think it's great to encourage people to use generative testing, but I'd rather it be à la carte, like most other things in Clojure.

Evolve data / entities over time?

2017-07-10 Thread Luke Horton
This is probably not clojure specific, but it’s a problem for which i’ve never really found a satisfying in other languages. Maybe clojure has a better opinion on the matter? How does one evolve/change data (entities) in a system over time without also having to change every piece that touches

Re: Datomic document store library?

2017-07-10 Thread Mark
Thanks but that wasn't what I was looking for. I thought I saw a library which would serialize arbitrary EDN to Datomic datoms and would deserialize back to the EDN form. Evidently, I dreamt it. I did find https://github.com/zcaudate/spirit which is kind of close. On Monday, July 10, 2017

bots in closure

2017-07-10 Thread ureal frank
Hi, Is anyone building chatbots in Clojure? OR can someone point me something to start with? Clojure newbie here :) thanks  Frank -- 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

Re: Monitoring Clojure applications in production

2017-07-10 Thread Janko Muzykant
Strongly recommend Riemann and some kind of abstraction layer to avoid wrapping the code with macros. You may take a look at something I tried to implement: https://github.com/mbuczko/metrics-riemann-reporter Łukasz Korecki writes: > Hi all! > > I'm wondering how

[ANN] r4f-pro: IDE for visual ontology-based, rule-based and algorithm-based software development

2017-07-10 Thread ru
Hi, Update to r4f-pro project: https://github.com/rururu/r4f-pro Integrated Development Environment for [rete4frames](https://github.com/rururu/rete4frames) rule engine and expert system shell based on [Protege-3.5 ontology editor](http://protege.stanford.edu) supplemented with visual

Re: Datomic document store library?

2017-07-10 Thread Ivan Willig
Mark, Are you looking for https://github.com/Datomic/fressian? Ivan Willig On Sat, Jul 8, 2017 at 9:37 PM, Mark wrote: > My Google fu fails me. I recall a clojure library that will serialize > arbitrary edn structures and store it in Datomic but I can't find it now >

Re: Monitoring Clojure applications in production

2017-07-10 Thread Sanel Zukan
You can try with Riemann (http://riemann.io) as it has few JMX collectors. Also, there is riemann-clojure-client (https://github.com/riemann/riemann-clojure-client) that can be integrated with your application to pull custom metrics. It requires some knowledge (scripting is done in Clojure) to

Re: [ClojureScript] [ANN] Orchestra 2017.07.04-1 (now supporting ClojureScript)

2017-07-10 Thread Rick Moynihan
It might be worth including a discussion about when to use this library, and perhaps indicating that using it might not be a best-practice. :ret and :fn specs were originally validated by instrument, but this feature was removed because Rich et al thought it redundant, and that there were

Monitoring Clojure applications in production

2017-07-10 Thread Łukasz Korecki
Hi all! I'm wondering how people are getting application performance metrics out of their clojure applications? My team is using a combination of collectd for machine/os metrics and statsd instrumentation for application level code (RabbitMQ consumers, http handlers etc). All of that data is