words!!!
-Frank.
On Mar 4, 2013, at 10:52 PM, Frank Siebenlist
wrote:
> Hi Mark,
>
> Thanks for sharing!
>
> I like the approach of hiding all the interaction with the
> java.security.MessageDigest library,
> and returning the pair of matching digest&verify functions -
h 4, 2013 6:46:07 PM UTC-5, FrankS wrote:
> Larry,
>
> What I can advise though, is to look at my library code and it may give you
> different perspectives.
>
> Furthermore, copy, borrow, and steal what you like and make it your own.
>
> -FS.
>
>
Larry,
What I can advise though, is to look at my library code and it may give you
different perspectives.
Furthermore, copy, borrow, and steal what you like and make it your own.
-FS.
On Mar 4, 2013, at 3:17 PM, Frank Siebenlist wrote:
> If your code is for production… do not use my c
rce files to /Users/lkrubner/projects/multi-platform-
> data-visualization/mpdv-clojure/target/classes
> Release versions may not depend upon snapshots.
> Freeze snapshots to dated versions or set the
> LEIN_SNAPSHOTS_IN_RELEASE environment variable to override.
>
>
>
>
&g
Glad Larry has working code now...
As I mentioned before in this thread, I'm working on this functional interface
for the message-digesting/secure-hashing, and this whole discussion reads like
a use case for the "why?" ;-)
It "proofs" to me that there may be real value in a more user-friendly a
ain, I am
> creating a new instance MessageDigest, and so I don't have to worry
> about calling .digest()?
>
>
>
> On Mar 4, 2:43 pm, Frank Siebenlist
> wrote:
>> That should work.
>>
>> No need for .reset though as the initially constructed Messa
t;\" Created=\"" created "\"")]
>header)
>
>
> I end up with, in part:
>
> PasswordDigest="[B@26f7b2f4"
> Nonce="Y2MwN2JiYzA5MDlmZjE2ZjExMGYzMjRhODA2Yjc5ODc="
> Created="2013-03-04T15:57:52"
&g
t;
> and then print this to the terminal, I can see it really is just a
> string made of these 3 items. Just a plain string, exactly what I
> assumed.
>
>
> On Mar 4, 2:25 pm, Frank Siebenlist
> wrote:
>>> digest (-> (java.security.MessageDigest/
e digest of "bc"'s bytes and
.digest that.
Ough… hope that's clear...
-FS.
On Mar 4, 2013, at 12:15 PM, Aaron Cohen wrote:
> I'm not familiar with the class, but it seems that MessageDigest/getInstance
> might retrieve some shared instance that could theoretic
>(doto (java.security.MessageDigest/getInstance "sha1")
> .reset
> (.update nonce-bytes)
> (.update created-bytes)
> (.update secret-bytes)))
>
>
> On Mon, Mar 4,
> digest (-> (java.security.MessageDigest/getInstance "sha1")
> .reset
> (.update nonce-bytes)
> (.update create-bytes)
> (.update secret-bytes)
> .digest)
There may be an issue with this snippet o
> issue to help increase its visibility...
>
> Add your 2 cents here (provided you've a CA):
> http://dev.clojure.org/jira/browse/CLJ-766
>
> Best, K.
> --
> Karsten Schmidt
> http://postspectacular.com | http://toxiclibs.org | http://toxi.co.uk
>
>
> On 3
Not sure if it's helpful in this context, but I've been playing with a more
functional
message-digest/secure-hashing interface recently.
Please take a look at:
https://github.com/franks42/clj.security.message-digest
It's still a little raw, and probably more "educational" than practical right
Excellent - thanks for letting me know - Frank.
On Mar 3, 2013, at 11:37 PM, Tassilo Horn wrote:
> Frank Siebenlist writes:
>
> Hi Frank,
>
>> clj-ns-browser 1.3.1 is released and addresses this issue by upgrading
>> the project's dependencies to seesaw 1.4.3.
&
clj-ns-browser 1.3.1 is released and addresses this issue by upgrading the
project's dependencies to seesaw 1.4.3.
For docs and code, please see "https://github.com/franks42/clj-ns-browser";.
Enjoy, Frank.
On Mar 2, 2013, at 10:57 PM, Dave Ray wrote:
>>> As i'm responsible for the clj-ns-br
Small maintenance release that upgrades project's dependencies to Clojure 1.5
and Seesaw 1.4.3, but works fine with Clojure 1.4 also.
As Seesaw's Dave Ray stated it: "The one good reason to upgrade is if you're
planning on using Clojure 1.5 and don't feel like being confused by the horrors
of M
I just ran into that issue while I was constructing byte-arrays for secure-hash
test cases.
Ended-up using (byte-array (vector-of :byte 1 2 3 4)) to avoid writing the
(byte-array [(byte 1)(byte 2)(byte 3)(byte 4)]).
Transparently adding valid byte-number values to a byte-array makes sense and
> ...
> The chain causing problems for you is:
>
> [clj-ns-browser "1.3.0"] -> [seesaw "1.4.2"] -> [j18n "1.0.1"] ->
> [org.clojure/clojure "[1.2,1.5)"]
>
> The last one there allows clojure below 1.5, which includes -RC17. As
> soon as you bump to to 1.5 it ignores the "soft" version in your
>
There is one more important difference between EPL and GPL/LGPL that we should
be aware off:
You cannot copy snippets out of Philip's LGPL'ed code and use them in your own
EPL'ed code.
For me, one of the great benefits of all the EPL'ed clojure libraries out there
is, that I've freely borrowed
Happy to help - FrankS.
On Jan 23, 2013, at 10:53 AM, Andy Fingerhut wrote:
> An interest was expressed by a few in having a separate ClojureScript mailing
> list.
>
> If it is a Google group, that requires moderating messages sent to the group,
> via manual approval. I suspect early on ther
One process that could be made a little easier is the contribution of code
documentation and suggested improvements of doc-strings.
New or improved doc-strings do not change any functionality, impact any tests,
require peer review…
If we could simply suggest new doc-strings for example in the J
On Jan 16, 2013, at 9:05 AM, David Nolen wrote:
> Not documented anywhere as far as I know. Also not documented is the fact
> that destructuring *is* supported.
>
> David
>
>
> On Wed, Jan 16, 2013 at 11:46 AM, Frank Siebenlist
> wrote:
>> Ouch!
>>
>&g
topic/clojure/HyoSBEfEF4w";
Thanks, FrankS.
On Jan 16, 2013, at 8:14 AM, David Nolen wrote:
> They aren't supported in Clojure either.
>
>
> On Wed, Jan 16, 2013 at 11:11 AM, Frank Siebenlist
> wrote:
> CLJS: protocol interfaces don't seem to support variable a
CLJS: protocol interfaces don't seem to support variable args in the arglist,
like [ & opts]
Is there a CLJS issue# that addresses this?
(coudn't fine one… but I've been "wrong" before)
Thanks, FrankS.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group
uld probably simulate this by creating a
> Unbound type and initializing def'ed vars without init expressions to
> instances of it.
>
> David
>
>
> On Tue, Jan 15, 2013 at 1:08 AM, Frank Siebenlist
> wrote:
> ClojureScript:cljs.user> (def a nil)
&
op you
> shouldn't care.
>
> On Tuesday, January 15, 2013, Frank Siebenlist wrote:
> ClojureScript:cljs.user> (def a nil)
> nil
> ClojureScript:cljs.user> (def b)
>
> ClojureScript:cljs.user> (undefined? a)
> false
> ClojureScript:cljs.user> (undefined?
ClojureScript:cljs.user> (def a nil)
nil
ClojureScript:cljs.user> (def b)
ClojureScript:cljs.user> (undefined? a)
false
ClojureScript:cljs.user> (undefined? b)
true
ClojureScript:cljs.user> (nil? a)
true
ClojureScript:cljs.user> (nil? b)
true
ClojureScript:cljs.user> (type a)
nil
ClojureScript:clj
; value, which I can either detect thru the type or the
> bound? test.
>
> However, next issue is how to do this in ClojureScript as we do not have any
> vars and therefor no unbound vars…?
>
> -FS.
>
>
> On Jan 14, 2013, at 7:07 PM, Frank Siebenlist
> wrote:
&g
any
vars and therefor no unbound vars…?
-FS.
On Jan 14, 2013, at 7:07 PM, Frank Siebenlist
wrote:
> Understood.
>
> … but shouldn't it be a standardized constant for the whole community to use
> to avoid any interoperability issues and many reinvented wheels?
>
> The
an 14, 2013, at 5:23 PM, Timothy Baldridge wrote:
> It's fairly common in situations like this to use a namespaced keyword. For
> instance ::unknown (which is short for my.namespace/unknown).
>
>
> On Mon, Jan 14, 2013 at 6:06 PM, Frank Siebenlist
> wrote:
> I
I'm using those watcher-fns that get called when the watched ref changes, and
the watcher-fn gets passed the old-value and the new-value.
Now, nil is a proper value for a key-value and well as a val-value in a map, so
passing nil does not give you the info whether or not an old-value existed or
they are
present in the google-closure-library.
Removing the domina dependency made the goog-jar file go away, and all goog
requires and provides are happily resolved.
Ough… talking about dependency hell...
-FrankS.
On Jan 8, 2013, at 1:17 PM, Frank Siebenlist wrote:
> Thanks Paul
Thanks Paul for the "hints" - can't wait for your finished upgrade…
-FrankS.
On Jan 8, 2013, at 12:57 PM, Paul deGrandis wrote:
> Hi Frank,
>
> Two situations cause this error:
> - Sometimes paths to the third-party jar get "jangled" up.
> - Names/paths will sometimes change slightly betwe
Not sure what to make of this issue.
Tried to compile/run shoreleave.browser.storage.localstorage module,
but it gave me the following js-console error:
ERROR - required "goog.storage.mechanism.HTML5LocalStorage" namespace never
provided
goog.require('goog.storage.mechanism.HTML5LocalStorage')
It sure looks very nice!
… but doesn't your use of #_ preclude us from getting that doc-info in the
running system?
In other words, how would you enhance the doc facility in the repl to pickup
your doc-meta-data in real-time?
-FrankS.
On Dec 18, 2012, at 11:10 PM, greenh wrote:
> I'd like
Does Flow work with ClojureScript?
It feels like expressing and using those Flows could solve similar
call-back-hell problem in the single-threaded asynchronous javascript world,
and could be an alternative to promises (?).
(hopefully I understood the functionality well after a quick scan and g
with stdin?
Can I use it for interactive input from a terminal until the user sends
CTRL-D/EOF?
-FrankS.
On Dec 12, 2012, at 7:43 PM, Stephen Compall wrote:
> On Wed, 2012-12-12 at 18:41 -0800, Frank Siebenlist wrote:
>> Could you give a few use cases that shows what your library can b
Hi Stephen,
Could you give a few use cases that shows what your library can be used for?
Is it only for those of us that require a stream/seq of single bytes/chars?
Would that make it easier to generate sha1's for example?
Is it useful for sound/video-like streams?
Sorry if I missed the point c
When I'm working on a number of interdependent projects, I'm making symbolic
links of the src directories of the dependent project inside my main project.
In that way, I can easily make changes in the multiple projects without having
to go thru the update version/jar/pom/install cycles for all a
Thanks for the explanation, Herwig.
I've tried to read up on (nested) browsing contexts stuff.
The best I found so far is
"http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#nested-browsing-context";
… which is still pretty dense - if anyone has a pointer to a more practica
rd for the idea!)
Bumped version to [cljs-uuid-utils "0.1.3"]
-FS.
On Dec 2, 2012, at 6:36 PM, Frank Siebenlist wrote:
> I've wrapped my random uuid generator up in a little library at:
>
> https://github.com/franks42/cljs-uuid-utils
>
> ---
> cljs-uuid-uti
David mentioned in another thread that "… the file that's meant to be loaded
into the cross page iframe…"
I noticed that before, but it always puzzled me - time to ask the Q.
Could someone please explain why the REPL downloads essentially the same
js-code when it connects as the js-code that ca
anyway - you absolutely need to test your code against the
> modern JS engines - V8, JavaScriptCore, or SpiderMonkey (with JIT turned on).
> For code like this they are often 100X faster if not far greater than that.
>
>
> On Thu, Nov 29, 2012 at 1:07 PM, Frank Siebenlist
> wr
Sorry - just noticed the "Re: cljs: extend-protocol to Keyword" discussion of a
few days ago.
Maybe we should start maintaining an FAQ-like wiki-page with summaries of those
issues/features…
-FS.
On Nov 30, 2012, at 5:17 PM, Frank Siebenlist
wrote:
> When I ask for the type
When I ask for the type of a keyword, symbol or string, cljs gives me the same
answer:
---
ClojureScript:cljs.user> (type "jaja")
#
ClojureScript:cljs.user> (type 'jaja)
#
ClojureScript:cljs.user> (type :jaja)
#
ClojureScript:cljs.user> (= (type :jaja)(type 'jaja)(type "jaja"))
true
---
but the
Nolen wrote:
> Oh though before you lift them out by hand - I would double check that
> :simple optimizations doesn't already do this for you :)
>
>
> On Thu, Nov 29, 2012 at 1:25 AM, Frank Siebenlist
> wrote:
> I need UUIDs in my CLJS code…
>
> cljs.core does
I need UUIDs in my CLJS code…
cljs.core does include a UUID type, but no generator.
I found a couple of efforts and example code at
https://github.com/davesann/cljs-uuid and
http://catamorphic.wordpress.com/2012/03/02/generating-a-random-uuid-in-clojurescript,
but they didn't work with cljs.cor
Pls take a look at Bodil's recent project:
https://github.com/bodil/cljs-noderepl
-FS.
On Nov 27, 2012, at 1:32 PM, David Nolen wrote:
> It's definitely possible. I've been to meaning to merge some experimental
> work I've done creating a Node.js ClojureScript REPL in hopes that some one
>
Thanks Max - I can see you have been busy with jayq lately… I'll check it out.
-FS.
On Nov 27, 2012, at 12:05 AM, Max Penet wrote:
> jayq [1] now supports jQuery deferred API , there are 2 examples of its use
> with these 2 macros: let-ajax and let-deferred (see the readme).
>
> [1] https:
I've been following the separate discussion-thread about your enhanced Promise
effort, and it looks really cool and very useful.
Having that also available (next week ;-) ) in clojurescript would be fantastic!
-FS.
On Nov 26, 2012, at 5:32 PM, Stuart Sierra wrote:
> I've been working on a pr
Thanks for the pointers!
The only issue is that all code refers to node and not the browser's js… :-(
Your blocking-deref seems to rely on node/process.nextTick to essentially poll
in every event-loop-cycle.
Is there any node/process.nextTick equivalent that can be used in the browser?
(that se
All this call-back stuff drives me crazy in ClojureScript&JS…
Unfortunately we do not have a "real" cljs promise yet.
There seem to be javascript constructs that promise (pun intended) to do
similar things - jQuery has some deferred and promise things.
I have no experience with any of those jav
Guess we need a test for "seq'able" ;-)
-FS.
On Nov 26, 2012, at 1:47 PM, Herwig Hochleitner wrote:
> 2012/11/26 Philip Potter
> > Since ISeq already is a seq and IPersistentCollection derives from Sequable,
> > both will succeed in a seq call.
>
> A Seqable isn't necessarily a seq:
>
> Did
.org/jira/browse/CLJ-1038
>
> Andy
>
> On Nov 24, 2012, at 3:21 PM, Frank Siebenlist wrote:
>
>> I'm confused by the "promised" behaviour of the documentation of deliver:
>>
>> ---
>>
>> user=> (doc deliver)
>>
I'm confused by the "promised" behaviour of the documentation of deliver:
---
user=> (doc deliver)
-
clojure.core/deliver
([promise val])
Alpha - subject to change.
Delivers the supplied value to the promise, releasing any pending
derefs. A subsequent call to deliver
Try:
(set! (.-destinationName msg) "test-topic")
http://himera.herokuapp.com/index.html
-FS.
On Nov 15, 2012, at 11:26 AM, Thomas wrote:
> Hi,
>
> I have an external JS library I want to use and I can call methods on objects
> from the external library successful, but how do I set fields
Too easy ;-)
Thanks, FrankS.
On Nov 6, 2012, at 2:38 PM, David Nolen wrote:
> You could do: (.call f context ...)
>
>
>
>
> On Tue, Nov 6, 2012 at 5:33 PM, Frank Siebenlist
> wrote:
> In Javascript you seem to be able to set the context for "this" to a
In Javascript you seem to be able to set the context for "this" to any
fn-object by specifying your desired context's "this" in the call/apply call.
(never knew about this option - feels like an aweful hack to define
invocation-scope but some libraries use it… see
http://www.slideshare.net/modu
Thanks Steve - exactly what I needed - cool stuff.
On Nov 1, 2012, at 3:06 AM, Steve Buikhuizen wrote:
> No problem. On the client (cljs) you should:
> • require [goog.debug.ErrorReporter :as reporter]
> • (reporter/install "/er")
> On the server (I'm using Noir which supplies defpa
Hi Steve,
That sounds very intriguing, but with my limited javascript&goog knowledge it's
difficult to see how you would go about it.
Could you please elaborate on what you did and how you get those js-errors
reported back to a web server as some form of logging-service (?).
Thanks, FrankS.
Very useful example - thanks.
This should be explained in the official clojurescript doc pages in the
exceptions section.
-FS.
On Oct 31, 2012, at 3:24 AM, Alexander Solovyov wrote:
> On Wed, Oct 31, 2012 at 11:22 AM, AtKaaZ wrote:
>> seems to be working here: https://himera.herokuapp.com/
2:59 PM, David Nolen wrote:
> On Tue, Oct 23, 2012 at 4:18 PM, Frank Siebenlist
> wrote:
> Bump.
>
> Could someone please confirm that printing from the repl doesn't work anymore?
>
> Thanks, Frank.
>
> I just checked browser REPL on CLJS master - it works f
When you're calling functions of js-libs in clojurescript, you will face a lot
of boilerplate transformations to native js-objects and/or arrays.
The calls that I make start to look like:
(js-lib-fn (jayq.util/clj->js param1) (jayq.util/clj->js param2)
(jayq.util/clj->js param3))
where t
Yes - automated testing of cljs in the browser would definitely be Grand with a
capital G.
Not sure exactly what it would take, but it may be helpful to use this
cljs-info.repl/cljs->repl function as it allows you to send cljs-forms for eval
to the browser and get the result back from your clj
Thanks Paul.
Just wanted a confirmation first that this printing from the browser repl
doesn't work before opening a new issue.
(too many versions and uncommitted changes on my mac - it's a pain trying to
create a clean slate - may require a lein&m2 hard-reboot… a simple confirmation
would avoi
Sorry - browser-repl- any browser.
On Oct 23, 2012, at 1:25 PM, David Nolen wrote:
> On Tue, Oct 23, 2012 at 4:18 PM, Frank Siebenlist
> wrote:
> Bump.
>
> Could someone please confirm that printing from the repl doesn't work anymore?
>
> Thanks, Frank.
>
>
Bump.
Could someone please confirm that printing from the repl doesn't work anymore?
Thanks, Frank.
On Oct 19, 2012, at 8:18 PM, Frank Siebenlist
wrote:
> When I eval in the cljs-repl:
>
>(set! *print-fn* clojure.browser.repl/repl-print)
>
> all works again.
more elegant?
-FrankS.
On Oct 21, 2012, at 8:02 AM, David Nolen wrote:
> There is not. That would be useful.
>
> On Saturday, October 20, 2012, Frank Siebenlist wrote:
> When you have different versions of clojurescript in the dependencies of your
> main project, how do you ask the
When you have different versions of clojurescript in the dependencies of your
main project, how do you ask the repl what version it is running with… is there
any easy function/var that I overlooked?
Thanks, FrankS.
--
You received this message because you are subscribed to the Google
Groups "C
FS.
On Oct 19, 2012, at 7:56 PM, Frank Siebenlist
wrote:
> Not sure if its my cljs-config somehow (working off head r1514), but println
> doesn't seem to be working anymore:
>
> ClojureScript:cljs.user> (println "JAJA")
> "Error evaluating:" (printl
Not sure if its my cljs-config somehow (working off head r1514), but println
doesn't seem to be working anymore:
ClojureScript:cljs.user> (println "JAJA")
"Error evaluating:" (println "JAJA") :as
"cljs.core.println.call(null,\"JAJA\");\n"
#
_STAR_print_fn_STAR_@http://10.0.1.18:9000/js/main-debu
ssion:
https://github.com/franks42/cljs-info/raw/master/docs/cljs-info-clojure%20meetup-20121018.pdf
Enjoy, FrankS.
On Oct 18, 2012, at 12:28 AM, Frank Siebenlist
wrote:
> "cljs-info" is a collection of Clojure-functions to provide basic help and
> reflection facilities for Clo
"cljs-info" is a collection of Clojure-functions to provide basic help and
reflection facilities for ClojureScript.
Some of the functions provided are:
cljs-doc, cljs-doc*, cljs-find-doc, cljs-apropos, cljs-source
cljs-ns-map, cljs-ns-publics, cljs-ns-refers, cljs-ns-aliases,
cljs-ns-p
It seems you're refering to CLJS-353 - besides supporting a possible Lua
backend, it also feels semantically cleaner not to overload array and object
access - I'd vote for an additional oget/oset or obj-get/set.
Also, the aget and aset interface have this multi-dimensional support thru the
sign
Looking at the source of cljs.core/js->clj,
I see that aget is also used to access the object properties by name-string…
So please tell /me not to worry ;-)
-FS.
On Oct 16, 2012, at 8:30 PM, Evan Mezeske wrote:
> Hmm after reading that docstring, /me hopes he didn't just recommend
> someth
Thanks - that works - that was too easy ;-)
I looked at the docstring before of aget because I remembered vaguely that that
was how it used to work before .- :
cljs.core/aget - Function
([array i] [array i & idxs])
Returns the value at the index.
Dismissed it for object-access after read
I understand that you can call js-methods and get properties thru:
(.a-method some-js-object param)
and
(.-a-prop some-js-object)
respectively, but how do you invoke either when you have the method/property as
a string?
The following doesn't seem to work:
(let [m "a-method"
Hi Andy,
Really believe you should replace the current
http://clojure.org/cheatsheet
with
http://jafingerhut.github.com/cheatsheet-clj-1.3/cheatsheet-tiptip-no-cdocs-summary.html
as the tooltips will help people to navigate the clojure ecosystem, and that's
the version everyone, especially
Interesting project, although I'm still a little unclear about the "convincing"
use cases where you would choose polyfn over protocols...
Also, how does the polyfn implementation compare to the clojurescript protocol
implementation?
-FrankS.
On Oct 8, 2012, at 7:17 PM, Paul Stadig wrote:
>
uot; issue, as the
help/reflection facilities when you use lein-cljsbuild are… non-existing, which
raises the barrier to entry for new clojurescript coders and having a repl
without any online doc&friends doesn't feel very lispy.
-FS.
On Oct 8, 2012, at 1:15 PM, David Nolen wro
Ok - thanks - slowly start to see the path ;-)
I cannot find an explicit JIRA entry for that "reflection interface over
CrossPageChannel" - should I add one for this, or did I miss the issue#?
-FS.
On Oct 8, 2012, at 12:47 PM, David Nolen wrote:
> On Mon, Oct 8, 2012 at 3
Understood that was the initial reason, but how about the reflection interface?
Should that be rerendered to use the same CrossPageChannel connection?
-FrankS.
On Oct 8, 2012, at 12:03 PM, David Nolen wrote:
> On Mon, Oct 8, 2012 at 2:38 PM, Frank Siebenlist
> wrote:
>> However
idge-cljs is an nrepl http client
> for clojurescript
>
> https://github.com/hiredman/nrepl-cljs-middleware is an example of a
> nrepl middleware, which exposes clojurescript compilation as an nrepl
> command
>
> On Mon, Oct 8, 2012 at 9:51 AM, Frank Siebenlist
> wrote:
&
les to provide ssl, authN&authZ,
websockets/aleph, etc.
Just wanting to here the pros&cons.
-FrankS.
On Oct 8, 2012, at 9:57 AM, David Nolen wrote:
> On Mon, Oct 8, 2012 at 12:51 PM, Frank Siebenlist
> wrote:
>> I've been digging through the clojurescript code latel
I've been digging through the clojurescript code lately, and making some
changes to the repl-related code. This is quite difficult as clojurescript
seems to have its own "proprietary" implementation of a webserver that serves
the repl-communication as well as other possible handlers, like the
r
te:
> Sorry about the reflect stuff is quite new and in need of work. The reflect
> support should work through whatever port browser REPL was setup on.
>
> On Saturday, October 6, 2012, Frank Siebenlist wrote:
> Ok - I managed to get clojure.reflect/doc to work if the browser loads
t;say-hello
>
> doc","\uFDD0'line":10,"\uFDD0'file":"/Users/franks/Development/ClojureScript/swimtimer/src-cljs/example/hello.cljs"});
>
> which is what one expects.
>
> -FS.
>
>
> On Oct 5, 2012, at 9:13 PM, Frank Siebe
7;line":10,"\uFDD0'file":"/Users/franks/Development/ClojureScript/swimtimer/src-cljs/example/hello.cljs"});
which is what one expects.
-FS.
On Oct 5, 2012, at 9:13 PM, Frank Siebenlist wrote:
> …bumb…
>
> Is this maybe related to the use of lein-cljsbuil
port 3000.
The cljs-reflect code seems to get a conn from (net/xhr-connection), but I can
not see any port number specified…
I've reached the end of my javascript and goog knowledge… please.
Did anyone get this to work with the lein-cljsbuild setup?
-FrankS.
On Sep 23, 2012, at 2:10 PM,
Thanks Stuart - especially @namespaces is very helpful for understanding more
about the resolution process.
On Sep 26, 2012, at 12:00 PM, Stuart Sierra wrote:
> Some of this information exists in the CLJS compiler, although it's not
> documented.
>
> For example, the cljs.analyzer namespace
Thanks for digging.
The mapping of "-" to "_" comes indeed from clojure.lang.Compile/munge which is
called by cljsh.compiler/munge:
user=> (#'cljs.compiler/munge "-")
"_"
user => (clojure.lang.Compiler/munge "-")
"_"
user => (clojure.lang.Compiler/munge "_")
"_"
user =>
---
That CLJS-336 feels like a different issue that doesn't map to what I'm
seeing...
On Sep 24, 2012, at 1:45 AM, Raju Bitter wrote:
> Identifiers in JavaScript cannot contain a hyphen/minus character:
> https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Values,_variables,_and_literals
>> A
The following cljs-repl session shows the issue:
ClojureScript:cljs.user> (def my-var "YES")
"YES"
ClojureScript:cljs.user> my-var
"YES"
ClojureScript:cljs.user> (def my_var "NO")
"NO"
ClojureScript:cljs.user> my_var
"NO"
ClojureScript:cljs.user> my-var
"NO"
ClojureScript:cljs.user> (set
Understand that there are no implementations (yet) of *ns*, all-ns, ns-map,
ns-publics, ns-* for cljs, but was wondering how some of that associated info
could be found at the repl or in your cljs-code…
Could I introspect the java object hierarchy to find some of that information?
Thanks, Frank
Trying to use the clojure.reflect/doc function in the cljs-repl,
but I only errors"
---
ClojureScript:cljs.user> (clojure.reflect/doc "clojure.reflect/doc")
nil
Reflection query failed.
ClojureScript:cljs.user> (clojure.reflect/doc clojure.reflect.doc)
nil
Reflection query failed.
ClojureScript
To be more precise, if you do a (print "something") in a cljs-script, that gets
compiled and evaluated in the browser's js-vm, then the result is sent back
thru a separate http-post and dispatched to the multimethod "handle-post"
implementation for :print in clojurescript's cljs.repl.browser:
-
Hubert Iwaniuk wrote:
> If you look at cljs counterpart of it you'll see that maps are send as
> responses, that is why read-string is used.
>
> HTH
>
> Frank Siebenlist wrote:
>>
>> Sorry - I've answered part of my own Q by reading the read-string doc
1 2) (- 3 2)")
(+ 1 2)
Still confused...
-FS.
On Sep 18, 2012, at 11:51 PM, Frank Siebenlist
wrote:
> 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
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 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
1 - 100 of 165 matches
Mail list logo