Re: Clojure.org: Concurrency screencast 404

2013-12-26 Thread abhi
That's the one I was looking for. Thanks! Is there a place I can file this as an issue so that the website points to the right one? On Tue, Dec 17, 2013 at 1:48 AM, Alex Miller a...@puredanger.com wrote: blip.tv killed the Clojure account. Many of the videos were moved to YouTube under the

Re: [ANN] Reagi 0.7.0 with ClojureScript support

2013-12-26 Thread James Reeves
Reagi's event streams are not dissimilar to Clojure's seqs, in that while their content may come from a side-effectful source, seqs and streams themselves are immutable. It therefore doesn't make a lot of sense to add an protocol for back-door mutation - in fact, excluding this was a deliberate

Re: Is Clojure right for me?

2013-12-26 Thread James Reeves
What sort of web development were you planning to do? - James On 25 December 2013 21:06, Massimiliano Tomassoli kiuhn...@gmail.comwrote: Hi, I'm not sure if Clojure is the right language for me. I'd like to use Clojure mainly for web development but I don't know if it's already mature

Re: Is Clojure right for me?

2013-12-26 Thread Alex Baranosky
I'm still partial to Ring. On Thu, Dec 26, 2013 at 2:16 AM, James Reeves ja...@booleanknot.com wrote: What sort of web development were you planning to do? - James On 25 December 2013 21:06, Massimiliano Tomassoli kiuhn...@gmail.comwrote: Hi, I'm not sure if Clojure is the right

Re: [ANN] Reagi 0.7.0 with ClojureScript support

2013-12-26 Thread Ruslan Prokopchuk
It was my fault to start discussion in two places, sorry for duplication. So, I suppose event buses is one of use cases for reagi's event streams. If I want to pass all data inside application through reagi/events and hold its state in them then ability to plug/unplug existing streams looks

Re: [ANN] Reagi 0.7.0 with ClojureScript support

2013-12-26 Thread James Reeves
Let's reduce duplication and discuss this issue solely on Github (for reference, https://github.com/weavejester/reagi/pull/3). I suspect there's another way of solving this, but I'll need to know more about the problem you have. - James On 26 December 2013 11:24, Ruslan Prokopchuk

Re: How do I serve clojure pages with nginx

2013-12-26 Thread Malcolm Sparks
Here's an article I wrote that takes you through the full process of running nginx and and a Clojure web app. https://juxt.pro/articles/manual-clojure-deployment.html On Tuesday, December 17, 2013 12:44:34 PM UTC, Zeynel wrote: I've set up a home server with ubuntu and nginx and I can serve

Re: Is Clojure right for me?

2013-12-26 Thread James Reeves
On 26 December 2013 12:24, Massimiliano Tomassoli kiuhn...@gmail.comwrote: On Thursday, December 26, 2013 11:16:07 AM UTC+1, James Reeves wrote: What sort of web development were you planning to do? I'd like to build websites. What kind depends on what my clients need. My recent Clojure

Re: Is Clojure right for me?

2013-12-26 Thread Malcolm Sparks
Hi Massimiliano. The absence of a well-established framework for web development in Clojure is not a sign of its immaturity (rather the opposite). Web frameworks can give you some increased productivity to begin with, but as soon as you need to do something that isn't naturally supported by

Re: How do I serve clojure pages with nginx

2013-12-26 Thread Justin Smith
java -jar is fine in production. Jetty, Tomcat, or Immutant will offer some conveniences but are not necessary. What is needed (for security reasons) is an nginx proxy. On Wednesday, December 25, 2013 3:42:00 AM UTC-8, Zeynel wrote: Ok, I worked through the tutorial referenced

Re: [ANN] Clojure.Joda-Time 0.1.0

2013-12-26 Thread Mikera
Thanks for sharing! It looks good, though can you explain the rationale for having a separate library? It seems from my perspective as if the objective of exposing all the good Joda functionality for Clojure consumption would be more readily achieved by extending the existing clj-time library.

Re: Good resources on dataflow based programming

2013-12-26 Thread Daniel Kersten
*Given an infinite number of cores, the time to process a set of dataflow functions is equivalent to the the time that the longest function took to do its processing.* It sounds like you've just discovered Amdahls Law :-D https://en.wikipedia.org/wiki/Amdahl%27s_law As for the articles, the

Re: Is Clojure right for me?

2013-12-26 Thread Massimiliano Tomassoli
Thank you, Malcolm. I'm completely new to LISP and its dialects and I'm a little bit worried about the absence of support for OOP in Clojure. How do you decompose large systems in Clojure? On Thursday, December 26, 2013 2:52:26 PM UTC+1, Malcolm Sparks wrote: Hi Massimiliano. The absence of

