Re: Luminus in Techempower benchmarks

2016-02-29 Thread Jim Crossley
e > performance. Feel free to ping me via email or on GitHub. > > > On Sunday, February 28, 2016 at 8:17:13 PM UTC-5, Jim Crossley wrote: >> >> I just tried a few experiments and realized the :dispatch? option is >> broken in the latest Immutant release. :( >> &g

Re: Luminus in Techempower benchmarks

2016-02-28 Thread Jim Crossley
that, Jim On Sunday, February 28, 2016 at 1:32:09 PM UTC-5, Jim Crossley wrote: > > Hi, > > Luminus uses Immutant, which uses Undertow, so it should be possible > to tune the Luminus app to approach the performance of the TechEmpower > Undertow app. The relevant options to i

Re: Luminus in Techempower benchmarks

2016-02-28 Thread Jim Crossley
Hi, Luminus uses Immutant, which uses Undertow, so it should be possible to tune the Luminus app to approach the performance of the TechEmpower Undertow app. The relevant options to immutant.web/run [1] are :dispatch?, :io-threads, and :worker-threads. The Undertow app sets IO threads here [2]

Re: Immutant survey

2015-04-02 Thread Jim Crossley
Here are the results: http://immutant.org/news/2015/04/02/survey-results/ Thanks! Jim On Thursday, March 12, 2015 at 12:11:27 PM UTC-4, jaju wrote: Very curious to know - how's the response been? A happy user, jaju On Fri, Mar 6, 2015 at 8:01 PM, Jim Crossley jcros...@gmail.com

Re: Immutant survey

2015-03-12 Thread Jim Crossley
curious to know - how's the response been? A happy user, jaju On Fri, Mar 6, 2015 at 8:01 PM, Jim Crossley jcrossl...@gmail.com wrote: Hi friends, If you have any opinion about Immutant [1], would you please take a few moments to fill out this short survey? http://goo.gl/forms/syYnYtpM4v

Immutant survey

2015-03-06 Thread Jim Crossley
Hi friends, If you have any opinion about Immutant [1], would you please take a few moments to fill out this short survey? http://goo.gl/forms/syYnYtpM4v We're trying to get a sense of how Immutant is being used. Thanks so much! Jim [1] http://immutant.org -- You received this message

Re: Using the Undertow AJP Linstner in Immutant2

2015-02-20 Thread Jim Crossley
Cool. Submit a PR and we'll get it merged in. Thanks! Jim On Fri, Feb 20, 2015 at 4:25 AM, Eunmin Kim telepopso...@gmail.com wrote: Hi! I added ajp? on immutant.web/run option to use the Undertow AJP Linstner in Immutant2. :) https://github.com/eunmin/immutant/tree/support_undertow_ajp

[ANN] Immutant 2.0.0-beta2

2015-02-10 Thread Jim Crossley
Hi all, We released Beta 2 of The Deuce today: http://immutant.org/news/2015/02/09/announcing-2-beta2/ We introduced some breaking changes, specifically around WebSockets, but we like the new API, as it now directly supports HTTP streams, including Server-Sent Events. See the Asynchrony

[ANN] Immutant 2.0.0-alpha1 The Deuce

2014-08-27 Thread Jim Crossley
Hey, we dropped our first Deuce today! ;-) Details here: http://immutant.org/news/2014/08/27/announcing-2-alpha1/ Immutant has evolved from an application server for Clojure to an integrated suite of Clojure libraries for web, messaging, scheduling, and caching. And though they are now

[ANN] lein-modules 0.3.1

2014-05-09 Thread Jim Crossley
I just released version 0.3.1 of lein-modules [1]. I've fixed a lot of bugs, added one feature, and slightly changed the behavior since the last time I announced a release. What is it? It's a Leiningen plugin that lets you treat a set of related projects stored in a single SCM repository as

Re: Kwargs vs explicit parameter map for APIs?

