I have this option in my project.clj file, which does the trick if you are
developing from emacs+swank+clojure-jack-in, and using large networks
:jvm-opts ["-Xmx4000m"]
And yes, one of the things to do when working with the jvm is learning how
to use jconsole or visualvm to see why your progr
Solved it. I had to replace the "(print (take.." statement with the
following:
(doseq [c (remove #{\return} (map char (take-while #(not= % -1) (repeatedly
#(.read (.getInputStream avendar))] (print c))
--
You received this message because you are subscribed to the Google
Groups "Clojure"
Started playing with getting an within emacs clojure-based mud client, but
puzzling a bit with parsing the incoming stream. The below works (for
emacs+swank-clojure 1.4.0), but puts a space between every character. When
I try to solve that (for example by swapping "(print ..." with "(print
(app
Hi all,
Ran into something unexpected with "max".
user> (sd-age-female 13)
[10 NaN 0.746555245613119]
Hi all,
Noticed in Clojure 1.3-Alpha8 that there is a large difference in speed when
adding two Short/TYPE arrays rather than two Integer/TYPE java arrays. Is
that something related to clojure, my code, or just a CPU-related thing when
it comes to summing. I'd like to save some memory by using
Thanks for the help, appreciated! It helped me figuring out where exactly
things go haywire.
This works:
user> (let [^ints as (make-array Integer/TYPE 10)] (aset as 0 (+ (aget as 1)
(aget as 2
Incanter does. Works fine, but I'm not sure how fast it is.
--
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
fir
Is there something obvious I am missing when aset in clojure 1.3-alpha8
won't work for shorts. aset-shorts does work, but way slower than I'd
expect. There is also an order of magnitude difference in speed between aset
^ints and aset-int.
I've looked at the source of amap (which was the first t
Because I did not remember Math/ceil :-).
Point is, is there any consensus on what math library to use? Is (Math/...
in general the fastest?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.co
user> (time (dotimes [i 10] (contribmath-ceil (rand
"Elapsed time: 4500.530303 msecs"
I've been programming agent-based models in clojure for the last 2 years,
and I've found that having a vector full of refs works fine. If two
individuals interact (in my case, form a relationship), I use dosync and
alter in a parallel environment to ensure that noone is starting more
relationsh
(type (sorted-map-by > 3 1 2 4 5 3))
clojure.lang.PersistentTreeMap
user> (type (select-keys (sorted-map-by > 3
Hi all.
This got me puzzled. Intern has trouble with symbols containing
periods?
user> *clojure-
version*
{:major 1, :minor 2, :incremental 0, :qualifier ""}
user> (intern *ns* (symbol "orig-0.5")
3)
#'user/
orig-0.5
user>
orig-0.5
; Evaluation aborted. [Thrown class
java.lang.ClassNotFound
Nice!
Ran into a blogpost yesterday of someone calculating 'e', and I was
fiddling around after reading that with take-while looking for a way
to do exactly this.
user> (time (/ (apply + (repeatedly 1000 (fn [] (inc (count (take-
while-acc + #(< % 1) (repeatedly #(rand 1000.0))
"E
Occasionally, I want to map a collection of seqs to their is-empty or
is-not-empty status (e.g. true / false). And the helpfile of empty?
puts me on the wrong leg occasionally.
clojure.core/
empty?
([coll])
Returns true if coll has no items - same as (not (seq
coll)).
Please use the idiom (seq
I think there were some talks about this on the conference I went to
recently. Keywords might be "natural language processing". Linked is
the abstracts of the conference, which you might find some use in.
http://www.insna.org/PDF/Sunbelt/4_ProgramPDF.pdf
One alternative I briefly considered is to
Just went to a conference where some people were working on that, if I
remember correctly. keywords like natural language processing are
handy to know :-).
http://www.insna.org/PDF/Sunbelt/4_ProgramPDF.pdf
Anyway, for the practical part. I found using java processing library
in combination with t
Hi all,
Todays' project involved modelling what happens if an infected flea
enters a burrow of gerbils. The biology is as follows: fleas feed
daily on gerbils, and drop off after every meal, only to climb on one
of the gerbils again. There is a small chance that a feeding flee
infects a gerbil wit
Ah. A sneaky difference between repeat and repeatedly there then :).
Good to remember!
On Jul 28, 9:35 am, Laurent PETIT wrote:
> Hi,
>
> You could do:
>
> (repeatedly 100 #(rand-int 10))
>
> HTH,
>
> --
> Laurent
>
> 2010/7/28 bOR_
>
>
>
> >
Hi all,
I have the nagging feeling that I'm missing a simple solution. Say I
want a list of a 100 rand-int 10 numbers. Currently, I create that by
doing (map (fn [_] (rand-int 10)) (range 100)). Is there an easier
way?
--
You received this message because you are subscribed to the Google
Groups
Hi all,
My first paper with results based on a clojure-build agent-based model
is in press! If you have academic access to the journal, you can peek
at it here: http://dx.doi.org/10.1016/j.epidem.2010.05.003 , but
otherwise it is also available on mendeley:
http://www.mendeley.com/profiles/boris
Will test once I get my pandora (openpandora.org) :-).
On Mar 1, 9:07 am, "Alex Osborne" wrote:
> reynard 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
Ugly is in the eye of the beholder :), but anyway, I got curious and
dug up some info on scala's recursion:
http://blog.richdougherty.com/2009/04/tail-calls-tailrec-and-trampolines.html
On Jan 17, 7:39 am, itsnotvalid wrote:
> Just started learning Clojure a day ago with Stuart's book I found
>
Not sure, but wasn't that so that you don't need to compile your
project against the same version of clojure as that leiningen was
compiled to?
On Jan 5, 5:55 pm, Stuart Halloway wrote:
> ...when it is also buried in the leiningen standalone?
>
> Stu
--
You received this message because you are
http
proxy.somewhere.com
8080
proxyuser
somepassword
www.google.com|*.somewhere.com
.
.
On Dec 11, 9:31 am, bOR_ wrote:
> Not sure what was causing it, butleiningen/ clojars couldn't get its
> deps yesterday. I thought it was caused by cloj
I had some trouble trying to explain my university to pay for free
software as well. They will much rather pay for a mathematica licence.
How about just a printed install CD for clojure. Utterly useless, but
very tangible :).
On Dec 15, 11:20 pm, Mike Hogye wrote:
> Maybe take your ease-of-use i
About the donations. Is there any way we can see how you are doing
donation-wise, compared to the target for personal donations you would
like to reach? I think people find it easier to donate, if they have
insight in how much you've received this month / this calendar year
compared to your target.
Not sure what was causing it, but leiningen / clojars couldn't get its
deps yesterday. I thought it was caused by clojure and clojure-contrib
no longer being on clojars.org, but maybe the renaming on
build.clojure.org has something to do with it.
On Dec 11, 6:18 am, Phil Hagelberg wrote:
> liebke
Thanks. That is a good solution.
There's also some work in dev being done on trans and trans*
functions, as Sean Devlin pointed out.
see:
explanation of trans:
http://groups.google.com/group/clojure-dev/browse_thread/thread/4b20e40d83095c67#
Chouser commenting on trans:
http://groups.google.com/
.
On Dec 9, 8:40 pm, ataggart wrote:
> On Dec 9, 10:20 am, bOR_ wrote:
>
>
>
>
>
> > Hi all,
>
> > I want to make a hash-map where the value of one key depends on the
> > values of other keys in the hash-map. Is there a way to do this,
> > without
wrote:
> On Dec 9, 10:20 am, bOR_ wrote:
>
>
>
>
>
> > Hi all,
>
> > I want to make a hash-map where the value of one key depends on the
> > values of other keys in the hash-map. Is there a way to do this,
> > without needing an external reference t
Hi all,
I want to make a hash-map where the value of one key depends on the
values of other keys in the hash-map. Is there a way to do this,
without needing an external reference to the hash-map?
{:a 1 :b 2 :c #(+ :a :b)}
Similarly, when filling a struct, I often want to refer to the bits I
alre
g/clojars/ato/nailgun/0.7.1/nailgun-0.7.1.pom
but these don't seem to have a negative effect.
On Dec 3, 3:19 pm, bOR_ wrote:
> Second question: how do I access documentation of a lein nailgun
> plugin? I know how to start it, but to stop it, I now just kill its
> pid.
>
> On D
On Dec 3, 3:19 pm, bOR_ wrote:
> Second question: how do I access documentation of a lein nailgun
> plugin? I know how to start it, but to stop it, I now just kill its
> pid.
Answered that by just vimming the lein-nailgun.jar file :).
Next bit of trivia:
There are currently two nailgu
Second question: how do I access documentation of a lein nailgun
plugin? I know how to start it, but to stop it, I now just kill its
pid.
On Dec 2, 2:16 pm, bOR_ wrote:
> Q: I noticed that the leinnailgunruns as java -client. Being used to
> seeing -server everywhere, I wonder if the -clie
/vimclojure-2.1.2.jar:lib/maven-
model-2.0.10.jar::/home/boris/.m2/repository/leiningen/leiningen/0.5.0/
leiningen-0.5.0.jar leiningen.core nailgun
On Nov 27, 4:19 pm, Meikel Brandmeyer wrote:
> Hi,
>
> On Nov 27, 4:16 pm, bOR_ wrote:
>
> > using vimclojures'nailgun, I
Thanks for the help! Got it to work.
I did install automaton twice on clojars though, and perhaps
unnecessary so. If I want to import the jar, I need to type (import
'(dk.brics.automaton Automaton RunAutomaton RegExp)) , and when I had
clojars list the dependency only as [automaton "1.11.2"] ther
How in clojars do I attach a licence to the jar? I'm about to
redistribute a BSD-licensed jarfile to clojars, but I'm not sure how I
can make sure that the licence also gets redistributed. Are these
things embedded in jar files by default?
(the jar in question is automaton-1.11.jar)
--
You recei
Got it working. The only thing I need next to leiningen to set up my
working environment + project is the ng client from vimclojure, the
correct lines in .vimrc and the vimclojure vim plugin parts (in .vim)
Good!
On Nov 27, 4:16 pm, bOR_ wrote:
> using vimclojures' nailgun, I would hav
Hmm. Need a bit of handholding (can't find any documentation yet on
this either.)
There is a vimclojure coming with adding [[lein-nailgun/lein-nailgun
"0.1.0"]] to dev-dependencies (org/clojars/gilbert1/vimclojure). Do I
add that to the dependencies as well?
On Nov 27, 4:16
using vimclojures' nailgun, I would have a line like this added to
my .vimrc file. Can I still use that?
let vimclojure#NailgunClient = "/home/boris/opt/vimclojure/ng"
On Nov 27, 1:43 pm, "Alex Osborne" wrote:
> bOR_ writes:
> > I think I cannot esca
Hi All,
Is there any obvious way by which you can combine vimclojure and
leiningen easily? If I use leiningen to download and arrange all my
jar dependencies, they all end up in a ~/.m2/repositories/... etc
directory, and in the /lib directory of whatever project.
I think I cannot escape spelling
Can we get an option 'leiningen' at "how do you get clojure"?
On Nov 24, 8:27 am, David Brown wrote:
> On Mon, Nov 23, 2009 at 09:55:46PM +, the.stuart.sie...@gmail.com wrote:
>
> Since the form only lets me answer one answer for each, but reality is
> much more complicated.
>
> >How do you g
.
It being a BSD licence, it allows redistribution. Can I just upload it
to Clojars?
On Nov 22, 10:54 am, bOR_ wrote:
> I'm currently modeling the spread and prevalence of chlamydia over a
> dynamic sexual contact network. Hence the name :-).
>
> Plotting the graphs etc is done
was called Eden, on evolution of the human
immune system in response to pathogens), and there will be a third one
starting in january on disease spread percolating through a network of
gerbil burrows in Kazachstan (unnamed as of yet).
On Nov 22, 10:18 am, ajuc wrote:
> On 22 Lis, 13:09
Leiningen is very easy to pronounce for the dutch :). We've the word
"Leningen" anyway ("Loans"), and ei is a common vowel combination in
dutch as well (I actually grew up in Leiden).
Ontopic: I might be missing something, but is there an obvious way to
do something like "lein src/chlamydia.clj" w
Leiningen is very easy to pronounce for the dutch :). We've the word
"Leningen" anyway ("Loans"), and ei is a common vowel combination in
dutch as well (I actually grew up in Leiden).
Ontopic: I might be missing something, but is there an obvious way to
do something like "lein src/chlamydia.clj" w
Hi all,
Just ran into a small gotcha: I had an atom which contained a lazyseq
(e.g. (filter males world)). Later on I would be repeatedly calling
random elements from this atom, using clojure contrib rand-elt. That
was surprisingly slow. I figured out that count was the culprit.
Apparently, the la
Having fun watching scoopler these days, and seeing people twitter and
whatnot about clojure at javaone.
http://www.scoopler.com/search/#clojure
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post
Well, the ant demo does show java interoperability (the whole
graphics bit).
You could start with a world with the empty square, and a filled
square, start with one type of ant that is just lugging the food
from the filled to the empty square. This shows off agents.
Have four numbers being print
Well, the ant demo does show java interoperability (the whole graphics
bit).
You could start with a world with the empty square, and a filled
square, start
with one type of ant that is just lugging the food from the filled to
the empty
square. This shows off agents.
Have four numbers being print
Well, the ant demo does show java interoperability (the whole graphics
bit).
You could start with a world with the empty square, and a filled
square, start
with one type of ant that is just lugging the food from the filled to
the empty
square. This shows off agents.
Have four numbers being print
minimum? I see people assuming that santa needs time to
fix whatever the 3 elves are bringing to him, for example.
On May 6, 10:32 am, bOR_ wrote:
> Why isn't this enough for the problem? Elves and deer are entering
> Santa's frontdoor 1 at a time, when there is three elves in t
Why isn't this enough for the problem? Elves and deer are entering
Santa's frontdoor 1 at a time, when there is three elves in the room,
santa instantly deals with them (resetting the number of elves to 0),
when there is 9 deer in the room, santa goes sleighing.
(def santa (agent {:elves 0 :deer
> When writing this code, I found the watcher system a bit clunky to
> use, and a bit too heavyweight for what I needed. Sometimes, within a
> dosync block, you want to trigger some sort of side effect once the
> current transaction is committed. To make this easy, I would very
> much like to s
Hi Meikel,
I've tried running / developing both in vimclojure and slime, and one
difference I noticed is that if I manually start a function in the
buffer, vimclojure won't show me any output until the function that is
completed.
Slime would do fine. I could start a (simulation) of 1 years,
> bigfun (comp retire-host slowdown-host infect-hosts naturalrecovery-
> host pair-host)
> proc1 (future (doseq [i (subvec world 0 2499)] (bigfun i)))
> proc2 (future (doseq [i (subvec world 2500 4999)] (bigfun i)))
> proc3 (future (doseq [i (subvec world 5000 7499)] (bigfun i)))
> proc4 (future
I've written individual-based models using agents, and using refs.
Currently my decision tree is 'agents, if there are no events which
need to be atomically synchronized between individuals**'.
In both cases I had a vector full of individuals called 'world'. When
the individuals were agents, I c
Worked with the 2.1.0 version today. Impressions so far are more
stable than the developmental version of a week ago (no hanging
repls), a feeling intense gratitude for the ,ct command. Furthermore a
bit of collision with the default keybindings when I try to browse the
history with ctrl-p and ctr
(fn [n] (ref nil)) (range 10))
52 (# #
# # # # # # # #)
On Apr 16, 11:54 am, David Sletten wrote:
> On Apr 15, 2009, at 11:30 PM, bOR_ wrote:
>
>
>
> > Hi all,
>
> > some functions (like map, or update-in) expect a function to be
> > applied on a value. In the
Hi all,
some functions (like map, or update-in) expect a function to be
applied on a value. In the case where the update I want is merely a
constant, is there a short way to write it?
(map (fn [n] :new) (list :old1 :old2 :old3)) works
(map :new (list :old1 :old2 :old3)) unfortunately doesn't w
Has anyone tried to combine clojure-server and vimclojure yet? I'm
still hopping IDEs to see which system I like best, and vim was next
on the list :).
On Apr 4, 9:56 pm, Konrad Hinsen wrote:
> On 04.04.2009, at 19:45, christ...@mvonessen.de wrote:
>
> > I'm not sure I undestand what you want to
>
> I'm not very used to concurrent programming, so I have a few questions you
> may find naïve, but well, let's just pretend they're interesting ... :
Learning here as well :).
>
> It seems to me that the game of life works in "increments" of its "world".
> So I don't see at first what can be
Nice! A few more days of work and I've time to play with these kind of
things again. Here are some comments, based on your description.
As game of life is a cellular automata, you do not need any blocking
at all, so you could use agents, rather than refs. It does become an
asynchronous CA then, b
1 2 0)
>
> Test-clojure runs ok too.
>
> Frantisek
>
> On Mar 12, 10:30 am, bOR_ wrote:
>
>
>
> > Mod seems to have broken again
>
> > (mod 9 -3) gives -3
>
> > (map #(mod % 3) (range -10 10))
> > (2 3 1 2 3 1 2 3 1 2 0 1 2 0 1 2 0 1 2 0)
>
Mod seems to have broken again
(mod 9 -3) gives -3
(map #(mod % 3) (range -10 10))
(2 3 1 2 3 1 2 3 1 2 0 1 2 0 1 2 0 1 2 0)
svn 1372.
Chouser wrote:
> On Sat, Feb 14, 2009 at 12:45 AM, Stephen C. Gilardi wrote:
> >
> > The new mod isn't working properly though:
> >
> >Testing clojur
Setting that one
(set! *warn-on-reflection* true)
Helped a lot in my simulation model to find out where clojure/java
were having trouble. It pointed out that one of my main functions was
causing trouble, and could do with a bit of typehinting.
(defn #^Short find-all-epi
"turns the rx and stri
> Also, how do you think this increase in required effort grows? What if
> we are talking about a +10.000-line Clojure program? Now add schedule
> pressure, deadlines and the cost of missed oppotunities and you will
> find that many companies sees the introduction of a new programming
> language -
I'm not from the software engineers field, but how difficult is it for
some non-lisp, but java-savvy software writer to pick up a 600-line
clojure program and learn to understand it? I mean, everyone in this
forum managed to learn clojure to some degree without too much
trouble.. including me. If
Didn't know of the existence of delay yet. Thanks for pointing that
out :).
Is there a reason why delay needs a force to be calculated?
> > > {:fitness (delay (compute-my-fitness))}
>
> > > And when you access the value use force.
>
> > > (-> my-thing :fitness force)
>
--~--~-~--~
If you use hash-maps, or a struct-map as the basis of your individual,
you can just make a key 'fitness', and store the once-calculated
fitness in there.
I'm not sure how, but it might be possible that at the creation of
your animals, you assign the key 'fitness' a basic function that upon
being
(increase year with 1)
(concurrent: (break and create bidirectional links between refs))
(wait for year to finish)
)
I'll try your suggestion and see if it is workable. Thanks!
On Feb 28, 10:35 am, Christophe Grand wrote:
> bOR_ a écrit :
>
> > can I call something like (app
Related to the (future function. (there is a bit of a lack of
documentation on it, but I guess I can derive more from the example in
http://clojure.org/refs,)
can I call something like (apply await myvectorofrefs) if I have a
bunch of futures running and I want to wait for them to finish before
I
Thanks for the reply Timothy! I'll look into the future things :).
The main reason for using refs was because I am constructing a contact
network between different refs (a graph, consisting of nodes and
edges.), which changes over time (all the short-term and long-term
relations between hosts bei
Hi all.
First. For those who remember, I posted an individual-based model in
this group some time ago (eden.clj), and got some very helpful replies
on where I misunderstood clojure and did things the hard way. I wanted
to report that that model by now is written purely as nonblocking
agents, and
I'm trying to rewrite the wf.bat to a linux version, but I was a bit
puzzled what all the ;%~dp0 's mean. Apparently the bash version of it
is ${0%/*}
java -cp ~/src/clojure/clojure.jar;${0%/*}clj;${0%/*}java -
Dnet.sourceforge.waterfront.plugins=${0%/*}clj/net/sourceforge/
waterfront/ide/plugins
Here is an interesting read, for those of you that (also) occasionally
daydream about having a hardware jvm to play with ;).
>From Cliff Click Jr.’s Blog's Blog
"I had an email conversation between myself, David Moon & Daniel
Weinreb. For the younger readers: David Moon is one of the original
ar
Perhaps some context help. Why would you want to continue popping an
empty collection? If you are in a loop, when will you stop popping it?
Perhaps there is a more logical idiom to use for the case you run into
pop nil exceptions (doseq?)
On Feb 22, 5:18 pm, Frantisek Sodomka wrote:
> Any though
Hi all.
Recently started to optimize two models written in clojure, and I
could use some tips from you guys.
I first enabled the set reflection-warning thing, and removed
reflections in the inner loop of my program. That already helped a
lot, speeding up the whole thing to about 40% of its origi
Note that clojure just changed the lazy branch to be the main version
of clojure, so right now clojure-contrib and the latest svn do not
play nicely yet. I belief there is a old version of clojure-contrib
available and probably also for clojure-main.
On Feb 21, 1:15 pm, Emeka wrote:
> http://tel
Thanks for pointing this out, and glad I remember I read it. Just ran
into this 'bug'. I've a social network of agents, that can refer to
each other as either steady or casual partners (recreated a model
described in "Modeling Prevention Strategies for Gonorrhea and
Chlamydia Using Stochastic Netw
Getting a bit confused again. It seems possible to make counters from
agents, atoms and refs
(def countagent (agent 0))
(send agent inc)
(def countatom (atom 0))
(swap! atom inc)
(def countref (ref 0))
(dosync (commute countref inc))
Is there a time and place for all three of them? I am leani
> Gone now.
>
> Rich
but was it written in clojure?
=).
--~--~-~--~~~---~--~~
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
That starter-kit sounds perhaps easier. I'll try the starter-kit. I
want the install to be fairly easy, if I want to convince others at
work to play with it :).
On Feb 12, 6:35 pm, Phil Hagelberg wrote:
> bOR_ writes:
> >>> (push "/home/boris/.emacs.d" load-path
Not a guru here (far from!), but don't get too thrown off by what the
word 'immutable' means in your head. In Clojure 'immutable' refers
more to how things work in the belly of the beast..
Clojure has 4 constructs (vars, refs, agents and atoms) to faciliate
mutating things. Probably the best thin
I was a bit surprised that random-permutation is in lazy-seqs.. there
doesn't seem to be much lazy about it, right? It is just java's
shuffle.
On Feb 11, 8:16 pm, Phil Hagelberg wrote:
> Jason Wolfe writes:
> >> Would you consider changing the names of these 2 functions ?
>
> >> random-permutat
Just started using it. I had some trouble understanding the whole java
classpath and jar concept, but I'm now happily producing graphs. Will
start using it tomorrow for some population data, and expand it as I
need :).
On Jan 21, 12:35 am, "Tom Ayerst" wrote:
> Mark,
>
> Thanks for doing this, I
Spotted an error in clojure-mode.el. Swank-clojure-extra-classpaths
needs to be changed from this to the following, in order for people to
be able to use contrib.
(setq swank-clojure-jar-path (concat clojure-src-root "/clojure/
clojure.jar")
swank-clojure-extra-classpaths
(list
>
> Success! Thank you.
Success lasted till I tried to restart emacs. Here is where I am stuck
again:
1. It can't find M-x slime
clojure-slime-config doesn't seem to be an option either to manually
run with M-x clojure
The solution seems to be to take the functions in clojure-slime-config
and pu
>> (push "/home/boris/.emacs.d" load-path)
>This is actually already on the load-path by default; no need to add it.
Standard load-path on ubuntu didn't include ~/.emacs.d for me. Not
sure why not.
load-path is a variable defined in `C source code'.
Its value is
("/etc/emacs-snapshot" "/etc/emac
Thanks for all the explanations. I'll try again this wednesday!
--~--~-~--~~~---~--~~
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 g
Slowly wrestling myself through getting to know emacs.
Ok. autoload works fine. Didn't realize I have to open emacs with
a .clj file for the clojure-mode to load. Now looking where this
'Cannot open load file:slime-repl' is coming from.
On Feb 9, 10:36 am, bOR_ wrote:
>
HI Phil. Tried the clojure-install on a fairly clean ubuntu / emacs23
Here is what went and what went wrong:
Had to use a different .emacs. Just autoload and add-to-list didn't
seem to load clojure-mode.el. Took a moment to figure out that I had
to set clojure-src-root as well, as that isn't me
As we never can have enough examples, and this one was about the
simplest that just worked on Ubuntu, I'll paste my variant of it here.
It is slightly different because I'm behind a proxy, and thus my git
calls are somewhat different, and I got my slime from a git repository
rather than a cvs one.
Using Clojure at the RIVM in bilthoven, and at University of Utrecht.
Previous projects of my phd were in ruby, last one is in clojure.
Postdoc is in Clojure.
Amsterdam is closeby. I've about no free time till end of march
(finishing thesis!), but might find it fun to join in April.
On Feb 3
Related.
(defn myfunc
"a nice description here"
[coll]
(apply + coll))
but no
(def myvar
; cant do a nice " "description here, even though hash-maps can stand
in for functions.
(hash-map :a 1 :b 3))
On Jan 30, 10:42 pm, Kevin Albrecht wrote:
> How are people generating HTML or text docu
Hmm. (time isn't that reliable here. my lazy-shuffle might be quite
slow after all.
On Jan 26, 10:46 pm, bOR_ wrote:
> In addition to the functional shuffle thread (can't seem to post to
> that one anymore, might be too old?), I've written alazy shuffle. Not
> sure
> On Wednesday 28 January 2009 18:09:30 bOR_ wrote:
>
> > Errata: Hanno works in Groningen. As I work in Utrecht, I sort of
> > automatically appended 'Utrecht' after 'Theoretical Biology'.
>
> > Ontopic: There is a thing called Hilbert curves that you coul
Errata: Hanno works in Groningen. As I work in Utrecht, I sort of
automatically appended 'Utrecht' after 'Theoretical Biology'.
Ontopic: There is a thing called Hilbert curves that you could use.
http://en.wikipedia.org/wiki/Hilbert_curve
You could define a 1d array, and translate the bird 2d po
There is many ways in which you can improve the algorithm. I have seen
flocks of 10,000 birds being rendered real-time on a laptop by Hanno
Hildenbrandt, theoretical biology Utrecht.
http://www.rug.nl/biologie/onderzoek/onderzoekgroepen/theoreticalbiology/peoplePages/hannoPage
Also, Craig Reynol
1 - 100 of 155 matches
Mail list logo