i agree with the fast fail camp
if a value is nil but is not supposed to be, i want the program to
immediately tell me about that instead of telling me later and force me to
trace it back.
in scala, this is solved by providing 2 methods. one that gives you a
result or crashes, one that maybe
i encountered a german progamming language once. it was terrible.
everybody should stick to english when it comes ot programming - you have
to do it anyway, and there is no reason not to go ahead and learn a
language since that is what brains are built for
2015-01-14 17:11 GMT+01:00 Jesse Alama
yuno
2014-12-04 11:45 GMT+01:00 Laurent PETIT laurent.pe...@gmail.com:
The following Eclipse names are 3.x based : Indigo, Helios, Galileo
The following are 4.x based : Juno, Kepler, Luna
2014-12-04 11:17 GMT+01:00 Laurent PETIT laurent.pe...@gmail.com:
Hello,
Eclipse 4.x has been
i also did an asteroid game in clojure. i don't think you can ever achieve
the performance of hackedyhack-mutablility with pure functional algorithms
- my approach to get the best performance while staying as clean as
possible would be to keep two copies of the game world, using one as source
data
you can learn clojure without learning lisp first :)
2014-03-10 15:41 GMT+01:00 Roelof Wobben rwob...@hotmail.com:
Hello,
I like the idea of Clojure but I wonder if I have to know a lot of Lisp to
work with Clojure.
What is the best way to go from a absolute beginner to someone who can
my vm starts up within a second or so, what's the problem for you?
2014-01-29 ton...@gmail.com
Are there any Java VMs strictly for development use that could be started
up quicker, use less memory or compile clojure during execution?
Alternatively can OpenJDK or similar be configured to do
one does not simply compare floating point numbers for equality
2014-01-27 Eric Le Goff eleg...@gmail.com
Newbie question :
user= (= 42 42)
true
user= (= 42 42.0)
false
I did not expect last result.
I understand that underlying classes are not the same
i.e
user= (class 42)
use apache poi and write a small wrapper or something
this is what i did
2014/1/2 Joshua Mendoza joshua.m...@gmail.com
Hi!,
I've been looking for libraries or resources to read MS .doc files in
Clojure, but found none. Does anyone have tried, used, encountered or
witnessed such a thing to
i solved a few little thingy with clojure now, including some euler
problems, java interop and an asteroids clone.
my summary would be:
* very nice to write +1. i used clojure's collections for a lot of things,
and they made a good impression
* you need to plan far ahead compared to java. in
exactly which part of OOP is missing in clojure that you would like to use?
if you took my java code and ported it to clojure, the main difference
would be (a b) instead of b.a , but the main design would be similar
2013/12/26 Massimiliano Tomassoli kiuhn...@gmail.com
On Thursday, December 26,
in my mental world, there is a pure human, and a 4 armed human would
probably be a 95% human or something, just like a hobbit would be. the
other way round, a human would be a 95% hobbit. an elephant would be 4%
hobbit on that scale.
this model is flexible, covers everything, and is not really
let's see...
really used:
sql
java
javascript
basic
pascal/delphi
scala
experimented with:
logo (some old language intended to teach people to make their first steps)
haskell
kotlin
clojure
seen in action:
php
groovy
still prefer smart static typing :D
2013/10/9 Nando Breiter
especially haskell scala are missing in your list :)
as long as you haven't at least seen haskell, you haven't seen the creme de
la creme of statically typed languages
2013/10/9 Softaddicts lprefonta...@softaddicts.ca
Let's see:
strong data typing:
Fortran
Cobol
Pl/1
Pascal
C/C++
while i can see the strengths of both sides, the ideal solution is imho
this:
everything is statically typed. always. but you *never* have to write
the type explicitly. you *can* do it, but it is always optional.
i made good experiences with both scala and haskell (although i just
wrote minor
thx again
2013/8/30 Bruno Kim Medeiros Cesar brunokim...@gmail.com
This exact use case is covered by letfn, which creates a named fn
accessible to all function definitions and the body. That even allows
mutual recursive definitions without declare. Your example would be
(defn fib-n [n]
thx
2013/8/26 Marshall Bockrath-Vandegrift llas...@gmail.com
Dennis Haupt d.haup...@gmail.com writes:
(defn fib-n [n]
(let [fib (fn [a b] (cons a (lazy-seq (fib b (+ b a)]
(take n (fib 1 1
can't i do a recursion here? how can i achieve this without doing an
outer defn
yep, yourkit
2013/8/27 Jay Fields j...@jayfields.com
What are you all using these days? I've been using YourKit and I'm
fairly happy with it. Just making sure I'm not missing out on some new
hotness.
Cheers, Jay
--
--
You received this message because you are subscribed to the Google
(defn fib-n [n]
(let [fib (fn [a b] (cons a (lazy-seq (fib b (+ b a)]
(take n (fib 1 1
can't i do a recursion here? how can i achieve this without doing an outer
defn?
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this
i found example that i can do
(defmethod x 5 [y] (do stuff))
but can i do
(defmethod #( % 10) [y] (do stuff)) somehow? like in a pattern match of
haskell/scala?
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
))
;; dispatch on the dispatch values
(defmethod x :less-then-10 [x] (do ))
Hope it helps
Las
2013/6/23 Dennis Haupt d.haup...@gmail.com
i found example that i can do
(defmethod x 5 [y] (do stuff))
but can i do
(defmethod #( % 10) [y] (do stuff)) somehow? like in a pattern match
problems with it.
On 23 June 2013 02:29, Dennis Haupt d.haup...@gmail.com
mailto:d.haup...@gmail.com wrote:
it happens with both clojure 1.5.1 and 1.4.0. when intellij tries to
compile clojure files, something strange happens. if i remove the
option to compile the files
hi,
i was taking a look at multimethods:
(defmulti fac int)
(defmethod fac 1 [_] 1)
(defmethod fac :default [n] (*' n (fac (dec n
this works
however, this also works:
(defmulti fac print)
(defmethod fac 1 [_] 1)
(defmethod fac :default [n] (*' n (fac (dec n
what exactly is int or
hi,
i'm trying to compiler a clojure file using intellij. the error i get is:
Clojure Compiler: java.io.IOException: The system cannot find the path
specified, compiling:(D:\cloj\MultiMethod.clj:3)
where the line number is pointing at a line that contains something that is
declared in core.clr
i don't know what properly set up the environment means exactly, but i
can run my script in the repl
2013/6/22 Jim - FooBar(); jimpil1...@gmail.com
On 22/06/13 15:09, Dennis Haupt wrote:
where the line number is pointing at a line that contains something that
is declared in core.clr
user= (fac 1)
10-1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18-19-20-21-22-23-24-25-26-27-28-until
stackoverflow
2013/6/22 Chris Bilson cbil...@pobox.com
Dennis Haupt d.haup...@gmail.com writes:
i was taking a look at multimethods:
(defmulti fac int)
(defmethod fac 1 [_] 1)
(defmethod
clojure jvm, intellij's repl. i'll try to run the file via commandline and
see what happens
2013/6/22 Jim - FooBar(); jimpil1...@gmail.com
On 22/06/13 15:16, Dennis Haupt wrote:
i don't know what properly set up the environment means exactly, but i
can run my script in the repl
what repl
running the file works (from inside intellij), just intellijs compilation
seems to be broken i can ignore the problem for now
2013/6/22 Dennis Haupt d.haup...@gmail.com
clojure jvm, intellij's repl. i'll try to run the file via commandline and
see what happens
2013/6/22 Jim
15:21, Dennis Haupt wrote:
clojure jvm, intellij's repl. i'll try to run the file via commandline
and see what happens
where did core.clr come from then?
can you somehow see what version of clojure your intelliJ is using? I've
got no experience with intelliJ really...it's just that your
yes. all glory to the repl that makes me figure out the internals via
experiments :D
is there a way to just pass the given value along?
2013/6/22 Chris Bilson cbil...@pobox.com
Dennis Haupt d.haup...@gmail.com writes:
i am not trying anything, i just want to figure out what happens
and stuff2 is the complete set of original arguments?
can you provide an example where stuff2 has more information than stuff?
for fac, both are equal
thx :D
2013/6/22 Dennis Haupt d.haup...@gmail.com
yes. all glory to the repl that makes me figure out the internals via
experiments :D
identity :)
2013/6/22 Chris Bilson cbil...@pobox.com
Dennis Haupt d.haup...@gmail.com writes:
yes. all glory to the repl that makes me figure out the internals via
experiments :D
is there a way to just pass the given value along?
Yes, that's what I meant by my inspect method in my
intellij can do exactly what you want
2013/6/7 Moocar anthony.mar...@gmail.com
Hi all,
Diffs for clojure code (and lisps in general) can be hard to read. Every
time we wrap a form, any lines below are indented. The resulting diff just
shows that you've deleted lines and added lines, even
without looking at the code:
ranges in scala have been optimized in i think 2.10 to be able to be
inlineable completely when you iterate over them. at runtime, it
*should* be equal to a simple while loop and a counter variable
Am 03.02.2013 14:28, schrieb Jules:
The Scala version is probably
i don't know emacs, so i would like to know as well what the killer
features are that make you more productive with emacs
2013/1/29 Laurent PETIT laurent.pe...@gmail.com
Hello Jay,
I'd like to learn a little bit more from what makes you prefer emacs
over IntelliJ.
As the main developer of
Am 29.01.2013 23:05, schrieb Phil Hagelberg:
Jay Fields writes:
On Tue, Jan 29, 2013 at 11:45 AM, Laurent PETIT laurent.pe...@gmail.com
wrote:
Hello Jay,
I'd like to learn a little bit more from what makes you prefer emacs
over IntelliJ.
As the main developer of Counterclockwise, I'm
the only ides i have used so far for clojure are intellij idea and
netbeans. is there one that is a lot better? if yes, why?
i am not interested in details or single features, i just want to know if
there is some magic editor out there that i should look into because it is
*obviously a lot* better
if anyone is interested, i used reduces instead of reductions.
2012/12/11 Dennis Haupt d.haup...@gmail.com
i just saw my error :/
Am 11.12.2012 22:22, schrieb Ben Wolfson:
nth is called in doing the destructuring for the argument lists in
your fns defined in try-find-sequence
maybe i am blind, but why does max return the complete lazy seq here
instead of the maximum number? if i just print as-products, i get a list
of numbers. (count solution) tells me there are 1000+
and yet max gives me the complete list?
(ns euler.Problem8)
(def digits
i am trying to solve euler problem 125. when i tested this code:
(ns euler.Problem125)
(defn is-palindrome [n]
(let [s (str n)]
(= (seq s) (reverse s
(defn to-check []
(filter is-palindrome (range 1 1000)))
(defn square-root [n]
(Math/sqrt n))
(defn squared [n]
(* n n))
(defn
i just saw my error :/
Am 11.12.2012 22:22, schrieb Ben Wolfson:
nth is called in doing the destructuring for the argument lists in
your fns defined in try-find-sequence.
On Tue, Dec 11, 2012 at 1:20 PM, Dennis Haupt d.haup...@gmail.com wrote:
i am trying to solve euler problem 125
can you give a few examples that should convince a lot of people on the
spot?
Am 25.11.2012 17:57, schrieb Jay Fields:
I spent 3 years doing Clojure (for prod apps) in IntelliJ. 3 months ago
I switched to emacs - and would never go back.
If the idea of customizing your dev environment to
i used a java priorityqueue for this. it's mutable (but local), and since
you're not going to access he queue with more than in thread you can hide
this fact and still pretend to be functional.
i did it. in reality, cheats are always allowed.
2012/11/21 Sergey Didenko sergey.dide...@gmail.com
why not just use haskell instead? i doubt you can just convert the code
Am 17.11.2012 19:31, schrieb Ahmed Shafeeq Bin Mohd Shariff:
Hi guys,
I've been frustrated with Clojure's slow speed on the JVM. I've been
thinking of how it can be compiled to native and I feel that compiling
basically anything except brainfuck is a good idea :)
Am 26.09.2012 06:45, schrieb Leonardo Borges:
Hi Gregorius!
I think Clojure is a great way to start to learn to program! Clojure
is a flavour of lisp and so is Scheme - which has been used for
decades to teach programming to MIT
i did not need the hint to develop a correct solution. the hint just
clarifies what could have been misunderstood.
Am 23.09.2012 21:03, schrieb Mark Engelberg:
I agree that Odersky's version doesn't match the spec. Hint or no hint,
it doesn't look like he even attempts to address the issue of
here's my solution:
https://gist.github.com/3766508
the original (done in 2 hours) solution is commented out. i made some
improvements and solved the whole thing in 39 lines (counting only the
content of main). doing it in the minimal amount of lines was not my
goal. i was trying to minimize the
, schrieb David Nolen:
On Sat, Sep 22, 2012 at 11:27 AM, Dennis Haupt d.haup...@gmail.com
mailto:d.haup...@gmail.com wrote:
here's my solution:
https://gist.github.com/3766508
the original (done in 2 hours) solution is commented out. i made some
improvements and solved
i stumbled upon this:
http://page.mi.fu-berlin.de/prechelt/phonecode/
the results:
http://page.mi.fu-berlin.de/prechelt/Biblio/jccpprt_computer2000.pdf
summary: concise languages bashed c, c++ and java if you look at the time
needed to complete the program. however, in 1999, there were no good
, fixing and so on)
i'll have to think about that
2012/9/20 David Nolen dnolen.li...@gmail.com
On Thu, Sep 20, 2012 at 10:52 AM, Dennis Haupt
d.haup...@googlemail.comwrote:
i stumbled upon this:
http://page.mi.fu-berlin.de/prechelt/phonecode/
the results:
http://page.mi.fu-berlin.de/prechelt
PM UTC+2, David Nolen wrote:
On Thu, Sep 20, 2012 at 10:52 AM, Dennis Haupt
d.ha...@googlemail.com javascript: wrote:
i stumbled upon this:
http://page.mi.fu-berlin.de/prechelt/phonecode/
http://page.mi.fu-berlin.de/prechelt/phonecode/
the results
i came to a correct solution without that hint :)
just like in reality, i started coding without reading the spec. a few
surprises came along the way (what? they want it like this? they just
added this to mock me!)
i spent about 50% of the time writing code and 50% thinking about it.
i'll tell my
+1
i stay functional if possible and fall back to mutable on isolated,
performance critical spots if i can't get it done fast enough in a
purely functional way.
i solved the move-mess-up-everything problem by forcing a move to
implement both apply and unapply on a game board. (it was a java
i assume you are coming from a java background?
if so, every time you wrote this:
Result result = null;
for (Stuff s:stuffList) {
if (result ==null) result = ...
result.cuddleWith(s);
}
return result
a reducer would have been a functional alternative to this
Am 21.08.2012 13:04, schrieb Jim -
why is there an exception for Boolean.FALSE?
Am 07.04.2012 17:28, schrieb Softaddicts:
Hi,
You are not in the Clojure play ground when you use (Boolean. false).
This expression creates a Java object, hence (if any-java-object ...)
always evaluate the true branch in Clojure.
In Clojure,
i've never seen a new Boolean(...) in my 10 years of developing java code.
Am 07.04.2012 22:49, schrieb Michael Klishin:
Steven Obua:
(if (Boolean. false) jesus christ)
will return jesus, not christ. Googling this on the net, I found
that this is a known phenomenon
.
On Wed, Jan 18, 2012 at 4:00 PM, Dennis Haupt d.haup...@googlemail.com
wrote:
when i say debugging, i mean inspect fields and evaluate expressions.
i attached a screenshot of all i get: a useless stacktrace and no
variables. how do you debug?
Am 18.01.2012 21:29, schrieb Jay
let's call it the biased experience effect. if there are 20 ways to solve
a problem, and you just know 3 of them, you are a hammer and the problem
looks like a nail. if you have a broader knowledge, you can pick a more
appropriate solution.
what i claim is that if you know NO solutions, the one
there is no really good ide (analysis, error highlighting, debugging)
Am 18.01.2012 17:18, schrieb Jay Fields:
Use emacs, if you want the path of least resistance for writing pure
clojure code. You'll have the most support from the community.
Use whatever IDE you already use for Java, if you
Am 18.01.2012 21:10, schrieb Sean Corfield:
On Wed, Jan 18, 2012 at 10:42 AM, Dennis Haupt d.haup...@googlemail.com
wrote:
there is no really good ide (analysis, error highlighting, debugging)
Hmm, I have error highlighting and debugging. Not sure what you mean
by analysis.
call hierarchy
after the wtfs have worn off a bit, go on reading.
imagine a simple problem: you have a collection of numbers and you have
to write a function which collects all the numbers that are contained
uneven times. for example, for a collection (1,2,3,2,3,4) the correct
result is (1,4)
ask a child:
you
Am 17.01.2012 22:17, schrieb Cedric Greevey:
On Tue, Jan 17, 2012 at 3:46 PM, Dennis Haupt d.haup...@googlemail.com
wrote:
after the wtfs have worn off a bit, go on reading.
imagine a simple problem: you have a collection of numbers and you have
to write a function which collects all
Am 17.01.2012 22:46, schrieb James Reeves:
On 17 January 2012 20:46, Dennis Haupt d.haup...@googlemail.com wrote:
i've noticed this since i started to work as a programmer 10 years ago.
programmers in general are supposed to be good at finding simple
solutions, but my experience
Am 17.01.2012 23:08, schrieb daly:
On Tue, 2012-01-17 at 21:46 +0100, Dennis Haupt wrote:
after the wtfs have worn off a bit, go on reading.
imagine a simple problem: you have a collection of numbers and you have
to write a function which collects all the numbers that are contained
uneven
details,
etc.
Right now you cannot even stat a file from clojure without calling the stat
command from a shell. :/
---
Joseph Smith
j...@uwcreations.com
(402)601-5443
On Jan 14, 2012, at 6:12 AM, Dennis Haupt d.haup...@googlemail.com wrote:
hi there,
i am looking for something
hi there,
i am looking for something to do, preferably something that makes me
rich, but that is not a must have - if it's interesting, i'll code for free.
i can offer almost 15 years of coding experience (important: while being
open minded the whole time). i am a one man army, if you will :)
app from it at some
point, but I am starting to realize I am not good enough to do the whole
thing by myself, hence that email.
Looking forward to have a reply from you,
Sam
On Sat, Jan 14, 2012 at 12:12 PM, Dennis Haupt d.haup...@googlemail.com
mailto:d.haup...@googlemail.com wrote
in java i would throw an exception and parse its stack trace. don't know
how to do that in clojure, but probably similar
Am 15.12.2011 06:48, schrieb jaime:
Hello there,
I want to write a function named debug which will print out date-
time msg + current source-line + etc. info, but I don't
The main thing to keep in mind is that when coming from java/scala,
you'll have a hard time adjusting to clojure, and you're making it
harder by trying something so inherently full of state. I understand
the need to tackle problems that we like, but without a good
understanding of the
In his code I did notice he doesn't use destructing very much.
where would that have been useful?
--
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
Am 07.11.2011 10:18, schrieb Dennis Haupt:
In his code I did notice he doesn't use destructing very much.
where would that have been useful?
defn x [{:keys [foo bar]} param]
instead of
defn x [param]
(let [foo (:foo param)...])
?
--
--
You received this message because you
Am 06.11.2011 12:56, schrieb pron:
Hi. I'm new to Clojure, and enjoy using it very much. It's been years
since I learned Scheme back in college, and it's a pleasure going back
to lisp.
I do, however, have a question regarding real-world Clojure use in large
teams. While I clearly understand
Am 07.11.2011 08:00, schrieb Sean Corfield:
On Sun, Nov 6, 2011 at 12:15 PM, Dennis Haupt d.haup...@googlemail.com
wrote:
if by compatible you mean has a specific set of functions and fields,
then scala can do that without sacrificing static type safety:
Yes, I started working with Scala
Am 07.11.2011 14:01, schrieb Milton Silva:
On Nov 7, 12:41 pm, Milton Silva milton...@gmail.com wrote:
On Nov 7, 9:14 am, Dennis Haupt d.haup...@googlemail.com wrote:
The main thing to keep in mind is that when coming from java/scala,
you'll have a hard time adjusting to clojure
Am 07.11.2011 14:02, schrieb Scott Jaderholm:
On Mon, Nov 7, 2011 at 4:27 AM, Dennis Haupt d.haup...@googlemail.com
mailto:d.haup...@googlemail.com wrote:
Am 07.11.2011 10:18, schrieb Dennis Haupt:
In his code I did notice he doesn't use destructing very much
actually, we avoid dynamically typed languages like the plague. i am
taking a peek at clojure because i'm curious.
Am 07.11.2011 11:19, schrieb pron:
I see. So namespaces are helpful here.
What other team practices do you use? E.g. what do you use for effective
documentation? With Java you
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 30.10.2011 19:32, schrieb Dennis Haupt:
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
are
that wanted. We have Common Lisp for quite some time now, and
people seem quite happy with slime.
Razvan
On Nov 5, 2:16 pm, Dennis Haupt d.haup...@googlemail.com wrote:
hi,
i'm half done with my asteroids clone. i stumbled over a few
problems and wanted to know how others already solved
from my iPad
On 5 Nov 2011, at 12:16, Dennis Haupt d.haup...@googlemail.com
wrote:
hi,
i'm half done with my asteroids clone. i stumbled over a few
problems and wanted to know how others already solved them :)
i am used to less concrete programming. i ask my tools to do the
actual
be entirely defined by their inputs as oppose to being
dependant on mutable state external to he function, in the most
part.
I am agreeing with you, and find these real world experiences
incredibly useful.
Sent from my iPad
On 6 Nov 2011, at 13:03, Dennis Haupt d.haup...@googlemail.com
term. Later on the functionality
will be rewritten in the new app.
Exciting times!
Sent from my iPad
On 6 Nov 2011, at 16:49, Dennis Haupt d.haup...@googlemail.com
wrote:
special cases that depend on mutable state are evil. i avoid
mutable states as much as possible, no matter which
Am 06.11.2011 19:06, schrieb Sean Corfield:
On Sunday, November 6, 2011, Dennis Haupt d.haup...@googlemail.com
mailto:d.haup...@googlemail.com wrote:
this is a double edged sword. you *do* get it right *if* you think it
through, but reality is often more complex than you assume. if you
Am 06.11.2011 20:56, schrieb Sean Corfield:
On Sun, Nov 6, 2011 at 11:12 AM, Dennis Haupt d.haup...@googlemail.com
wrote:
let me guess: you had some classes that were used more than they should
have been because they were the best match and introducing a better one
would have taken more time
the clutter out. all i need is a
big screen. :)
but you're right, reading concise high level code reading verbose low
level code
On Nov 6, 2011 11:49 AM, Dennis Haupt d.haup...@googlemail.com
mailto:d.haup...@googlemail.com wrote:
special cases that depend on mutable state are evil. i avoid
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
what about
(cond (= dir :left) ((move-left)(:ok)) (= dir :up)
((move-up)(:ok)) :else :nok)
or whatever the exact syntax is
Am 05.11.2011 08:22, schrieb Alan Malloy:
On Nov 4, 11:49 pm, Baishampayan Ghose b.gh...@gmail.com wrote:
On Sat, Nov 5,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
hi,
i'm half done with my asteroids clone. i stumbled over a few problems
and wanted to know how others already solved them :)
i am used to less concrete programming. i ask my tools to do the
actual analysis and coding for me:
* where is that used?
:
(let [full-test (every-pred type-pred bounds-check contact)] ...
On Nov 4, 9:51 am, Dennis Haupt d.ha...@googlemail.com wrote:
(let [type-pred #() bounds-check #() contact #() full-test (fn
[element] (and (type-pred element)
(bounds-check
element) (contact element)))] (filter full-test (:game
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
hi there,
i stumbled over two odd things
1) - and - have the same source code. why is that?
2) why can't i use (- hi #(println %)) directly? why do i have to
put my function into a symbol first? is there a way to avoid this?
(let [dummy #(println
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
thx
*note: use macroexpand next time*
Am 02.11.2011 10:58, schrieb Jonas:
On Wednesday, November 2, 2011 11:37:32 AM UTC+2, HamsterofDeath
wrote:
hi there,
i stumbled over two odd things 1) - and - have the same source
code. why is that?
it is absolutely
necessary. Spread environmental awareness.
On Mon, Oct 31, 2011 at 12:02 AM, 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 pretty much a clojure noob (only
did a few
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
i went a step further:
since my asteroids are all immutable, they don't contain a renderer.
the renderer would either require a reference to the asteroids data,
position, size and so on - if that changes the renderer would be
obsolete - or would
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
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
1 - 100 of 129 matches
Mail list logo