2014-04-30 Thread Jim Crossley
We used kwargs for options extensively in Immutant 1.x, and we're moving to explicit maps for Immutant 2.x, for the reasons cited above. It's not obvious to me why the bad release-sharks example on the coding standards page [1] is bad. Why should the optional config be the least variance

Re: Kwargs vs explicit parameter map for APIs?

2014-04-30 Thread Jim Crossley
, Apr 30, 2014 at 10:03 AM, Jim Crossley j...@crossleys.org wrote: We used kwargs for options extensively in Immutant 1.x, and we're moving to explicit maps for Immutant 2.x, for the reasons cited above. It's not obvious to me why the bad release-sharks example on the coding standards page [1

Re: Kwargs vs explicit parameter map for APIs?

2014-04-30 Thread Jim Crossley
Unless I'm missing something subtle, all of your points would hold if you removed the in your argument vector to turn your kwargs into an explicit map, wouldn't they? One advantage is you'd be able to (apply f [m]), but I'm not sure the :or logic would be any less troublesome. On Wed, Apr 30,

Re: Kwargs vs explicit parameter map for APIs?

2014-04-30 Thread Jim Crossley
2014 15:04, Jim Crossley j...@crossleys.org wrote: Unless I'm missing something subtle, all of your points would hold if you removed the in your argument vector to turn your kwargs into an explicit map, wouldn't they? One advantage is you'd be able to (apply f [m]), but I'm not sure

[ANN] Immutant 1.1.1 released

2014-04-08 Thread Jim Crossley
Hi all, We released version 1.1.1 today: http://immutant.org/news/2014/04/08/announcing-1-1-1/ We also released version 1.2.1 of the lein-immutant plugin: http://immutant.org/news/2014/04/08/lein-immutant-1-2-1/ Unless any bugs are reported against 1.1.1, we don't expect to release another

Re: threading operators

2014-03-21 Thread Jim Crossley
Seen this? http://blog.jayfields.com/2012/09/clojure-refactoring-from-thread-last-to.html On Friday, March 21, 2014 7:42:34 AM UTC-4, Andy Smith wrote: I have a chain of operations where i want to use a mixture of - and - (i.e. some functions expect the previous result to be fed into the

Re: Creating multi-module projects with dependencies between modules

2014-03-20 Thread Jim Crossley
a look. On Monday, March 17, 2014 10:11:15 PM UTC-5, Jim Crossley wrote: Hi Dave, Inter-module deps should be supported by lein-modules. I have plenty of them in the immutant source tree. The test-resources dir in the lein-modules source has some examples of parent/child/sibling deps

Re: Creating multi-module projects with dependencies between modules

2014-03-17 Thread Jim Crossley
Hi Dave, Inter-module deps should be supported by lein-modules. I have plenty of them in the immutant source tree. The test-resources dir in the lein-modules source has some examples of parent/child/sibling deps, but they're pretty contrived. If you can describe the structure of your projects or

[ANN] lein-modules 0.2.0

2014-02-27 Thread Jim Crossley
What is lein-modules? A leiningen plugin providing support for project aggregation, letting you define parent-child relationships between projects to achieve interdependence-based build ordering, project inheritance based on leiningen profiles, and centralized dependency management. What's in

[ANN] lein-modules 0.1.0 - multi-module support in Leiningen

2014-02-10 Thread Jim Crossley
Maven multi-module projects provide support for project aggregation, letting you define parent-child relationships among a group of projects to achieve interdependence-based build ordering, limited project inheritance, and centralized dependency management. Maven's pom.xml files are verbose,

Re: [ANN] lein-modules 0.1.0 - multi-module support in Leiningen

2014-02-10 Thread Jim Crossley
a great tool for large projects. Thank you! On Monday, February 10, 2014 9:36:13 AM UTC-5, Jim Crossley wrote: Maven multi-module projects provide support for project aggregation, letting you define parent-child relationships among a group of projects to achieve interdependence-based build

Re: [ANN] lein-modules 0.1.0 - multi-module support in Leiningen

2014-02-10 Thread Jim Crossley
the confusion of also identifying the git repo as a project. So one git repo, identified as a conceptual project, would be organized as 3 Leiningen projects, aka modules. I hope I didn't make things worse, Jim On Monday, February 10, 2014 5:31:27 PM UTC-5, Jim Crossley wrote: I've not used lein

Re: Clojure web server benchmarks

2014-01-20 Thread Jim Crossley
I just submitted a PR to include Immutant in the benchmarks, per a request from Chas on Twitter, and then I noticed Shantanu filed an issue to include Undertow, so I created a PR for it, too, since Immutant 2.x will be based on it. The tl;dr is that Immutant performs a little worse than the

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-24 Thread Jim Crossley
Prasanna, Ryan and Justin, Hi. I just got around to playing with Caribou today. Very nice! I was happy to see you including Immutant config in the application template, but you don't need it. Immutant will happily bootstrap a deployed app using the :ring options map in project.clj. As long as

Multi-arity protocol methods implemented in different maps

2013-11-08 Thread Jim Crossley
I'm guessing this is either impossible or I'm missing something obvious. Say I have this: (defprotocol X (foo [x] [x y])) For the sake of implementation inheritance, I'd like to define one of the arities in map x1: (def x1 {:foo (fn [x] x1)}) And the other arity in x2: (def x2

Re: Clojure Jruby (Ruby on Rails) Interop

2013-10-24 Thread Jim Crossley
on how to get TorqueBox and Immutant merged into a single OpenShift application, ala lein immutant overlay torquebox? Regards, On Monday, September 9, 2013 11:14:54 AM UTC-5, Jim Crossley wrote: Hi Rodrigo, I'm one of the developers of TorqueBox and Immutant. Your email prompted me to re

Re: Clojure Jruby (Ruby on Rails) Interop

2013-09-09 Thread Jim Crossley
Hi Rodrigo, I'm one of the developers of TorqueBox and Immutant. Your email prompted me to re-watch a screencast [1] I made in March showing how to use them together. I realized things have changed a little since then, so I added a few annotations to the video highlighting the differences.

[ANN] Immutant 1.0.1 released

2013-08-28 Thread Jim Crossley
Hi all, We addressed the bugs reported against 1.0.0, improved our Leiningen integration, and added some minor enhancements to our messaging and cache namespaces. I've also bumped the OpenShift Immutant cartridge version to 1.0.1. Details here: http://bit.ly/imm101 Thanks, Jim -- --

Re: [ANN] Immutant 1.0.0 released

2013-08-20 Thread Jim Crossley
the cartridge spec so I'm glad to hear an Immutant cartridge is coming. Once that cartridge is available, I'll have a play with it (I don't have time right now to do anything that isn't standard / turn key). Sean On Thu, Aug 1, 2013 at 9:48 AM, Jim Crossley j...@crossleys.orgjavascript

[ANN] Immutant 1.0.0 released

2013-08-01 Thread Jim Crossley
Today we finally released Immutant 1.0.0! Read about it here: http://bit.ly/imm100 For those unfamiliar, Immutant is an application server for Clojure. It's an integrated platform providing web, messaging, caching, scheduling, XA transactions, clustering, and daemons built on JBoss AS7 that

Re: [ANN] Immutant 1.0.0 released

2013-08-01 Thread Jim Crossley
: Excellent! I look forward to trying this! Any plans for a Clojure / Immutant cartridge for OpenShift? Sean On Wed, Jul 31, 2013 at 1:49 PM, Jim Crossley jcrossl...@gmail.com wrote: Today we finally released Immutant 1.0.0! Read about it here: http://bit.ly/imm100 For those unfamiliar

[ANN] Immutant is now officially in beta!

2013-05-29 Thread Jim Crossley
We released Immutant 1.0.0.beta1 today! We're pretty excited about this milestone because we've been yapping about doing it for a few months now. So, finally... yay! :) Read all about it here: http://bit.ly/immutant1b1 We released 1.0.0.beta1 of the lein-immutant plugin, too:

