Program B will be released as source. So in this case I can choose the
license of program B independently since it is no derivative work of
library G? As far as I read a hint that program B is not derivative work
of library G is that I could exchange library G with a different library
which
Thank you for your answer David.
I think I am confused about how to distinguish between a symbol and a
variable, as I thought that the symbol being derefed pointed to the atom
that it was made to define when transparent-chan was called.
Also, I am trying to specifically solve the logging
Thanks James,
I played around with the persistent queues before I started this exercise,
but opted for atoms, after seeing this behavior (a la JOC):
https://lh6.googleusercontent.com/-4u0XBfNvbv4/U3CMpigLRoI/BjE/HDjKbcvSgAM/s1600/Screen+Shot+2014-05-12+at+5.55.27+PM.png
I never
If you're releasing source, then I think Jozef is correct that you can use
whichever licence you like. However if those sources rely on library G to
work, then you're essentially releasing something that's impossible for
your users to use according to the terms of the licences. From the EPL FAQ
Hi,
I finally got my robotic vehicle working using raspberry pi. I was hoping
to make it do tricks using the clojure repl - however, I found that repl
took well over 2 minutes to start. Is that normal or are folks seeing
better performance?
Regards,
Kashyap
--
You received this message because
When I try this using your code above I get a stack-trace that I can't
understand. Am I using it wrong?
(transparent-chan c)
(transparent-put c 42)
(transparent-take c)
-
Exception in thread \async-dispatch-64\
java.lang.IllegalArgumentException: No implementation of
I think I am confused about how to distinguish between a symbol and a
variable, as I thought that the symbol being derefed pointed to the
atom that it was made to define when transparent-chan was called.
I think it's not so much that, as being mistaken about what is going at
compile-time vs.
to reason about and can be dangerous. I would suggest putting
dynamically created channels in a collection inside an atom if you
need to create them like this.
P.S. I just read James's response and I see he said something similar
regarding this--it's better to structure this as a hash-map or
For now I just wrote a quick project file and used lein. I made my
exploration.
Thanks to the both of you
2014-05-10 17:53 GMT+02:00 Dave Ray dave...@gmail.com:
You should use Clojuresque [1]. The latest version (1.7.0) can start an
nrepl server for you. Since I'm a bad user (and because
Where is the source code for recur ? How could I inspect it ?
Thanks
--
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
I can give you places to begin at least--recur is a special form and in
Clojure is written in Java,
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Compiler.java#L42
whereas in ClojureScript it's written in Clojure:
recur is a special form which is handled by the compiler. The relevant part
of the compiler is at
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Compiler.java#L6213
same goes for fn and loop, which are recur targets.
Jozef
On Mon, May 12, 2014 at 1:33 PM, Catonano
Thanks, that works!
I'm new to Clojure and studying Ring's source to find this would probably
require more time than I have available… this should be documented in the
api shouldn't it?
About providing details, my question was more of the kind what do I have
to do than why isn't it working...
Your description of what is going on with my macro was really helpful. In
my head I was imagining recursive evals running over the code, saying
first, then, etc. I didn't really think about compile time vs. run-time.
I am impressed with James' code as well, but I am having trouble fully
Interesting. Definitely keep us posted on progress.
Thanks for this Herwig.
Tim Washington
Interruptsoftware.com http://interruptsoftware.com
On Sat, May 10, 2014 at 7:25 AM, Herwig Hochleitner
hhochleit...@gmail.comwrote:
test_namespace.clj just contains some unit tests for now. The final
Yeah I had similar issues. I guess the standard JDK is a bit a heavyweight
for the raspberry pi.
I wonder if clojurescript on nodejs might be an easier route?
On Mon, May 12, 2014 at 10:40 AM, C K Kashyap ckkash...@gmail.com wrote:
Hi,
I finally got my robotic vehicle working using
I added some stuff on the Elisp documentation. Others can update if they
think I am wrong!
Phil
Val Waeselynck val.vval...@gmail.com writes:
So it would be nice if people who are knowledgeable about other doc systems
could contribute to it. From what I see, that may involve Tim for Emacs,
Tim,
Judge Alsup did not conflate patent and copyright law. With regards to
asserting copyright in the Java API he concludes:
To repeat, Section 102(b) states that “in no case does copyright
protection for an original work of authorship extend to any idea,
procedure, process, system, method
This is, I think, incorrect. The GPL includes a standard linking
exception. Look for this part
A Standard Interface means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language,
Thanks David,
hmmm perhaps I'll try and see if it is usable after the repl comes up.
clojurescript route would involve writing/compiling the code on a regular
machine right?
Regards,
Kashyap
On Mon, May 12, 2014 at 6:47 PM, David Powell djpow...@djpowell.net wrote:
Yeah I had similar
I'd always assumed that was the case anyway; the fact that Google was
prepared to risk that this was not the case was never a good guide for
the little people anyway. Google can afford to get sued by Oracle.
Oracle have, however, given you permission to use the Java API and
release it under
New feature: added Java interface. Eclipse project example.
Home: https://github.com/rururu/rete4frames
Have fun!
Sincerely,
Ru
--
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
The x is referring to the map that is to be
added in as a parameter, right?
So, taking one example from James's code:
(defn transparent-put [{:keys [channel buffer]} x]
(go
(! channel x)
(swap! buffer conj x)))
The x is the second argument to the function--it's the message you put
Sorry, I just realized that you were referring to the exact same
examples Jay Fields uses...so you must already know about that article! ;-)
(2014/05/12 23:07), Dave Della Costa wrote:
The x is referring to the map that is to be
added in as a parameter, right?
So, taking one example from
On 12 May 2014 10:48, gamma235 jesus.diama...@gmail.com wrote:
When I try this using your code above I get a stack-trace that I can't
understand. Am I using it wrong?
(transparent-chan c)
(transparent-put c 42)
(transparent-take c)
Yep, try this instead:
(def tc (transparent-chan c))
On 12 May 2014 10:40, C K Kashyap ckkash...@gmail.com wrote:
I finally got my robotic vehicle working using raspberry pi. I was hoping to
make it do tricks using the clojure repl - however, I found that repl took
well over 2 minutes to start. Is that normal or are folks seeing better
Ok the destructuring is clear to me now. And yes Jay Field article was great :)
So the only thing that remains now is to get the symbol being passed into my
original transparent-put function to stop evaluating to either ch-log or
clojure.core.async.impl.channels.ManyToManyChannel@5096B86b-log
Sounds promising ... I'll give it a shot. Thanks Daniel.
Regards,
Kashyap
On Mon, May 12, 2014 at 4:41 PM, Daniel Barlow d...@telent.net wrote:
On 12 May 2014 10:40, C K Kashyap ckkash...@gmail.com wrote:
I finally got my robotic vehicle working using raspberry pi. I was
hoping to
make it
On Sunday, May 11, 2014 6:33:25 PM UTC-5, Alex Miller wrote:
On Sun, May 11, 2014 at 2:06 PM, Mikera mike.r.an...@gmail.comjavascript:
wrote:
OK. this thread is a bit worrying. If I understand correctly, it
means that we've now got inconsistent hash and equals functions. I suspect
Forgy's RETE is a self-modifying data structure.
How is this handled in Clojure?
Tim Daly
--
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 -
Judge Alsup did not conflate patent and copyright law. With regards to
asserting copyright in the Java API he concludes: ...[snip]...
Good point. I was wrong.
The higher court ruled that Oracle DID have a copyright claim.
I'm not a lawyer but I've read 3 books on intellectual property law.
On Mon, May 12, 2014 at 12:15 PM, John Hume duelin.mark...@gmail.comwrote:
On Sunday, May 11, 2014 6:33:25 PM UTC-5, Alex Miller wrote:
On Sun, May 11, 2014 at 2:06 PM, Mikera mike.r.an...@gmail.com wrote:
OK. this thread is a bit worrying. If I understand correctly, it
means that we've
This implementation does not strictly support principles of functional
programming, immutability and so on. Clojure used mostly for simplicity of
programming, specifically in right hand sides of the rules and helper
functions. Moreover, it is extensively uses Java HashMaps directly for
better
On Mon, May 12, 2014 at 12:53 PM, Alex Miller a...@puredanger.com wrote:
My recommendation in Java would be the same - using mutable objects as
keys in a map (where mutability changes the hashcode) is a bug waiting to
happen.
Although I used java.util.ArrayList in the sample REPL session
On Mon, May 12, 2014 at 4:26 PM, John D. Hume duelin.mark...@gmail.comwrote:
On Mon, May 12, 2014 at 12:53 PM, Alex Miller a...@puredanger.com wrote:
My recommendation in Java would be the same - using mutable objects as
keys in a map (where mutability changes the hashcode) is a bug waiting
Hi everyone,
I am trying to use clojure.tools.reader to read from a file and also
process datomic #db/id literals, but I am not sure how to pass in the
*data-readers*?
clojure.tools.reader.edn allows something like this:
(edn/read reader false eof { :readers *data-readers* } )
Is there
(binding [clojure.tools.reader/*data-readers* *data-readers*]
(clojure.tools.reader/read ..))
is probably what you want.
On Tue, May 13, 2014 at 12:17 AM, Sarkis Karayan skara...@gmail.com wrote:
Hi everyone,
I am trying to use clojure.tools.reader to read from a file and also
process
What dependencies do I add to leiningen to get javax.imageio package?
--
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
On Mon, May 12, 2014 at 6:28 PM, Michael Shaffer biocgef...@gmail.com wrote:
What dependencies do I add to leiningen to get javax.imageio package?
None, as far as I can tell..
(ns imagetest.core
(:import [javax.imageio ImageIO])
(:gen-class))
(defn foo []
(let [x
Doesn't seem to work:
(ns literal-test
(:require [datomic.api :as d]
[clojure.tools.reader :as r]
[clojure.tools.reader.reader-types :as readers]))
(defn read-all [source-code]
(let [reader (readers/source-logging-push-back-reader source-code)
eof
Brute is a simple and lightweight Entity Component System library for
writing games with Clojure.
This is a rewrite of Brute 0.1.1, to get rid of all the global internal
refs, and make it so that Brute simply passes around an immutable
collection. This makes things far nicer to deal with, and
Why is something like
(derive [::matrix ::ring-element] ::ring-element)
prevented by the assertion in clojure.core/derive?
Is there something that is an actual show-stopper
or is this an implementation detail?
Cheers,
ranko
--
You received this message because you are subscribed to the
On Monday, 12 May 2014 00:33:25 UTC+1, Alex Miller wrote:
On Sun, May 11, 2014 at 2:06 PM, Mikera mike.r.an...@gmail.comjavascript:
wrote:
OK. this thread is a bit worrying. If I understand correctly, it
means that we've now got inconsistent hash and equals functions. I suspect
this
Nice... good to see another implementation.
Have you seen clara-rules by Ryan Brush? It is actually a
modified/optimized RETE but faithful to the basic design.
See:
https://github.com/rbrush/clara-rules
Alan
On Monday, May 12, 2014 6:47:44 AM UTC-7, ru wrote:
New feature: added Java
On Monday, May 12, 2014 10:29:03 AM UTC-7, da...@axiom-developer.org wrote:
Forgy's RETE is a self-modifying data structure.
How is this handled in Clojure?
The clara-rules approach treats (no pun intended) the working memory as a
value, from the readme.md:
Embrace immutability. The
I got this to work by modifying my read-all function to convert the results
from the take-while into a vector.
Not entirely sure why it makes a difference, but I got through it for now.
Interestingly, calling vec isn't needed when using clojure.tools.reader.edn.
Thanks for your help.
(defn
Before creating own rete implementation I have used in my applications
Drools for several years. Drools is becoming more and more complex and in
the end ceased to support my applications. I decided to create my own
implementation as simple as possible to have a full control and quick
search in
Hey guys, I took your suggestions and just wanna deliver the finished
product. I included the macro in there for practice, but agree it is
probably not necessary. Thanks for all your help.
p is for pretty :)
(defn pchan [ch]
{:channel ch, :buffer (atom [])})
(defn pbuff [{:keys
Hi, Ranko.
I *think* it's because vectors are handled specially during dispatch, to
easily handle both dispatching on multiple args and hierarchies:
isa?http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/isa?works
with vectors by calling
I've posted a patch that makes java.util.{List,Map,Map.Entry,Set}
hashes consistent with those of appropriate Clojure collection types
on the ticket.
Performance of repeated hasheq lookups on a single PHM actually seems
to be slightly better with this patch applied. Adding the hasheqs of a
PHM, a
50 matches
Mail list logo