Re: Is Clojure right for me?

2013-12-26 Thread Massimiliano Tomassoli
On Thursday, December 26, 2013 11:16:07 AM UTC+1, James Reeves wrote: What sort of web development were you planning to do? I'd like to build websites. What kind depends on what my clients need. -- -- You received this message because you are subscribed to the Google Groups Clojure group.

Re: Is Clojure right for me?

2013-12-26 Thread Massimiliano Tomassoli
On Thursday, December 26, 2013 7:55:05 AM UTC+1, Devin Walters (devn) wrote: http://hoplon.io/#/home/ http://caribou.github.io/caribou/docs/outline.html On Thursday, December 26, 2013 at 12:26 AM, tao wrote: http://pedestal.io/ http://www.luminusweb.net/ Why so many frameworks? It's

Re: Is Clojure right for me?

2013-12-26 Thread tao
Yes, I feel framework is a patch to a language. Use framework can do some thing productively, but also limit you do some thing poorly. Prefer Libraries to Frameworks http://blog.getprismatic.com/blog/2012/4/5/software-engineering-at-prismatic.html -- tao Sent with Sparrow

Re: [ANN] Clojure.Joda-Time 0.1.0

2013-12-26 Thread Ghadi Shayban
I think your usage of simple check is interesting. What bugs did simple-check find inside Joda and can you speak about that process in general? On Wednesday, December 25, 2013 6:19:18 AM UTC-5, dm3 wrote: Hello, I would like to announce the first release of

Re: Is Clojure right for me?

2013-12-26 Thread James Reeves
On 26 December 2013 16:32, Massimiliano Tomassoli kiuhn...@gmail.comwrote: Thank you, Malcolm. I'm completely new to LISP and its dialects and I'm a little bit worried about the absence of support for OOP in Clojure. How do you decompose large systems in Clojure? You write functions. To

Re: Is Clojure right for me?

2013-12-26 Thread Massimiliano Tomassoli
On Thursday, December 26, 2013 7:51:39 PM UTC+1, James Reeves wrote: On 26 December 2013 16:32, Massimiliano Tomassoli kiuh...@gmail.comjavascript: wrote: Thank you, Malcolm. I'm completely new to LISP and its dialects and I'm a little bit worried about the absence of support for OOP in

Re: Is Clojure right for me?

2013-12-26 Thread Dennis Haupt
exactly which part of OOP is missing in clojure that you would like to use? if you took my java code and ported it to clojure, the main difference would be (a b) instead of b.a , but the main design would be similar 2013/12/26 Massimiliano Tomassoli kiuhn...@gmail.com On Thursday, December 26,

Re: Clojure.org: Concurrency screencast 404

2013-12-26 Thread Alex Miller
Which page had the link? -- -- 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 patient with your first post. To unsubscribe from

Re: Is Clojure right for me?

2013-12-26 Thread Jeff Heon
On Thursday, December 26, 2013 11:32:51 AM UTC-5, Massimiliano Tomassoli wrote: Thank you, Malcolm. I'm completely new to LISP and its dialects and I'm a little bit worried about the absence of support for OOP in Clojure. How do you decompose large systems in Clojure? This presentation

Re: Is Clojure right for me?

2013-12-26 Thread Luc Prefontaine
Agree, classes are not simple structures, they carry internal mutable state and hidden behaviours. Compounding mutable objects creates a huge brittled context were system state at any given point in time is untraceable by a normal human brain except in simplistic systems. Now you could create

Re: Is Clojure right for me?

2013-12-26 Thread Massimiliano Tomassoli
On Thursday, December 26, 2013 9:01:56 PM UTC+1, HamsterofDeath wrote: exactly which part of OOP is missing in clojure that you would like to use? if you took my java code and ported it to clojure, the main difference would be (a b) instead of b.a , but the main design would be similar How

Re: Is Clojure right for me?

2013-12-26 Thread Gary Trakhman
Encapsulation: a) I don't miss it. b) Functions/private-namespaces/maps/deftypes can serve this purpose. Inheritance: Clojure provides ad-hoc hierarchies, which give you the desired tree structure of a type-hierarchy, but it is decoupled from implementation details. You can inherit

Re: Is Clojure right for me?

2013-12-26 Thread James Reeves
On 26 December 2013 19:53, Massimiliano Tomassoli kiuhn...@gmail.comwrote: Why implicit? Objects communicate through well-defined channels. OOP can certainly be misused but it served me well for over 20 years (C++/C#). And Scala proves that FP and OOP are orthogonal paradigms. I can't see how

Re: [ANN] Clojure.Joda-Time 0.1.0

2013-12-26 Thread dm3
It looks good, though can you explain the rationale for having a separate library? It seems from my perspective as if the objective of exposing all the good Joda functionality for Clojure consumption would be more readily achieved by extending the existing clj-time library. I chose to

Re: Is Clojure right for me?

2013-12-26 Thread Massimiliano Tomassoli
On Thursday, December 26, 2013 9:18:06 PM UTC+1, Luc wrote: Now you could create un mutable objects but then why bother creating classes with hidden behaviours if there is no hidden state ? The state is still hidden. Even if the state is immutable: 1) other code could access it and,