[ANN] Immutant 0.10.0 released

2013-04-26 Thread Jim Crossley
Well, we had hoped to begin our 1.0 beta cycle with this release, but we decided we changed enough stuff that we wanted to put out one more alpha first, mainly because we think it's wrong to introduce any API changes with the first beta. The details of what we changed are here:

[ANN] Immutant 0.9.0 released

2013-02-28 Thread Jim Crossley
Hi all, We released Immutant 0.9.0 a few minutes ago, which features a much smaller distribution size, sharing caches with TorqueBox, a friendlier API for scheduling recurring jobs, and more stuff described here: http://bit.ly/immutant090 Toby and I will be at Clojure/West, I think doing an

[ANN] Immutant 0.8.0 released

2013-01-14 Thread Jim Crossley
We released Immutant 0.8.0 today, which includes our new Pipelines library, persistent caches, and some minor features relating to web apps and testing. We didn't break any API's from 0.7.0, so hey, progress! More details at http://immutant.org/news/2013/01/14/announcing-0-8-0/ # What is

Re: Slime and heroku setup question

2012-12-12 Thread Jim Crossley
FWIW, direct socket access via an ssh tunnel is allowed on OpenShift, so connecting to the remote REPL (either nREPL or Swank) is simple and requires no HTTP transport, but all of Phil's general advice regarding the remote disk applies there, too. For an example, see

