Re: How do I create streaming XML response?

2015-04-20 Thread Marc Schneider
Thank you for your answer, Nelson. I was near to your solution. Thank you for reminding me to flush the writer. Now I detected the real problem in my application: I did not use the jetty adapter but the http-kit http://www.http-kit.org server. http-kit buffers whole response body from

Re: [ANN] Clojure 1.7.0-beta1 released

2015-04-20 Thread Alex Miller
The serializable thing is not intentional - would definitely like to fix it! -- 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 new members are moderated - please be

Re: [ANN] descjop v0.1.0

2015-04-20 Thread Kazuhiro Hara
Thanks, Ivan. leiningen template descjop version 0.1.1 released today. lein-template-descjop https://github.com/karad/lein_template_descjop clojars https://clojars.org/descjop/lein-template changes : * grunt-download-atom-shell does not work

Re: [ANN] Clojure 1.7.0-beta1 released

2015-04-20 Thread Jason Wolfe
Just tried the beta on our test suite. Aside from warnings from new Clojure functions now shadowed by existing functions and obvious cases of hash sensitivity, there are a couple less clear-cut cases (which likely fall into the above hash case but will require further investigation), and we

Re: What is current best practice regarding exceptions?

2015-04-20 Thread Timothy Baldridge
On a project I worked on we used a bit of a heavy handed method. Our system was rather distributed, where servers processed messages off of durable queues. So we took a simplistic approach: Exceptions that bubbled all the way up to the top level of the application caused a hard exit of the JVM.

Re: [ANN] descjop v0.1.0

2015-04-20 Thread Ivan Reese
This is really cool! It's wonderfully gratifying to take a web app I'd been making with CLJS, dump the compiled html/css/js into the app/ folder, and it just magically works as a native app. Note to other people checking out the template: Since atom-shell was recently renamed Electron, I had

ANN: Kibit 0.1.2 is released

2015-04-20 Thread Daniel Compton
I'm incredibly excited to announce that Kibit 0.1.2 has been released. Kibit is a Leiningen plugin that inspects your code and suggests more idiomatic ways of expression the same thing, e.g. (+ 1 num) can be rewritten as (inc num) The headlining features of this release are: * Clojurescript/Cljx

How do I create streaming XML response?

2015-04-20 Thread Marc Schneider
I am writing an application that reads some data from a database and need to transform that data to XML. That XML should be streamed as a response to a web request. The code for creating the XML elements is already working. I am using clojure.data.xml for that and it works very nice. My

Re: [ANN] Expectations v2.1.1

2015-04-20 Thread Ivan Reese
(Clojure newcomer remarks in 3... 2... 1...) This looks neat! One note — the website suggests installing an out of date version: http://jayfields.com/expectations/installing.html Might it be better to just link to Clojars? -- You received this message because you are subscribed to the Google

Re: How do I create streaming XML response?

2015-04-20 Thread Herwig Hochleitner
The way enlive does it, is to create a lazy sequence of strings. A response body such as that can be immediately be used by ring. However, I don't know from the top of my head how to generate it from data.xml.​ I'll be glad to get some input on that, otherwise I'll think about this more, the next

New Functional Programming Job Opportunities

2015-04-20 Thread Functional Jobs
Here are some functional programming job opportunities that were posted recently: Mid/Senior Software Development Engineer at Lookingglass Cyber Solutions http://functionaljobs.com/jobs/8810-mid-senior-software-development-engineer-at-lookingglass-cyber-solutions Senior/Principal Software

What is current best practice regarding exceptions?

2015-04-20 Thread larry google groups
I'm curious, how are people in the Clojure community currently dealing with exceptions? I have a diverse set of questions on this topic. 1.) How many have adopted an Erlang die fast and restart strategy? 2.) How many use something like Supervisor to spin up new JVMs? If not Supervisor, then

Re: How do I create streaming XML response?

2015-04-20 Thread Nelson Morris
The `clojure.data.xml/emit` function will stream xml to a Writer. To hook it up to `piped-input-stream` requires a little bit of book keeping work. `piped-input-stream` provides an OutputStream and we need to convert that to a Writer. Luckily `clojure.java.io/writer` can handle that for us.

Re: What is current best practice regarding exceptions?

2015-04-20 Thread Luc Préfontaine
1) no 2) no 3) yes at all cost 4) both, exceptions are logged with context (current bindings, etc) 5) undecided, under close examination however 6) never have to restart, we check what cause the error and correct it externally if required most errors are reported immediately, may depend on

Re: sp mm training in hyderabada

2015-04-20 Thread Sergey Didenko
I can't believe people don't see it's a conspiracy. Some accounts were hacked, payed and emulated to bring more attention to this spam. The most disturbing sign IMHO is creation of Sean Corfield account that was grown for many years bringing support and value to Clojure community for the sake of