Re: Is Clojure right for me?

2013-12-26 Thread Softaddicts
a) encapsulation of unmutable state ? What for ? b) inheritance ? see a) c) polymorphism ? Multimethods (which are more flexible) or protocols Nice words but not much else. Comparing C versus C++ is fair but this comparison does not relate at all to Clojure, it's like answering blue to the

Re: Is Clojure right for me?

2013-12-26 Thread James Reeves
On 26 Dec 2013 21:04, Softaddicts lprefonta...@softaddicts.ca wrote: a) encapsulation of unmutable state ? What for ? b) inheritance ? see a) c) polymorphism ? Multimethods (which are more flexible) or protocols Nice words but not much else. Comparing C versus C++ is fair but this

Re: Is Clojure right for me?

2013-12-26 Thread Gary Trakhman
If I were to implement something (complex enough) in C and C++ the differences between my implementations would be far from superficial. Those are both inexpressive in different ways. In my opinion java is closer to lisp than C++, given garbage collection, closures (even faked by objects),

Re: Is Clojure right for me?

2013-12-26 Thread Softaddicts
Ok I'll drop the subject. Still cannot understand why people cannot try something new w/o sticking to the stuff they know already until they are totally immersed in the new thing. And by that I mean use the new thing as it was intended. Then you can generate useful conclusions and get some

Re: How to go about 'proving' why dynamically typed languages are better.

2013-12-26 Thread Cedric Greevey
On Tue, Dec 24, 2013 at 12:23 PM, Rich Morin r...@cfcl.com wrote: On Dec 24, 2013, at 02:09, Cedric Greevey wrote: On Mon, Dec 23, 2013 at 7:37 PM, Rich Morin r...@cfcl.com wrote: Media for Thinking the Unthinkable: Designing a new medium for science and engineering

Re: get rid of reflection in proxy-super?

2013-12-26 Thread Cedric Greevey
I'd suggest instead amending the core language to add a special form, maybe named .!, that works like . except it sees protected methods (and will cause an IllegalAccessError if it calls a protected method from outside of a subclass), and amend proxy to use .! for proxy-super (and put the

Re: Is Clojure right for me?

2013-12-26 Thread john walker
clojurekoans.com uses Joodo. https://github.com/slagyr/joodo What are some other cool sites powered by Clojure? On Wednesday, December 25, 2013 4:06:20 PM UTC-5, Massimiliano Tomassoli wrote: Hi, I'm not sure if Clojure is the right language for me. I'd like to use Clojure mainly for web

Re: Is Clojure right for me?

2013-12-26 Thread Alex Baranosky
http://preview.getprismatic.com/news/home On Thu, Dec 26, 2013 at 2:42 PM, john walker john.lou.wal...@gmail.comwrote: clojurekoans.com uses Joodo. https://github.com/slagyr/joodo What are some other cool sites powered by Clojure? On Wednesday, December 25, 2013 4:06:20 PM UTC-5,

Re: get rid of reflection in proxy-super?

2013-12-26 Thread Colin Fleming
The problem is that your approach requires creating the proxy class with the method bodies actually compiled into the body of the proxy class method, they can't be in fns in a proxy map as they are now. This is ok in the case where a method body is just the proxy-super call, but most aren't - they

Re: Is Clojure right for me?

2013-12-26 Thread Alexander Hudek
You can define vars to be private to a namespace in clojure, thus preventing (1). In practice, I've found that (2) never comes up. Ultimately, you won't truly appreciate what is being said in this conversation without giving it a chance and trying it out. On Thursday, December 26, 2013

Re: Is Clojure right for me?

2013-12-26 Thread Massimiliano Tomassoli
On Thursday, December 26, 2013 10:26:11 PM UTC+1, Gary Trakhman wrote: If I were to implement something (complex enough) in C and C++ the differences between my implementations would be far from superficial. Those are both inexpressive in different ways. In my opinion java is closer to

Re: Is Clojure right for me?

2013-12-26 Thread Massimiliano Tomassoli
On Thursday, December 26, 2013 11:04:00 PM UTC+1, Luc wrote: Ok I'll drop the subject. Still cannot understand why people cannot try something new w/o sticking to the stuff they know already until they are totally immersed in the new thing. And by that I mean use the new thing as it was