[ANN] Immutant 0.7.0 released

2012-12-06 Thread Jim Crossley
We released Immutant 0.7.0 today, along with 0.14.0 of the lein-immutant plugin. It's mostly bug fixes and docs, but a couple of changes may break you: * We did away with the immutant.clj initialization file. Instead, we look on the classpath for an 'immutant.init' namespace. * We now

Re: ANN: cronj - task scheduling

2012-10-08 Thread Jim Crossley
Hi, Cool lib, but one minor correction: quartzite is backed by Quartz, which features a number of different scheduling mechanisms, including a unix-like CronExpression, but it's not a traditional crontab spec. In particular, it has an additional seconds field and a pretty handy increment

Re: Clojure web framework

2012-10-02 Thread Jim Crossley
Hi Simone, Simone Mosciatti mweb@gmail.com writes: Immutant ( http://immutant.org/ ) IMO is moving in a great direction, if I have understand is wrapping several libraries in just one enviroment... Since you brought it up, I'd like to clarify terminology a bit in case anyone thinks

[ANN] Immutant 0.4.0 released

2012-09-25 Thread Jim Crossley
Trying to stick to a bi-monthly release cycle, we announced version 0.4.0 today: http://bit.ly/immutant040 In a nutshell, Immutant is an application server for Clojure. It's an integrated platform built on JBoss AS7 that aims to reduce the inherent accidental complexity in real world

Re: Immutant 0.3.0 released

2012-09-17 Thread Jim Crossley
Hi Ali, Ali M tclwarr...@gmail.com writes: Can you please elaborate more on this line ... maybe give examples On Wednesday, September 12, 2012 3:45:56 AM UTC+2, Jim Crossley wrote: For certain applications, I would recommend using libraries to access external processes like Memcached

[ANN] Immutant 0.3.0 released

2012-09-11 Thread Jim Crossley
We released our third official version of Immutant today! With this release we now publish the Immutant namespaces to Clojars. They are of limited use when run outside of Immutant, of course, but they'll at least compile so you can mock/stub/redefine them in your unit tests. You can render

Re: Immutant 0.3.0 released

2012-09-11 Thread Jim Crossley
using a particular library(e.g. HornetQ) with JBoss AS7 and using the same one without JBoss AS7? Cheers, - Takahiro On Sep 12, 4:30 am, Jim Crossley jcrossl...@gmail.com wrote: We released our third official version of Immutant today! With this release we now publish the Immutant

[ANN] Immutant 0.2.0 released

2012-07-05 Thread Jim Crossley
We released our second version of Immutant today. Read all about it here: http://bit.ly/immutant020 For those unfamiliar with Immutant, here are the high points: - Simple functions with side effects triggering JBoss AS7 services - Very dynamic, no XML or YAML config, just Clojure -

Re: Distributed transactions

2012-06-26 Thread Jim Crossley
Well, it took a little longer than I thought it would, but we announced support for XA on Immutant today: http://immutant.org/news/2012/06/26/transactions/ Enjoy! Jim On Saturday, December 31, 2011 7:59:27 PM UTC-5, Jim Crossley wrote: On Dec 31, 7:33 pm, Stuart Halloway stuart.hallo

[ANN] Immutant 0.1.0 released

2012-03-14 Thread Jim Crossley
Howdy all, Just in time for my Clojure/West talk, we're happy to have published our first official release of Immutant, the Clojure app server built on JBoss AS7. Read all about it here: http://bit.ly/immutant010 Thanks, Jim -- You received this message because you are subscribed to the

Re: [ANN] mcache 0.2.0 released

2012-02-29 Thread Jim Crossley
Hi Dave, This is awesome! :) DHM davidhmar...@gmail.com writes: [...] Thanks to Jim Crossly for the suggestion to look into CacheProtocol. Also, Jim, I hope you don't mind that I borrowed your naming scheme for the put functions. :-) Not at all. I love that within a coupla weeks we've

