On Fri, Sep 10, 2010 at 1:08 AM, Alan wrote:
> I'm not 100% sure what you're asking, but I think I understand you,
> and in that case you can refer to
> http://groups.google.com/group/clojure/browse_thread/thread/9c7f726709e24c12/b2e2696b70d924f2?show_docid=b2e2696b70d924f2,
> in which I ask this
On Fri, Sep 10, 2010 at 12:09 AM, Stuart Sierra
wrote:
> Do we need a direct link to the JAR on the download page? That's easy
> enough.
I think the easier the better for its adoption. If a single user has
asked for it, I'd add it (even though others might consider what's
available already as e
On 10 Sep 2010, at 03:11, joshua-choi wrote:
And here is a full macro-expansion of the call at which the error
happens:
http://gist.github.com/572879
If I understand the comment ("the following form is the culprit...")
correctly, it's not the macroexpansion that fails, but the evaluation
On Fri, 10 Sep 2010 01:08:06 -0400
John Newman wrote:
> (use '[clojure.contrib.server-socket :only (create-server)]
>'[clojure.contrib.duck-streams :only (read-lines)])
> (create-server 8080
> (fn [in out] (when-not (empty? (read-lines in)) (spit out "Hello,
> World!\n"
>
> 4/0/0
user> (bean (java.io.File. "tmp.txt"))
{:path "tmp.txt", :parent nil, :hidden false, :parentFile
nil, :canonicalFile #, :freeSpace 0, :absoluteFile #, :class java.io.File, :name "tmp.txt", :absolutePath
"/home/akm/src/clojure/ddsolve/tmp.txt", :directory
false, :usableSpace 0, :canonicalPath "/home
Hi,
On 10 Sep., 03:11, joshua-choi wrote:
> I am running into a problem sometimes when I call a certain macro I
> defined. This problem macro (and an associated problem function) is:
>
> http://gist.github.com/572875
>
> I run into this error (which is at a call to the macro, but *not* at
> the
Hi Phil,
I upgraded to 1.3.1 but started to experience some problems with
my our-classe-only hook. I made it return 0 since 1.3.1 expects a numeric
return code from the compile task but then ended up with other problems
in the jar task.
I want to revert to 1.3.0 for a few days. Any idea about th
On Thu, Sep 9, 2010 at 10:04 PM, Isaac Gouy wrote:
> Is there any point speculating about this as outsiders?
>
> It was available - Data.HashTable seems to be copyright 2003.
>
> http://ogi.altocumulus.org/~hallgren/Programatica/tools/pfe.cgi?Data.HashTable
Huh ? point ? it was just a casual comm
(use '[clojure.contrib.server-socket :only (create-server)]
'[clojure.contrib.duck-streams :only (read-lines)])
(create-server 8080
(fn [in out] (when-not (empty? (read-lines in)) (spit out "Hello,
World!\n"
4/0/0
John
On Thu, Sep 9, 2010 at 9:21 PM, Matt wrote:
>> You cannot deplo
On Sep 9, 7:19 pm, gary ng wrote:
> On Thu, Sep 9, 2010 at 7:02 PM, Isaac Gouy wrote:
> > iirc the Haskell programs, and the Clean programs, and the Pascal
> > programs, and ... use translations of the simple hash table used by
> > the C programs.
>
> > If I ever knew, I don't recall why the Ha
On Thu, Sep 9, 2010 at 5:25 AM, Andrew Gwozdziewycz wrote:
>>> Interesting. I don't see any real difference between macros and C
>>> preprocessor stuff and C++ templates at a conceptual level. I think
> Of course the real difference is that in Lisp macros you are working
> directly on the AST, whe
On Thu, Sep 9, 2010 at 7:02 PM, Isaac Gouy wrote:
> iirc the Haskell programs, and the Clean programs, and the Pascal
> programs, and ... use translations of the simple hash table used by
> the C programs.
>
> If I ever knew, I don't recall why the Haskell program does not use
> Data.HashTable
>
C
On Sep 9, 6:06 pm, gary ng wrote:
> On Thu, Sep 2, 2010 at 6:07 PM, John Fingerhut
> wrote:
> > Some of the Haskell submissions are quite long for what they do. The
> > k-nucleotide one, for example, implements a mutable hash table using
> > features in Haskell that I had never seen before lo
> You cannot deploy a .clj script on a running Tomcat (yet).
In the unstable 0.8 version of Conjure, you can create a war file by
simply adding leiningen-war to your dev-dependencies and running "lein
uberwar". You can then simply drop the war file into a Tomcat server.
The web.xml file is already
alux wrote ..
> Interesting discussion!
>
> I think about taking some of the topics into separate threads. Will
> see, I'm a bit under project pressure. Wont tell you the language ;(
>
> But, @Luc
> "pushing the advantage of Lisp
> macros to the forefront is not obvious if the audience cannot c
I am running into a problem sometimes when I call a certain macro I
defined. This problem macro (and an associated problem function) is:
http://gist.github.com/572875
I run into this error (which is at a call to the macro, but *not* at
the *first* time it's called for some reason!):
http://gist.
On Thu, Sep 2, 2010 at 6:07 PM, John Fingerhut wrote:
> Some of the Haskell submissions are quite long for what they do. The
> k-nucleotide one, for example, implements a mutable hash table using
> features in Haskell that I had never seen before looking at that program.
> Did they need to write
On Sep 9, 2010, at 7:06 PM, Luke Renn wrote:
> I'm sure many here would disagree with me, but I would not recommend
> Clojure for a college level Lisp course just yet. I would probably
> recommend Racket or Dr. Scheme.
>
I've taught with Dr. Scheme but I like Clojure a lot better than Scheme!
i don't know if this has been said as such, but:
a) there's an inflection / transition point from "simple things" to
"complex things".
b) some systems are in the simple world, but when you get complex they
restrict you or fall apart (rails?).
vs.
other systems are fine in the large, but suck for
On Sep 9, 2010, at 6:36 PM, David Nolen wrote:
>
> I started using Processing since version 22 (around 2003/4). Let's just
> say... that it takes a lot of time and external contribution to reach the
> level of documentation, stability and cross platform reliability that
> Processing now has.
On Thu, 9 Sep 2010 16:06:54 -0700 (PDT)
Luke Renn wrote:
> That was kind of my point. I would expect these kinds of questions,
> examples, and objections from someone looking at Clojure/Ring to teach
> with, not necessarily someone who want to deploy highly scalable web
> applications.
I'm curio
On Thu, 9 Sep 2010 14:20:29 -0700 (PDT)
Rainer Schuster wrote:
> no this discussion is going to be ... won't say it.
>
> Quiz:
>
> - is your solution functional (regarding the requirements=
Yes.
> - is your solution scallable? (groing large or running
> plattformindependent?)
It will run on
On Thu, Sep 9, 2010 at 4:02 PM, Mike Meyer
wrote:
> No, they've explained what *they* consider to be simple. That isn't
> the same thing as actually *being* simple.
+1 :-)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send e
I'm not 100% sure what you're asking, but I think I understand you,
and in that case you can refer to
http://groups.google.com/group/clojure/browse_thread/thread/9c7f726709e24c12/b2e2696b70d924f2?show_docid=b2e2696b70d924f2,
in which I ask this very question and get the answers I am looking
for.
O
On Sep 9, 5:53 pm, Lee Spector wrote:
> On Sep 9, 2010, at 3:04 PM, Luke Renn wrote:
>
> > What exactly are you evaluating Clojure for? Because unless it's
> > teaching elementary school children, the LOC it takes to deploy a
> > hello world webapp is irrelevant.
>
> > Luke
>
> From the sidelines
Weird. I'll have to look into this some more. Thanks for the report.
-S
On Sep 9, 6:43 pm, Brian Carper wrote:
> Nope. When I use [org.clojure.contrib/complete "1.3.0-SNAPSHOT"]
> without :classifier "bin", Maven dies because it can't find the
> "complete" JAR file. Like this:http://gist.github
On Sep 9, 7:00 pm, Aaron Cohen wrote:
> I think the problem is that the "complete" pom needs to have
> pom to indicate there's not an important jar
> file to download.
It does. That's why I'm confused.
http://github.com/clojure/clojure-contrib/blob/master/modules/complete/pom.xml
Admittedly, I
On Thu, 9 Sep 2010 14:01:19 -0700 (PDT)
Luke Renn wrote:
> On Sep 9, 4:13 pm, Mike Meyer 620...@mired.org> wrote:
> > Here I thought I could save time by choosing a nice, simple example
> > application that everyone would understand, rather than spending a lot
> > of time explaining (or abstract
Call for Proposals - ACCU 2011
April 13-16, 2011. Barcelo Oxford Hotel, Oxford, UK
Submission deadline: 26th of September 2010
Email proposals to: Giovanni Asproni, confere...@accu.org
http://www.accu.org/conference
twitter: @accu2011 #accu2011
We invite you to propose a session for this leading s
On Thu, Sep 9, 2010 at 6:43 PM, Brian Carper wrote:
> On Sep 9, 3:13 pm, Stuart Sierra wrote:
>> Can you clarify? Maven-aware build tools (e.g. Leiningen) should not
>> be trying to downlaod the "clojure-contrib:complete" JAR file.
>> Instead, referencing the "complete" project as a dependency s
no this discussion is going to be ... won't say it.
Quiz:
- is your solution functional (regarding the requirements=
- is your solution scallable? (groing large or running
plattformindependent?)
- is your solution easily maintainable (in the sense of mutating it
some days to get complex and have
Boolean seems to work:
user=> (drop-while #(< % 4) (range 10))
(4 5 6 7 8 9)
user=>
On Sep 9, 2:51 pm, Jacek Laskowski wrote:
> Hi,
>
> According to drop-while doc, (pred item) will return nil. It struck me
> as I thought the form would only return a boolean. Is the doc correct?
> What would be
On Sep 9, 3:13 pm, Stuart Sierra wrote:
> Can you clarify? Maven-aware build tools (e.g. Leiningen) should not
> be trying to downlaod the "clojure-contrib:complete" JAR file.
> Instead, referencing the "complete" project as a dependency should
> transitively give you all its dependencies. Does
On Thu, 9 Sep 2010 14:11:44 -0700 (PDT)
Luke Renn wrote:
> On Sep 9, 2:46 pm, Mike Meyer 620...@mired.org> wrote:
> > I have to compile and link it first. Not a problem. My 3/0/1 solution
> > could just as well have been:
> >
> > $ cat - > hello.c
> > main() {
> > puts("Content-type: text/p
On Thu, Sep 9, 2010 at 5:53 PM, Lee Spector wrote:
>
> One of my favorite examples of making the simple stuff simple is Processing
> (processing.org), which can be downloaded and installed with a single
> click, and allows you to make an applet with the graphical equivalent of
> HelloWorld with o
Can you clarify? Maven-aware build tools (e.g. Leiningen) should not
be trying to downlaod the "clojure-contrib:complete" JAR file.
Instead, referencing the "complete" project as a dependency should
transitively give you all its dependencies. Does that not work?
-S
On Sep 9, 3:47 pm, Brian Ca
Yes, it's in the ZIP file, distributed through http://clojure.org/downloads
It's in the ZIP file at target/clojure-contrib-1.2.0.jar
You can also download it directly at
http://build.clojure.org/releases/org/clojure/clojure-contrib/1.2.0/clojure-contrib-1.2.0.jar
Do we need a direct link to the
On Sep 9, 2010, at 3:04 PM, Luke Renn wrote:
> What exactly are you evaluating Clojure for? Because unless it's
> teaching elementary school children, the LOC it takes to deploy a
> hello world webapp is irrelevant.
>
> Luke
>From the sidelines -- because I know little about web apps per se in
Hi,
According to drop-while doc, (pred item) will return nil. It struck me
as I thought the form would only return a boolean. Is the doc correct?
What would be an example?
user=> (doc drop-while)
-
clojure.core/drop-while
([pred coll])
Returns a lazy sequence of the item
http://github.com/clojure/clojure
--
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 fr
I assume I'm just clueless here, but the last commit I see at
http://github.com/richhickey/clojure is one from Stuart Halloway in
June. Where do I find this so I can try it out? Or, what version do I
have to tell leiningen I depend on - 1.2.0-snapshot, 1.3.0-snapshot,
or something like that?
On Se
On Sep 9, 2:46 pm, Mike Meyer wrote:
> I have to compile and link it first. Not a problem. My 3/0/1 solution
> could just as well have been:
>
> $ cat - > hello.c
> main() {
> puts("Content-type: text/plain\n\nHello world!\n") ;
> }
> ^D
> $ cc hello.c
> $ cp a.out /usr/local/apache22/cg
On Sep 9, 4:13 pm, Mike Meyer wrote:
> Here I thought I could save time by choosing a nice, simple example
> application that everyone would understand, rather than spending a lot
> of time explaining (or abstracting out) irrelevant details of some
> real-world application before asking the questi
People frequently complain about Clojure's stack traces, and there are
now some enhancements in the master branch. In particular, there is a
new function in clojure.repl, pst, which prints a nicer stack trace of
the most recent (or a supplied) exception. It also has depth control.
pst is automatica
On 9 September 2010 19:16, Brenton wrote:
> Mike,
>
> While evaluating Clojure, just remember, you don't have use it for
> everything. When you need something simple, as in your examples, then
> use cgi. When you need to do something more complex then Clojure can
> help.
>
> You cannot deploy a .
I'm using thrift-generated Java objects heavily inside hadoop and it
would be nice to access object properties using keyword notation
instead of .getPropertyX. At platform speed of course.
Searching the list shows someone else interested in the same thing but
no answer.
http://groups.google.com/g
On Thu, 9 Sep 2010 12:04:34 -0700 (PDT)
Luke Renn wrote:
> On Sep 9, 1:40 pm, Mike Meyer 620...@mired.org> wrote:
> > The thing is, I'm evaluating clojure - that's what drags clojure into
> > it.
> What exactly are you evaluating Clojure for? Because unless it's
> teaching elementary school chil
just skimming the thread all I see is mention of war files, which,
well, who cares? just get ring and the ring jetty adapter, you don't
even after to presume the existence of an installed webserver or
servlet container. http://github.com/hiredman/place-for-things is
something I have been playing wi
On 9 September 2010 07:31, Meikel Brandmeyer wrote:
> derive works with non-qualified keywords, but the contract disallows
> that:
Apparently the contract given in the docstring is being enforced in
derive's 2-arg definition, but the "must be namespaced" parts of the
assertions are missing from t
On Aug 20, 7:22 am, Stuart Sierra wrote:
> If you want to use ALL contrib libraries, add a dependency on group
> "org.clojure.contrib", artifact "complete", version "1.3.0-SNAPSHOT".
> This meta-library depends on all other contrib libraries.
This doesn't work because as was pointed out on IRC to
On Thu, 9 Sep 2010 11:48:36 -0700 (PDT)
Saul Hazledine wrote:
> On Sep 9, 8:16 pm, Brenton wrote:
> >
> > Even though Clojure doesn't already have what you are looking for it
> > would not be difficult to make it work. For example, you could create
> > a generic web app that would have an embedd
On Thu, 9 Sep 2010 14:27:48 -0400
David Nolen wrote:
> On Thu, Sep 9, 2010 at 2:17 PM, Mike Meyer <
> mwm-keyword-googlegroups.620...@mired.org> wrote:
> > > run the risk of fubaring some or all of the previous applications.
> > That problem exists no matter how you do the configuration. But the
>
Interesting discussion!
I think about taking some of the topics into separate threads. Will
see, I'm a bit under project pressure. Wont tell you the language ;(
But, @Luc
"pushing the advantage of Lisp
macros to the forefront is not obvious if the audience cannot compare
with another (good/simple
On Sep 9, 1:40 pm, Mike Meyer wrote:
> The thing is, I'm evaluating clojure - that's what drags clojure into
> it.
What exactly are you evaluating Clojure for? Because unless it's
teaching elementary school children, the LOC it takes to deploy a
hello world webapp is irrelevant.
Luke
--
You
Inexplicably (counted? "abcd") returns false.
On Sep 9, 11:33 am, Sunil S Nandihalli
wrote:
> actually there is a function called
>
> counted?
>
> Sunil.
>
> On Thu, Sep 9, 2010 at 8:59 PM, Nicolas Oury wrote:
> > Thank you very much.
>
> > Never looked closely at count definition.
>
> > I assum
On Thu, Sep 9, 2010 at 11:17 AM, Mike Meyer wrote:
> That problem exists no matter how you do the configuration. But the
> less per-application configuration you have to do, the less likely it
> is to happen.
(i might be not-quite-following, but)
no, i think the problem i mentioned explicitly do
On Sep 9, 8:16 pm, Brenton wrote:
>
> Even though Clojure doesn't already have what you are looking for it
> would not be difficult to make it work. For example, you could create
> a generic web app that would have an embedded REPL as well as the
> ability to dynamically load code from external fi
On Thu, 9 Sep 2010 11:16:11 -0700 (PDT)
Brenton wrote:
> While evaluating Clojure, just remember, you don't have use it for
> everything. When you need something simple, as in your examples, then
> use cgi. When you need to do something more complex then Clojure can
> help.
The first problem wit
The major thing that made me used macros as much as possible when available
in any language was writing assembly code. Not 100 lines projects, 20,000 and
above, mainly made of macro calls.
That's when you realize that you need to use macros to generate instructions
for three reasons:
a) keeping t
On Thu, Sep 9, 2010 at 2:17 PM, Mike Meyer <
mwm-keyword-googlegroups.620...@mired.org> wrote:
> > run the risk of fubaring some or all of the previous applications.
>
> That problem exists no matter how you do the configuration. But the
> less per-application configuration you have to do, the les
On Thu, 9 Sep 2010 11:00:48 -0700
Raoul Duke wrote:
> On Thu, Sep 9, 2010 at 10:07 AM, Mike Meyer
> wrote:
> > The difference is that that 4 lines has to be repeated *for every
> > project*. Yeah, /usr/local/etc/apache/conf.d is a lot more
> > complicated. But I only need to do it once, and it w
Mike,
While evaluating Clojure, just remember, you don't have use it for
everything. When you need something simple, as in your examples, then
use cgi. When you need to do something more complex then Clojure can
help.
You cannot deploy a .clj script on a running Tomcat (yet). When you
install Tom
On Thu, Sep 9, 2010 at 10:07 AM, Mike Meyer
wrote:
> The difference is that that 4 lines has to be repeated *for every
> project*. Yeah, /usr/local/etc/apache/conf.d is a lot more
> complicated. But I only need to do it once, and it works for every
> application.
until you need to change it to su
On Thu, 9 Sep 2010 09:41:09 -0700 (PDT)
Brenton wrote:
> Mike,
>
> Your point has been made, simple things are simple. When you need to
> print "hello world" you don't need to bring Clojure into the picture.
> You could have given a much simpler example of needing to print "hello
> world" on the
On Thu, 9 Sep 2010 12:23:25 -0400
Andrew Gwozdziewycz wrote:
> On Thu, Sep 9, 2010 at 12:05 PM, Mike Meyer
> wrote:
> > On Thu, 9 Sep 2010 11:30:51 -0400
> > Wilson MacGyver wrote:
> >
> >> I'm not sure what your point is. If I want to write a hello world php
> >> script on a unix
> >> system,
On Thu, Sep 9, 2010 at 9:21 AM, Seth wrote:
> exact what i want!
> Heres a nice link which describes it
>
> http://pragprog.com/magazines/2009-07/when-things-go-wrong
If you actually use any of the continue or continue-with features
in real-world code, or build any kind of error hierarchy, please
On Thu, 9 Sep 2010 09:06:33 -0700 (PDT)
Paul deGrandis wrote:
> I think the point is missed with this example.
>
> Given your hello world example, how much effort does it take you to
> add URL args, make it operate like a RESTful resource, change the
> route that triggers it, add user sessions,
On Thu, 9 Sep 2010 16:35:15 +0100
Bruce Durling wrote:
> Mike,
>
> If you are happy with cgi and if we posit that clojure is a compiled
> language and leiningen is the same as make. The I submit the following
> bit of fluff:
>
> At a prompt:
>
> $ lein new hw
> $ cd hw
> $ lein deps
>
> Then
On Thu, 9 Sep 2010 17:15:09 +0100
Edmund Jackson wrote:
> You assume the presence of a configured web server but not a text editor ?
Actually, I did assume a text editor - provided any text editor would
do. I chose to use my favorite simple text editor (cat) here.
> The only constructive thing
On Thu, 9 Sep 2010 12:32:27 -0400
David Nolen wrote:
> On Thu, Sep 9, 2010 at 12:22 PM, Mike Meyer <
> mwm-keyword-googlegroups.620...@mired.org> wrote:
>
> > Clojure great. No questions about that. WAR files, CLASSPATHs, having
> > to wrap *every little command* in it's own script - that's what
On Thu, Sep 9, 2010 at 12:32 PM, David Nolen wrote:
> On Thu, Sep 9, 2010 at 12:22 PM, Mike Meyer
> wrote:
>>
>> Clojure great. No questions about that. WAR files, CLASSPATHs, having
>> to wrap *every little command* in it's own script - that's what I'm
>> looking at.
>
> I've already shown that
On Thu, Sep 9, 2010 at 12:05 PM, Mike Meyer
wrote:
> On Thu, 9 Sep 2010 11:30:51 -0400
> Wilson MacGyver wrote:
>
>> I'm not sure what your point is. If I want to write a hello world php
>> script on a unix
>> system, but apache and mod_php weren't setup. I'd first have to install them
>> and con
I think the point is missed with this example.
Given your hello world example, how much effort does it take you to
add URL args, make it operate like a RESTful resource, change the
route that triggers it, add user sessions, address security concerns,
template out responses, tweak those templates w
Mike,
If you are happy with cgi and if we posit that clojure is a compiled
language and leiningen is the same as make. The I submit the following
bit of fluff:
At a prompt:
$ lein new hw
$ cd hw
$ lein deps
Then edit project.clj to look as follows:
(defproject hw "0.0.1"
:description "The sm
On Thu, Sep 9, 2010 at 10:04 AM, ajuc wrote:
>
>
> On 9 Wrz, 14:25, Andrew Gwozdziewycz wrote:
>> The fact that Lisp macros actually operate on the AST means that Lisp
>> macros can make *changes* to the AST (insert things, remove things,
>> rearrange things), and *not* just substitute FOO for BA
exact what i want!
Heres a nice link which describes it
http://pragprog.com/magazines/2009-07/when-things-go-wrong
On Sep 9, 6:20 am, Meikel Brandmeyer wrote:
> Hi,
>
> On 9 Sep., 05:31, Seth wrote:
>
> > Is there any code out there which reproduces common lisp's restart
> > error handling capa
I suspect $ is in munge because Rich and company may want to use it as
a special reader character. $'s used to access inner classes work
fine. I'd be fine with that as long as there's still a way to access
Java identifiers with dollar signs (perhaps a special macro).
On Sep 9, 3:49 am, Michał Ma
On Thu, 9 Sep 2010 11:52:30 -0400
Wilson MacGyver wrote:
> How are you going to handle session? How are you going to handle
> database from a echo script?
What, you've never generated HTML directly from an SQL script? Any
good SQL system will do that for you.
All of these things are *possible*
Mike,
Your point has been made, simple things are simple. When you need to
print "hello world" you don't need to bring Clojure into the picture.
You could have given a much simpler example of needing to print "hello
world" on the command line. echo "hello world" is much simpler than
what you would
On Sep 2, 4:51 pm, Isaac Gouy wrote:
> On Sep 1, 9:46 pm, John Fingerhut wrote:
>
> > Thanks to many people on this list in Aug 2009 who helped improve my code,
> > to Johannes Friestad for writing a nice fast Clojure program using deftype
> > for the n-body problem, to Isaac Gouy for setting u
On Thu, Sep 9, 2010 at 12:22 PM, Mike Meyer <
mwm-keyword-googlegroups.620...@mired.org> wrote:
> Clojure great. No questions about that. WAR files, CLASSPATHs, having
> to wrap *every little command* in it's own script - that's what I'm
> looking at.
I've already shown that you don't need WAR f
On Thu, 9 Sep 2010 09:06:49 -0700
Phil Hagelberg wrote:
> On Thu, Sep 9, 2010 at 8:38 AM, Mike Meyer
> wrote:
> > And two tools - lein and clojure itself.
> I'm not sure Clojure should be counted separately since you're not
> installing it yourself.
Installation isn't the issue, use is the issu
On Thu, 9 Sep 2010 09:03:38 -0700 (PDT)
Zach Tellman wrote:
> Lines of code are a terrible metric for language complexity. If I
> write a function and abstract away half the code, have I made Clojure
> twice as simple?
Ah, I'm sorry - I'm not looking at *language* complexity. I'm looking
at the
On Thu, Sep 9, 2010 at 12:05 PM, Mike Meyer wrote:
> On Thu, 9 Sep 2010 11:30:51 -0400
>> Now it's true that there are some overhead to make sure your webapp produce
>> a war file and can be deployed to ANY containers. It's not 3/1/0 as you
>> claimed.
>
> A) I didn't claim I could do this with w
On Thu, 9 Sep 2010 11:57:23 -0400
David Nolen wrote:
> On Thu, Sep 9, 2010 at 11:38 AM, Mike Meyer wrote:
>
> > Yup - the goal is simplicity. Robustness is important, but I expect
> > the web server to take care of that. What I'm really expecting to lose
> > here is performance.
> performance?
You assume the presence of a configured web server but not a text editor ?
The only constructive thing I can say is that the set of things that may be
considered simple in the clojure setup above is vastly greater than the
alternative you present. If the cost is a 4 line 'boilerplate' (and I'm
poi
On Thu, Sep 9, 2010 at 8:38 AM, Mike Meyer
wrote:
> And two tools - lein and clojure itself.
I'm not sure Clojure should be counted separately since you're not
installing it yourself.
> So we go from 3, 0, 1 to 6, 4, 2. I'm not sure that qualifies as
> simple, but at least there's less boilerpla
On Thu, 9 Sep 2010 11:30:51 -0400
Wilson MacGyver wrote:
> I'm not sure what your point is. If I want to write a hello world php
> script on a unix
> system, but apache and mod_php weren't setup. I'd first have to install them
> and configure them.
That simple things should be simple. Setting up
Lines of code are a terrible metric for language complexity. If I
write a function and abstract away half the code, have I made Clojure
twice as simple?
If you want to really evaluate Clojure, write a non-trivial
application and see whether the complexity is still manageable. Code
golf doesn't t
On Thu, Sep 9, 2010 at 11:38 AM, Mike Meyer wrote:
> Yup - the goal is simplicity. Robustness is important, but I expect
> the web server to take care of that. What I'm really expecting to lose
> here is performance.
performance?
> You mean src/nano_web/core.clj.
>
Good catch.
> So we go f
How are you going to handle session? How are you going to handle
database from a echo script?
I mean, I can counter by just create a hello.html in apache
and put "hello world" in there. It's 1 line, 0 to deploy. And it's FAST.
It's even cached and uses no cpu time being served.
that doesn't reall
On Thu, 9 Sep 2010 16:28:48 +0100
Edmund Jackson wrote:
> Hi Mike,
>
> Could you perhaps present a counter-example of greater simplicity ?
$ cat - > /usr/local/www/apache22/cgi-bin/hello-world.sh
#!/bin/sh
echo 'Content-type: text/plain\n'
echo Hello World
^D
$ chomd 755 /usr/local/www/apa
On Thu, 9 Sep 2010 10:59:28 -0400
David Nolen wrote:
> If you're going for simplicity over robustness and you have lein installed,
> all you need to do is the following:
>
> lein new nano-web
Yup - the goal is simplicity. Robustness is important, but I expect
the web server to take care of
Rob,
Ring stores session data in an atom. Reloading re-defines the atom to
be empty. Sandbar uses Ring's session store. I have made a small
change to Ring in my branch which fixes this problem. See
http://github.com/brentonashworth/ring/commit/ebcdb3ec8adfc5c82d5fd6031f444a105701a8e0.
I don't see
actually there is a function called
counted?
Sunil.
On Thu, Sep 9, 2010 at 8:59 PM, Nicolas Oury wrote:
> Thank you very much.
>
> Never looked closely at count definition.
>
> I assumed it was a forawrd to .count of Counted, which explains my problem.
>
> I kind of remembered the O(1) of Coun
I'm not sure what your point is. If I want to write a hello world php
script on a unix
system, but apache and mod_php weren't setup. I'd first have to install them
and configure them.
This is only easy these days because most linux come with apache installed,
php installed, mod_php preconfigured f
I'm not sure what your point is. If I want to write a hello world php
script on a unix
system, but apache and mod_php weren't setup. I'd first have to install them
and configure them.
This is only easy these days because most linux come with apache installed,
php installed, mod_php preconfigured f
2010/9/9 Mike Meyer :
> I've spent far more time evaluating clojure than I had expected
> to. Part of the problem is that I'm of two minds. I love the language
> - it seems to mix in just the right bits of LISP, data structures from
> modern dynamic languages, and functional programming.
>
> On the
Thank you very much.
Never looked closely at count definition.
I assumed it was a forawrd to .count of Counted, which explains my problem.
I kind of remembered the O(1) of Counted and get mixed up.
Best regards,
Nicolas.
On Thu, Sep 9, 2010 at 3:50 PM, Meikel Brandmeyer wrote:
> Hi,
>
> On 9
Hi Mike,
Could you perhaps present a counter-example of greater simplicity ?
Edmund
On Thu, Sep 9, 2010 at 4:03 PM, Mike Meyer <
mwm-keyword-googlegroups.620...@mired.org> wrote:
> On Thu, 9 Sep 2010 07:46:22 -0700 (PDT)
> Meikel Brandmeyer wrote:
>
> > Hi,
> >
> > I don't know what the fu
1 - 100 of 130 matches
Mail list logo