Re: Insane stack trace with no reference to my code

2016-09-27 Thread Ragnar Dahlén
Hi Colin, I think you're correct in that something is calling print on a largish data structure (possibly due to "loops" like Thomas points out), and due to the recursive nature of print you're running out of stack space. The JVM (hotspot anyway) will by default only keep the top 1024 stack fra

Re: newbie question on agent/transaction

2015-07-15 Thread Ragnar Dahlén
3:11 UTC+1, Ragnar Dahlén wrote: > > Hi Bill, > > You are correct in that this involves close integration with the STM. The > agent implementation is aware of transactions and if a transaction is > running when dispatching an action, it will be enqneued in a special ag

Re: newbie question on agent/transaction

2015-07-15 Thread Ragnar Dahlén
Hi Bill, You are correct in that this involves close integration with the STM. The agent implementation is aware of transactions and if a transaction is running when dispatching an action, it will be enqneued in a special agent action queue that STM implementation respects. AFAIK there is no p

Re: problem using boot-clj to build uberjar that starts up a component based system

2015-07-13 Thread Ragnar Dahlén
Hi Matthias, I encountered similar symptoms (basically a corrupt uberjar) which I eventually tracked down to file handle leaks and fixed in: https://github.com/boot-clj/boot/pull/228 This PR has been merged but not been released yet, so I'd give boot master a go and see if that fixes your prob

[ANN] lambada - using clojure with AWS Lambda

2015-06-17 Thread Ragnar Dahlén
Hi, I've just released lambada, a tiny library that provides a way to write AWS Lambda [1] functions in clojure: https://github.com/uswitch/lambada The slightly tricky part with using clojure on Lambda was getting the clojure runtime to load classes using the correct class loader and this

Re: Clojure on AWS Lambda?

2015-06-17 Thread Ragnar Dahlén
You can get the initial startup time down by AOT compiling. I also believe that Lambda will re-use the same runtime and lambda function instance until a certain period of inactivity. For example, in the example below I invoke the function (AOT compiled this time) three times. First invocation t

Re: Clojure on AWS Lambda?

2015-06-16 Thread Ragnar Dahlén
I gave it a go: https://github.com/uswitch/lambada It's just a POC. Needed a Java shim to manage class loaders so the interface is not as nice I was hoping. Might make it into library if there's interest. On Monday, 15 June 2015 21:07:29 UTC+1, Kyle Sexton wrote: > > Curious if anyone is doing

Re: [ANN] clj-kafka 0.3.1

2015-06-12 Thread Ragnar Dahlén
Hi Omri, There's clj-kafka.zk/set-offset! for exactly that purpose: https://pingles.github.io/clj-kafka/clj-kafka.zk.html#var-set-offset.21 Thanks, Ragnar On Friday, 12 June 2015 18:23:23 UTC+1, Omri Hurvitz wrote: > > Hi Paul. > > This looks great - I am looking forward to replace my hacked wr

Re: InvokeDynamic

2014-04-04 Thread Ragnar Dahlén
You may find this thread enlightening: https://groups.google.com/d/msg/clojure-dev/PuV7XTps9vo/SkkNuiynKfUJ /Ragnar On Friday, 4 April 2014 10:44:42 UTC+1, Robin Heggelund Hansen wrote: > > Yeah, those were the blog posts I’ve read, but I can’t see that this is > actually being worked on for Cl

Re: REPL: viewing data structures containing infinite lists

2014-04-02 Thread Ragnar Dahlén
If you're using cider (https://github.com/clojure-emacs/cider), there's a convenience function for controlling the value of *print-length*, including giving it a default value for new nrepl instances: https://github.com/clojure-emacs/cider#limiting-printed-output-in-the-repl /Ragnar On Tuesday

Re: Any libraries for creating Powerpoint and Excel files

2014-01-15 Thread Ragnar Dahlén
Hi Colin, For Excel, there's docjure (https://github.com/ative/docjure) which provides a quite nice interface to Apache POIs (http://poi.apache.org/) Excel capabilities. Apache POI also has support for Power Point, but I don't know to what extent. Ragnar On Wednesday, 15 January 2014 09:08

Re: Big Excel (xlsx) file parsing (docjure, incanter...)

2013-12-11 Thread Ragnar Dahlén
Have you tried increasing the heap size of your JVM using the -Xmx and -Xms options? We're loading some spreadsheets that are 80M in size and have to run with a ~1.5G heap to handle this... On Saturday, 7 September 2013 02:22:27 UTC+1, Stanislav Sobolev wrote: > > Hello guys. I have excel file

[ANN] hamelito - bringing haml to enlive

2013-04-26 Thread Ragnar Dahlén
Hello, I'd like to announce the availability of hamelito, a clojure library allowing you to use a subset of haml (http://www.haml.info) with enlive (http://github.com/cgrand/enlive). The source code is available under the EPL and is hosted at: http://github.com/ragnard/hamelito Artifacts are pub

Re: Surprising behaviour related to records, protocols and AOT

2013-04-18 Thread Ragnar Dahlén
Thank you for your explanation. I also suspect there is some subtle issue with the class file being used by the different constructors. However, I would be surprised if this behaviour is intended, and that the 'hackery' you proposed is the only, and prefered way of solving this. To better illust

Re: Surprising behaviour related to records, protocols and AOT

2013-04-17 Thread Ragnar Dahlén
Changing 3) to also import the record class: (ns defrecordissue.aot1 (:require [defrecordissue.aprotocol] [defrecordissue.arecord]) (:import [defrecordissue.arecord ARecord])) makes no difference. Compilation still fails with the same exception. This is obviously

Surprising behaviour related to records, protocols and AOT

2013-04-16 Thread Ragnar Dahlén
Hi, Today I encountered a, to me, slightly surprising behaviour seemingly related clojure records. The setup is as follows: 1. One namespace defines a record type: (ns defrecordissue.arecord) (defrecord ARecord []) 2. Another namespace defines a protocol, and extends it to the recor

Re: [ANN] Kern 0.5.0 -- A text-parsing library

2013-02-07 Thread Ragnar Dahlén
Hi Armando, Thank you for your great work with this library! I don't have much previous experience with parser combinators, but with your implementation, and the wonderful documentation, I've had a lot of fun playing and learning. I've been hacking on a small project for implementing a subset o

Re: [ANN] clj-squash 0.1.0

2013-01-22 Thread Ragnar Dahlén
soon. > > Cheers, > Jeroen > > > On Sat, Jan 19, 2013 at 7:02 PM, Ragnar Dahlén > > wrote: > >> Hi, >> >> I did some work to enable Clojure applications to use Squash, an >> exception reporting and bug analysis tool recently released by Square (se

[ANN] clj-squash 0.1.0

2013-01-19 Thread Ragnar Dahlén
0.1.0 release in the hope that others might find it useful. A release has been pushed to Clojars, and the code is available at: https://github.com/ragnard/clj-squash Feedback and/or contributions are most welcome and appreciated. Best regards, Ragnar Dahlén -- You received this message because

New library 'redis-clojure': Feedback and questions

2009-06-05 Thread Ragnar Dahlén
ing__5572__auto1.invoke(redis.clj:3) at redis__init.load(Unknown Source) at redis__init.(Unknown Source) If I only package the clj files (not class files), it works. This is what build.xml currently does. Best regards, Ragnar Dahlén --~--~-~--~~~---~--~