What happens if you send a newline after that "Hello"? ie. "Hello\n" since
you're using read-line
On Sat, Jun 1, 2013 at 3:44 AM, Andrew Spano wrote:
> Hello,
>
> I'm trying to create a very simple interaction between a client and server
> program using the server-socket library which used to
7;s why I didn't post back with the
> "solution"...but of course nothing is secret, as you demonstrated :)
>
> btw, the commit you're showing is not exactly what fixed it...that was
> before my post I think...
>
> Jim
>
>
> On 30/05/13
looks like you found it:
https://github.com/jimpil/Clondie24/commit/16f92fccc0c65d3c250b7a880649b940f792ea92
On Thu, May 30, 2013 at 11:25 PM, Jim - FooBar(); wrote:
> Hi everyone,
>
> I've re-arranged some code in a project of mine and it seems I've
> introduced cyclic dependencies...It doesn'
Jim, that is in project.clj right?
OP can use :refer and :exclude but can't pass two namespaces to :refer,
just one
some examples from clojure code:
(ns foo.bar
(:refer-clojure :exclude [ancestors printf])
(:require (clojure.contrib sql combinatorics))
(:use (my.lib this that))
(
I find this might be helpful in this situation:
Google I/O 2009 - The Myth of the Genius Programmer
https://www.youtube.com/watch?v=0SARbwvhupQ
On Tue, May 28, 2013 at 4:02 AM, Kelker Ryan wrote:
> I wrote it for fun and deleted after no one took interest. There was no
> real purpose other than
or maybe this (Subtext2):
http://www.subtextual.org/subtext2.html
or this (Conception):
https://www.youtube.com/watch?v=DNJ7HqlV55k
maybe someone could get some ideas and adapt them to clojure or something
On Mon, May 27, 2013 at 10:42 AM, atkaaz wrote:
> I kinda found the hask
I kinda found the haskell equivalent of the editor I mentioned above(well,
at least conceptually) and it's a work in progress but looks great so far,
it's written in haskell & it's in 3D
https://github.com/Peaker/lamdu
On Mon, May 20, 2013 at 8:17 PM, atkaaz wrote:
=> (doall (map #(remove :dh-uuid %)
'(({:a2p-id "1", :dh-uuid "abc-def-ghi-klm"} {:a2p-id "2",
:dh-uuid "def-ghi-klm-opq"} {:a2p-id "3", :dh-uuid nil}) ({:a2p-id "1",
:dh-uuid "abc-def-ghi-klm"} {:a2p-id "2", :dh-uuid "def-ghi-klm-opq"}
{:a2p-id "3", :dh-uuid *false*}))
))
(
yep that was interesting thanks btw; it was a function that was acting like
a macro, how odd
On Sat, May 25, 2013 at 4:26 PM, Jim - FooBar(); wrote:
> so maybe a let + gensym would be in order?
>>
>
>
> yes that is what you do to avoid double-evaluation...:) I was making a
> different point thou
r it's needed or not, so in cases where
>> "something" is expensive to compute (or has side effects that should only
>> happen if it winds up in the output!) then another method needs to be used.
>>
>>
>> On Sat, May 25, 2013 at 8:08 AM, atkaaz wrote:
>>
n 1) nil? #(println % "."))
1
nil
=> (fn? pred-transform)
true
=> (definline pred-transform [obj pred tf]
`(let [o# ~obj]
(if (~pred o#) o#
(~tf o#
#'cgws.notcore/pred-transform
=> (fn? pred-transform)
true
On Sat, May 25, 2013 at 3:08 PM, atkaaz wro
ot;))
1
nil .
nil
On Sat, May 25, 2013 at 3:07 PM, atkaaz wrote:
> in which case it does get evaluated twice if form:
> => (pred-transform (println 1) #(not (nil? %)) #(println % "."))
> 1
> 1
> nil .
> nil
>
> => (pred-transform (println 1) nil? #(p
in which case it does get evaluated twice if form:
=> (pred-transform (println 1) #(not (nil? %)) #(println % "."))
1
1
nil .
nil
=> (pred-transform (println 1) nil? #(println % "."))
1
1
nil
so maybe a let + gensym would be in order?
On Sat, May 25, 2013
Shouldn't it be like:
(definline pred-transform [obj pred tf]
`(if (~pred ~obj) ~obj
(~tf ~obj)))
=> (pred-transform 1 #(not (nil? %)) println)
1
=> (pred-transform 1 nil? println)
1
nil
On Sat, May 25, 2013 at 2:55 PM, atkaaz wrote:
> just wondering if obj is a fo
tf]
> `(if ~(pred obj) ~obj
> ~(tf obj)))
>
> Jim
>
>
>
> On 25/05/13 12:44, atkaaz wrote:
>
> may I see the macro for the latter, if you decide to go that way ? thx
>
>
> On Sat, May 25, 2013 at 2:24 PM, Steven Degutis wrote:
>
>> There are two patte
pred obj) ~obj
> ~(tf obj)))
>
> Jim
>
>
>
> On 25/05/13 12:44, atkaaz wrote:
>
> may I see the macro for the latter, if you decide to go that way ? thx
>
>
> On Sat, May 25, 2013 at 2:24 PM, Steven Degutis wrote:
>
>> There are two patterns I find
may I see the macro for the latter, if you decide to go that way ? thx
On Sat, May 25, 2013 at 2:24 PM, Steven Degutis wrote:
> There are two patterns I find in my code that I'm still unhappy with but I
> don't know how to clean up.
>
> The first is: (if (:attr obj) obj (assoc obj :attr somethi
can you tell what this returns?
(map find-records query-parts)
On Sat, May 25, 2013 at 2:21 PM, Mond Ray wrote:
> I am missing something obvious... I get a list of maps back from a
> function and I want to find the elements with nil
>
> (({:a2p-id "1", :dh-uuid "abc-def-ghi-klm"} {:a2p-id "2",
without giving this much thought is the % actualy a vector like [:dh-uuid
"abc-def-ghi-klm"] ?
On Sat, May 25, 2013 at 2:21 PM, Mond Ray wrote:
> I am missing something obvious... I get a list of maps back from a
> function and I want to find the elements with nil
>
> (({:a2p-id "1", :dh-uuid "
ough I would've
expected to recheck even though it's the same version, but perhaps it
doesn't support updating the same versions
On Sat, May 25, 2013 at 11:12 AM, atkaaz wrote:
> I could be wrong if it's checking the .md5 (which probably does) I should
> try to update fo
I could be wrong if it's checking the .md5 (which probably does) I should
try to update foo-one and install it in local repo, but I don't really know
the command :)
On Sat, May 25, 2013 at 11:11 AM, atkaaz wrote:
> or let me put it this way, if I touch all the files in local_
idn't
define the bar fn) so check if you have the red black function in
.m2\repository\self\foo-one\0.1.0 (replace with your red black project
here)
On Sat, May 25, 2013 at 11:06 AM, atkaaz wrote:
> ok nevermind I guess it works anyway:
> user=> (use 'foo-two.core)
> ni
folder
On Sat, May 25, 2013 at 10:54 AM, atkaaz wrote:
> quick note: the foo-one in local_mvn_repo (inside foo_two) is just v 0.1.0
> without SNAPSHOT
> the foo-one project however is 0.1.0-SNAPSHOT
>
>
>
> On Sat, May 25, 2013 at 10:00 AM, David Williams <
> mobiu
quick note: the foo-one in local_mvn_repo (inside foo_two) is just v 0.1.0
without SNAPSHOT
the foo-one project however is 0.1.0-SNAPSHOT
On Sat, May 25, 2013 at 10:00 AM, David Williams
wrote:
> This is really important, and I am totally stumped and on a deadline.
> Help is greatly appreciate
typo, I meant: "thanks to everyone that replieD"
On Fri, May 24, 2013 at 9:25 PM, atkaaz wrote:
> Thank you, I see it now. Based on your comment I actually took at look at
> the source code for "every?" (haven't checked it before, oddly enough)
>
ion *every?* expects a predicate and a collection. Converting the
> map {:a 1} into a collection returns a sequence of 2-element vectors:
>
> user=> (seq {:a 1})
> ([:a 1])
>
> Calling the function :a on a vector returns nil, since keyword lookup only
> works for maps. ev
for comparison an uberjar run [1] of a hello world program takes 2 seconds
(2.2 sec) on clojure 1.5.1 and Leiningen 2.2.0-SNAPSHOT on Java 1.7.0_17
Java HotSpot(TM) 64-Bit Server VM
[1] java -jar newproj1-0.1.0-SNAPSHOT-standalone.jar
On Fri, May 24, 2013 at 1:29 PM, atkaaz wrote:
> makin
hello world .exe file is 1,132,640 bytes (big but depends
only on kerner32/user32/msvcrt/wsock32 .dll files)
On Fri, May 17, 2013 at 2:10 PM, atkaaz wrote:
> Ok, weird question: is there some clojure port on assembler yet? Even
> if(/especially if) it doesn't have jvm/java/javal
Firstly let me just say that I really enjoy this conversation, ergo I thank
you!
On Thu, May 23, 2013 at 9:00 PM, Michał Marczyk wrote:
> On 23 May 2013 18:30, atkaaz wrote:
> > when you say the word "false" I'm assuming you're referring to "false?"
>
involving implication):
>
> x -> y
>
> is true when x is false, regardless of what value y takes. (It's also
> true when y is true, regardless of what value x takes; this, however,
> is not relevant here.)
>
> Cheers,
> M.
>
>
> On 23 May 2013 06:31, a
IFn
cgws.notcore/eval2542 (NO_SOURCE_FILE:1)
=> (false true)
ClassCastException java.lang.Boolean cannot be cast to clojure.lang.IFn
cgws.notcore/eval2564 (NO_SOURCE_FILE:1)
doesn't seem truthy to me
Thanks.
On Thu, May 23, 2013 at 3:08 AM, Michał Marczyk wrote:
> On 22 May 2013 18:34,
I don't know about the emacs stuff, but I consider the latter to be a
"nice" workaround/hack :)
On Wed, May 22, 2013 at 8:35 PM, Gary Trakhman wrote:
> emacs does this navigation stuff.. M-. and M-, . For uses of a function,
> try grep -R or rgrep.
>
>
> On Wed, M
27;s the only way to get there :/
It can still be fast even though all the debug info (so to speak) and
source code is tagged/connected to the binary code/offsets I imagine.
On Wed, May 22, 2013 at 6:51 PM, Mikera wrote:
> On Wednesday, 22 May 2013 20:35:01 UTC+8, atkaaz wrote:
>
>&
(str "bad input:" input)
#'cgws.notcore/test1
=> (test1 1)
received nice input=` 1 `
nil
=> (test1 nil)
RuntimeException bad input: cgws.notcore/test1 (NO_SOURCE_FILE:5)
=> (test1 a)
received nice input=` # `
nil
but I guess I should've put this in its proper threa
I think the exception is thrown because you basically called (every? false
coll) however on my clojure version I cannot reproduce it oh wait there we
go, some bug here with empty collection (maybe someone can pick it up):
=> (every? false [1 2 3])
ClassCastException java.lang.Boolean cannot be cas
=> (type identity)
clojure.core$identity
On Wed, May 22, 2013 at 7:17 PM, Peter Mancini wrote:
> So I did some coding and came up with this but it is broken;
>
> (= java.lang.Boolean (type false)) ;;evaluates to true
>
> (defn all-true?
> [coll]
> (every? (cond (= java.lang.Boolean (type i
Would you say that ontologies can be modeled on top of graphs? so in a way
they can be seen as a specific use case for graphs? (maybe directed acyclic
graphs), that's what I am getting the sense of so far
On Wed, May 22, 2013 at 4:47 PM, atkaaz wrote:
> Thank you very much for this! I
; lots of other applications. Probably the most famous one at the moment
> is Siri (the iphone thingy) which is ontological powered underneath.
>
> There are quite a few articles, varying in scope on ontologies on
> ontogenesis http://ontogenesis.knowledgeblog.org.
>
> It is a very v
t;> it's been a useful thing for me to know in the 0.05% of time that knowledge
>> is needed.
>>
>> But, people who don't know just won't be able to get past those problems.
>> And, you generally can't easily find a _really_ full-stack guy to glance
>
For those who don't know the concepts (aka me) can we get a working example
of what can be done ? I'm having a strange feeling that ontologies(although
I've never heard the word/idea before except from you) might be something
similar to what I am searching for...
Possibly an example that showcases
y 22, 2013 at 2:40 PM, John D. Hume wrote:
>
> On May 22, 2013 5:35 AM, "atkaaz" wrote:
> >
> > I find the wording of this confusing "otherwise it returns the value of
> the last expr. (and) returns true."
> > I mean, I know it returns the last true va
22, 2013 at 1:28 PM, atkaaz wrote:
>
>
>
> On Wed, May 22, 2013 at 3:06 AM, Peter Mancini wrote:
>
>> I noticed that '(nil nil true) will cause "and" to produce false, so I
>> am aware of that edge case. Anything else I should be aware of?
>>
>
On Wed, May 22, 2013 at 3:06 AM, Peter Mancini wrote:
> I noticed that '(nil nil true) will cause "and" to produce false, so I am
> aware of that edge case. Anything else I should be aware of?
>
> What about the other edge?
user=> (reduce #(and %1 %2) '(1 true 2))
2
user=> (eval (conj '(1 true
concurrency-wise, you might find useful Rich Hickey's ants simulation
https://github.com/juliangamble/clojure-ants-simulation/
the relevant video where he explains it:
https://www.youtube.com/watch?v=dGVqrGmwOAw
(if you want the slides too, see in the comments: someone suggested google
for "Must w
=> (future (swap! atom inc 0))
#
=> @(future (swap! atom inc 0))
ClassCastException clojure.core$atom cannot be cast to clojure.lang.Atom
clojure.core/swap! (core.clj:2161)
(both in ccw, but i notice that the first statement does throw in lein repl)
guessing the error is actually thrown in that
The following idea came to me in the shower, sort of out of the blue, and I
don't know why I didn't think of it before(I'm disappointed with myself)
so, why not use the same thing as clojure does? even though it does it in
java, you can do it in clojure, the only thing is that you have to do it
onc
Hi guys. I just stumbled upon something [1] and the editor is quite similar
to what I was hoping/focusing on having(these days) for editing/writing
(not just) clojure code.
What are your thoughts on this? (just don't think too much of it in that
is for java and ignore the 3D thing)
To see what I
your comment caused me to be reading this http://prog21.dadgum.com/134.html
(at least)
On Sat, May 18, 2013 at 6:17 PM, Gary Trakhman wrote:
> Immutability, persistence, closures without a serious garbage collector
> sounds hard.
>
>
> On Sat, May 18, 2013 at 1:09 AM
tps://sourceforge.net/p/mingw/mingw-org-wsl/ci/21762bb4a1bd0c88c38eead03f59e8d994349e83/tree/LICENSE>
.
On Sat, May 18, 2013 at 4:48 PM, Michael Klishin <
michael.s.klis...@gmail.com> wrote:
> 2013/5/18 atkaaz
>
>> Hi. Can I release my clojure code under unlicensed?
On Sat, May 18, 2013 at 4:48 PM, Michael Klishin <
michael.s.klis...@gmail.com> wrote:
> 2013/5/18 atkaaz
>
>> Hi. Can I release my clojure code under unlicensed?
>> http://unlicense.org/
>>
>
> You can but it's not a very good idea. Not all countries hav
Hi. Can I release my clojure code under unlicensed?
http://unlicense.org/
Maybe the code and the jar can be, right? But how about the uberjar which
includes clojure itself which is under EPL?(for example I cannot dist the
uberjar under GPL) Is my code being unlicensed like that work ok with
clojur
looks like it didn't properly load clojure.core (possibly due to that
classloader being "wrong"?) but I am not sure why it didn't fail sooner
than on the line with refer
static void doInit() throws ClassNotFoundException, IOException{
load("clojure/core"); //this wasn't loaded ok?!
Var.pu
I've some idea, but it may not be right; I'm thinking that clojure needs
its own classloader and if that spring thing overriden it somehow, it's not
going to work initing clojure, just like in minecraft bukkit server with
clojure-based plugins, ie. https://github.com/CmdrDats/clj-minecraft/
I'm th
I feel silly for even suggesting but is pprint not good enough? do you need
colors? (unaware of what those do in emacs)
On Sat, May 18, 2013 at 6:42 AM, Korny Sietsma wrote:
> Hi folks - I had to prepare some slides for a conference, and I struggled
> to get nice looking clojure code onto a sli
;d=1
>
> For a more serious representation of Clojure's persistent data structures,
> I don't recommend trying to implement them in ASM.
>
> Cheers
> Julian
>
>
> On Friday, 17 May 2013 22:06:45 UTC+10, Alan D. Salewski wrote:
>
>> On Fri, May 17, 2013 at 02
Ok, weird question: is there some clojure port on assembler yet? Even
if(/especially if) it doesn't have jvm/java/javalibs support
Or should I just check https://github.com/clojure/clojure-clr ?
I'm mainly interested in low memory footprint and fast startup times (does
clojure-clr have that?)
--
nevermind :) it acts the same as ->> even when -\>\>
so I don't know what I was talking about :D
On Fri, May 17, 2013 at 6:37 AM, atkaaz wrote:
> like
> http://getclojure.org/search?q=-\%3E\%3E&num=0<http://getclojure.org/search?q=-%5C%3E%5C%3E&num=0>
like http://getclojure.org/search?q=-\%3E\%3E&num=0
On Fri, May 17, 2013 at 6:36 AM, Ramesh wrote:
> Looks like "->>" is not supported. I quoted it!
>
> http://getclojure.org/search?q=%22-%3E%22&num=0
>
> -ramesh
>
>
> On Thu, May 16, 2013 at 6:12 PM, Devin Walters wrote:
>
>> Hey All,
>>
>>
changing it (patches
> welcome), but right now I think not pretty printing output is good in the
> 80-90% case.
>
> Cheers,
> --
> {:∂evin :√valters}
>
> On Thursday, May 16, 2013 at 8:18 PM, atkaaz wrote:
>
> Hi!
> http://getclojure.org/search?q=fixture&num=0
>
Hi!
http://getclojure.org/search?q=fixture&num=0
is it supposed to show the \n inline? it's a bit uncomfy to have to read
those on one line
On Fri, May 17, 2013 at 4:12 AM, Devin Walters wrote:
> Hey All,
>
> I put this ( http://getclojure.org ) together and wanted to share it with
> all of yo
Jim wrote:
> On 16/05/13 12:52, AtKaaZ wrote:
>
>> why not ref and dosync?
>>
>
> a bit heavyweight isn't it?
>
> A bit off topic but I remember when Clojure came out, STM was the big
> selling point! I've been programming Clojure for more than 3 years
why not ref and dosync?
On Thu, May 16, 2013 at 2:45 PM, Phillip Lord
wrote:
> Jim writes:
>
> > On 16/05/13 11:33, Phillip Lord wrote:
> >> And if it is okay to use set!
> >> on*warn-on-reflection*, why is it not okay to allow me, as the library
> >> developer, to define similar properties fo
I think the answer is in RT 's doInit
Var.pushThreadBindings(
RT.mapUniqueKeys(CURRENT_NS, CURRENT_NS.deref(),
WARN_ON_REFLECTION, WARN_ON_REFLECTION.deref()
,RT.UNCHECKED_MATH, RT.UNCHECKED_MATH.deref()));
it basically does a
(binding [*warn-on-r
work), time helps.
> For problems that I can not solve because they are not ups to me, I just
> don't think about, so I keep myself as busy as possible, until I don't feel
> great again.
> For problems that I can solve, well those are just other forms of coding,
> so I
Hi. I've been meaning to ask (all of)you, how do you get moral support? How
do you put yourself into that mood so that you're happy/willing to program?
What motivates you to do it? Is it the people you surround yourself with or
the financial support? Are they enough to subconsciously motivate you?
I agree
On Sat, May 11, 2013 at 10:25 PM, Alex Baranosky <
alexander.barano...@gmail.com> wrote:
> Most of the code I see and write at work at Runa uses (not (empty? foo)).
> I'll continue to defend the position that it is more obvious code, and
> therefore better (imo :) )
>
> Alex
>
>
> On Sa
Robert, do you have all that in a project somewhere on github? I really
enjoy all the explanations
On Fri, May 3, 2013 at 7:19 PM, Robert Louis McIntyre wrote:
> I've written some JME3 wrapper code for my thesis project -- it's not
> ready for prime time, but it's got some nice ideas.
>
> The d
is not this one is it ?
https://github.com/CmdrDats/clj-minecraft/blob/master/javasrc/cljminecraft/BasePlugin.java#L82
On Thu, May 9, 2013 at 7:12 PM, AtKaaZ wrote:
> is there any chance that we can see the full code (maybe's on github
> already?)
>
>
> On Thu, May 9, 201
is there any chance that we can see the full code (maybe's on github
already?)
On Thu, May 9, 2013 at 9:00 AM, stream wrote:
> Hi all
>
> i wanna change the classloader of Clojure RT. in 1.5.1
> so , i try to
> clojure.lang.Var.pushThreadBindings(clojure.lang.RT.map(
> clojure.lang.Comp
Caused by: java.lang.NullPointerException
at clojure.lang.RT.*baseLoader*(RT.java:2043)
hmm, it's almost as if:
static final public Var LOADER = Var.create().setDynamic();
had no effect as in: LOADER=null;
On Thu, May 9, 2013 at 4:51 PM, semperos wrote:
> Is there a reason you don't us
zed what OP was saying with destructuring the arg vector.
[1]
https://github.com/DeMLinkS/demlinks/blob/7064df0491ea2b565f6edf18708a599af8b37a33/src/util/funxions.clj
On Tue, May 7, 2013 at 9:58 AM, Pierre-Yves Ritschard wrote:
> atkaaz, you can do this: (fn [& {:keys [arg1 arg2 arg3]}] ...)
>
I agree, I'm not sure what he means xD
If you ask me, I'd rather have each arg be identified by a keyword instead
of by order
like: (somefn :arg1 "somestr" :arg3 100 :arg2 (+ 1 2))
or all those in a map
I'll probably still do that for me, so that any function will take params
like this. There's pro
gramming_language)
>
> like implemented as a user defined type with the #bleach/ed type.
>
> On 4 May 2013 19:51, AtKaaZ wrote:
> > could you post a sample code how it looks before and after?
> >
> >
> > On Thu, May 2, 2013 at 7:36 AM, David Lowe
> wrote:
this is awesome!
On Sat, May 4, 2013 at 1:39 AM, Zach Tellman wrote:
> I've had Graphviz integration in Lamina for a while [1], and have
> generally found it to be fun and useful. To let everyone join in the fun,
> I've extracted that functionality into its own library, Rhizome [2].
> Feedbac
could you post a sample code how it looks before and after?
On Thu, May 2, 2013 at 7:36 AM, David Lowe wrote:
> bleach: whitens unsightly code!
>
> When you bleach your code, it continues to work as before, only now it
> looks like:
>
> (use 'bleach.core) #bleach/ed "
>
>
>
>
> "
>
> Find it he
ля 2013 г., 22:48:58 UTC+4 пользователь atkaaz написал:
>>
>> actually looks like I spoke too soon, what I said doesn't seem to apply
>> to you because the console message says ccw.server instead of ccw-server
>> (dot vs dash), so it should be able to fetch that unless
cw
fetches all the artifacts even though I just Ctrl+Alt+L after starting
eclipse without any Update Dependencies on the project.
On Tue, Apr 30, 2013 at 9:42 PM, AtKaaZ wrote:
> sorry I meant, Run As->Run Configurations... :)
>
>
> On Tue, Apr 30, 2013 at 9:41 PM, AtKaaZ wrote:
>
0.13.0.201304242239
> ccw.feature.feature.group Counterclockwise team
>
>
> I looked up and I saw Laurent saying that there is problems of backwards
> compatibility problems in new Eclipse versions... Uhhh so sad.. do you
> have any ideas?
>
>
> вторник, 30 апреля 2013 г
sorry I meant, Run As->Run Configurations... :)
On Tue, Apr 30, 2013 at 9:41 PM, AtKaaZ wrote:
> oh yes that thing, just do Run->Run As... on your project
> and delete all the children inside Clojure
> things like:
> fightingsail Leiningen
> where fightingsail is th
lipse versions... Uhhh so sad.. do you
> have any ideas?
>
>
> вторник, 30 апреля 2013 г., 21:58:04 UTC+4 пользователь AtKaaZ написал:
>>
>> oh nevermind I misread that. So it doesn't work for you with ccw? are you
>> using latest ccw beta?
>> When I
oh nevermind I misread that. So it doesn't work for you with ccw? are you
using latest ccw beta?
When I start the core.clj file with Ctrl+Alt+L to load it in a repl it
works for me
Eclipse SDK
Version: 4.3.0
Build id: I20130430-0031
Counterclockwise (Clojure plugin for Eclipse)0.13.0.201304
seems to be working fine for me, are you not starting the repl from the
project's folder ? tested with lein 2.2.0 from master
On Tue, Apr 30, 2013 at 8:49 PM, Alex Fowler wrote:
> Just tried that! Very nice! Got it running with "lein repl" from Windows
> command prompt!!! However, when I fire up
On Tue, Apr 30, 2013 at 10:51 AM, Tassilo Horn wrote:
> "Jim - FooBar();" writes:
>
> > funny you should mention that!!! that is exactly what I meant by 'my
> > fault'...I've come to realise that dynamic scope is almost evil, thus
> > I go to great lengths to avoid it completely...in the rare ca
On Tue, Apr 30, 2013 at 11:00 AM, Tassilo Horn wrote:
> Gary Trakhman writes:
>
> > If you're passing the var itself, I don't see why you'd need a macro.
> > If you want to check the namespace for a var matching an unquoted
> > symbol, you could do that in a macro.
>
> In case you really don't h
eps: [jme "2013-04-01"]
>
> The biggest problem with it right now is that it contains all test models
> and textures, which I didn't realise at the time (this accounts for more
> than half of the size). But it's quick & easy if you want to give it a go.
>
> Jon
That's awesome! Thanks James!
On Mon, Apr 29, 2013 at 10:46 PM, James Reeves wrote:
> I've been messing around with jME3 as well, and at some point I might
> release a library for it.
>
> One of the problems with jME3 is that its deployment mechanism hasn't
> quite caught up with the current ce
Hi, I've been planning on trying the instructions/code from [1] with regard
to jme3 and clojure but I haven't got there yet. Does that help you ?
There's also this project [2] which uses jme3 in clojure. The last time I
tried it I was able to get a window and a 3D scene.
[1] http://aurellem.org/
> #'user/a
> user=> (bound? (var a))
> false
> user=> (def a nil)
> #'user/a
> user=> (bound? (var a))
> true
>
> Sean
>
> On Mon, Apr 29, 2013 at 8:32 AM, AtKaaZ wrote:
> > How do you guys handle the cases when the var is unbound?
a a protocol so you're not special-casing it
> within the function itself. Protocols are open for extension so someone
> else could come along and provide an implementation for something you
> haven't thought of doing.
>
>
> On Mon, Apr 29, 2013 at 12:44 PM, AtKaaZ
d var?
On Mon, Apr 29, 2013 at 7:31 PM, Gary Trakhman wrote:
> If you're passing the var itself, I don't see why you'd need a macro. If
> you want to check the namespace for a var matching an unquoted symbol, you
> could do that in a macro.
>
>
> On Mon, Apr 29, 20
> If you're passing the var itself, I don't see why you'd need a macro. If
> you want to check the namespace for a var matching an unquoted symbol, you
> could do that in a macro.
>
>
> On Mon, Apr 29, 2013 at 12:29 PM, AtKaaZ wrote:
>
>> Seems like a g
le all vars, then they have to deal with the unbound case as that's
> part of the contract of vars.
>
> If it's a generic thing, then maybe make a multimethod or protocol for it.
>
>
> On Mon, Apr 29, 2013 at 12:17 PM, AtKaaZ wrote:
>
>> I'm thinking someth
y would you do (def a) anyway?
>
> Jim
>
>
>
> On 29/04/13 16:32, AtKaaZ wrote:
>
>> How do you guys handle the cases when the var is unbound? I mean
>> specifically in the cases where you just test if the var is nil.
>>
>> => (def a)
>> #'
How do you guys handle the cases when the var is unbound? I mean
specifically in the cases where you just test if the var is nil.
=> (def a)
#'clojurewerkz.titanium.graph-test/a
=> a
#
=> (nil? a)
false
=> (bound? a)
ClassCastException clojure.lang.Var$Unbound cannot be cast to
clojure.lang.Var
Thank you very much.
On Mon, Apr 29, 2013 at 10:42 AM, Rich Morin wrote:
> A clean, if short (32 minute) version of Jim Weirich's talk on connascence
> is again online at Confreaks (Thanks, Coby!). See:
>
> The Building Blocks of Modularity, aka
> The Grand Unified Theory of Software Deve
28, 2013 at 5:46 AM, AtKaaZ wrote:
>
>> => (defn abc [] 3)
>> #'ants/abc
>>
>> => (loop [a 1]
>> (when (= 1 a) (recur (abc
>> NO_SOURCE_FILE:2 recur arg for primitive local: a is not matching
>> primitive, had: Object, needed: long
=> (defn abc [] 3)
#'ants/abc
=> (loop [a 1]
(when (= 1 a) (recur (abc
NO_SOURCE_FILE:2 recur arg for primitive local: a is not matching
primitive, had: Object, needed: long
Auto-boxing loop arg: a
nil
=> (loop [a 1]
(when (= 1 a) (recur (long (abc)
nil
=> (loop [a 1]
(whe
=> (str '())
"()"
On Mon, Mar 4, 2013 at 6:27 AM, AtKaaZ wrote:
> and by that I mean:
> adding this toString from ASeq:
> public String toString(){
> return RT.printString(this);
> }
> to the clojure.lang.PersistentList.EmptyList
and by that I mean:
adding this toString from ASeq:
public String toString(){
return RT.printString(this);
}
to the clojure.lang.PersistentList.EmptyList class
=> (.toString '(1))
"(1)"
=> (.toString '())
"()"
On Mon, Mar 4, 2013 at 6:23
=> (.toString '())
"clojure.lang.PersistentList$EmptyList@1"
=> (.toString '(1))
"(1)"
so should be an easy fix ;)
On Mon, Mar 4, 2013 at 6:17 AM, AtKaaZ wrote:
> I agree, I think the reason is that they are two different classes:
> => (class
1 - 100 of 303 matches
Mail list logo