it would give us a chance to introduce Agents as the
building block of the game engine.
Timothy
On Sun, Oct 30, 2011 at 1:32 PM, Dennis Haupt
d.haup...@googlemail.com wrote: hi community,
i decided to create a (small) game in clojure to get a bit of
non-theoretical experience. i'm
://www.youtube.com/watch?v=yY5qHe2VadA
I like the idea of doing a Asteroids/Spacewar! clone, mostly
because it would give us a chance to introduce Agents as the
building block of the game engine.
Timothy
On Sun, Oct 30, 2011 at 1:32 PM, Dennis Haupt
d.haup...@googlemail.com wrote: hi community
-split)
etc.
Actually, this really isn't too long of a project, at least the
asteroids part isn't.
Timothy
On Mon, Oct 31, 2011 at 8:00 AM, Dennis Haupt
d.haup...@googlemail.com wrote: isn't openGL a bit of overkill
(we can just use java2d), or do you want to add a renderer doing
all
Clojure-control is a clojure DSL for system admin and deployment with
many remote machines via ssh/rsync.It is on github:
https://github.com/killme2008/clojure-control
0.2.1 has been released,main highlights:
First,A shell command DSL by sunny87,for example:
(cd /home/login
(run ls)
(cd
as small as asteroids
would work well to have multiple people working on it. Simply
because each part of the game (graphics, physics, gui, etc.) are
all so small, that multiple developers would just step on each
other's toes.
Timothy
On Mon, Oct 31, 2011 at 9:37 AM, Dennis Haupt
d.haup
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
no need for IRender since everything has a java.awt.polygon. i just
draw it. in a sense, the polygon is my IRender and it's data is the
implementation.
i was thinking about using a simple type (:asteroid, :ship, :bullet)
for each entity and pick an
do this without any
modifications to the core engine at all) then I would say you have
reached a higher plane of understanding in when it comes to
Clojure.
Timothy
On Mon, Oct 31, 2011 at 1:42 PM, Dennis Haupt
d.haup...@googlemail.com wrote: no need for IRender since
everything
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
if you *really* make zero assumptions, every second call has to be a
protocol/interface call. *i know what i am, so no assumption* -
*interface call* - *repeat*
i think no assumptions should be make no assumptions about the
internals of what you are
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
i played around a bit
(defmacro times [times exprs]
'(let [countdown# ~times]
(loop [remaining# countdown#]
(when ( 0 remaining#)
~@exprs
(recur (dec remaining#))
(defmacro forloop [[i end] code]
`(let
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
your magic eye is right. using a backquote fixed it
Am 30.10.2011 15:37, schrieb David Powell:
On Sun, Oct 30, 2011 at 2:22 PM, Dennis Haupt
d.haup...@googlemail.com mailto:d.haup...@googlemail.com
wrote:
-BEGIN PGP SIGNED MESSAGE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
hi community,
i decided to create a (small) game in clojure to get a bit of
non-theoretical experience. i'm pretty much a clojure noob (only did a
few experiments) but have done a few real things in scala - which is
totally awesome btw - so i do have
Hi,all
I wrote a memcached client for clojure wrapping xmemcached.Xmemcached
is an opensource high performance memcached client for java.
It's name is clj-xmemcached,and it is on github
https://github.com/killme2008/clj-xmemcached
A basic example:
(ns demo
(:use [clj-xmemcached.core]))
An example with more detail is on
https://github.com/killme2008/clj-xmemcached/blob/master/example/demo.clj
2011/10/29 dennis killme2...@gmail.com
Hi,all
I wrote a memcached client for clojure wrapping xmemcached.Xmemcached
is an opensource high performance memcached client for java
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
i have some (10 years) experience with difference statically typed
languages and a bit with dynamic ones. i encountered a few typesafe
solutions that don't introduce a lot of overhead - for example the
types of scala. in addition to interfaces and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
if i got it right, filter/remove and map (basically all batch
transform functions) return lazy sequences. to convert them to real
collections again, i do (vec lazyseq) in case i want the result to be
stored in a vector.
correct?
what happens if i
Here is a link to my presentation.
http://dl.dropbox.com/u/5831287/JavaOne%202011%20-%20Monitoring%20a%20Large-Scale%20Infrastructure%20with%20Clojure%20FINAL.pptx
Sorry about the file format :)
Let me know if the link doesn't work.
-- Dennis
On Tue, Oct 4, 2011 at 10:17 AM, C. Arel java10c
Good idea. I am having problems with slideshare displaying the
presentation. I probably need to get on another machine to try to
convert it to something more useful, and that will take a couple of
days. I will post when I do.
-- Dennis
On Wed, Oct 5, 2011 at 12:05 AM, Leonardo Borges
Thanks for the advice and support everyone! I'm not hopeful at being able to
sway him to a parenthetical language through logic (I've tried!)
Additionally, I definitely would not consider throwing out unmaintainable
decompiled Java code on the sly. That, as Nicolas pointed out, would be the
Nice article in the wiki link, the logic rings pretty true for me. Clojure
is a truly powerful language and I don't want for any higher-level
facilities with it yet. :)
That said, it would probably mean great strides in the industry if elegant
Clojure code could be translated to comprehensible
and just compile it to
Java source and check that in.
Thanks,
Dennis
--
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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
compile to java class, decompile to java source. works in theory,
until someone actually looks at the source ;)
btw, your new boss is ... not the type of boss that would keep me from
looking for a new job.
Am 29.09.2011 20:09, schrieb Dennis
I am not sure to what extent there will be recording. However, I can
send you my slides after the presentation.
-- Dennis
On Wed, Sep 28, 2011 at 12:47 AM, Boris Mühmer
boris.mueh...@googlemail.com wrote:
Will there be any slides or maybe even a recording of this session?
I would be very
to develop
new monitoring tools
Track Emerging Languages, Tools, and Techniques
Optional Track The Java Frontier
-- Dennis
--
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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 27.09.2011 06:27, schrieb Baishampayan Ghose:
i wasn't really trying to achieve anything useful - just messing
around and see where i get.
now i'm here: (defrecord point [x y z]) (defn genPoints [n] (let
[random (new Random) randomInt
in three places, and the first argument to
iterate is a function, not a long:
(let [rand (new java.util.Random) nextInt (fn [a] (.nextInt
rand))] (map print (iterate nextInt 0)))
On Sun, Sep 25, 2011 at 3:51 PM, Dennis Haupt
d.haup...@googlemail.com wrote: (let [rand (new java.util.Random
(randomInt) (randomInt) (randomInt))]
(repeatedly n randomPoint)))
is there a way to avoid writing (randomInt)(randomInt)(randomInt) and
instead something like (magic (repeatedly 3 randomInt))?
Am 25.09.2011 22:14, schrieb Baishampayan Ghose:
On Mon, Sep 26, 2011 at 1:21 AM, Dennis Haupt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 25.09.2011 14:00, schrieb Stuart Halloway:
the website says:
deftype supports mutable fields, defrecord does not
so deftype seems to be what would be a java bean with simple
properties in java
Nope. :-)
Domain information should use
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
so there is no difference.
Am 25.09.2011 15:28, schrieb Stuart Halloway:
what's the difference between persistent and immutable?
See http://en.wikipedia.org/wiki/Persistent_data_structure, which
now has a nice shout out to Clojure.
Stu
-
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
so persistent is immutable + x like car is movable + x. it doesn't
make sense to ask what the difference is.
Am 25.09.2011 18:59, schrieb Phil Hagelberg:
On Sep 25, 2011 6:12 AM, Dennis Haupt d.haup...@googlemail.com
mailto:d.haup
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
(let [rand (new java.util.Random) nextInt (fn [a] (.nextInt rand))]
((map (print) (iterate ((nextInt dummy) 0)
the error is:
java.lang.ClassCastException: java.lang.Integer cannot be cast to
clojure.lang.IFn (NO_SOURCE_FILE:0)
why does it want
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
in java, i would start coding a game with a loop like this:
while (true) {
logic();
render();
}
i would store the current state of the world in an object containing
the complete data of the whole game and update its values in each
iteration.
how
you ask a value for it.
render should do that
Matt Hoyt
*From:* Dennis Haupt d.haup...@googlemail.com
*To:* clojure@googlegroups.com *Sent:* Saturday, September 24, 2011
2:36 PM *Subject:* beginner question
://clojure.org/datatypes
assoc for records sets the value of the property for the record.
Matt Hoyt
*From:* Dennis Haupt d.haup...@googlemail.com
*To:* clojure@googlegroups.com *Sent:* Saturday, September 24, 2011
3
:* Dennis Haupt d.haup...@googlemail.com
*To:* clojure@googlegroups.com *Sent:* Saturday, September 24, 2011
3:54 PM *Subject:* Re: beginner question
i assumed my game to be so much fun that no one would ever want to
stop playing it.
Am 24.09.2011 22:26, schrieb Matt Hoyt:
You need a check
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 20.09.2011 22:55, schrieb Islon Scherer:
Scala is a OO language with FP support, clojure is a functional
language with OO support, they are very different. It's normal for
someone with a OO background to think that every method receives a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 21.09.2011 19:58, schrieb Ken Wesson:
On Wed, Sep 21, 2011 at 3:00 AM, Dennis Haupt
d.haup...@googlemail.com wrote:
yes, but you magically need to know a) for which types does it
work? if you give a byte to the function, will you get an error
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 20.09.2011 05:43, schrieb Sean Corfield:
On Mon, Sep 19, 2011 at 4:19 PM, Dennis Haupt
d.haup...@googlemail.com wrote:
an advantage i see is very, very concise code since you have no
type annotations at all. the downside is that exactly
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
hi community,
clojure is dynamically typed, so i thought here i might find some good
reasons for that. what can you do if you sacrifice compile time type
safety?
an advantage i see is very, very concise code since you have no type
annotations at
by means of I need to learn
something, what should I do is not as effective, or as fun, as
learning it by doing something you care about.
On Sep 16, 2:50 pm, Dennis Haupt d.haup...@googlemail.com wrote:
hi community,
i feel compelled to do something more complex in clojure. not too
big
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
hi community,
i feel compelled to do something more complex in clojure. not too big,
but bigger than what fits in 100 lines and offers some chances to use
macros.
it should also be fun, maybe something like robocode.
- --
-BEGIN PGP
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
so the scala actors add much more overhead than the clojure equivalent?
Am 07.09.2011 07:32, schrieb Sean Corfield:
I just wanted to share this experience from World Singles...
Back in November 2009, we started developing with Scala. We needed
a
to cast the result to IFn?
Am 04.09.2011 19:57, schrieb Sergey Didenko:
Dennis, may I suggest you to read this great article on Clojure:
http://java.ociweb.com/mark/clojure/article.html
-- You received this message because you are subscribed to the
Google Groups Clojure group. To post
: is there an ide that can point out syntax
errors? intellij idea can detect some parentheses/braces problems, but
i managed to trick it by adding too many ( and ). i got weird
exceptions and had to check everything manually.
Am 04.09.2011 19:57, schrieb Sergey Didenko:
Dennis, may I suggest you
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
thx, that's what i figured out a moment ago. i am used to allknowing ides
Am 06.09.2011 15:25, schrieb Stefan Kamphausen:
hi,
why does clojure want to cast the result to IFn?
if I parse that correctly, you have two parens around the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
It was not a syntax error. Your expression just had the wrong
return value. I don't see how an IDE could help here.
by type inference. i don't know how far an ide could track the types
in clojure since it's completely lacking any type
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
or the equivalent shorthand form:
#(= % 2)
should i ever write a bigger app with clojure, it will be filled with
these. i like them.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla -
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
i started with a tic tac toe implementation, but i'm stuck:
(def open 0)
(def p1 1)
(def p2 2)
(def emptyfield [open open open open open open open open open])
(defn updated [seq index replacement]
(concat
(take index seq)
[replacement]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
solved my last problem, and now i'm stucker than before:
(def open 0)
(def p1 1)
(def p2 2)
(def emptyfield [open open open open open open open open open])
(defn updated [seq index replacement]
(concat
(take index seq)
[replacement]
.
Luc P.
On Sun, 04 Sep 2011 18:55:12 +0200 Dennis Haupt
d.haup...@googlemail.com wrote:
solved my last problem, and now i'm stucker than before:
(def open 0) (def p1 1) (def p2 2) (def emptyfield [open open open
open open open open open open])
(defn updated [seq index replacement
Clojure-control is an open source clojure DSL for system admin and
deployment with many remote machines via ssh.
You can define clusters and tasks to execute repeatly,an example:
(ns samples
(:use [control.core :only [task cluster scp ssh begin]]))
(cluster :mycluster
:clients [
1.What is clojure-control?
The idea came from node-control(https://github.com/tsmith/node-
control).
Define clusters and tasks for system administration or code
deployment, then execute them on one or many remote machines.
Clojure-control depends only on OpenSSH and clojure on the local
control
will be used as file argument for scp macro.
clojure-control is still on development,any suggestion welcomed.
On 7月24日, 下午9时41分, dennis killme2...@gmail.com wrote:
1.What is clojure-control?
The idea came from node-control(https://github.com/tsmith/node-
control).
Define clusters and tasks
I have a problem with swank with an upgrade recently, clojure1.3-alpha5
works, clojure-1.3alpha6 does not, to my knowledge-- which Clojure version
are you using in your project?
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group,
We did the same
On Thu, Mar 24, 2011 at 10:30 AM, Mark Rathwell mark.rathw...@gmail.com wrote:
I just wrapped their java client library:
http://www.rabbitmq.com/java-client.html
On Thu, Mar 24, 2011 at 11:15 AM, Max Weber
weber.maximil...@googlemail.com wrote:
What is the best Clojure
What makes an ecosystem '1.x' vs '2.x' etc. needs to be quantifiable
to make a standard out of it. To quote Peter Drucker, What gets
measured gets managed. Are there any solid examples of languages that
would constitute a good canonical spectrum for ecosystem versions and
why?
It seems like if
Inc is probably a better way to say that, yeah.
I also agree with David that 2.0 has a popular connotation of
shiny-ness that came with the whole infamous Web 2.0 branding
phenomenon.
I am now at conflict internally, because I'd like to see Clojure
widely adopted, but I like the idea of the
Thanks,it is an issue.
On Jan 24, 1:09 pm, David dsieg...@yahoo.com wrote:
Line 86 of core.clj is:
(list 'cadr caddr)
and should be:
(list 'caddr caddr)
On Jan 23, 9:45 pm, dennis killme2...@gmail.com wrote:
I have implemented a simple interpreter in clojure,it is just
in metadata.
OTOH, the evaluator is AFAIR fairly buggy and incomplete.
The whole thing is unmaintained now so feel free to scavenge any parts
of it, if you like.
Cheers,
Andrzej
On Mon, Jan 24, 2011 at 11:45 AM, dennis killme2...@gmail.com wrote:
I have implemented a simple interpreter
I have implemented a simple interpreter in clojure,it is just
transformed from the interpreter in SICP.Maybe someone interested in
it.
I have pushed it on github at
https://github.com/killme2008/cscheme
,you can clone and run it by yourself.
--
You received this message because you are
.)]
(say r dennis))
It worked and print hello,dennis,but if i passed more than one
arguments,it failed:
(let [ r (Robot.)]
(say r dennis zhuang))
and threw exception
java.lang.IllegalArgumentException: No single method: say of
interface: test.Say found for function: say of protocol: Say
Alter or ref-set a ref after commute would throw a
IllegalStateException:Can't set after commute
for example:
user= (def counter (ref 0))
#'user/counter
(dosync (commute counter inc) (ref-set counter 3))
java.lang.IllegalStateException: Can't set after commute
(NO_SOURCE_FILE:0)
I want to know
Agent use two thread pools to execute actions,send use a fixed thread
pool (2+cpus threads),and send-off use a cached thread pool.These
pools are global in clojure system.
I think the Agent should allow users to customize the thread pool,
if no custom, then use the global thread pool.
can't
ref-set it after a commute; the commute isn't done.
On Sun, Jul 25, 2010 at 11:19 AM, dennis killme2...@gmail.com wrote:
Alter or ref-set a ref after commute would throw a
IllegalStateException:Can't set after commute
for example:
user= (def counter (ref 0))
#'user/counter
You should make a LazySeq to momoize intermediate result:
(defn fib[n]
(if ( n 2)
(+ (fib (- n 2)) (fib (- n 1)))
1))
(def fib (memoize fib))
(def fib-seq (map fib (iterate inc 0)))
then take the result by nth:
user= (nth fib-seq 45)
1134903170
user= (nth fib-seq 46)
1836311903
user=
For example:
(max 1 2 3) = 3
(max (list 1 2 3)) = (1 2 3)
How to convert (list 1 2 3) to arguments for function?
Thanks a lot.
--
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
that goal.
I do not disagree with the idea of removing reflection warnings as a
rule and not an exception, especially in production software.
I should probably not fan this fire, but I did anyways... :)
-- Dennis
On Fri, May 28, 2010 at 2:45 PM, Laurent PETIT laurent.pe...@gmail.com wrote:
2010/5
NAME=cpu_speed VAL=2493 TYPE=uint32 UNITS=MHz TN=682
TMAX=1200 DMAX=0 SLOPE=zero SOURCE=gmond/
...
Thanks,
Dennis
--
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
/ziptest.clj
--- [a1b1c1]
--- [a1b2c1]
On Wed, Dec 2, 2009 at 11:38 AM, pmf phil.fr...@gmx.de wrote:
On Dec 2, 4:51 pm, Dennis shr3ks...@gmail.com wrote:
The XML is of the form:
ganglia
multiple clusters
multiple hosts
multiple metrics
Use XPath. Seriously, I hate XML
Thanks a bunch, this has been very helpful.
-- Dennis
On Wed, Dec 2, 2009 at 1:03 PM, Tayssir John Gabbour
tayssir.j...@googlemail.com wrote:
BTW, I should point out that zip-filter.xml/xml- is surprisingly
syntaxy.
(xml- loc
:CLUSTER :HOST :METRIC
(fn [loc]
[[(xml1
201 - 269 of 269 matches
Mail list logo