Re: Is Clojure right for me?

2013-12-26 Thread Massimiliano Tomassoli
On Thursday, December 26, 2013 10:04:21 PM UTC+1, Luc wrote: a) encapsulation of unmutable state ? What for ? b) inheritance ? see a) c) polymorphism ? Multimethods (which are more flexible) or protocols Nice words but not much else. Comparing C versus C++ is fair but this comparison

Re: Is Clojure right for me?

2013-12-26 Thread James Reeves
On 27 December 2013 00:16, Massimiliano Tomassoli kiuhn...@gmail.comwrote: On Thursday, December 26, 2013 11:04:00 PM UTC+1, Luc wrote: Ok I'll drop the subject. Still cannot understand why people cannot try something new w/o sticking to the stuff they know already until they are totally

Re: Is Clojure right for me?

2013-12-26 Thread Massimiliano Tomassoli
On Thursday, December 26, 2013 10:00:46 PM UTC+1, James Reeves wrote: On 26 December 2013 19:53, Massimiliano Tomassoli kiuh...@gmail.comjavascript: wrote: Why implicit? Objects communicate through well-defined channels. OOP can certainly be misused but it served me well for over 20

Re: Clojure can't import some Java classes

2013-12-26 Thread Colin Fleming
In case anyone is interested in a workaround for this, I managed to fix my compilation by stubbing out the problematic classes and putting the stubs ahead of the real classes in the classpath when I compile. Where those stubs return other objects that are required during static initialisation, I

Re: Is Clojure right for me?

2013-12-26 Thread Luc Prefontaine
This depends strictly on your learning speed which I will not comment here :) It took me three months full time to start to feel at ease with Clojure writing production code and I was around 45 years old at the time. Learning is never inefficient... when you want to learn. Luc P On

Re: Is Clojure right for me?

2013-12-26 Thread Mark Engelberg
I do like the way Clojure steers you away from all sorts of unnecessary OO-nonsense, and provides most of the raw capabilities of OO in other forms. However, even if you avoid mutable state, inheritance, and polymorphism, Classes/objects make great namespaces, and Clojure's namespaces can't do

Re: Is Clojure right for me?

2013-12-26 Thread Stuart Halloway
Hi Mark, I am not following your example. Can you post (pseudocode fine) what a good OO impl would look like, and why Clojure's defrecords can't do something similar? Stu On Thu, Dec 26, 2013 at 9:08 PM, Mark Engelberg mark.engelb...@gmail.comwrote: I do like the way Clojure steers you

Re: Is Clojure right for me?

2013-12-26 Thread Mark Engelberg
Does this OO pseudocode help clarify at all? https://gist.github.com/Engelberg/8142000 On Thu, Dec 26, 2013 at 6:27 PM, Stuart Halloway stuart.hallo...@gmail.comwrote: Hi Mark, I am not following your example. Can you post (pseudocode fine) what a good OO impl would look like, and why

Re: Is Clojure right for me?

2013-12-26 Thread Mark Engelberg
One reason it might not be clear what I'm driving it is that in trying to create a minimalist example, I used grid dimensions, and in reality, you'd probably know right away to put something like that in a data structure, and pass it around to all your functions. Try to imagine that at the

Re: Is Clojure right for me?

2013-12-26 Thread Steven D. Arnold
On Dec 26, 2013, at 9:32 AM, Massimiliano Tomassoli kiuhn...@gmail.com wrote: Thank you, Malcolm. I'm completely new to LISP and its dialects and I'm a little bit worried about the absence of support for OOP in Clojure. How do you decompose large systems in Clojure? That seems like a very

Re: get rid of reflection in proxy-super?

2013-12-26 Thread Cedric Greevey
On Thu, Dec 26, 2013 at 6:57 PM, Colin Fleming colin.mailingl...@gmail.comwrote: The problem is that your approach requires creating the proxy class with the method bodies actually compiled into the body of the proxy class method, they can't be in fns in a proxy map as they are now. This is ok

Re: Is Clojure right for me?

2013-12-26 Thread Sean Corfield
On Thu, Dec 26, 2013 at 8:32 AM, Massimiliano Tomassoli kiuhn...@gmail.com wrote: Thank you, Malcolm. I'm completely new to LISP and its dialects and I'm a little bit worried about the absence of support for OOP in Clojure. I'm a little late to this thread (it's been one of those days!) but

Re: get rid of reflection in proxy-super?

2013-12-26 Thread Colin Fleming
I see. The problem is that you can't tell in advance which methods might be called with proxy-super, so you'd have to generate proxy-super methods for all non-public superclass methods. It's an interesting idea. I suspect it's a fairly tricky change since you'd have to change the method resolution