Yes apply to be a mentor - sorry it wasn't more clear - this could have
been done at anytime.
Also important DO NOT associate yourself with a proposal in Confluence -
you MUST do this in Melange.
DAvid
On Mon, Apr 9, 2012 at 9:50 AM, Timothy Baldridge tbaldri...@gmail.comwrote:
Can I apply
That is all.
David
--
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
first post.
To unsubscribe from this group,
You don't see a My Dashboard link?
On Mon, Apr 9, 2012 at 12:52 PM, Phil Hagelberg p...@hagelb.org wrote:
On Mon, Apr 9, 2012 at 7:17 AM, David Nolen dnolen.li...@gmail.com
wrote:
Yes apply to be a mentor - sorry it wasn't more clear - this could have
been
done at anytime.
Also
On Mon, Apr 9, 2012 at 6:05 PM, Ulrik Sandberg ulrik.sandb...@gmail.comwrote:
There's a little toy rabbit called Karotz (karotz.com). It's the
successor of the now discontinued Nabaztag, and it's actively being
developed. Karotz has some cool features such as text-to-speach, voice
PM, David Nolen dnolen.li...@gmail.com wrote:
The multi-arity fn optimization was causing some code size explosion. I've
committed a refactor that eliminates the issue. Please try!
On Sun, Apr 8, 2012 at 6:26 PM, David Nolen dnolen.li...@gmail.comwrote:
I've spend the past weekend doing some
On Tue, Apr 10, 2012 at 6:23 PM, Jason Hickner jhick...@gmail.com wrote:
Very cool! I'm seeing a size reduction in some code of mine that made
extensive use of core.match. Maybe from the removal of a lot of CLJS truth
tests?
Do you have the source available to your CLJS spectral norm code?
binding. You will now get a warning if you try to use a
var that has not been declared ^:dynamic. Dynamic vars are never direct
invoked.
Please try out master and let us know if this causes problems for you in
anyway.
David
On Tue, Apr 10, 2012 at 6:41 PM, David Nolen dnolen.li...@gmail.com wrote
Good point, fixed in master.
On Wed, Apr 11, 2012 at 11:28 AM, David Powell djpow...@djpowell.netwrote:
On Tue, Apr 10, 2012 at 6:21 PM, David Nolen dnolen.li...@gmail.comwrote:
I've merged these changes in master. I've also added another change that
results in yet another large perf boost
It might be worth investigating a more functional solution. RxJS looks like
a promising project to steal ideas from.
David
On Wed, Apr 11, 2012 at 6:11 PM, Jason Hickner
jhick...@gmail.comjavascript:_e({}, 'cvml', 'jhick...@gmail.com');
wrote:
Hello,
I'm working on porting underscore.js to
On Thu, Apr 12, 2012 at 1:13 AM, Brandon Bloom snprbo...@gmail.com wrote:
In my little test project (which depends on Vars for some clever DOM
manipulation callbacks), I needed a way to get the :dynamic flag when
attaching a REPL to an already-compiled front end. What I did was prn the
You'll want to wait for core.logic to get the cKanren extensions before
trying that. Even an optimized core.logic version takes about 14-16s.
David
On Thu, Apr 12, 2012 at 12:58 PM, Nicolas Buduroi nbudu...@gmail.comwrote:
Hi, I translated[1]the solution to the send more money logic puzzle
For the curious:
https://github.com/Reactive-Extensions/RxJS
David
On Wed, Apr 11, 2012 at 9:22 PM, Jason Hickner jhick...@gmail.com wrote:
Thanks, I'll check it out.
- Jason
On Wednesday, April 11, 2012 4:42:35 PM UTC-7, David Nolen wrote:
It might be worth investigating a more
How much memory do Python Go consume when you do this? Are you giving the
JVM enough memory?
On Thu, Apr 12, 2012 at 6:17 PM, László Török ltoro...@gmail.com wrote:
Hi,
I'm trying figure out how to load a huge file that contains some 800k pair
of integers (two integers per line) which
Yes. Please open a ticket in JIRA.
Thanks!
On Fri, Apr 13, 2012 at 3:40 AM, Stuart Campbell stu...@harto.org wrote:
Given the following ClojureScript:
(ns foo)
(defn bar [] 42)
(ns baz
(:require [foo :as x]))
(defn quux [foo]
(x/bar))
baz.quux compiles to:
baz.quux = function
What's your actual code look like?
On Thu, Apr 12, 2012 at 11:17 PM, Marius Seritan lov2...@gmail.com wrote:
I am not sure if this is the right forum. I am playing with domina and
domina-events and I cannot register and event because of some problem with
symbols. By the time my symbols make
Thanks to Michal Marczyk we're closing in on PersistentHashMaps:
http://jsperf.com/cljs-persistent-hash-map-tiny-assoc
http://jsperf.com/cljs-persistent-hash-map-large-assoc
http://jsperf.com/cljs-persistent-hash-map-access
Performance is looking pretty good and, as usual, very stellar on V8.
How are you compiling the code?
David
On Thu, Apr 19, 2012 at 5:55 AM, Mark Engelberg mark.engelb...@gmail.comwrote:
I'm trying to get some Clojure code to compile to javascript.
So I've got a clojurescript repl up and running, and I was hoping it would
be a straightforward iterative
How are you starting the REPL? What version of ClojureScript? Are you using
lein-cljsbuild?
On Thu, Apr 19, 2012 at 2:09 PM, Mark Engelberg mark.engelb...@gmail.comwrote:
On Thu, Apr 19, 2012 at 10:56 AM, David Nolen dnolen.li...@gmail.comwrote:
How are you compiling the code?
David
/clojurescript.git
On Thu, Apr 19, 2012 at 11:13 AM, David Nolen dnolen.li...@gmail.comwrote:
How are you starting the REPL? What version of ClojureScript? Are you
using lein-cljsbuild?
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post
Rhino is slow. If you want to see performance anywhere near the JVM you to
have to use a modern JavaScript engine - JavaScriptCore, SpiderMonkey, or
Google V8.
David
On Thu, Apr 19, 2012 at 7:31 PM, Mark Engelberg mark.engelb...@gmail.comwrote:
I've found that by completely exiting and
On Thu, Apr 19, 2012 at 8:43 PM, Mark Engelberg mark.engelb...@gmail.comwrote:
On Thu, Apr 19, 2012 at 4:46 PM, Evan Mezeske emeze...@gmail.com wrote:
Is the 16 seconds figure from running your code in Rhino?
Yes, Rhino. I'm also not doing any optimizations, although my
understanding is
On Thu, Apr 19, 2012 at 9:25 PM, Mark Engelberg mark.engelb...@gmail.comwrote:
OK, I ran the same test directly in the browser with optimizations. I
wasn't doing it in a REPL, so I couldn't use the time function, but Firefox
appeared to take about 2 seconds, and Chrome was definitely under a
What don't you like about Maude?
On Wed, Apr 18, 2012 at 10:05 PM, Matthew Rocklin mrock...@gmail.comwrote:
Hello,
As a disclaimer I know very little about this topic or about Clojure;
please be kind.
Background:
I'm interested in implementing a small term rewriting system for a
on it.
On Thursday, April 19, 2012 9:39:35 PM UTC-5, David Nolen wrote:
What don't you like about Maude?
On Wed, Apr 18, 2012 at 10:05 PM, Matthew Rocklin mrock...@gmail.comwrote:
Hello,
As a disclaimer I know very little about this topic or about Clojure;
please be kind.
Background
Calls to = call identity? first.
On Fri, Apr 20, 2012 at 2:38 AM, Mark Engelberg mark.engelb...@gmail.comwrote:
On Thu, Apr 19, 2012 at 11:31 PM, David Jagoe davidja...@gmail.comwrote:
Out of curiosity, why is this useful to you?
It certainly has performance benefits.
When things are
the ticket [3]. There's
also a TransientHM vs. PHM comparison linked to from [2].
Sincerely,
Michał
[1] http://dev.clojure.org/jira/browse/CLJS-181
[2] http://dev.clojure.org/jira/browse/CLJS-187
[3] http://dev.clojure.org/jira/browse/CLJS-178
On 16 April 2012 20:15, David Nolen dnolen.li
On Fri, Apr 20, 2012 at 2:32 PM, Brent Millare brent.mill...@gmail.comwrote:
Quick question, so does this mean we have clojure's persistent data
structures implemented in clojurescript or js? This would mean we are one
more step closer to C-in-C right?
The persistent data structures are
system http://en.wikipedia.org/wiki/Term_rewriting_system using
Clojure?
On Fri, Apr 20, 2012 at 8:46 AM, David Nolen dnolen.li...@gmail.comwrote:
I don't know Maude so I can't speak to much on it - though I've heard
good things from many different people.
Clojure is fairly well documented
With some minor alterations it should be just as fast as the Java
implementation.
David
On Fri, Apr 20, 2012 at 7:35 PM, Casper Clausen casp...@gmail.com wrote:
Excellent! Any idea how this implementation would compare performance
wise to the java implementation if imported to Clojure?
On
The Dart Synonyms page is pretty informative: http://synonym.dartlang.org/
They say imitation is the sincerest form of flattery:
http://himera.herokuapp.com/synonym.html
If you'd like to contribute improvements (syntax highlighting ;),
corrections, additions please send pull requests here:
find it? it would have saved me so much time
*sob*
On Mon, Apr 23, 2012 at 3:45 PM, David Nolen dnolen.li...@gmail.com
wrote:
http://himera.herokuapp.com/synonym.html
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send
Congratulations to the following students, their proposals have been
accepted for Clojure/dev's Google Summer of Code 2012!
Jon Rose
- Lightweight Clojure editor
Raphael Amiard
- Pluggable backend infrastructure for ClojureScript
Alexander Yakushev
- Toolchain for dynamic Clojure
On Tue, Apr 24, 2012 at 3:56 AM, Sanel Zukan san...@gmail.com wrote:
These proposals were selected as they not only had the best overall
score as determined by the mentoring group
I'm just curious: Improved Clojars System was rejected but is the second
one with highest scores in the list?
of communication will be set up?
Thank you again!
On Tuesday, April 24, 2012 6:03:02 AM UTC+3, David Nolen wrote:
Congratulations to the following students, their proposals have been
accepted for Clojure/dev's Google Summer of Code 2012!
Jon Rose
- Lightweight Clojure editor
Raphael Amiard
It's a known bug. We should not munge JS reserved words that appear in
property access. Patch welcome.
David
On Tue, Apr 24, 2012 at 3:31 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
Hi,
I want to create a (partially static) server with nodejs and express.
I want to be able to
,
Chris.
On Apr 24, 12:33 pm, David Nolen dnolen.li...@gmail.com wrote:
It's a known bug. We should not munge JS reserved words that appear in
property access. Patch welcome.
David
On Tue, Apr 24, 2012 at 3:31 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote
On Wed, Apr 25, 2012 at 5:22 AM, Brandon Bloom snprbo...@gmail.com wrote:
I've noticed that a lot of the new CLJS optimizations, such as direct
arity dispatch, don't work correctly across namespaces. Upon deeper
investigation, it seems like files are analyzed in an arbitrary order
Perhaps you are calling 'get' on something which has not implemented or not
been extended to ILookup.
On Wed, Apr 25, 2012 at 2:38 PM, Pierre-Henry Perret phper...@gmail.comwrote:
When returning a response from a remote call, it fails to a server error:
__
Uncaught Error: No
On Wed, Apr 25, 2012 at 2:53 PM, Brandon Bloom snprbo...@gmail.com wrote:
The current optimizations are really only guaranteed to work on core.cljs.
I encountered the dependency problem while working on the optimizations.
It occurs to me that these sorts of optimizations would need to
sounds like you didn't set CLOJURESCRIPT_HOME or that it was set
incorrectly.
On Wed, Apr 25, 2012 at 9:40 PM, Sean Neilan sneil...@gmail.com wrote:
Hi All,
I'm not sure if this has been asked before.
I followed the quickstart guide:
Depends on what you're doing but one simple way is:
(defn for-all [gs]
(if (seq gs)
(all
gs
(for-all (rest gs)))
s#))
On Thu, Apr 26, 2012 at 1:08 PM, Daniel Kwiecinski
daniel.kwiecin...@gmail.com wrote:
Is there such standard goal in clojure.logic or do I need to write
Just hasn't been implemented yet. Patch welcome :)
On Wed, Apr 25, 2012 at 3:18 AM, Sean Nilan sean.ni...@gmail.com wrote:
Hi, I was wondering what support there is in ClojureScript for reflection.
Is there any way to get a constructor function from just the name of the
record / class?
Oops didn't read closely enough. Yes, your solution looks good to me.
On Thu, Apr 26, 2012 at 1:08 PM, Daniel Kwiecinski
daniel.kwiecin...@gmail.com wrote:
Is there such standard goal in clojure.logic or do I need to write
something like:
(defn for-all
A goal that succeeds if all
On Thu, Apr 26, 2012 at 1:38 PM, Daniel Kwiecinski
daniel.kwiecin...@gmail.com wrote:
Does it make sense at all to you.
Makes sense, but sounds outside the scope of what core.logic currently does.
David
--
You received this message because you are subscribed to the Google
Groups Clojure
On Thu, Apr 26, 2012 at 4:30 PM, blais goo...@furius.ca wrote:
(Generally I find I get too little cultural osmosis when it comes to
practical application of Clojure, so questions like this one come up all
the time while I'm coding. Meetups and books touch on topics I understand
well but
On Thu, Apr 26, 2012 at 4:52 PM, blais goo...@furius.ca wrote:
I suppose I could elect to move refs for modifiable things towards the
leaves, but that seems to me like going against the grain and may have
implications for concurrency (there are few but some threads running in
parallel in this
. It only limits it. Would be it possible
to extend Clojure.logic to reuse prev results, or I should forget about it
and restart search from scratch?
Daniel
On Apr 26, 2012 7:55 PM, David Nolen dnolen.li...@gmail.com wrote:
On Thu, Apr 26, 2012 at 1:38 PM, Daniel Kwiecinski
daniel.kwiecin
On Thu, Apr 26, 2012 at 5:08 PM, blais goo...@furius.ca wrote:
I receive events from a network. My application calls for storing these
events and doing different things based on the changing status of orders
attached to these events. I need to store them somewhere, I need to track
this state
Might I suggest a good book on Prolog?
http://www.amazon.com/Prolog-Programming-Artificial-Intelligence-Bratko/dp/0201403757
http://www.amazon.com/The-Art-Prolog-Second-Edition/dp/0262193388
I also recommend close readings of The Reasoned Schemer and Byrd's
dissertation - both are linked to in
Does this work in Clojure? If so file a ticket in JIRA.
David
On Fri, Apr 27, 2012 at 5:09 AM, Stuart Campbell stu...@harto.org wrote:
Hello,
I'm not sure if what I'm doing is supported or whether I'm doing it
incorrectly.
I have two ClojureScript namespaces:
(ns foo)
(defprotocol
lein-cljsbuild is now becoming the tool of choice for many CLJS devs. One
thing I've noticed about domina is that it's not particularly careful about
declaration order. This results in a spew of compiler warnings when
building your project with domina. It would be nice to sprinkle the code
with
It can be done with project.
David
On Fri, Apr 27, 2012 at 4:25 PM, Daniel Kwiecinski
daniel.kwiecin...@gmail.com wrote:
Big thanks for the links. Re. my question, is it doable to aggregate? Does
it make sense to agregate in LP at all?
Daniel
On Apr 27, 2012 4:30 PM, David Nolen dnolen.li
)
On Friday, April 27, 2012 3:26:43 PM UTC-4, David Nolen wrote:
lein-cljsbuild is now becoming the tool of choice for many CLJS devs. One
thing I've noticed about domina is that it's not particularly careful about
declaration order. This results in a spew of compiler warnings when
building
(and also see if it still
happens when I take lein-cljsbuild out of the equation).
On Saturday, April 28, 2012 1:29:07 PM UTC-4, David Nolen wrote:
Which version of ClojurScript? Have you tried building against master?
David
On Sat, Apr 28, 2012 at 1:19 PM, Luke VanderHart
luke.vanderh
You need to pass in meta.
David
On Saturday, April 28, 2012, Shantanu Kumar wrote:
Hi,
Can somebody point me to an example that implements the IObj interface
on deftype without needing to pass in meta via constructor? defrecord
seems to be doing this by storing meta on the tag, but I don't
Yes that should be PersistentVector. Fixed in master thanks!
David
On Tue, May 1, 2012 at 1:10 PM, Rob rob.nikan...@gmail.com wrote:
Hi,
I just tried running the sample in samples/dom. Got this error:
No protocol method DOMBuilder.-element defined for type object: [:ul [:li
:li :li]]
out of the equation).
On Saturday, April 28, 2012 1:29:07 PM UTC-4, David Nolen wrote:
Which version of ClojurScript? Have you tried building against master?
David
On Sat, Apr 28, 2012 at 1:19 PM, Luke VanderHart
luke.vanderh...@gmail.com wrote:
David,
Yes. I've been looking
It is helpful to post here. Thanks! File a ticket in JIRA.
David
On Thursday, May 3, 2012, Rob wrote:
This should probably throw something, right?
(extend-protocol undefined js/Text (foo [x] x))
I had mis-typed the name of the protocol and I didn't get an error until
later.
( Is it
I would not rely on this behavior. Follow Clojure's property access
conventions.
David
On Thursday, May 3, 2012, Rob wrote:
Hi,
Syntax like this doesn't work in normal Clojure, right?
js/document.body.style
It just did in a ClojureScript repl. Is there something magic about js/
?
Go ahead and open a ticket.
David
On Tue, May 8, 2012 at 5:35 AM, Dave Sann daves...@gmail.com wrote:
I noticed the following behaviour:
(.encodeURIComponent js/window some text)
will fail under advanced compilation because the method name is optimised
This applies to any property or
ClojureScript relies on a version of GClosure that is over a year old. We
can move up to the latest GClosure but it means that you can no longer
interact with a browser REPL powered page by opening it using the file://
browser protocol. When you start browser REPL we now will serve static
files
I can answer some of these:
1. Most optimized sites do this
3. Running browser REPL auto build - not currently, but that would be a
nice feature, open a ticket on GitHub. 2 Java processes - Could probably be
done via custom Lein task?
4. ClojureScript One predates lein-cljsbuild. lein-cljsbuild
The new Clojure book from O'Reilly looks like a great start for people
coming from more mainstream languages.
On Mon, May 7, 2012 at 8:48 PM, toan kidn...@gmail.com wrote:
Hi folks,
I've been trying to learn clojure for a while. I've read the clojure
section of seven languages... and
Please attach a patch to the ticket so it can be reviewed there. Thanks!
On Tue, May 8, 2012 at 6:20 PM, Dave Sann daves...@gmail.com wrote:
All is quite - so I raised http://dev.clojure.org/jira/browse/CLJS-243
On Wednesday, 2 May 2012 22:28:01 UTC+10, Dave Sann wrote:
I needed unicode
Hmm wasn't aware of that if true. Should definitely open up a ticket for
that.
On Thursday, May 10, 2012, David Powell wrote:
What browser are you using? I don't think browser-repl works in IE at the
moment.
--
Dave
--
You received this message because you are subscribed to the Google
Good to hear.
On Thursday, May 10, 2012, David Powell wrote:
On Thu, May 10, 2012 at 11:44 AM, David Nolen
dnolen.li...@gmail.comjavascript:_e({}, 'cvml', 'dnolen.li...@gmail.com');
wrote:
Hmm wasn't aware of that if true. Should definitely open up a ticket for
that.
Hmm the latest
Looks neat.
Any reason to call the module clojure-script instead of just clojurescript?
David
On Thu, May 10, 2012 at 2:38 AM, Michael Bradley, Jr.
michaelsbradle...@gmail.com wrote:
I'm looking for folks to help me kick the tires and push this project
forward:
Just gave it a shot, works! Would be nice if it gave some feedback that it
was compiling / recompiling.
David
On Thu, May 10, 2012 at 2:38 AM, Michael Bradley, Jr.
michaelsbradle...@gmail.com wrote:
I'm looking for folks to help me kick the tires and push this project
forward:
A work in progress:
http://github.com/swannodette/mori
Pull requests welcome :)
David
--
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 -
How are you compiling your source?
On Sunday, May 13, 2012, Murtaza Husain wrote:
Hi,
I have an array of maps defined as below -
(def input-boxes [{:name :person/first-name :label-text Full Name
:help-text Please enter your full name as - First Middle Last}
{:name
Do you have a more specific example of why this is a problem?
On Monday, May 14, 2012, Mark Engelberg wrote:
In Clojure, when you def a variable, the REPL prints the name of the
variable rather than the value.
In Clojurescript, when you def a variable, the REPL prints the value
assigned to
James,
Another way - I would recommend contributing to one of the Clojure contrib
libraries or an open source Clojure project. It's a great way to
familiarize yourself with non-trivial Clojure code, get feedback and offer
something up to the community.
You'll definitely get feedback from me if
Sounds reasonable. Is there some specific direction you are suggesting?
David
On Mon, May 14, 2012 at 8:35 AM, Timothy Baldridge tbaldri...@gmail.comwrote:
Over the weekend there was some talk in IRC about why clojure-py
didn't use Clojurescript as the basis for its compiler. The reasons I
On Mon, May 14, 2012 at 2:32 PM, Armando Blancas abm221...@gmail.comwrote:
Much of the more recent code in Clojure is very cross platform. Stuff
like reducers can simply be copied over, fixed up a bit, and it runs.
I wonder how is the fork/join part carrier over for reducers.
Sounds
On Mon, May 14, 2012 at 7:27 PM, Mark Engelberg mark.engelb...@gmail.comwrote:
(def tree (function-that-produces-an-enormous-tree 2))
Isn't doing this at the top level bad form?
So there are a couple examples of things that are harder to do when your
REPL prints the values that are
compromise.
On Mon, May 14, 2012 at 11:13 PM, Mark Engelberg
mark.engelb...@gmail.com wrote:
On Mon, May 14, 2012 at 4:41 PM, David Nolen dnolen.li...@gmail.com
wrote:
On Mon, May 14, 2012 at 7:27 PM, Mark Engelberg
mark.engelb...@gmail.com
wrote:
(def tree (function
On Tue, May 15, 2012 at 3:51 PM, Timothy Baldridge tbaldri...@gmail.comwrote:
(defn as-str [x] (.toString x))
That can't port to Python, or really any other VM besides JS. So if
we're looking at translating the analyzer itself we have to develop
some sort of base set of libraries that every
On Tue, May 15, 2012 at 4:03 PM, Timothy Baldridge tbaldri...@gmail.comwrote:
Why can't it port to Python? You have can have an instance with a method
toString right?
The python version of that code (at least in clojure-py) would be this:
(defn as-str [x] (py/str x))
That would be
Just console.log the object directly. Chrome will give you something
inspectable at the JS console.
On Wednesday, May 16, 2012, Murtaza Husain wrote:
Hi,
I am trying to use domina for listening to an event -
(listen! (sel #password) :keydown (fn [ev]
clojure.lang.Numbers.doubles_array takes a Number or ISeq.
The fact that you're not getting precise line numbers for the error in your
own source is suspect. How are you compiling and testing your code?
David
On Wed, May 16, 2012 at 1:18 PM, Jim - FooBar(); jimpil1...@gmail.comwrote:
But it
resorted here...Believe me very rarely is spend 2-3 hours on an error and
incidently it happens mainly when I'm using java interop extensively...
Jim
On 16/05/12 18:28, David Nolen wrote:
clojure.lang.Numbers.doubles_array takes a Number or ISeq.
The fact that you're not getting precise
terminal open for testing individual functions...and
of course i use 'lein new' and load-file to load my namespaces in.
Jim
On 16/05/12 18:38, David Nolen wrote:
But *how* are you using leiningen2 to test this? With swank Emacs?
On Wed, May 16, 2012 at 1:35 PM, Jim - FooBar(); jimpil1
...and
of course i use 'lein new' and load-file to load my namespaces in.
Jim
On 16/05/12 18:38, David Nolen wrote:
But *how* are you using leiningen2 to test this? With swank Emacs?
On Wed, May 16, 2012 at 1:35 PM, Jim - FooBar(); jimpil1...@gmail.comwrote:
Well, suspect
On Wed, May 16, 2012 at 1:59 PM, Jim - FooBar(); jimpil1...@gmail.comwrote:
ClassCastException [D cannot be cast to java.lang.Number
clojure.lang.Numbers.double_array (Numbers.java:1068)
clojure-encog.training/make-data/fn--963 (training.clj:37)
As Aaron has already mentioned - what
As Michael pointed out the rest arg is messing things up.
On Wed, May 16, 2012 at 2:39 PM, Jim - FooBar(); jimpil1...@gmail.comwrote:
On 16/05/12 19:38, David Nolen wrote:
What's actually on line 37?
(do (. twa analyze (doubles data))
the error originates here...
JIm
--
You
prediction-size)]
(do (. twa analyze (doubles data))
(. twa process (doubles data)
;:folded (FoldedDataSet.)
:else (throw (IllegalArgumentException. Unsupported data model!))
))
Jim
On 16/05/12 19:32, David Nolen
It sounds like you're describing searching for a pattern?
On Fri, May 18, 2012 at 8:48 AM, David McNeil mcneil.da...@gmail.comwrote:
From what I can see core.match does not support matching a variable length
series of values. For example, in a vector, match a series of 0-to-N values
of 1
There's nothing wrong with using nth far as I know.
On Fri, May 18, 2012 at 11:03 AM, octopusgrabbus
octopusgrab...@gmail.comwrote:
In our production development environment, we perform a lot of data
transfers between diverse systems, and most of those transfers involve
comma-delimited (.csv)
Probably out of scope. But this is easy to do w/ core.logic.
On Fri, May 18, 2012 at 11:03 AM, David McNeil mcneil.da...@gmail.comwrote:
On Friday, May 18, 2012 9:59:40 AM UTC-5, David Nolen wrote:
It sounds like you're describing searching for a pattern?
Yes, I think that sounds right. I
On Fri, May 18, 2012 at 8:31 PM, Brent Millare brent.mill...@gmail.comwrote:
Is there work towards building an algebra system with core.logic? So one
could analyze mathematical expressions: compute symbolic derivatives,
simplify expressions, determine undefined variables, and other forms of
core.logic has had the facilities to integrate with external data sources
for a very long time. However this feature has been poorly documented.
Hopefully the following improves the situation a little bit:
http://github.com/clojure/core.logic/wiki/Extending-core.logic-(Datomic-example)
David
--
It might also be interesting to pursue a hybrid system - that's the whole
point of core.logic - being able to mix functional and relational
programming with minimal hassle.
David
On Fri, May 18, 2012 at 10:39 PM, Brent Millare brent.mill...@gmail.comwrote:
I'm working through The Art of Prolog
They probably should though I don't think that's a hard requirement. In
Prolog you can write a fact that looks like this:
likes(X,X).
To say that everyone likes themselves. This is probably better expressed as
a regular relation in core.logic and not as a fact.
(defn likes [x y]
(== x y))
I don't think you need to generate goals for something as straightforward
as this:
(defrel grade person course g)
(fact grade 'Bob 'Algebra 'B)
(fact grade 'Bob 'Art 'C)
(fact grade 'John 'Algebra 'A)
(fact grade 'John 'Art 'A)
(fact grade 'Ricky 'Algebra 'D)
(fact grade 'Ricky 'Art 'A)
(defn
Such operators are available in core.logic.arithmetic. In general such
operations are non-relational and require projection. cKanren offers a
better story here.
On Saturday, May 19, 2012, Brent Millare wrote:
I understand how to construct goals using the primitives provided in
core.logic, like
I didn't think that console.log.apply worked.
On Sunday, May 20, 2012, Moritz Ulrich wrote:
Hello,
I want to write a simple logging-wrapper around console.log, with the
background of being able to enable/disable logging at any time. This is
my current implementation:
other objects are
passed directly to console.log. This way html elements are printed
clickable and most clojure data structures are printed in their native
representation.
David Nolen dnolen.li...@gmail.com javascript:; writes:
I didn't think that console.log.apply worked.
On Sunday, May
/Extending-core.logic-%28Datomic-example%29
Regards,
BG
On Sun, May 20, 2012 at 12:22 PM, Thomas G. Kristensen
thomas.g.kristen...@gmail.com** wrote:
That link is dead - sorry,
Thomas
On May 19, 3:24 am, David Nolen dnolen.li...@gmail.com wrote:
core.logic has had the facilities
On Sun, May 20, 2012 at 6:39 PM, nicolas.o...@gmail.com
nicolas.o...@gmail.com wrote:
So I suggest you take it to heart. Put deftype, defrecord and
defprotocol
away and don't pull them back out for quite some time. At the beginning,
they are just a distraction from Clojure's core
FWIW, the first thing I did when I encountered Clojure was built a Tiny
CLOS like system with inheritance. I've since come to the conclusion it was
a waste of time and Clojure offers an equally good set of tools.
After examining a few powerful paradigms, OO, FP, LP, etc I'm not sure what
natural
1401 - 1500 of 2038 matches
Mail list logo