I'm trying to understand the clojurescript-code of the repl functionality, and
I'm confused…
The following cljs.repl/eval-and-print function takes a cljs-form, compiles it,
sends it to the browser as javascript, and then receives the result, and the…
try's to use "read-string" on that return va
I get the the following error when trying to auto-complete e.g. "(pri":
--8<---cut here---start->8---
java.lang.NullPointerException: null
at clojure.lang.Reflector.invokeNoArgInstanceMember (Reflector.java:314)
clojure.stacktrace$print_stack_trace.invoke (
On Tue, Sep 18, 2012 at 9:01 PM, Paul deGrandis wrote:
>
> 1.) Clojure.org should have a better host of documentation, especially for
> newcomers.
> We saw from the Clojure Survey, as well as threads here on the mailing
> list, that documentation is still something on which we as a community need
Clojure Conj is nearly upon us. Last year there was a very positive
meeting to discuss and help improve the contribution process.
This year I thought it might be helpful to get some ideas on the table and
refined by the community before the Conj.
This has also been a common topic in #clojure.
So the edn spec gives the following guidelines:
"If a reader encounters a tag for which no handler is registered, the
implementation can either report an error, call a designated 'unknown
element' handler, or create a well-known generic representation that
contains both the tag and the tagged eleme
On Tue, Sep 18, 2012 at 9:20 PM, Andrew wrote:
> I tried this but it didn't work. (identical? (array 1 2) (foo)) Did you mean
> this?
No. Sorry I meant that equality between two primitive arrays is based
on whether they point to the same thing in memory. You want to test
two arrays for equality i
I tried this but it didn't work. (identical? (array 1 2) (foo)) Did you
mean this?
On Tuesday, September 18, 2012 5:08:11 PM UTC-4, David Nolen wrote:
>
> On Tue, Sep 18, 2012 at 4:54 PM, Andrew >
> wrote:
> > In my ClojureScript unit tests, the following doesn't evaluate to true
> (=
> > (ar
I didn't get approval to create data.dependency, so instead I've merged
that work into tools.namespace, currently available as 0.2.0-SNAPSHOT.
-S
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegrou
The Google can find a PDF by that name. It uses "capturing" in the sense
of regular expressions. I think his idea is that in the DSL you identify
or produce information (capture it), but you do not specify the names by
which the user's program will refer to it (bind it).
--
You received thi
On Tue, Sep 18, 2012 at 5:07 PM, Andrew Cheng wrote:
> FYI, in #clojure, duck11232 suggested the following which works for me.
>
> (defn arr= [a b] (not (or (< a b) (> a b
This is not valid Clojure. Using this in CLJS will result in things
like the following:
(arr= (array 1) (array "1"))
;;
On 2012-09-16, at 3:21 PM, Patrik Sundberg wrote:
> I'm asking myself though if there's a more functional design for
> accomplishing the same goals? My main goals are to do things consistently so
> that changing a value X propagates properly, and being able to find
> dependencies of a given v
FYI, in #clojure, duck11232 suggested the following which works for me.
(defn arr= [a b] (not (or (< a b) (> a b
On Tue, Sep 18, 2012 at 4:54 PM, Andrew wrote:
> In my ClojureScript unit tests, the following doesn't evaluate to true (=
> (array 1 2) (foo)) even though all foo does is return
On Tue, Sep 18, 2012 at 4:54 PM, Andrew wrote:
> In my ClojureScript unit tests, the following doesn't evaluate to true (=
> (array 1 2) (foo)) even though all foo does is return (array 1 2).
>
> What should I do differently?
Those are primitive mutable arrays and are compared via identity.
Davi
In my ClojureScript unit tests, the following doesn't evaluate to true (=
(array 1 2) (foo)) even though all foo does is return (array 1 2).
What should I do differently?
On Tuesday, January 10, 2012 2:51:06 PM UTC-5, David Nolen wrote:
>
> There is no array literal syntax yet, but (array 22 33
Apparently blip.tv is down now. I will take a look at the video when
it's available again and get back to you.
Regards,
BG
On Tue, Sep 18, 2012 at 12:47 PM, Alex Dowad wrote:
> Dear B.G., thanks for your response. I already understand the problem of
> variable capture in macros well. However, is
Welle is an expressive Clojure client for Riak with batteries included.
1.3.1 is a bug fix release:
* Welle now uses reasonable vclock pruning settings by default
Detailed change log:
https://github.com/michaelklishin/welle/blob/1.3.x-stable/ChangeLog.md
Documentation guides:
http://clojureria
Dear B.G., thanks for your response. I already understand the problem of
variable capture in macros well. However, is that really what C. Grand is
talking about in "(not= DSL macros)"? If you have a video of the talk, the
part where he talks about "capturing" comes at about 13:40.
--
You recei
"Variable Capture" (a common problem with unhygenic macros) can
introduce defects in your code.
Wikipedia has some info on it -
https://en.wikipedia.org/wiki/Common_Lisp#Variable_capture_and_shadowing
For more, you should take a look at "On Lisp" by Paul Graham.
Regards,
BG
On Tue, Sep 18, 2012
In his talk entitled "(not= DSL macros)", C. Grand recommends designing the
core of a DSL with "capturing" rather than binding, then adding binding
macros as an extra layer on top if desired.
I'm trying to understand what exactly he means by "capturing" in this
context. I'm familiar with the us
Wes Freeman writes:
> A separate mailing list for ClojureScript would be great. Also, enabling
> the label [Clojure] for all subjects of emails would be great (this must be
> a setting in google groups, because most of the larger groups have it
> enabled), as I filter through a great deal of emai
On Tue, Sep 18, 2012 at 11:04 AM, Jim - FooBar(); wrote:
> However i get again: ClassNotFoundException Clondie24.games.chess.Player
>
That suggests the Clojure code isn't AOT compiled and/or isn't on your
class path?
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.or
On Tue, Sep 18, 2012 at 2:29 PM, Alexey Petrushin
wrote:
>> issues on JIRA
> Theres a barrier - You has to register to JIRA to submit issue - many people
> won't bother with that and just ignore small bugs or proposals vs. almost
> everyone has github account.
Small bugs are submitted to JIRA all
> issues on JIRA
Theres a barrier - You has to register to JIRA to submit issue - many
people won't bother with that and just ignore small bugs or proposals vs.
almost everyone has github account.
> JVM
Yeah, would be nice to have JS-on-the-fly compiler (like CoffeeScript)
Would be also nice to
trying at the repl:
(class (Player. nil 1))
=>Clondie24.games.chess.Player
if the fully-qualified name won't work I don't know what will!
weird-stuff...
Jim
On 18/09/12 19:04, Jim - FooBar(); wrote:
I want to instantiate a record and call a fn from java source code...
I've got this in m
I want to instantiate a record and call a fn from java source code...
I've got this in my .java file:
//prepare java-clojure interop
private static IFn requireFn = RT.var("clojure.core", "require").fn();
static {requireFn.invoke(Symbol.intern("Clondie24.games.chess"));}
//the namespace
On 18/09/12 17:54, Jim - FooBar(); wrote:
On 18/09/12 17:50, Aaron Cohen wrote:
I actually just tried this (I don't recommend this approach though),
and it worked for me, maybe you missed a step.
what jar is lein2 using? the one with the nice name or the one with
the numbers at the end? whic
I'm studying clojurescript/closure to better understand if using
clojurescript could be really a step ahead in developing rich web based
application. So, I'm still a newbie. I found in some way useful this google
service http://closure-compiler.appspot.com/home to evaluate gclosure
benefits fo
On Tue, Sep 18, 2012 at 12:54 PM, Jim - FooBar(); wrote:
> On 18/09/12 17:50, Aaron Cohen wrote:
>>
>> I actually just tried this (I don't recommend this approach though),
>> and it worked for me, maybe you missed a step.
>
>
>
> what jar is lein2 using? the one with the nice name or the one with
On 18/09/12 17:50, Aaron Cohen wrote:
I actually just tried this (I don't recommend this approach though),
and it worked for me, maybe you missed a step.
what jar is lein2 using? the one with the nice name or the one with the
numbers at the end? which one of the 2 did you modify?
Jim
ps: b
On 18/09/12 17:50, Aaron Cohen wrote:
I actually just tried this (I don't recommend this approach though),
and it worked for me, maybe you missed a step.
what? seriously? You mean you downloaded the jar and managed to import
some class from inside encog_java/customGA/ in some dummy project of
On Tue, Sep 18, 2012 at 12:39 PM, Jim - FooBar(); wrote:
> On 18/09/12 17:28, Aaron Cohen wrote:
>
> What did you use to compile this? I don't believe hyphens are legal in
> Java package names.
>
>
> I used regular
>
> javac -cp blah:blah:blah encog-java/customGA/*.java
>
> the compiler did not
On 18/09/12 17:28, Aaron Cohen wrote:
What did you use to compile this? I don't believe hyphens are legal in
Java package names.
I used regular
*javac -cp blah:blah:blah encog-java/customGA/*.java*
the compiler did not complain because the actual package declaration
uses underscore instead
What did you use to compile this? I don't believe hyphens are legal in
Java package names.
It will be hard to use this in clojure, clojure converts hyphens to
underscores automatically behind the scenes in package names. But your
package actually has a (possibly invalid) hyphen in it's name, so th
decompiling a simple interface gives:
*package*encog_java.customGA;
*import*org.encog.ml.MLRegression;
*import*org.encog.ml.genetic.population.Population;
*public**abstract**interface*CalculateScore
{
*public**abstract**double*calculateScore(MLRegression paramMLRegression);
*public**abstract**
It still not finding the compiled classes! I compiled them all using the
exact same package declaration as the one found in the jar that I'm
producing!
I was also careful to convert the hyphen (directory name) to an
underscore (in the .java file)...
I am still getting a :
ClassNotFoundExcepti
Actually, after looking through the source myself, I noticed eval-and-print
just calls evaluate-form, which is better since its public. I can take care
of printing myself so this is probably better.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To
On 18/09/12 16:00, Aaron Cohen wrote:
The package is baked into the .class file format. You can't change it
after the fack by just moving files in the directory structure.
regardless of whether there is an actual package declaration?
So, you're saying that if I compile the java source inside a
Hi Frank,
That is pretty much exactly as I wanted. The only problem is that you are
calling a private fn and therefore the code is susceptible to change. I
think this should be looked into more and become officially supported. This
is a great hook that opens up the door to a more interactive de
Shantanu,
Quiddity does not fulfill my requirements since I need to control the
environment from interop such as load-file and interop.
On Tuesday, September 18, 2012 12:03:27 AM UTC-4, Shantanu Kumar wrote:
>
>
>
> On Sep 18, 8:27 am, Brent Millare wrote:
> > I forgot to mention an additional
On Tue, Sep 18, 2012 at 10:52 AM, Jim - FooBar(); wrote:
> Hi all,
>
> I'm having a really ridiculous problem...let's say there is jar on clojars
> with the following structure:
>
> --- top-level (.jar)
> --foo (clojure namespaces)
> -a.clj
> -b.clj
> -c.clj
> --
> --bar (java .c
Hi all,
I'm having a really ridiculous problem...let's say there is jar on
clojars with the following structure:
--- top-level (.jar)
--foo (clojure namespaces)
-a.clj
-b.clj
-c.clj
--
--bar (java .class files - no package declaration when compiled)
--baz
-d.class
On Sep 13, 2012, at 4:40 PM, larry google groups wrote:
> I want to offer a big thanks to Chas Emerick, Brian Carper and Christophe
> Grand. I just got their book "Clojure Programming" from Amazon yesterday.
> Spent the whole night reading it. This is my favorite Clojure book so far.
Thank you
On 9/18/2012 8:57 AM, David Nolen wrote:
I've heard of several large
ClojureScript programs that generate 1.2-1.8 *megabytes* of
JavaScript. After advanced compilation and gzipping the applications
are around 40k-50k (http://blog.mezeske.com/?p=552). This is pretty
impressive given that jQuery, w
Hi,
Matt Campbell writes:
> When run in advanced mode, the Google Closure Compiler tries to
> eliminate dead code. This currently doesn't seem to be very effective
> for ClojureScript. A minimal hello-world example currently compiles to
> 90 KB in advanced mode. Is this the best that can be d
On Tue, Sep 18, 2012 at 9:40 AM, Matt Campbell wrote:
> When run in advanced mode, the Google Closure Compiler tries to eliminate
> dead code. This currently doesn't seem to be very effective for
> ClojureScript. A minimal hello-world example currently compiles to 90 KB in
> advanced mode. Is this
I am happy to announce the release of nrepl.el v0.1.4, an Emacs client for
nREPL.
https://github.com/kingtim/nrepl.el
v0.1.4 is available now on Marmalade, and should also be available on Melpa.
See the github Readme for installation and usage instructions.
Notable additions since our last relea
On Tue, Sep 18, 2012 at 9:27 AM, Matt Campbell wrote:
> On 9/18/2012 8:06 AM, David Nolen wrote:
>>
>> It's a yucky bit of code that needs to be removed. It's there to
>> support using keywords as functions - in ClojureScript keywords are
>> just JS Strings.
>
>
> Is there another way to do the sa
When run in advanced mode, the Google Closure Compiler tries to
eliminate dead code. This currently doesn't seem to be very effective
for ClojureScript. A minimal hello-world example currently compiles to
90 KB in advanced mode. Is this the best that can be done? Is Clojure's
dynamism an insurm
On 9/18/2012 8:06 AM, David Nolen wrote:
It's a yucky bit of code that needs to be removed. It's there to
support using keywords as functions - in ClojureScript keywords are
just JS Strings.
Is there another way to do the same thing, without a significant
performance penalty?
Matt
smime.p
It's open source. You can do whatever you want, under the terms of the EPL.
-S
--
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 pat
Look at this around the middle of the page:
http://www.slf4j.org/codes.html
Quartz is linked to the slf4j api. At runtime this API tries to find an
implementation
of the static log binder.
It will not prevent your code from running. If you want to get rid of the
warning and
get logging (which
On Mon, Sep 17, 2012 at 11:26 AM, Matt Campbell wrote:
> I noticed that cljs.core redefines String.prototype.apply. Being new to
> Clojure, I don't understand what this redefinition does or what it is for.
> But I do know that redefining functions in the JS standard library, or
> defining new ones
Hi!
I don't have the time to look at your code right now, but I have one suggestion:
Artem Yankov writes:
> 2. What would be a best way to implement sorted sets (like in Redis)? I
> used sorted maps and sorting them by values which I highly doubt is a
> log(n) operation..
`clojure.core/sorte
Hi,
So I really wanted to learn Clojure and get familiar with the functional
programming. As a side project I decided
to write a simple data structure server similar to Redis. It uses Redis
protocol and already supports same data structures and main commands.
So any standard redis client can be
I have the same requirement to have a clojurescript-form in my
clojure-environment that I want to evaluate in the browser…
To make the following code-snippet work, you're supposed to have a browser-repl
session running, and start a new repl-session on that same JVM from where you
invoke the fol
Hi,
I'm trying to use Quartzite so followed the tutorial but I have a problem
at executing the -main function.
I already add the dependency of
[clojurewerkz/quartzite "1.0.1"]
user=> (-main)
SLF4J: Failed to load class
"org.slf4j.impl.StaticLoggerBinder".#
SLF4J: Defaulting to no-operation (
I noticed that cljs.core redefines String.prototype.apply. Being new to
Clojure, I don't understand what this redefinition does or what it is for.
But I do know that redefining functions in the JS standard library, or
defining new ones on standard objects, is something that should be done
with
I noticed that cljs.core redefines String.prototype.apply. Being new to
Clojure, I don't understand what this redefinition does or what it is
for. But I do know that redefining functions in the JS standard library,
or defining new ones on standard objects, is something that should be
done with
Glad I'm not the only one!
A separate mailing list for ClojureScript would be great. Also, enabling
the label [Clojure] for all subjects of emails would be great (this must be
a setting in google groups, because most of the larger groups have it
enabled), as I filter through a great deal of email
I'm having trouble getting the M003 branch to work. I would like to update
the project so that it will work with the newest dependencies, and work
with leiningen 2. The problem is that when I do:
lein repl
(go)
The chrome browser loads properly, and the page works, but I can't connect
with th
This is really nice to learn and play with clojure :)
Thanks!
On Sun, Sep 16, 2012 at 10:02 PM, Denis Labaye wrote:
>
>
> On Fri, Sep 14, 2012 at 7:53 PM, Frank Siebenlist <
> frank.siebenl...@gmail.com> wrote:
>
>> We're happy to announce the new clj-ns-browser 1.3.0 - the "cool
>> button-row wi
61 matches
Mail list logo