On Tuesday, May 12, 2015 at 4:29:22 AM UTC-7, Georgi Danov wrote:
coding and designing defensively because you are concerned about your
teammates is big waste of time. if this is the reality (in the enterprise
it's the norm)
Yes, it is the norm in the enterprise. In a decade of
I agree about the counter-intuitiveness. I'm only wondering whether the
error message is a bit misleading contains? not supported on type:
java.lang.String because of course (contains? hello 2) works fine.
Shantanu
On Wednesday, 13 May 2015 00:12:19 UTC+5:30, James Reeves wrote:
contains?
On May 12, 2015, at 1:54 PM, Shantanu Kumar kumar.shant...@gmail.com wrote:
I agree about the counter-intuitiveness. I'm only wondering whether the error
message is a bit misleading contains? not supported on type:
java.lang.String because of course (contains? hello 2) works fine.
It seems
yada is a library for creating RESTful Ring handlers, similar(ish) to
Liberator. The main difference is that yada fully supports async operation
(provided by Zach Tellman's manifold library). It is a kind of reactive
Clojure-based response to Java's ratpack.io or Scala's spray.io.
yada is
On 12 May 2015 at 19:54, Shantanu Kumar kumar.shant...@gmail.com wrote:
I agree about the counter-intuitiveness. I'm only wondering whether the
error message is a bit misleading contains? not supported on type:
java.lang.String because of course (contains? hello 2) works fine.
Oh, I see!
Looks great. Could I use this to implement something like a Gibbs Sampler?
On Tuesday, May 12, 2015 at 3:05:50 AM UTC-7, Frank Wood wrote:
I'm a professor at Oxford and my group has been working on a new embedded
language called Anglican:
http://www.robots.ox.ac.uk/~fwood/anglican/
It
Another question: is there a particular reason why the code of Anglican is
hosted on BitBucket with read only access for outsider, whereas the
examples are on Github? Does that mean that you do not anticipate
contributions to the language from the outside? I saw the license is GPL
though.
On
contains? has always been a little counter-intuitive. It essentially only
works on collections that allow for a constant or logarithmic lookup time,
and often works on the keys of a collection, rather than its values. The
only exception to this are sets, where the values are essentially keys as
Hi,
I notice the following in Clojure 1.7.0-beta2:
user= (contains? hello 2)
true
user= (contains? hello \e)
IllegalArgumentException contains? not supported on type: java.lang.String
clojure.lang.RT.contains (RT.java:800)
Is this just a case of misleading error message or am I missing
On Tuesday, May 12, 2015 at 3:34:46 PM UTC-4, Michael Gardner wrote:
On May 12, 2015, at 1:54 PM, Shantanu Kumar kumar.s...@gmail.com
javascript: wrote:
I agree about the counter-intuitiveness. I'm only wondering whether the
error message is a bit misleading contains? not supported on
Thanks for the reply. I do like this. I think it's actually more elegant.
Definitely going into my toolbox. One thing I dislike is that I still have
to re-implement the logic of the already existing (performant tested)
transducers.
Also, I could also add a 4th parameter: 'terminate-early?' but
You can use Symbol Hound to search for strange things though here it fails. Ex:
http://symbolhound.com/?q=-%3E%3E+clojure
On Sunday, May 10, 2015 at 9:00:10 PM UTC+2, piast...@gmail.com wrote:
Sadly, Google seems to think I am search for internal when I search for
^:internal so that makes it
You can use Symbol Hound to search for strange things though here it fails. Ex:
http://symbolhound.com/?q=-%3E%3E+clojure
On Sunday, May 10, 2015 at 9:00:10 PM UTC+2, piast...@gmail.com wrote:
Sadly, Google seems to think I am search for internal when I search for
^:internal so that makes it
knowing how to break down Clojure's syntax a bit helps, too. which
means newbies are kinda screwed until they divine this.
http://stackoverflow.com/questions/8920137/clojure-caret-as-a-symbol
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to
even github gets it totally wrong, apparently?
https://github.com/laurentpetit/ccw/search?utf8=%E2%9C%93q=%22^%3Ainternal%22type=Code
because, you know, it isn't as if github is mostly all about hosting *code*.
such that, you know, you'd think they'd have realized by now this kind
of feature is
How do we effectively leverage some of the more advanced Clojure-oriented
webservers such as Aleph and Immutant?
I've just posted about yada on another thread, a library for 'proper'
handling of Ring requests, fully supporting async. Although yada is a
separate library, it fully complements
There are other sources for this information, too (perhaps better ones),
but the cheat sheet has a section with many of these special symbols:
clojure.org/cheatsheet
Andy
On Tue, May 12, 2015 at 1:49 PM, Raoul Duke rao...@gmail.com wrote:
knowing how to break down Clojure's syntax a bit
On May 12, 2015, at 3:28 PM, Fluid Dynamics a2093...@trbvm.com wrote:
Strings and arrays support constant-time access by index.
Yes, but why should that mean that contains? should work on Strings? Because
it can doesn't seem compelling to me. In discussions about contains?, one
often hears
Ignoring some of the conversation here to point out that what you want is:
(.contains foo f)
On Tue, May 12, 2015 at 4:04 PM, Michael Gardner gardne...@gmail.com
wrote:
On May 12, 2015, at 3:28 PM, Fluid Dynamics a2093...@trbvm.com wrote:
Strings and arrays support constant-time access by
On May 12, 2015, at 4:28 PM, Fluid Dynamics a2093...@trbvm.com wrote:
On Tuesday, May 12, 2015 at 3:34:46 PM UTC-4, Michael Gardner wrote:
On May 12, 2015, at 1:54 PM, Shantanu Kumar kumar.s...@gmail.com
javascript: wrote:
I agree about the counter-intuitiveness. I'm only wondering
If I:
git clone https://github.com/overtone/overtone.git
cd overtone
lein repl
and then at the REPL, I try to load Overtone:
user= (all-ns)
(#Namespace clojure.set #Namespace clojure.tools.nrepl.ack #Namespace
clojure.stacktrace #Namespace clojure.string #Namespace
clojure.java.browse
I'm a professor at Oxford and my group has been working on a new embedded
language called Anglican:
http://www.robots.ox.ac.uk/~fwood/anglican/
It can be used to do advanced machine learning in Clojure (Java, etc.)
applications without having to know anything about inference or math. For
No tool or technology beats the combination of:
a) component/responsibility blueprint
b) discipline in communicating, following and adapting it
encapsulation can be a nice safety net once you have the things above, but
it would never be a solution to the problem. just a convenience.
coding and
On Tuesday, May 12, 2015 at 5:05:00 PM UTC-4, Michael Gardner wrote:
On May 12, 2015, at 3:28 PM, Fluid Dynamics a209...@trbvm.com
javascript: wrote:
Strings and arrays support constant-time access by index.
Yes, but why should that mean that contains? should work on Strings?
Because
On Tue, May 12, 2015 at 9:09 PM, Fluid Dynamics a2093...@trbvm.com wrote:
On Tuesday, May 12, 2015 at 10:55:27 PM UTC-4, piast...@gmail.com wrote:
If I:
git clone https://github.com/overtone/overtone.git
cd overtone
lein repl
All you need to do is create a new lein project, and add the
I have a set of functions that need a map of historic data. Hence, this
map gets passed along from function to function, usually several levels
deep. In addition to the map, a reference date also frequently get passed
along in 80% of the API. Sometimes a third or fouth parameter is also
On Tuesday, May 12, 2015 at 10:55:27 PM UTC-4, piast...@gmail.com wrote:
If I:
git clone https://github.com/overtone/overtone.git
cd overtone
lein repl
and then at the REPL, I try to load Overtone:
user= (all-ns)
(#Namespace clojure.set #Namespace clojure.tools.nrepl.ack #Namespace
On Tue, May 12, 2015 at 7:55 PM, piastkra...@gmail.com wrote:
If I:
git clone https://github.com/overtone/overtone.git
cd overtone
lein repl
and then at the REPL, I try to load Overtone:
...
user= (resolve 'overtone.studio.inst)
You want require, not resolve, in order to load the
I'm excited to announce the first release of Dominator
https://github.com/dubiousdavid/dominator. Dominator brings the
simplicity and performance of the Virtual-DOM
https://github.com/Matt-Esch/virtual-dom project to ClojureScript
https://github.com/clojure/clojurescript. Dominator encourages
Re: Some people don't like the native approach to private vars since
anyone who wants to override it can do so anyway, so they go with a purely
conventional and unenforced approach: delineate the boundaries of API vs
internal using :internal or :impl and/or put the internal bits in an impl
Dominator brings the simplicity and performance of the Virtual-DOM
project to ClojureScript.
Is this the same kind of Virtual DOM as in facebook react? I.e. is
Dominator a react replacement (written in cljs, of course)?
--
You received this message because you are subscribed to the Google
In this case I'm referring to a project called virtual-dom, which is a
separate project from React. It is conceptually the same as React, but is
smaller, faster, and generally more in line with functional programming
principles.
https://github.com/Matt-Esch/virtual-dom
David
--
You received
32 matches
Mail list logo