Re: Embedded systems and transpiling Clojure to Nim

2015-05-02 Thread Kimmo Koskinen
Hi, Wanted to mention two more languages, that might be interesting: Hy: http://docs.hylang.org/en/latest/ (Lisp that targets Python's AST, has Clojure flavoured syntax) newLISP: http://www.newlisp.org/ (at least FFI seems simple: http://www.newlisp.org/newlisp_manual.html#import) - Kimmo --

Re: Embedded systems and transpiling Clojure to Nim

2015-05-02 Thread Fergal Byrne
Hi Alan, Don't be deterred - it's a great question... Some people are just having a separate conversation in the one thread ;) I think there is a threshold in your domain, which gives a different answer on each side. The easy side is for something RaspberryPi or Arduino-sized (or bigger), where

Wrapping org.apache.commons.math3.complex

2015-05-02 Thread Alan Forrester
Hello I'm currently trying to wrap org.apache.commons.math3.complex http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/complex/Complex.html to make a complex number library and I have a problem. Many of the methods won't work with all Clojure number types. For example

Re: Clojure community organisation

2015-05-02 Thread Albin Stjerna
I'd really like to see some sort of indexed infrastructure for documenting and standardising common patterns and anti-patterns on various levels – think Stack Exchange, but preemptive. I think this would go a long way toward helping newcomers and spreading good practices. On 30 April 2015 at 23:31

Streaming Media East NYC Mini-Meetup 5/10

2015-05-02 Thread Nathan B
If any Clojurians will be at Streaming Media East or just local to NYC and would like to do a mini-meetup at the New York Hilton Midtown on 5/10 in the evening let me know. Would be nice to meet up and have a few drinks and talk Clojure. I can organize if there is some interest. -- You receive

Re: Wrapping org.apache.commons.math3.complex

2015-05-02 Thread Plínio Balduino
Hi Alan Excuse me if I didn't understand your question, but I think a type hint would solve. Maybe you could abstract this for the final user in Clojure. (.add (Complex. 1.0 2.0) ^double 2) On Sat, May 2, 2015 at 8:53 AM, Alan Forrester < alanmichaelforres...@googlemail.com> wrote: > Hello > >

Re: Wrapping org.apache.commons.math3.complex

2015-05-02 Thread James Reeves
You could just convert any Number into a Double: (if (number? x) (double x) x) Or create a protocol for the conversion. If you're concerned about performance, measure the result with a benchmarking library like Criterium. - James On 2 May 2015 at 12:53, Alan Forrester wrote: > Hello > > I

Clojure needs a web framework with more momentum

2015-05-02 Thread gvim
I recently did some research into web frameworks on Github. Here's what I found: FRAMEWORK LANG CONTRIBUTORS COMMITS LuminusClojure28678 CaribouClojure 2275 BeegoGolang991522 Phoenix

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Fluid Dynamics
On Saturday, May 2, 2015 at 4:43:53 PM UTC-4, g vim wrote: > > I recently did some research into web frameworks on Github. Here's what > I found: > > > FRAMEWORK LANG CONTRIBUTORS COMMITS > > LuminusClojure28678 > CaribouClojure

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread gvim
On 02/05/2015 22:06, Fluid Dynamics wrote: Those numbers aren't going to be an apples-to-apples comparison. "Contributors" may be lower for the Clojure libs because as a Lisp it enables them to be enormously more productive (up to 10x) than the other languages. The greater expressiveness allows

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Fluid Dynamics
On Saturday, May 2, 2015 at 5:12:01 PM UTC-4, g vim wrote: > > On 02/05/2015 22:06, Fluid Dynamics wrote: > > > > Those numbers aren't going to be an apples-to-apples comparison. > > "Contributors" may be lower for the Clojure libs because as a Lisp it > > enables them to be enormously more pro

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread gvim
On 02/05/2015 22:25, Fluid Dynamics wrote: Ah, but none of them are Lisps. No macros, no DSLs, and thus much less of the productivity/code-size-efficiency gains. Elixir's macros are quite Lispy under the hood and all 3 languages can arguably generate sophisticated DSLs. I'm as much a fan of

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Fluid Dynamics
On Saturday, May 2, 2015 at 5:36:45 PM UTC-4, g vim wrote: > > On 02/05/2015 22:25, Fluid Dynamics wrote: > > > > Ah, but none of them are Lisps. No macros, no DSLs, and thus much less > > of the productivity/code-size-efficiency gains. > > > > Elixir's macros are quite Lispy under the hood an

Adding components to a stuartsierra/component system at runtime