Re: mcache 0.1.0 released

2012-02-21 Thread Jim Crossley
DHM davidhmar...@gmail.com writes: I want to announce the release of mcache 0.1.0: https://github.com/davidhmartin/mcache Very nice. One thing you might consider is implementing core.cache/CacheProtocol [1] in terms of mcache. I've done this [2] for the Infinispan data grid in Immutant. It'd

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Jim Crossley
Tassilo Horn tass...@member.fsf.org writes: [...] I operate maven thru leiningen only, but probably I should get some understanding of maven, too. Right now, I even cannot determine the maven command for fetching deps (after generating a maven pom.xml using lein pom). ;-) mvn install

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Jim Crossley
Tassilo Horn tass...@member.fsf.org writes: [...] Ah, ok, seems to work. Except that it doesn't copy the deps into my project but only to ~/.m2/, but that's probably the maven way. Correct. Though this plugin may be of interest:

Re: How to deal with parameters unused by intermediate functions?

2011-12-03 Thread Jim Crossley
I like that a lot, Stuart, thanks! Named params are a bonus, too: Before I wasn't sure which was on top: (overlay x y pred) Now it's more clear: (overlay :on x :with y :using pred) Thanks again! Jim On Sat, Dec 3, 2011 at 1:03 PM, Stuart Sierra the.stuart.sie...@gmail.comwrote: Map

Re: How to deal with parameters unused by intermediate functions?

2011-12-03 Thread Jim Crossley
to foo's params. Checkout (letfn): http://clojuredocs.org/clojure_core/1.2.0/clojure.core/letfn On Dec 2, 7:34 pm, Jim Crossley j...@crossleys.org wrote: Hi, I have a public function foo that uses two private functions bar and baz. So foo calls bar which calls baz. Two of the parameters

How to deal with parameters unused by intermediate functions?

2011-12-02 Thread Jim Crossley
Hi, I have a public function foo that uses two private functions bar and baz. So foo calls bar which calls baz. Two of the parameters passed to foo aren't used by bar, only baz. Though the segregation of behavior across foo, bar, and baz makes sense for my program, I feel dirty making the params

Re: http://immutant.org/

2011-11-22 Thread Jim Crossley
Hi Owen, I'm one of the devs of TorqueBox and Immutant. We're trying to get the first 2.0 release of TorqueBox out this month, so that's taking up a good chunk of focus, but we're actively hacking on Immutant as well. At this point, we have web (ring), messaging, and daemons mostly working, but

Re: scheme to clojure translation

2011-11-08 Thread Jim Crossley
Hi Aquahappy joshua.ay...@gmail.com writes: [...] 1: (define (compose f g) (lambda (x) (f (g x 2: (define (twice f) (compose f f)) 3: (define fourth (twice sq)) 4: (fourth 3) I've gotten this far and then I get stuck when I try to do line 2 from the above: 1: (defn compose [f