reynard atsan...@gmail.com writes:
Anyone has first hand experience? Thanks.
I tried it on a cheapo 200Mhz ARM926EJ-S based NAS (WD MyBook World)
under JamVM [1] and it runs but very, very slowly (takes 35 seconds to
start a REPL). On a more powerful ARM chip (say an OMAP3) it might
be much
On 28 February 2010 21:38, Lee Spector lspec...@hampshire.edu wrote:
[...]
- When I run clj (from the most recent ClojureX) on the command line with -i
and a source file it runs the file but then hangs. If I also specify -r then
I get a REPL after the file runs, which is nice, but I was
Hello, I'll try to answer your questions related to Eclipse:
2010/2/28 Lee Spector lspec...@hampshire.edu
I've just recently begun to work with Clojure and I am finding it quite
gratifying. I am a long-time Lisper (several dialects) but my Java
experience is limited and largely in the
Will test once I get my pandora (openpandora.org) :-).
On Mar 1, 9:07 am, Alex Osborne a...@meshy.org wrote:
reynard atsan...@gmail.com writes:
Anyone has first hand experience? Thanks.
I tried it on a cheapo 200Mhz ARM926EJ-S based NAS (WD MyBook World)
under JamVM [1] and it runs but
Hi and Thanks to all,
that helped a lot. I should definitely refactor my code using
transients. And the new vector-of is what I needed. The StringBuilder
trick saves lot of memory compared to a line split on very large
lines.
Thanks again,
Johann
--
You received this message because you are
Anyone doing milters in clojure? Are they reasonable to do on the JVM?
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
--
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
On Mar 1, 9:55 am, Richard Newman holyg...@gmail.com wrote:
(defn house-sale-profit
[house-sales-price house-sale-expenses]
(- house-sales-price house-sale-expenses))
I'd like to note that if you do this, you might just as well use the -
function directly. It's not as flexible
On Thu, Feb 18, 2010 at 3:36 PM, Richard Newman holyg...@gmail.com wrote:
You express the equations as functions. Turning your equation notation into
function notation -- I'll use Haskell's as an example:
OpportunityCost = Rent - Sell
becomes
opportunityCost r s = r - s
or
On Feb 28, 10:57 pm, Ivan ivankob...@gmail.com wrote:
Do you happen to know of any JavaScript syntax highlighting library,
alikehttp://code.google.com/p/syntaxhighlighter/orhttp://code.google.com/p/google-code-prettify/,
supporting Clojure and
not just Lisp. I've been trying to find one to no
I use http://alexgorbatchev.com/wiki/SyntaxHighlighter plus the
Clojure highlighter listed at
http://www.undermyhat.org/blog/2009/09/list-of-brushes-syntaxhighligher/
On Feb 28, 10:57 pm, Ivan ivankob...@gmail.com wrote:
Hello All,
Do you happen to know of any JavaScript syntax highlighting
Hi,
Can I have a default value for a member of a structure which is not
specified when doing a struct-map?
Minimal example: I have (defstruct st :a :b) and always when I define
something like this (struct-map st :a 4) omitting :b I would like to
have :b set automatically to 0.0 instead having
Hi all,
I would love to be able to use Emacs/SLIME with ClojureCLR. Swank-
clojure does not run directly on CLojureCLR of course. I would not
mind spending some time to get this working but perhaps someone
already has accomplished this.
So my question is: has anyone undertaken a full port of
On Mar 1, 2:19 am, MarkSwanson mark.swanson...@gmail.com wrote:
For an example outside of JSON: recently Compojure changed how it
works so the HTTP request properties are all converted to keywords by
default. I can see the appeal, but now anyone using Compojure has the
increased incidental
Hi,
When I compile an expression via C-c C-c in SLIME -- assuming *warn-on-
reflection* is turned on -- reflection related warnings don't appear
neither in the REPL, nor in the inferior lisp buffer. Everytime, I
have to paste the code the REPL manually. Any solutions?
Regards.
--
You received
On Feb 28, 2010, at 11:38 AM, Lee Spector wrote:
On the development environment front: Is anyone contemplating
creating a Mac OS X Clojure in a Box? I would be an enthusiastic
user. If it could have roughly the feature set of the old Macintosh
Common Lisp IDE then I would be ecstatic.
Ah, thanks -- (System/exit 0) will be useful.
I'm beginning to realize I have to be looking in the Java library docs rather
than the Clojure docs for some things like this. That this works implies that
there's an implicit import of java.lang.System, available as System/. Am I
thinking about
OK, with a suggestion from Mike Meyer, I checked how Wordpress guys do
that. Turns out there is a custom Clojure brush for syntaxhighlighter.
Here's the original blog post:
http://travis-whitton.blogspot.com/2009/06/syntaxhighlighter-for-clojure.html
Here's where you can download it from:
I trying to learn Clojure, and the best way fore me is to take a
problem and solve it in a new language.
But i would like som to point out what to look fore.
The problem is like a Mastermind
1. I have numberserie let say 1 2 3 4 5 6 7 8 9
2. i pick let say 4 number
3. i like to have a list och
Hello Saul,
Thank you for the suggestion, I was looking for something that would work on
blogspot (I should had been more specific in my original post.) ... And now
I see that these snippets can be embedded! Thanks it looks great!
Also, yesterday, Mike Meyer recommended me to check how wordpress
Saul and Neill,
Thank you both for the suggestions. I used SyntaxHighlighter before,
but I didn't know that there was a custom brush for Clojure. And I've
never known that github.com allows to embed snippets from the site!
Both approaches are equally good at solving my problem.
On Mar 1, 11:50
Thanks Michael. Now that I've added (shutdown-agents) my calls to clj -i return
to the OS prompt as expected after the loaded code finishes execution, exactly
as I wanted without calling System/exit or requiring a keyboard interrupt.
-Lee
On Mar 1, 2010, at 3:25 AM, Michael Wood wrote:
On
On 1 Mar 2010, at 12:26, Volkan YAZICI wrote:
When I compile an expression via C-c C-c in SLIME -- assuming *warn-on-
reflection* is turned on -- reflection related warnings don't appear
neither in the REPL, nor in the inferior lisp buffer. Everytime, I
have to paste the code the REPL
You might want to take a look at the clojure.contrib.combinatorics
library:
http://richhickey.github.com/clojure-contrib/combinatorics-api.html
- James
On Mar 1, 9:36 am, uap12 anders.u.pers...@gmail.com wrote:
I trying to learn Clojure, and the best way fore me is to take a
problem and solve
Hi,
On Mar 1, 4:50 am, Lee Spector lspec...@hampshire.edu wrote:
I'm beginning to realize I have to be looking in the Java library docs rather
than the Clojure docs for some things like this. That this works implies that
there's an implicit import of java.lang.System, available as System/.
On 1 Mar 2010, at 04:50, Lee Spector wrote:
I'm beginning to realize I have to be looking in the Java library
docs rather than the Clojure docs for some things like this. That
this works implies that there's an implicit import of
java.lang.System, available as System/. Am I thinking about
On 1 March 2010 15:23, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
On Mar 1, 4:50 am, Lee Spector lspec...@hampshire.edu wrote:
I'm beginning to realize I have to be looking in the Java library docs
rather than the Clojure docs for some things like this. That this works
implies that
I'd like to note that if you do this, you might just as well use the -
function directly.
Of course; this was merely for the sake of illustration.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
but complexity of such expressions quickly grows as dependencies
between variables become more complex. Is there any
technique/framework for handling such calculations automatically? I
have a vague impression that this is what logic programming languages
are about. How would one implement such
Thanks to several of you for development environment suggestions -- I will try
them all.
On MCLIDE in particular, is it possible to try it in its current state? Neither
of the sets of instructions in the README seem applicable to Clojure (or I'm
not seeing how to apply them).
-Lee
On Feb
How close are we to a recommended programming style for Clojure? When
there is more than one way to do something, should I emulate the style
in core.clj?
The situation that brought this up: I notice that in core.clj, the
default clause for a cond is usually marked with :else. This seems
like a
On Mar 1, 11:32 am, Kevin Archie karc...@npg.wustl.edu wrote:
How close are we to a recommended programming style for Clojure? When
there is more than one way to do something, should I emulate the style
in core.clj?
The situation that brought this up: I notice that in core.clj, the
default
Hi all,
I'm currently having some trouble trying to read some CLOB's with
clojure.contrib.sql's with-query-results. This happens even when I
force evaluation with a doall.
The code I have is this:
(with-connection *application-db*
(with-query-results rs [SELECT myclob From MyTable]
Depends on how you invoked it. Execution time would kill you if it
was a standalone program, but I could envision a persistent process
listening on a unix socket that was queried by a Perl or C program.
The Clojure program would do the heavy lifting of examining messages
in parallel, returning
No, but if you need to do that, then you can do what deftype sort-of
does:
user= (defstruct St :a :b)
#'user/St
user= (defn st ([a] (struct St a 0.0)) ([a b] (struct St a b)))
#'user/st
user= (st 5)
{:a 5, :b 0.0}
On Mar 1, 2:33 am, Manfred Lotz manfred.l...@arcor.de wrote:
Hi,
Can I have a
According to http://clojure.org/reader, “Symbols begin with a non-
numeric character and can contain alphanumeric characters and *, +, !,
-, _, and ? (other characters will be allowed eventually, but not all
macro characters have been determined).” Are there any plans of
allowing any more symbol
On 1 March 2010 23:23, joshua-choi rbysam...@gmail.com wrote:
According to http://clojure.org/reader, Symbols begin with a non-
numeric character and can contain alphanumeric characters and *, +, !,
-, _, and ? (other characters will be allowed eventually, but not all
macro characters have
On 1 mrt, 23:02, Michael Wood esiot...@gmail.com wrote:
I don't know if the following's allowed, but it works:
user= (def ð Math/PI)
#'user/ð
user= ð
3.141592653589793
Sine the JVM considers all strings to be 16-bit unicode, I would
expect all the usual java/unicode number/letter types to
separators = ( | ) | | | @ | , | ; | : | \ |
| / | [ | ] | ? | = | { | } | SP | HT
As far as I can see, all valid HTTP headers are thus valid Clojure
keywords. You don't have to worry.
According to the Clojure reader page SP and HT are not allowed.
Also, I've re-read the reader
On 2 March 2010 01:21, MarkSwanson mark.swanson...@gmail.com wrote:
According to the Clojure reader page SP and HT are not allowed.
Well, according to Richard's post, they're not allowed in HTTP header
names either:
On 1 March 2010 03:26, Richard Newman holyg...@gmail.com wrote:
Per RFC2616,
On Mar 1, 7:00 am, James Reeves weavejes...@googlemail.com wrote:
On Mar 1, 2:19 am, MarkSwanson mark.swanson...@gmail.com wrote:
For an example outside of JSON: recently Compojure changed how it
works so the HTTP request properties are all converted to keywords by
default. I can see the
Hi,
I just posted some example code that gets ClojureCLR running in an
asp.net MVC app.
http://zimpler.com/blog/clojureclr-in-an-asp-net-mvc-app/
Cheers,
Adam.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
Anyone doing milters in clojure? Are they reasonable to do on the JVM?
Not a direct answer, but for a task where we considered milters and JAMES, we
ended up being very happy with subethasmtp:
http://code.google.com/p/subethasmtp/
--Steve
--
You received this message because you are
I don't think that dataflow works quite right in my case because, if I
understood Mr. Straszheim's posts correctly then dataflows can't have
cycles and I have cycles all over the place. Unfortunately this isn't
visible in the example I gave because I used Sell which doesn't have
cycles. Rent on
My application involves a graph with a node set, represented as map from
integral node ID to a node structure. Several threads need to look up
these node structures. This graph is constructed lazily, by which I mean
that the structures representing the nodes are only instantiated upon
first
Hi Iwan,
I'm very interested in this also. I inquired about it in the
following thread:
http://groups.google.com/group/clojure/browse_frm/thread/2954b1f005663bbf#
In short, it appears nobody has attempted this. Unfortunately, I'm
too much of a clojure and java newbie to be competent at doing
On Sun, Feb 28, 2010 at 7:34 AM, joshua-choi rbysam...@gmail.com wrote:
As a small note, according to http://clojure.org/reader, Clojure
keywords and symbols are allowed to contain only alphanumeric
characters, *, +, !, -, _, and ?. Spaces aren’t allowed, but the
keyword function allows them
On Sun, Feb 28, 2010 at 6:26 PM, Richard Newman holyg...@gmail.com wrote:
For an example outside of JSON: recently Compojure changed how it
works so the HTTP request properties are all converted to keywords by
default. I can see the appeal, but now anyone using Compojure has the
increased
Actually, HTTP headers are case-insensitive, so you can't really trust
a regular map of keywords for all purposes. You'd have to reify a
maplike construct (maybe a clojure.lang.IAssociative?) to take care of
case differences. No idea if ring or compojure does this already yet.
I don't see why
Hi,
disclaimer: I'm completely incompetent in terms of the STM. The
following is my understanding what happens. It might be completely
wrong. Ignore at will.
On Mar 2, 2:40 am, Steven E. Harris s...@panix.com wrote:
(dosync
(or (*id-node-map* id)
(alter *id-node-map*
49 matches
Mail list logo