On May 21, 2009, at 1:32 AM, Konrad Hinsen wrote:
> I can't say if there is an important difference between Haskell and
> Clojure
> implementation-wise.
I would be surprised if the basic idea (passing thunks instead of
values) were different or could be much different. On the other hand,
On May 20, 2009, at 5:42 PM, Raoul Duke wrote:
>
> hi,
>
> Seems like Haskell's laziness has an aura of "it will bite you
> performance-wise sooner or later." What is different (I'm asking
> didactically, not snarkily) about Clojure's laziness? Does it manage
> to avoid some aspects of the "uh o
On May 21, 2009, at 7:39 PM, CuppoJava wrote:
>
> Hi everyone,
> I'm just wondering where the equivalent of the ">>>" operator is for
> Clojure. I need it to do a divide-by-power-of-2 on unsigned bytes.
I could use this too.
—
Daniel Lyons
http://www.storytotell.org -- Tell It!
--~--~---
Here is a more direct translation with type hints:
(with-open [r (new java.io.BufferedReader (new java.io.FileReader
"words.txt"))]
(sort-by #(.toLowerCase #^String %)
(mapcat #(.split #^String % " ") (line-seq r
With the obvious advantage of not reading the file as a string.
R
>... impact part can be merged with the "business application" mindset by
>generating a report that includes the data visualization (I think PDF
>generation is built into processing).
I've been doing some work with enlive and XHtmlRenderer - it's a
pretty awesome way of generating (business, medi
> Game developement?
Some work has been done on using clojure with jogl (the java opengl
library) Search this forum with "jogl" for details.
> with the Android platform
I'm pretty sure there is also an android implementation of clojure.
Again, search this forum for "android".
Rgds, Adrian.
On
Quite an old example which I think demonstrates this well:
> http://clojure.googlegroups.com/web/2c-calculator.clj
>
>
the fourth line can be combined with the third line for even more
conciseness, no?
--~--~-~--~~~---~--~~
You received this message because you are
Check out clojure.org - focus on java interop, compilation and class
generation. Mark Volkmann's
http://java.ociweb.com/mark/clojure/article.html has a good general
clojure overview and nice examples. Gen-class and proxy are the main
tools you'll need for exposing your clojure libraries as java ap
>
> Show how you can run a demo with a bug in it, trigger the bug, to
> cause a break, fix the bug while in the break, and resume the demo
> with the corrected code.
>
>
You can do that? What do "Fix the bug while in the break" mean? I know you
could do that in Common Lisp. I'd love to know how
Game developement?
Definitely possible. I was even thinking of finding a way to bridge Clojure
with the Android platform
Electronic Arts?
Most likely not.
On Thu, May 21, 2009 at 2:35 PM, tcg wrote:
>
> You would think with Clojure's ability to make use of mutli cpu
> hardware it would be a goo
Can't be done using the standard Java library. You'll have to write
some JNI code or find a JNI library.
On May 20, 4:32 am, prhlava wrote:
> Hello,
>
> Apologies for off topic post.
>
> I would like to send and receive raw ethernet frames from Clojure.
>
> So far, I found:
>
> http://netresear
Hi everyone,
I'm just wondering where the equivalent of the ">>>" operator is for
Clojure. I need it to do a divide-by-power-of-2 on unsigned bytes.
-Patrick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure"
You would think with Clojure's ability to make use of mutli cpu
hardware it would be a good choice for high-end game development.
Does anyone know if big game studios like Electronic Arts are using or
looking into Clojure for this purpose?
--~--~-~--~~~---~--~~
Yo
Speaking of "walking/filtering code," what about walking _actual_ code?
The only thing off the top of my mind would be an example of, say, a "Hello
World" function, but with the code represented as a JTree. Say, in the
function (pr (.toLowerCase "Hello World")), you'd see .toLowerCase as a
node.
On May 21, 6:42 am, Rich Hickey wrote:
> On May 21, 3:39 am, mikel wrote:
>
>
>
>
>
> > On May 18, 7:36 am, Rich Hickey wrote:
>
> > > I'll be doing two sessions involving Clojure at JavaOne this June. One
> > > is a traditional talk (TS-4164), the other is as a participant in the
> > > Scrip
Hi,
I noticed that one part of my code was being obscenely slow, so I set
*warn-on-reflection* to true.
(let [b (byte 30)]
(> b 30))
gives Reflection warning, NO_SOURCE_PATH:498 - call to gt can't be
resolved.
But:
(let [b (int 30)]
(> b 30))
Is there a reason for having a byte-overloaded
Try here:
http://code.google.com/p/clojure/source/browse/
Brett Morgan wrote:
> Hi guys,
>
> I have some evil thoughts of using Clojure as a java library so that i
> can use both the STM and the persistent data structures in projects
> that my team of java developers can work with.
>
> As much
Hi guys,
I have some evil thoughts of using Clojure as a java library so that i
can use both the STM and the persistent data structures in projects
that my team of java developers can work with.
As much as I'd like to get the team coding in Clojure properly, I have
enough trouble selling the ide
klang writes:
> This only works (for now) when using an alternative fork of clojure-
> mode
>
> git clone git://github.com/technomancy/clojure-mode.git
>
> .. that's why I got the same error messages consistently on both XP,
> OSX and Ubuntu ..
I was able to contact jochu (the original maintain
This only works (for now) when using an alternative fork of clojure-
mode
git clone git://github.com/technomancy/clojure-mode.git
.. that's why I got the same error messages consistently on both XP,
OSX and Ubuntu ..
/klang
On May 18, 8:40 pm, klang wrote:
> Using my existing definitions
>
>
Here's the magic incantation for using wget to pull a useful copy (no
postprocessing required!):
wget -krmnp -E -X/page,/message --no-check-certificate -P
https://clojure.org
replace target with the directory where you want the output and you're
off to the races.
Thanks to Kresimir Sojat for w
> I'd like to do something modest but distinguishing. I have a vague
> notion of showing some Clojure data originating in some XML off the
> web, being passed to some filtering/walking code, getting displayed,
> stored in a DB, all without specific DOM/model/recordset APIs, a
> couple of lines for
> http://fupeg.blogspot.com/2009/05/javaone-talk-word-sort.htmlhttp://fupeg.blogspot.com/2009/05/javaone-talk-ruby-word-sort.html
(sort-by #(.toLowerCase %) (.split (slurp "words.txt") " ")
> implementations:http://fupeg.blogspot.com/2009/05/javaone-talk-prime-sieve.html
CG had a very nice sol
On 21.05.2009, at 15:38, aperotte wrote:
> Though I can't say I've thoroughly tested this, the intended
> functionality is that you provide a nested structure and you specify
> the shape of the units with the first argument.
Ah, I see. I didn't try that at all.
>> 2) Shapes and indices are all
I'd like to echo Laurent's words - getting rid of boiler plate code is
tops.
Quite an old example which I think demonstrates this well:
http://clojure.googlegroups.com/web/2c-calculator.clj
Most people are familiar with the code explosion that buttons and
action listeners usually involve.
[it need
Modifying the running Java application is definitely a big plus and
attraction.
Also, showing off the features in the mainstream IDEs tells the Java
developer that it is very easily approachable and participate in the
whole classpath and tight integration with Java. Telling them how Java
and Cloju
On May 21, 10:38 am, Chas Emerick wrote:
> I'm guessing glitz and visual impact is what's going to wow the crowd,
> especially in that environment, where it's likely that most people are
> steeped in "business applications".
>
> Perhaps using one of the clojure-processing wrappers to do some
>
klang writes:
> There is still something obvious that I am missing, to get origin/
> master working, but at least I am missing it consistently on three
> operating systems, yay me! :-)
I think swank-clojure will have to be updated to support the latest
origin/master; there must have been a brea
The duck streams library should give some examples the Java crowd will
be ready to appreciate. That, or maybe use the with-open macro.
My $.02
On May 21, 7:42 am, Rich Hickey wrote:
> On May 21, 3:39 am, mikel wrote:
>
>
>
> > On May 18, 7:36 am, Rich Hickey wrote:
>
> > > I'll be doing two
I'm guessing glitz and visual impact is what's going to wow the crowd,
especially in that environment, where it's likely that most people are
steeped in "business applications".
Perhaps using one of the clojure-processing wrappers to do some
outrageously-slick data visualization, and then s
I have just tried my setup on both OSX and Ubuntu .. (with Paul's
modifications) .. and there is something seriously wrong with my way
of using clojure-mode to bootstrap the whole installation.
I am looking at the same error-messages as described in my original
post, on additional two different s
On Thu, May 21, 2009 at 3:35 AM, Michael Wood wrote:
>
> On Thu, May 21, 2009 at 9:15 AM, Christophe Grand
> wrote:
> >
> > Cosmin Stejerean a écrit :
> >> On Wed, May 20, 2009 at 7:04 PM, George Jahad
> >> mailto:andr...@blackbirdsystems.net>>
> >> wrote:
> >>
> >>
> >> (def s1 (Symbol/crea
> 1) What is the role of the first argument to PersistentMatrix/create?
> It seems that anything else than (int-array [1]) leads to an error.
Though I can't say I've thoroughly tested this, the intended
functionality is that you provide a nested structure and you specify
the shape of the units
On Thu, May 21, 2009 at 4:59 AM, michaelg wrote:
>
> So if anyone would like to help, I would be very appreciative. All I
> can offer is recognition in my JavaOne talk. All I ask from the
> implementations is that they try to stay true to how the Java version
> worked, while also trying to be fai
On May 21, 3:39 am, mikel wrote:
> On May 18, 7:36 am, Rich Hickey wrote:
>
>
>
> > I'll be doing two sessions involving Clojure at JavaOne this June. One
> > is a traditional talk (TS-4164), the other is as a participant in the
> > Script Bowl 2009: A Scripting Languages Shootout (PAN-5348).
Thanks this also worked for me on my Aquamacs Clojure slime setup. I
added your code to the customization.el file in ~/Library/
Preferences/...
-Alen
On May 18, 7:14 pm, Paul Stadig wrote:
> I just happened to be setting up emacs an a new Ubuntu install today. I
> think it might have something
As they say on sports radio, long time listener, first time caller...
I am giving a talk at JavaOne on alternative language performance on
the JVM. I have written a couple of algorithms in Java, and then
mostly equivalent ones in Groovy, Ruby, Python, Scala, and Fan. I
would like to include Clojur
On Thu, May 21, 2009 at 9:15 AM, Christophe Grand wrote:
>
> Cosmin Stejerean a écrit :
>> On Wed, May 20, 2009 at 7:04 PM, George Jahad
>> mailto:andr...@blackbirdsystems.net>>
>> wrote:
>>
>>
>> (def s1 (Symbol/create (.intern (first (.split "user/n1" "/")
>>
>> will fix your proble
On May 18, 7:36 am, Rich Hickey wrote:
> I'll be doing two sessions involving Clojure at JavaOne this June. One
> is a traditional talk (TS-4164), the other is as a participant in the
> Script Bowl 2009: A Scripting Languages Shootout (PAN-5348).
>
> The 'script' bowl is a friendly competition,
On 21.05.2009, at 01:42, Raoul Duke wrote:
> Seems like Haskell's laziness has an aura of "it will bite you
> performance-wise sooner or later." What is different (I'm asking
> didactically, not snarkily) about Clojure's laziness? Does it manage
> to avoid some aspects of the "uh ohs" in Haskell?
On Wed, May 20, 2009 at 9:05 PM, Kei Suzuki wrote:
>
> I should have uploaded the file in the .zip format for ease of
> extraction. Since I don't know how to replace it with a .zip version
> and I don't want to clutter the file area, I don't upload the zip
> version. Mac and Linux users should ha
Cosmin Stejerean a écrit :
> On Wed, May 20, 2009 at 7:04 PM, George Jahad
> mailto:andr...@blackbirdsystems.net>>
> wrote:
>
>
> (def s1 (Symbol/create (.intern (first (.split "user/n1" "/")
>
> will fix your problem.
>
>
> That makes a lot of sense and I guess I should have paid at
42 matches
Mail list logo