2015-05-02 Thread Chap Lovejoy
Hi, I'm building a system which handles data synchronization with remote services. The credentials and configuration parameters for the remote services are stored in the database. I'd like to be able to build a component which is constructed from the information from the database and uses comp

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Plínio Balduino
Excuse me, Fluid. I have to agree with gvim. But I have the same impression. I think the state of Clojure development for web is quite immature if you compare with other languages. To be clear, I could spend lines and lines talking about all the high quality Clojure library related to web applica

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread James Reeves
On 2 May 2015 at 21:43, gvim wrote: > One could conclude from this that the Clojure community isn't that > interested in web development but the last Clojure survey suggests > otherwise. Clojure's library composition approach to everything only goes > so far with large web applications, as Aaron

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Christopher Small
I disagree with the premise entirely. I think that the Clojure community has just done a better job of building smaller, more modular tooling. And this is frankly something I prefer, and find refreshing in the Clojure sphere (as compared with my previous Rails webdev experience). Note that to p

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread gvim
On 03/05/2015 00:39, James Reeves wrote: I agree that web development in Clojure can be improved, but I don't see why it follows that we should be writing web frameworks. Luminus is a web framework. We don't have to write web frameworks at all, that's true. Neither did the Ruby community. They

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread gvim
On 03/05/2015 00:53, Christopher Small wrote: I disagree with the premise entirely. I think that the Clojure community has just done a better job of building smaller, more modular tooling. And this is frankly something I prefer, and find refreshing in the Clojure sphere (as compared with my previ

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Luc Prefontaine
Business case... I have two business cases at hand. None can be done with frameworks w/o making the end products look like any other one in their respective space and having to bend to framework limitations. Being disruptive requires a different approach. Having to write all these individual

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Christopher Small
For rails sure. What about Elixer & Yesod? Those could be just as modular for all I know... I'm just saying that one way or the other, those things should be taken into account since they are important. OO junk leads to bloat. On Sat, May 2, 2015 at 5:15 PM, gvim wrote: > On 03/05/2015 00:53, C

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread gvim
On 03/05/2015 01:37, Luc Prefontaine wrote: Business case... I have two business cases at hand. None can be done with frameworks w/o making the end products look like any other one in their respective space and having to bend to framework limitations. Being disruptive requires a different app

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread James Reeves
On 3 May 2015 at 01:02, gvim wrote: > On 03/05/2015 00:39, James Reeves wrote: > >> >> I agree that web development in Clojure can be improved, but I don't see >> why it follows that we should be writing web frameworks. >> >> Luminus is a web framework. We don't have to write web frameworks at >

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Sean Corfield
On Sat, May 2, 2015 at 1:43 PM, gvim wrote: > One could conclude from this that the Clojure community isn't that > interested in web development but the last Clojure survey suggests > otherwise. Yes, lots of web apps get built with Clojure. > Furthermore, I have a hunch that Clojure's poor ad

Different behavior for .cljc file?

2015-05-02 Thread Brandon Bloom
Hi Clojure 1.7 folks, I'm trying to port Fipp to ClojureScript with .cljc files and feature expressions. My first step was to rename files from .clj to .cljc, but doing that broke my code. I'm not exactly sure what's wrong, but before I dig any further Is simply renaming .clj to .cljc file

Re: [ANN] Clojure 1.7.0-beta2

2015-05-02 Thread Brandon Bloom
Upgrading a couple of projects to 1.7 seems to have gone quite smoothly. Thanks! However, I've encountered some problems with new features, like .cljc files. Please see https://groups.google.com/forum/#!topic/clojure/TrYkq1lUuZw Cheers, Brandon On Friday, April 24, 2015 at 11:27:34 AM UTC-7, A

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread John Chijioke
What is a web framework? On Saturday, May 2, 2015 at 9:43:53 PM UTC+1, g vim wrote: > > I recently did some research into web frameworks on Github. Here's what > I found: > > > FRAMEWORK LANG CONTRIBUTORS COMMITS > > LuminusClojure28678 > Cari

Different behavior for .cljc file?

2015-05-02 Thread Alex Miller
There should be no ill effect from simply renaming from clj to cljc. What error are you seeing? Please also consider whether something in your tool chain is at fault. For example, if the cljc files are not getting properly packaged or included in the classpath then there may need to be changed

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Mark Engelberg
Last week, at the Clojure/West conference, someone (I think it was Brandon Bloom) summed up the general vibe well, by saying something along the lines of, "We now have all the pieces in place to make web development an order of magnitude more productive than in any other language, we just need to f

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Mike Rodriguez
Not really related. But I just want to chime in to say I love this quote from Fluid in regards to the DSL bit: "Under the hood" is a delicate way of saying "not homoiconic", whereby 90% of the benefit goes away. +1 to that! -- You received this message because you are subscribed to the Goog

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Sean Corfield
On Sat, May 2, 2015 at 8:18 PM, Mark Engelberg wrote: > Clojure is great for creating new, disruptive web models, but what's the > easiest path to creating something that can be done trivially with, say, > Drupal or Django? > The question tho' is why you'd want to use Clojure for something that

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Mark Engelberg
Because many problems start out as things that can be solved with standard solutions and then evolve into something more elaborate. Best to start with something that can both do the easy things, and handle the more complex stuff as well. On Sat, May 2, 2015 at 9:24 PM, Sean Corfield wrote: > On

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Sean Corfield
On Sat, May 2, 2015 at 10:20 PM, Mark Engelberg wrote: > Because many problems start out as things that can be solved with standard > solutions and then evolve into something more elaborate. Best to start > with something that can both do the easy things, and handle the more > complex stuff as w

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Imre Samu
>Clojure needs a web framework with more momentum Some people make a big technology decision based on " TechEmpower Framework Benchmarks (TFB)" (round10) [ https://www.techempower.com/blog/2015/04/21/framework-benchmarks-round-10/ ] Should techempower.com framework benchmarks be taken seriously ?

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Sven Richter
Hi, Reading through all the discussion I don't get which features you are actually missing. I love luminus and did a lot with it, however, for me it was missing some standard stuff, that's why I put together closp, which is just another leiningen template providing some more features out of the

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Colin Fleming
Because, in my case, I'm going to need a website shortly that I can use to sell Cursive. I'd really like to use Clojure for that. I could use Rails or Django which would make the site itself trivial, except I don't know either of them and then I'm stuck maintaining something in a language and frame

Re: Different behavior for .cljc file?

2015-05-02 Thread Brandon Bloom
Short version: Old version of the lib was on the classpath. Longer version: `lein with-profiles -user whatevertask` to disable the user profile apparently doesn't work. I was using: export CLASSPATH=$(lein with-profiles -user classpath) java clojure.main Figured I had ruled out my tools, since