ok, thanks for the info !
2009/6/25 fft1976 fft1...@gmail.com
I know some of you are searching for names for your projects. I just
wanted to say that Foreclojure is taken! This will be an open-source
(but not GPL) accounting software in Clojure. Stay tuned.
2009/6/25 T. Ettinger tommy.ettin...@gmail.com
EP4C sounds good, but... as EP4C.org describes itself, Everyday
People 4 Christ is a Christian ministry moving throughout Los Angeles
to meet the spiritual needs of everyday people. EP4CD has even worse
Google-ability, returning results for
Here are some of my common mistakes:
user= (def data (ref {}))
#'user/data
user= (dosync alter data assoc :a a)
a
user= (dosync (alter data assoc :a a))
{:a a}
;; leaving out the parenthesis on a dosync can be silent and fatal,
like a ninja
(if-let [a 1]
(println a)
a
(inc c))
On 25.06.2009, at 07:59, Baishampayan Ghose wrote:
Their concerns are thus:
1. How do you get Clojure programmers? Lisp is not for the faint
hearted.
No idea on that one...
2. What about the performance of Clojure? Is it fast?
Define fast! It all depends on what you do...
I'd reply
1. How do you get Clojure programmers? Lisp is not for the faint hearted.
Clojure is extremely easy to learn compared to 'Lisp':
You get collection based functions that apply other functions map/
reduce/filter
You get simple powerful data structures hashmaps sets vectors lists
You get atomic,
Konrad Hinsen wrote:
You could try to point out real-life programs that were written in
Lisp, including Clojure.
Thanks Konrad.
Can you point out some Clojure success stories that I can quote? I know
about Stuart's AltLaw.org. Anything else that is documented or can be seen?
Regards,
BG
accounting software in Clojure?
Which area of accounting will it cover?
Emeka
On Thu, Jun 25, 2009 at 3:41 AM, fft1976 fft1...@gmail.com wrote:
I know some of you are searching for names for your projects. I just
wanted to say that Foreclojure is taken! This will be an open-source
(but not
Ok the SCA agrrement says we can actually print/sign/scan the
agreement ans den it via e-mail.
Is this a possibility for Clojure or postal mail is the only one and
true way?
Cheers, V.Seguí
On 18 jun, 09:28, vseguip vseg...@gmail.com wrote:
Thanks for the link, I hadn't seen it. It seems like
On Jun 25, 5:38 am, Mark Addleman mark_addle...@bigfoot.com wrote:
Searching through this forum, I found many posts relating to improving
Clojure's error messages. I stumbled across one where Rich makes a
plea for concrete suggestions to specific cases.
Here's one that regularly confuses me:
On Jun 25, 9:51 am, michael frericks michael-freri...@web.de wrote:
Hello,
i am a little bit lost about the roadmap of clojure 1.1. Is there
anywhere an (evolving) list available of
a) new features planned,
b) things that break Clojure 1.0
c) and maybe removed features?
You could take
On Jun 25, 10:02 am, James Reeves weavejes...@googlemail.com wrote:
Here's one that regularly confuses me:
(prn [10)
= java.lang.Exception: Unmatched delimiter: )
Ideally the exception should correctly report the type of unmatched
bracket. In this case:
= java.lang.Exception:
java.lang.UnsupportedOperationException: nth not supported on this
type: Symbol (db.clj:101)
The line number isn't very useful because it is always the first line
of the definition. To help me locate the error, it would be helpful
to list the specific symbol such as nth not supported on
On Jun 25, 4:15 am, Mark Addleman mark_addle...@bigfoot.com wrote:
java.lang.UnsupportedOperationException: nth not supported on this
type: Symbol (db.clj:101)
It turns out this error was due to not specifying my macro's arg list
within brackets:
(defmacro with-table table rows
On Thu, Jun 25, 2009 at 7:03 AM, James Reevesweavejes...@googlemail.com wrote:
On Jun 25, 10:02 am, James Reeves weavejes...@googlemail.com wrote:
Here's one that regularly confuses me:
(prn [10)
= java.lang.Exception: Unmatched delimiter: )
Ideally the exception should correctly
Make them watch the following video.
http://ocaml.janestreet.com/?q=node/61
Although the video isn't about Clojure, I think most of the points regarding
ML are true of Clojure as well.
On Thu, Jun 25, 2009 at 3:50 PM, Timothy Pratley
timothyprat...@gmail.comwrote:
1. How do you get
Hello I have just started learning Clojure and functional programming,
quick question, what happens internally when I do a defn, does this
create the byte code, or a ref to the function which is stored, as it
does actually create a function object, I was just wondering about
memory and GC issues.
I have a clojure application where each file has its own namespace (ns
blah)...I generally let the files sit in a classpath directory, so I
am assuming the clojure code is loaded at startup time.
What are the differences between clojure code which is:
1. Compiled
2. Clojure code that is
On Jun 25, 2009, at 12:25, Rich Claxton wrote:
Hello I have just started learning Clojure and functional programming,
quick question, what happens internally when I do a defn, does this
create the byte code, or a ref to the function which is stored, as it
does actually create a function
From Steve's post
Symbol objects are subject to garbage collection, but the namespace and
name strings that identify them are not. Those strings are interned via
the intern method on java.lang.String. Once a String is interned, there
exists a single canonical String object that represents it
On Thu, Jun 25, 2009 at 2:20 AM, Timothy
Pratleytimothyprat...@gmail.com wrote:
Here are some of my common mistakes:
user= (def data (ref {}))
#'user/data
user= (dosync alter data assoc :a a)
a
user= (dosync (alter data assoc :a a))
{:a a}
;; leaving out the parenthesis on a dosync can
On Thu, 25 Jun 2009 11:29:24 +0530
Baishampayan Ghose b.gh...@ocricket.com wrote:
Their concerns are thus:
1. How do you get Clojure programmers? Lisp is not for the faint
hearted.
You can always ask on this list. I'd guess that at any given point
in time there are probably several
On Jun 25, 4:26 am, Rich Hickey richhic...@gmail.com wrote:
On Thu, Jun 25, 2009 at 7:03 AM, James Reevesweavejes...@googlemail.com
wrote:
On Jun 25, 10:02 am, James Reeves weavejes...@googlemail.com wrote:
Here's one that regularly confuses me:
(prn [10)
=
On Jun 25, 9:31 am, Nathan Hawkins uts...@gmail.com wrote:
On Thu, 25 Jun 2009 11:29:24 +0530
Baishampayan Ghose b.gh...@ocricket.com wrote:
Their concerns are thus:
1. How do you get Clojure programmers? Lisp is not for the faint
hearted.
You can always ask on this list. I'd guess
On Thu, Jun 25, 2009 at 12:38 AM, Mark
Addlemanmark_addle...@bigfoot.com wrote:
Searching through this forum, I found many posts relating to improving
Clojure's error messages. I stumbled across one where Rich makes a
plea for concrete suggestions to specific cases. I'm very sympathetic
to
On Wed, Jun 24, 2009 at 9:04 PM, Chouserchou...@gmail.com wrote:
On Wed, Jun 24, 2009 at 6:13 PM, CuppoJavapatrickli_2...@hotmail.com wrote:
I need to dynamically create a regex, and would really like to be able
to use Clojure's built-in regex syntax. But I don't know how to go
about it.
On Jun 25, 9:39 am, Berlin Brown berlin.br...@gmail.com wrote:
On Jun 25, 9:31 am, Nathan Hawkins uts...@gmail.com wrote:
On Thu, 25 Jun 2009 11:29:24 +0530
Baishampayan Ghose b.gh...@ocricket.com wrote:
Their concerns are thus:
1. How do you get Clojure programmers? Lisp is
I need some pointers on this. This is a really crucial thing for me and
any help will be appreciated.
Here's one - better warn them not to let on what the startup is. Someone
here will get it to market an order of magnitude quicker than they will on
some other platform :-).
On Thu, Jun 25,
On Thu, Jun 25, 2009 at 4:05 PM, Chouser chou...@gmail.com wrote:
On Wed, Jun 24, 2009 at 9:04 PM, Chouserchou...@gmail.com wrote:
On Wed, Jun 24, 2009 at 6:13 PM, CuppoJavapatrickli_2...@hotmail.com
wrote:
I need to dynamically create a regex, and would really like to be able
to use
On Jun 25, 12:26 pm, Rich Hickey richhic...@gmail.com wrote:
But it doesn't know when it sees the ) that ] is missing, it might not be:
(prn [10)]
i.e. the ) has nothing to do with the [, there might not even be a
pending aggregate:
user= )
java.lang.Exception: Unmatched delimiter: )
On Jun 25, 9:36 am, Mark Addleman mark_addle...@bigfoot.com wrote:
On Jun 25, 4:26 am, Rich Hickey richhic...@gmail.com wrote:
On Thu, Jun 25, 2009 at 7:03 AM, James Reevesweavejes...@googlemail.com
wrote:
On Jun 25, 10:02 am, James Reeves weavejes...@googlemail.com wrote:
FWIW, this is the kind of problem that paredit mode in Emacs
eliminates almost entirely.
On Thu, Jun 25, 2009 at 11:14 AM, Rich Hickey richhic...@gmail.com wrote:
On Jun 25, 9:36 am, Mark Addleman mark_addle...@bigfoot.com wrote:
On Jun 25, 4:26 am, Rich Hickey richhic...@gmail.com wrote:
I don't know what you mean by Pattern/quote, can you give me an
example?
And I really like Chouser's second method. That's very tidy!
Thanks Chouser
-Patrick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Clojure
Hi,
Is there a print command that doesn't separate it's arguments using
spaces? I wrote my own function to work-around this but hopefully it's
already been done for me.
(defn write [ strings]
(print (apply str strings)))
Thanks
-Patrick
--~--~-~--~~~---~--~~
On Jun 25, 8:36 am, Emeka emekami...@gmail.com wrote:
From Steve's post
Symbol objects are subject to garbage collection, but the namespace and
name strings that identify them are not. Those strings are interned via
the intern method on java.lang.String.
Recent JVMs do collect unused
On Jun 25, 8:31 am, BerlinBrown berlin.br...@gmail.com wrote:
I have a clojure application where each file has its own namespace (ns
blah)...I generally let the files sit in a classpath directory, so I
am assuming the clojure code is loaded at startup time.
What are the differences between
BG,
This kind of thing really burns me up. They trust you to implement the
thing, but they don't trust you enough to pick the tools to implement
the thing with. It's like telling your plumber what kind of pipes and
wrenches to use. You wouldn't dare, unless you were a plumber already.
On Jun 25, 6:25 am, Rich Claxton rich.clax...@gmail.com wrote:
Hello I have just started learning Clojure and functional programming,
quick question, what happens internally when I do a defn, does this
create the byte code, or a ref to the function which is stored, as it
does actually create
On Jun 25, 8:31 am, BerlinBrown berlin.br...@gmail.com wrote:
What are the differences between clojure code which is:
1. Compiled
2. Clojure code that is interpreted (that just sits in the classpath)
3. Clojure code that loads from a jar file
4. Clojure code that gets load with the 'load'
On Jun 25, 4:14 pm, Rich Hickey richhic...@gmail.com wrote:
(let [x map inc nums)] ...)
Clearly the message: java.lang.Exception: Missing delimiter: ] would
not be helpful here.
But perhaps the message:
java.lang.Exception: Unmatched delimiter ')', expecting ']'
Would be quite useful? It
On Jun 25, 2:51 am, michael frericks michael-freri...@web.de wrote:
a) new features planned,
b) things that break Clojure 1.0
c) and maybe removed features?
Check out http://clojure.org/todo
-SS
--~--~-~--~~~---~--~~
You received this message because you are
On Thu, Jun 25, 2009 at 3:17 AM, Emekaemekami...@gmail.com wrote:
accounting software in Clojure?
Which area of accounting will it cover?
Why, forclosures of course!
(Sorry, couldn't resist).
Cheers,
Victor.
Emeka
On Thu, Jun 25, 2009 at 3:41 AM, fft1976 fft1...@gmail.com wrote:
I
On Jun 25, 8:39 am, Berlin Brown berlin.br...@gmail.com wrote:
This is my main point: One thing that Clojure is NOT. It is not
limited by the limitations of the Java programming language.
It may not be limited by the java _language_, but it is limited by the
java _platform_.
Given the
I think it's important that Clojure be good at exploring Java
libraries. Helpful and correct error messages are important for this.
I often go looking for a function at the REPL, like so:
user= substring
java.lang.Exception: Unable to resolve symbol: substring in this
context
Hey guys,
I was a little tired of working on what I am supposed to be working
on, and decided to take a break and create a website. I decided to use
Clojure, and to my surprise, it only took a day and less than 3 pages
of code.
members.shaw.ca/patrickli
It only has a single article right now,
On Jun 25, 12:14 pm, cody c...@koeninger.org wrote:
On Jun 25, 8:39 am, Berlin Brown berlin.br...@gmail.com wrote:
This is my main point: One thing that Clojure is NOT. It is not
limited by the limitations of the Java programming language.
It may not be limited by the java _language_,
On Jun 25, 12:18 pm, James Reeves weavejes...@googlemail.com wrote:
Some languages go a step further, and highlight syntax errors directly
with some ASCII art:
Unmatched delimiter:
(let [x map inc nums)]
^
The javac compiler, for one.
Though that seems quite
FWIW, two points- Paul Graham, among others, has talked about issues
like this. See for instance (about Python):
http://www.paulgraham.com/pypar.html
The argument about using new technologies in the startup context is
generally that smarter people want to work with better tools at higher
levels
That's cool.
(doseq [[name tag] [['html html]
['head head]
['style style]
['title title]
['body body]
['table table]
['row tr]
['col td]
I enjoyed Daniel Lyons post there. I recognize some Ayn Rand ideas
there. Ever read Atlas Shrugged perchance? =)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
On Jun 25, 8:29 am, Stuart Sierra the.stuart.sie...@gmail.com wrote:
So AOT-compilation makes the code slightly faster to *load* when your
application starts, because it doesn't have to compile the code on the
fly. But Clojure compiler is very fast, so the difference is barely
noticeable.
On Jun 25, 2009, at 11:46 AM, CuppoJava wrote:
Hey guys,
I was a little tired of working on what I am supposed to be working
on, and decided to take a break and create a website. I decided to use
Clojure, and to my surprise, it only took a day and less than 3 pages
of code.
On Jun 25, 2009, at 12:39 PM, CuppoJava wrote:
I enjoyed Daniel Lyons post there. I recognize some Ayn Rand ideas
there. Ever read Atlas Shrugged perchance? =)
Thanks! Fountainhead yes, Atlas Shrugged no, actually. :) But my
suggestions there come from my (limited) experience. She's a fun
Thanks for the reply.
I use doseq instead of map because I need it to run immediately, and
I'm not interested in the return values of the functions.
I also would love to be able to simply the (eval ...) part, but I
don't know of any other way to dynamically define a function in
Clojure. If you
What server are you running it on ? Tomcat ?
There's a compojure web framework that already has html combinator
library.
Check it out here: http://preview.compojure.org/docs
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Thanks for your opinions Daniel.
Yes I really need to adapt to using hyphens instead of underscores.
I've irked more than a few people already.
So far, defblockfn is serving me well, but it has bitten me a few
times now. If I come up with another alternative I will switch over.
-Patrick
I'm not running off any server. All the pages are static html, which
are generated by a Clojure script.
I looked at Compojure, and it seems very promising, but I decided it
was overkill for my website.
-Patrick
--~--~-~--~~~---~--~~
You received this message
On Jun 25, 2009, at 12:57 PM, CuppoJava wrote:
I'm not running off any server. All the pages are static html, which
are generated by a Clojure script.
Haha, that explains the speed. :) *slaps forehead*
—
Daniel Lyons
--~--~-~--~~~---~--~~
You received this
Yeah. Speed and simplicity were my main reasons to use static HTML
instead of running off a server.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
CuppoJava,
Did you try prxml? May be it can be of help.
Regards,
Emeka
--~--~-~--~~~---~--~~
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
CuppoJava,
I was referring to the map data structure {'html html..} and not the
other map.
Regards,
Emeka
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
Instead of eval in the doseq, you could use a macro with a do block,
something like:
user (defmacro deftags [tags]
`(do ~@(map (fn [tag]
`(defn ~(symbol (str tag -with))
[block#] (str ~tag block#)))
tags)))
#'user/deftags
On Jun 25, 3:52 pm, Mike Hinchey hinche...@gmail.com wrote:
Instead of eval in the doseq, you could use a macro with a do block,
something like:
user (defmacro deftags [tags]
`(do ~@(map (fn [tag]
`(defn ~(symbol (str tag -with))
Thanks Mike for that tip.
That seems a bit better, but then I have a left-over macro that I have
no use for.
As to why I didn't use a map. I needed destructuring so Clojure would
have internally turned the map into a seq anyway. Though a map would
save me from a layer of parenthesis. I'll keep
On Jun 25, 2009, at 1:59 PM, Berlin Brown wrote:
But does anyone have a problem with Lisp/S-Expressions to HTML/XHtml,
especially for the entire document. What is wrong with using some
form of templating system. I think that is what Lisp has (see Lisp's
Html-template).
I need some pointers on this. This is a really crucial thing for me and
any help will be appreciated.
http://weblog.raganwald.com/2007/01/what-ive-learned-from-sales-part-i.html
sincerely.
--~--~-~--~~~---~--~~
You received this message because you are
On Jun 25, 2009, at 11:43 AM, CuppoJava wrote:
Is there a print command that doesn't separate it's arguments using
spaces? I wrote my own function to work-around this but hopefully it's
already been done for me.
(defn write [ strings]
(print (apply str strings)))
Hi Patrick,
Clojure also
On Jun 25, 2009, at 5:00 PM, Four of Seventeen wrote:
Got this doing a load-file:
#CompilerException java.lang.ClassFormatError: Unknown constant tag
116 in class file hxr/priv/idb$eval__10559 (NO_SOURCE_FILE:0)
That error appears to be coming from a Java-level class loader (see
the
On Jun 25, 3:59 pm, Berlin Brown berlin.br...@gmail.com wrote:
But does anyone have a problem with Lisp/S-Expressions to HTML/XHtml,
especially for the entire document. What is wrong with using some
form of templating system.
Yes, I'm partial to StringTemplate, a Java template framework.
On Jun 25, 7:01 pm, Four of Seventeen fsevent...@gmail.com wrote:
On Jun 25, 12:18 pm, James Reeves weavejes...@googlemail.com wrote:
Some languages go a step further, and highlight syntax errors directly
with some ASCII art:
Unmatched delimiter:
(let [x map inc nums)]
I don't know about wikispaces, but this is linked from clojure.org:
http://en.wikibooks.org/wiki/Clojure_Programminghttp://en.wikibooks.org/wiki/Clojure_Programming
-Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I'm not running off any server. All the pages are static html, which
are generated by a Clojure script.
No kidding! I've done the exact same thing for my first website. It
was using Scheme though and leveraged Oleg's SXML library, it bring me
back fond memories. I'm looking at that old code
How about the name: jecl
jecl breaks down:
(j)ecl = (j)ava
j(ec)l = (ec)lipse
je(cl) = (cl)ojure
jecl.net is not registered (yet)
develop clojure on eclipse with jecl has a ring to it, I think
..and of course there is the story of Jekyll(clojure) and Hyde(java) where
Jekyll is a good doctor
What about sequoya? defined as:
Cherokee who created a notation for writing the Cherokee language (1770-1843)
Maybe spelling it as sequoja or as the name of the tree, sequoia
Also, I think conjuror would have been a great name. It reminds me
of the cover of SICP. Too bad there's already a
That's a good point. Dimming the lines would be a good idea. I
originally tried to make the text actually line up with the lines, but
that was a nightmare, and it didn't contribute much to the final
effect.
Scheme is a great language. If I needed to work on a project that runs
natively (ie. not
2009/6/26 James Reeves weavejes...@googlemail.com
On Jun 25, 7:01 pm, Four of Seventeen fsevent...@gmail.com wrote:
On Jun 25, 12:18 pm, James Reeves weavejes...@googlemail.com wrote:
Some languages go a step further, and highlight syntax errors directly
with some ASCII art:
If you are following the github head of the Clojure and contrib
projects, you will see that several libraries have moved from contrib
into Clojure:
* clojure.contrib.test-is becomes clojure.test
* clojure.contrib.stacktrace becomes clojure.stacktrace
* clojure.contrib.template becomes
Thanks for considering those Chouser,
It might be nice to get a useless bare symbol warning in
cases like this.
That sounds useful to me!
Another special case similar to 'bare symbol' which would be nice to
have reported is when a lazy sequence is created and thrown away.
Usually this means
I've been trying to do some generic work on serializing clojure
objects, and am much impressed with how easy and functional it is, as
well as how easy it is to extend this to other objects (eg Java
classes).
However, I seem to come a little unstuck when it comes to functions /
closures. I
Hi folks,
Occasionally, I see ANN: in subject headers to posts here. I've
tried to figure out what it means, but have failed. Searches on google
haven't been too good either. What does ANN: mean?
Kev
--~--~-~--~~~---~--~~
You received this message because you
On Jun 25, 10:09 pm, Four of Seventeen fsevent...@gmail.com wrote:
Meanwhile I guess I'll fall back on the old, tedious debugging method
for cases like this: break everything up into separate modules and try
to compile each one until I find the one with the error, and then
whittle that one
Great - thankyou!
On Jun 26, 1:59 pm, Richard Newman holyg...@gmail.com wrote:
What does ANN: mean?
Announcement, I believe.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group,
Got another one.
(if-not (zero? diskqueue-count (if value
(trait-dir trait)
(trait-undecided-dir trait)))
#CompilerException java.lang.IllegalArgumentException: Wrong number
of args passed to: core$fn (foo.clj:1625)
This should
On Wed, Jun 24, 2009 at 9:58 PM, Sethseth.schroe...@gmail.com wrote:
Tonight I got worked up enough to gripe to the good folks in IRC about
the docs on clojure.org. For the most part they are solid, but more
often than I'd like a link into the api page has a bad anchor.
(nthrest) became
83 matches
Mail list logo