Great! I'll give it a try for sure :)
On Dec 6, 4:55 pm, Rayne wrote:
> Clojure's Java interop is extremely impressive and straightforward --
> to someone who is somewhat familiar with Java. I don't know Java, but
> I've learned to work with it pretty well just by using Clojure. When I
> started
a interface or class (that is on your classpath
> and import'd):
>
> (def calc
> (proxy [Calculator] []
> (add [x y] (+ x y))
> (subtract [x y] (- x y
>
>
>
>
>
>
>
> On Sat, Dec 4, 2010 at 5:49 PM, Rock wrote:
> > NULL POINTER EX
:09 pm, Rock wrote:
> Looks pretty good. Thank you so much.
>
> This does however worry me a little from another point of view.
> There's always been a lot of talk about how easy it is to interface
> Clojure to Java. Yet, when it comes to a lot of situations (for
> inst
hould look at XML-RPC2, which has a simpler
> usage:http://ws.apache.org/xmlrpc/xmlrpc2/server.html
>
> Regards,
> Shantanu
>
> On Dec 4, 10:26 pm, Rock wrote:
>
>
>
>
>
>
>
> > I'm desperately trying to implement an xml-rpc server with Clojure
I'm desperately trying to implement an xml-rpc server with Clojure
(trying to convince the company I work for here in Italy to give it a
shot). I'm pretty well versed in Lisp, but I have yet to acquire
sufficient experience with Clojure's Java interop capabilities.
I've read the docs for implement
or, at most:
``(~...@x) ---> (syntax-quote ((unquote user/a) (unquote user/b)
(unquote user/c)))
And that was a really simple nested syntax-quote. I wouldn't even want
to try tackling more complex ones.
Anyway, just an idea.
Rock
--
You received this message because you are subscribed t
For anyone interested, I have just added the above material to the
Learning Clojure Wiki. I hope you find it useful.
Here's the link:
http://en.wikibooks.org/w/index.php?title=Learning_Clojure&stable=0&shownotice=1#Nested_Syntax-quotes
--
You received this message because you are subscribed to
~user/x ~user/b)
Result:
(clojure.core/seq (clojure.core/concat (clojure.core/list (quote user/
w)) (clojure.core/list user/x) (clojure.core/list user/b)))
A lot more complicated, don't you think?
Rock
On Jan 25, 4:45 pm, Rob Wolfe wrote:
> Sean Devlin napisał(a):
>
> > Rock
the other languages ;)
Rock
On Jan 25, 12:30 pm, Meikel Brandmeyer wrote:
> Hi,
>
> On Jan 25, 8:58 am, rb wrote:
>
> > * interacting with a database in general, and covering clojureql in
> > particular
>
> Beware the redesign: the ClojureQL DSL is currently revised. T
Pardon, in the example above we have a 3 x 3 x 3 nested vector, not a
3 x 3 matrix!
On Jan 23, 2:45 pm, Rock wrote:
> I have a working function to slice multidimensional nested vectors a
> la MATLAB (actually more like NumPy).
>
> I'm using Konrad Hinsen's multi-array libr
I have a working function to slice multidimensional nested vectors a
la MATLAB (actually more like NumPy).
I'm using Konrad Hinsen's multi-array library (keep up the great work
Konrad!). Here's the code (I'm sure it can be greatly improved and
optimized):
(defn nv-subvec [x & ind]
(loop [v x
you've started this project. I
hope I will be able to contribute and help in any possible way.
Thanks again.
On Jan 10, 12:15 pm, Konrad Hinsen wrote:
> On 10.01.2010, at 10:35, Rock wrote:
>
> > I hadn't thought about. I'm so happy that you are working on this as
>
tical computing, but this aspect has been somewhat neglected
until now for some reason. Let's hope for a big change in this respect
as soon as possible.
Rock
On Jan 10, 10:01 am, Konrad Hinsen wrote:
> On 09.01.2010, at 21:22, Rock wrote:
>
> > I'm working on implementin
other words, [0 2 4] is to be interpreted as [START STRIDE END].
STRIDE should be optional.
What do you think? And, above all, has it already been done (or
something similar)?
Thank you.
Rock
--
You received this message because you are subscribed to the Google
Groups "Clojure&qu
Great news Konrad!
I'll be having a look as soon as possible, and I hope I can help out.
Thank you!
Rock
On Nov 14, 3:54 pm, Konrad Hinsen wrote:
> Following recent discussions on this list about how to work with
> multiarrays (n-dimensional arrays, data cubes) in Cloj
I've been following this thread, and I must say I'm puzzled that Rich
hasn't said anything at all about this issue yet. It seems important
enough to hear his own opinion.
On 6 Nov, 18:56, Paul Mooser wrote:
> So, I've been hoping that Rich (or someone?) would weigh in on this,
> and give the go
nesting.
> > it's also pretty handy if you want to represent a sparse matrix.
>
> Maps could be a good choice for sparse arrays. For dense ones, they
> would represent an enormous waste of memory, and probably time as well.
Well sparse arrays should always be treated more specifi
rence is. If you had to choose, which way
would you go?
Thanks so much for your help.
Rock
On Oct 28, 7:54 pm, Konrad Hinsen wrote:
> On 27.10.2009, at 18:07, Rock wrote:
>
> > these things. Why? Because they're just that: nested vectors. They're
> > not truly multidim
ng. Maybe I haven't thought about this long enough, I
don't know. But my instincts tell me that nested vectors are no good
when it comes to this kind of stuff.
Rock
On Oct 27, 5:52 pm, Konrad Hinsen wrote:
> On 27.10.2009, at 17:46, Rock wrote:
>
> > What if we created a structm
whole
set of multimethods to manage this data structure. This way, we can
have the power of Clojure vectors and the flexibility all wrapped up
in one coherent package.
What do you think?
Rock
On Oct 26, 7:32 pm, liebke wrote:
> I agree, use Clojure vectors whenever it's feasible. Eve
Just one more thing. It's still not really clear to me if I am better
off using Java arrays (make-array ...) or clojure vectors especially
when dealing with multidimensional arrays. I know that if use Java
libraries such as Colt, I have no choice. But in general? What do you
think?
On Oct 25, 5:3
Thanks for your replies. You've been very helpful.
On Oct 24, 1:36 pm, Konrad Hinsen wrote:
> On 23 Oct 2009, at 22:00, Konrad Hinsen wrote:
>
> > For matrix computations and linear algebra, your best choice is
> > probably
> > the Colt library developed at CERN, or the somewhat parallelized
tific computing purposes) sooner or later?
Thanks.
Rock
--~--~-~--~~~---~--~~
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
What if someone wanted to slice a multi-dimensional vector (vector of
vectors of vectors ...) or even just an ordinary matrix (vector of
vectors).
Is there a way to extend this beyond an ordinary one-dimensional
vector?
Rock
On Aug 18, 3:17 am, Mark Triggs wrote:
> Hi all,
>
> Is
Daniel Weinreb (of Common Lisp fame) talks about Clojure in the second
part of this Google Tech Talk:
http://www.youtube.com/watch?v=xquJvmHF3S8
Rock
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure&q
(user/w user/a 2)
A piece of cake ;)
Rock
On Aug 11, 11:07 pm, rob wrote:
> Let Over Lambda by Hoyte contains a very lucidly well-written
> discussion of quotation levels in macros. It also includes a pretty
> useful technique for being explicit about variable capture. The code
rfectly to Clojure as well. The only difference is that you
have to remember that in Clojure, backquotes can *resolve* unqualified
symbols too (which is actually powerful and cool). So no problem
there.
Rock
On Aug 11, 6:00 pm, Jonathan Smith wrote:
> For the sake of contradicting myself, in th
OK.
Will try that. Thanks for the tip.
On Jun 24, 5:21 pm, "J. McConnell" wrote:
> On Wed, Jun 24, 2009 at 5:15 AM, Rock wrote:
>
> > I have almost succeeded in convincing the company I work for here in
> > Italy to give Clojure a try, and see if it can be
No response.
Not even a single SOAP web service server implemented in Clojure yet?
Rock
On Jun 24, 11:15 am, Rock wrote:
> I have almost succeeded in convincing the company I work for here in
> Italy to give Clojure a try, and see if it can be adopted for an
> important project.
>
difficult part in that, in order to build the web service,
you need to use annotations. Now, does anyone know if there's some way
of doing this with Clojure? Has anyone ever succeeded in implementing
a web service with Clojure (with or without JAX-WS)?
Thanks.
| |x2| |x3| ... |xn|)) ?
That way the symmetry is restored and the rules are much simpler.
----
Rock
On Jun 1, 4:59 pm, Rock wrote:
> I've been working on the Wiki lately and I'm stuck on the part about
> syntax-quotes (that
(clojure.core/apply clojure.core/list (clojure.core/seq (clojure.core/
concat))) ?
That way the symmetry is restored and the rules are much simpler.
Rock
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure"
)
is interpreted to mean
(clojure.core/list)
Any comments/help greatly appreciated.
Rock
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@google
Ok. I'll try to correct that. It was already there when I started
working on that section. My main concern is the part where I describe
the rules for the syntax-quote expansion. Does it seem correct to you?
Thanks so much for helping :)
Rock
On May 29, 5:47 pm, Rich Hickey wrote:
> O
By the way, here's the link:
http://en.wikibooks.org/w/index.php?title=Learning_Clojure&stable=0#Reader_Macros
On May 29, 4:14 pm, Rock wrote:
> Hi,
>
> I've just finished updating the "Reader Macros" section of the Wiki
> (especially the syntax-quote par
By the way, here's the link:
http://en.wikibooks.org/wiki/Learning_Clojure#Reader_Macros
On May 29, 4:14 pm, Rock wrote:
> Hi,
>
> I've just finished updating the "Reader Macros" section of the Wiki
> (especially the syntax-quote part), and I would like to k
Hi,
I've just finished updating the "Reader Macros" section of the Wiki
(especially the syntax-quote part), and I would like to know if it's
reasonably correct. It'd be great to have Rich's blessing.
Thanks.
Rock
--~--~-~--~~~---~--~-
ftmost one belongs to the innermost syntax-quote.
So in the previous example do this:
'`(~a)
then apply another '` to whatever you get as the result. This way you
can break it down to successive steps.
Hope that helps.
Rock
P.S. I've just realized that I'm going to have to u
On Mar 14, 4:27 pm, pmf wrote:
> On Mar 14, 12:44 pm, Rock wrote:
>
> > Hi all. I've been working on a piece of code (an xml-rpc server) in
> > Python (actually Jython), and one of its features is the capability of
> > loading modules (connectors in Java)
ly doesn't seem like it.
Rock
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send e
On 20 Feb, 17:10, Jeffrey Straszheim
wrote:
> There have been some major changes in the last week or so.
> Seehttp://clojure.org/lazyfor a brief overview.
> Also:http://blog.n01se.net/?p=39
>
> On Fri, Feb 20, 2009 at 10:31 AM, Rock wrote:
>
> > After watching Rich
course) again:
user=> (rest ())
()
or
user=> (rest [])
()
What gives?
Rock
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to clojure@googlegroup
aham illustrates is
equivalent. I believe SBCL adopts something along those lines
actually. Anyway I think it's much easier to *see* what's going on
with the latter.
Rock.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
That's Common Lisp notation so mentally replace commas with ~. It took
me some getting used too! :-)
Now my other question is this:
2) Given that in Clojure a syntax-quote (`) doesn't just quote a
*symbol* but *resolves* it in the current context, would the above
On 14 Gen, 17:58, Chouser wrote:
> On Wed, Jan 14, 2009 at 6:07 AM, Rock wrote:
>
> [snip]
>
> > #^{:ack bar} foo ; (clojure/with-meta foo {:ack bar})
>
> This is not correct, and a common misunderstanding.
>
> "#^ is not sugar for with-meta. It do
Here's an update on syntax-quote in the WikiBook (Reader Macro
section):
The most complicated reader macro is syntax-quote, denoted by ` (back-
tick). When used on a symbol, syntax-quote is like quote but the
symbol is resolved to its fully-qualified name:
`meow; (quote cat/meow) ...assuming
On Jan 13, 11:35 am, Rock wrote:
> I've added some info regarding the backquote expansion mechanism in
> the Reader section here:
>
> http://en.wikibooks.org/wiki/Learning_Clojure#The_Reader
>
> I tried to answer the author's question regarding the possible
apparently employs, which seems to be very similar to the one
"suggested" in the CL HyperSpec, though practically every CL
implementation adopts its own and is free to do so.
I hope I get his and, of course, Rich's blessing.
Happy Clojure.
Rock
--~--~-~--~~
OK. Perfect. Thanks. I was worried there for a moment. Next time I'll
read the docs more carefully. My fault.
On Jan 13, 3:29 am, Rich Hickey wrote:
> On Jan 12, 6:49 pm, Rock wrote:
>
>
>
> > After a fair amount of macro writing in CL, I think I got the
> >
trange (quote user/x) above which wasn't supposed to be there. I
mean user/x should not have been quoted.
Is this a bug?
Rock
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To
Given that there's nothing like letrec in Clojure, and that let acts
like let* in CL, I gather that local recursive functions are possible
whereas local mutually recursive ones are not. Is that correct? If so,
will they ever be in the future?
o use structures, and
perhaps multimethods.
Rich, would it be possible to "overload" the arithmetic operators with
this strategy, so that they'll work with the new complex numbers?
Opinions?
On Nov 23, 3:42 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:
> On Nov 23, 8:56 am, R
On Nov 23, 2:37 pm, André Thieme <[EMAIL PROTECTED]> wrote:
> On 23 Nov., 13:29, Rock <[EMAIL PROTECTED]> wrote:
>
> > I've just noticed there is no support for complex numbers in Clojure.
> > There are a few posts on the issue here, but no rationale. I'm
re until I needed them recently.
Can you tell us why, Rich?
Any plans to include them in future versions? If not, I guess I'll use
the Apache.Commons.Math library or possibly JScience.
Rock
--~--~-~--~~~---~--~~
You received this message because you are su
I had no idea, great!
Thanks.
Rock
On Nov 22, 11:38 pm, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote:
> Hi Rock,
>
> Am 22.11.2008 um 22:23 schrieb Rock:
>
> >http://code.google.com/p/project-euler-lisp/
>
> There is alsohttp://clojure-euler.wikispaces.com.
>
&g
why the posted solution was better, or
3 - realize that yours is actually the better one (in which case
please post it and participate).
I've uploaded the first two at project-euler-lisp (Google Code).
Here's the link:
http://code.google.com/p/
7;m not certain my version is written correctly, and, above
all, in a decent Clojure style. Still learning. Hope that answers your
question.
Rock
On Nov 20, 9:50 pm, Allen Rohner <[EMAIL PROTECTED]> wrote:
> On Nov 20, 1:58 pm, Rock <[EMAIL PROTECTED]> wrote:
>
>
>
>
08 pm, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote:
> Hi Rock,
>
> Am 20.11.2008 um 20:58 schrieb Rock:
>
> > Peter Seibel's Practical Common Lisp:
>
> You might want to look at Stuart Halloway's "PCL->Clojure"
> series:http://blog.thinkrele
given that it is employed so
frequently.
Rock
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, s
Thanks for your efforts Meikel. Greatly appreciated.
Rock
On Nov 20, 4:07 pm, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On 20 Nov., 14:28, Rich Hickey <[EMAIL PROTECTED]> wrote:
>
> > I didn't see any issues with wiki editing, ar eyou still hav
, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > On 20 Nov., 11:29, Rock <[EMAIL PROTECTED]> wrote:
>
> > > I was what the difference might be with respect to this:
>
> > > `(let [frame ~frame]
> > > (.s
]> wrote:
> Hi,
>
> On 20 Nov., 11:29, Rock <[EMAIL PROTECTED]> wrote:
>
> > I was what the difference might be with respect to this:
>
> > `(let [frame ~frame]
> > (.setTitle frame ~title)
> > (.setVisible frame)
> > frame)
>
>
I was just reading the Macro section in the WikiBook. Regarding the
following piece of code,
`(let [~'frame ~frame]
(.setTitle ~'frame ~title)
(.setVisible ~'frame)
~'frame)
I was what the difference might be with respect to this:
`(let [frame ~frame]
(.setTitle frame ~title)
(.
Hi all :)
Coming from CL and Scheme, I never thought I'd see the day when a
superb language like Lisp could ever stand a chance at gaining a
larger acceptance, but Clojure looks like our best bet yet. What a
fantastic job Rich! I think you've just created the Lisp of the
future :)
Anyway, where
64 matches
Mail list logo